Skip to main content

Source Doc Inventory designed

The portal should become readable enough that internal teams do not need to open GitHub docs for normal onboarding. It should not become a raw mirror of doc/**. This inventory controls which references get promoted into portal-native pages and which stay as audit/source links.

Generated Inventory

The portal check now generates two source-doc inventory artifacts:

  • Machine-readable JSON
  • Reviewable Markdown artifact at packages/docs/static/portal/source-doc-inventory.md

The inventory is built from each portal page's source_docs frontmatter. It records which canonical docs are referenced, which portal pages use them, and a first-pass promotion wave.

Discovery search should build on this inventory. The Search And Discovery plan defines the local index shape for portal pages, source docs, diagrams, and generated references.

Promotion Waves

WaveMeaningAction
P0 portal-nativeCore onboarding sources that internal teams should understand without GitHub accessCreate or maintain standalone portal pages
P1 deep diveHigh-value architecture, security, ops, API, or developer sourcesCreate focused deep-dive pages under the owning portal family
P2 route/linkUseful supporting referencesKeep linked from relevant portal pages until reader demand justifies a page
Reference onlyPrototype, historical, or IA evidenceKeep as source evidence; do not turn into public-facing explanation unless promoted

P0 Sources Already Being Folded

SourcePortal-native coverage
doc/product/PRD.mdProduct Strategy, Internal Team Onboarding
doc/product/UX_Journeys.mdUser Interactions, Use AI Cloud
doc/architecture/Architecture_v1.mdPlatform Overview, System Overview
doc/operations/Production_Platform_Baseline.mdDay-2 Operations, Security & Production Readiness
doc/Governance_Overview.mdGovernance Model

Next Consolidation Targets

TrackSource docsPortal pages to add next
Product deep divesProduct IA, UX implementation spec, page contracts, competitive matrixProduct IA, launch workflow, billing experience, admin/operator product surface
Architecture deep divesPlatform foundation, API route model, domain authoring model, state machinesControl plane, domain boundaries, platform shared services, state/event model
Ops/Security deep divesProduction baseline, runbook architecture, security control verification, threat modelProduction baseline, security controls, incident model, release evidence model
Developer deep divesApp SDK starter pack, manifest guide, external app integration, API auth/accessApp SDK onboarding, manifest reference, app promotion, generated API reference
Governance deep divesContract gates, CI checklist, coding/testing standards, agent modelChange control, Definition of Done, CI gates, agent lanes

Consolidation Rule

Promote a source doc when a normal internal reader would otherwise need to read the raw GitHub document to understand the product, architecture, operation, or governance model. Keep it as a source link when it is mainly evidence, detailed specification, or implementation reference.