Skip to content

feat(docs): comprehensive documentation standard in vxd core (training + ADRs + index)#107

Merged
tzone85 merged 1 commit into
mainfrom
feat/comprehensive-doc-standard
Jun 25, 2026
Merged

feat(docs): comprehensive documentation standard in vxd core (training + ADRs + index)#107
tzone85 merged 1 commit into
mainfrom
feat/comprehensive-doc-standard

Conversation

@tzone85

@tzone85 tzone85 commented Jun 25, 2026

Copy link
Copy Markdown
Owner

What

Makes the full software-factory documentation set part of vxd's core, not just README + SVG diagrams. Every completed requirement now ships: README, docs/architecture.svg, docs/sequence.svg, docs/training.md, docs/adr/ ADRs + index, and docs/README.md index.

Motivated by a real shortfall: across a 6-app build, the projects needed ADRs + a docs index added by hand. This bakes that standard in so vxd fills it automatically.

How

  • factory_docs.goensureFactoryDocs (called after the SVG step in generateDocumentation):
    • ensureTrainingGuide — generates docs/training.md from the codebase via the doc model, only if missing.
    • ensureDocsIndexfully deterministic docs/README.md index over everything in docs/ (guides, diagrams, ADR index). No LLM; always present.
  • factory_docs_adr.goensureADRs — asks the doc model for a JSON array of 3-6 real architecture decisions (grounded in the file tree + manifest), validates each has title + decision, writes docs/adr/0001-*.md (Status/Context/Decision/Consequences) + an index. Skips if the agent already supplied ADRs.
  • planner.go buildScribeStory — the scribe brief, acceptance criteria, and OwnedFiles now mandate the whole set up front.

Backstops are best-effort: a model failure logs and skips — never blocks requirement completion. The agent is asked to produce everything; the backstops guarantee it ships anyway.

Test plan

  • factory_docs_test.go — docs-index determinism + humanize, training skip/generate, ADR parse/render/slug/skip/generate
  • TestGenerateDocumentation_ProducesSVGDiagrams (upgraded) — README + 2 SVGs + training + ADRs + index all produced and committed end-to-end
  • TestPlanner_EmitsScribeStory — standards baked into the brief + OwnedFiles
  • go build, go vet, golangci-lint (0 issues), full engine suite green

Follow-up

  • Port to NXD

🤖 Generated with Claude Code

…ing + ADRs + docs index)

Extends the post-merge documentation loop beyond README + SVG diagrams to the
complete software-factory standard, with deterministic + best-effort backstops so
the standard holds even when the scribe agent falls short:

- factory_docs.go: ensureFactoryDocs runs after the SVG step in generateDocumentation.
  - ensureTrainingGuide: generates docs/training.md from the codebase only if missing.
  - ensureDocsIndex: DETERMINISTIC docs/README.md index over everything in docs/
    (guides, diagrams, ADR index) — always present, no LLM.
- factory_docs_adr.go: ensureADRs asks the doc model for 3-6 real architecture
  decisions (JSON), validates title+decision, writes docs/adr/0001-*.md with
  Status/Context/Decision/Consequences + an index; skips if the agent supplied ADRs.
- planner.go buildScribeStory now mandates the full set up front (training, SVGs,
  ADRs, docs index) in its brief, acceptance criteria, and OwnedFiles.

Every backstop is best-effort — model failure logs and skips, never blocking
requirement completion. Tests: factory_docs_test.go (index determinism, training
+ ADR generate/skip, parse/render/slug), upgraded TestGenerateDocumentation_ProducesSVGDiagrams
(full set produced + committed end-to-end), TestPlanner_EmitsScribeStory.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@tzone85 tzone85 merged commit 3d47e56 into main Jun 25, 2026
5 checks passed
@tzone85 tzone85 deleted the feat/comprehensive-doc-standard branch June 25, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant