- reconcile-docs: ingest merged PRs, published code-review comments, milestones, and Project Board column placement (Completed vs. Backlog/Ready) read-only via gt; include active design specs (docs/designs/*.md) and Mid-Slice Spec Drift resolution; hand off to gitea-plan when reconciled docs require tracker updates. - gitea-plan: hand off to reconcile-docs at milestone boundaries or when canonical docs lag behind Completed board cards. - implement-slice: check for upstream design spec drift in Step 1 preflight and prompt to run reconcile-docs at Step 7 when Scope Drift evolves a contract in docs/designs/*.md or ARCHITECTURE.md. - tests: add test_reconcile_docs_gitea_ingestion_and_hooks.
3.9 KiB
3.9 KiB
name, description
| name | description |
|---|---|
| reconcile-docs | Audit, reconcile, and generate canonical repository documentation (README.md, ARCHITECTURE.md, docs/adr/, ROADMAP.md, docs/designs/*.md) against commit history, code reality, Gitea delivery state, and active plans. Use when updating a repository's official documentation. For capturing session notes or personal insights into the vault, use document. |
Reconcile Docs
Use when
/reconcile-docs [history-path]: audit or reconcile repository documentation against history, Gitea state, and active plans.- Closing a milestone or resolving mid-milestone design spec drift flagged by
code-revieworimplement-slice. - Not for capturing a single session's insight (use
/document). - Not for triaging inbox notes into vault directories (use
draft-curation).
Steps
- Discover Present State. Inspect working-tree status, repository source, tests, configuration,
AGENTS.md, and existing docs. Build a present-state inventory of components, responsibilities, boundaries, and dependencies. - Reconstruct History. Read chronological notes and commit history from the provided history source (vault records, discussions, previous ADRs) and, when a Gitea remote exists, read merged PRs and published
code-reviewPR comments/reviews viagt(usinggt-usageread-only queries). Extract decisions, accepted trade-offs, mid-slice contract pivots, rejected alternatives, migrations, and incidents. - Extract Future Intent. Identify active plans, roadmaps (
ROADMAP.md,docs/designs/*.md), and, when a Gitea remote exists, read open/closed Gitea milestones, issues, and Project Board column placement (Completedvs.Backlog,Ready,Work in Progress,Review) read-only viagt. Classify each item as committed, planned, exploratory, or superseded. Never mutate Gitea issues, PRs, or board cards. - Reconcile and Detect Conflicts. Correlate past claims, present code reality, and future plans using references/reconciliation-matrix.md. Flag contradictions (historical claims contradicted by code, mid-slice spec drift in
docs/designs/*.md, orBacklogplans masquerading as current implementation). - Human Checkpoint. Present a Reconciliation Report following references/checkpoint-format.md listing present architecture, recovered decisions, resolved and unresolved conflicts, and proposed document mutations. Stop for user approval.
- Draft or Update Canonical Docs. Once approved, generate or update target artifacts following references/doc-contracts.md in order:
README.md(identity, purpose, high-level navigation)ARCHITECTURE.md(canonical present-state system model only)docs/adr/(accepted or superseded decision records with context)ROADMAP.md(intentional future direction and completed milestones)docs/designs/*.md(when an active multi-slice design spec has drifted behind merged slices)
- Verify Consistency. Run cross-document consistency checks: verify no future claims in ARCHITECTURE, no obsolete claims in README or active design specs, consistent terminology, and valid links.
Your call
- History source location if not specified or ambiguous.
- Reconciliation conflict resolutions: whether to supersede, document migration, or drop stale claims.
- Approval of the Reconciliation Report before writing any documentation file.
- Which suggested ADR candidates warrant writing.
Done when
- The Reconciliation Report is approved by the user, canonical documentation files are written or updated, and consistency validation passes cleanly.
Hands off to
git-manager: for branch setup or committing updated documentation files.gitea-plan: when reconciledROADMAP.mdordocs/designs/*.mdrequire new or updated Gitea milestones, issues, or board reconciliation.