-
Notifications
You must be signed in to change notification settings - Fork 0
Plan design docs release sync
Current — the latest status report. Reports freeze once published; corrections appear in later reports.
The repo has frozen plans (the why), a generated roadmap (the what's next), and
status reports (the what happened) — but no living description of the what is:
architecture, data flow, and a guided tour of the code. Rick wants two new artifact
kinds under docs/designs/, tied to releases, regenerated automatically at release
time by background agents, plus release-time refresh of the user guide and README so
shipped docs never drift from the shipped code. All of it publishes to the wiki via
the existing ledger.
Dated (frozen, publish-once — same rules as roadmap snapshots):
docs/designs/<DATE>_<NAME>_design_doc.mddocs/designs/<DATE>_<NAME>_code_walkthrough.md-
<NAME>at release time isvX.Y.Z-release(matches snapshot naming); ad-hoc names allowed mid-cycle. - Frontmatter:
date,name,tag: vX.Y.Z(git tag),roadmap_snapshot: docs/roadmap/<date>_<name>.md,git_hash,branch.
Current (live, regenerated each release — same rules as the live Roadmap page):
-
docs/designs/current_design_doc.md,docs/designs/current_code_walkthrough.md - Frontmatter:
generated_at(UTC date-time),git_hash,branch,roadmap: docs/roadmap.md,tag(latest release tag when generated at release). - Frozen-artifact exception documented: these two are the only docs besides
docs/roadmap.mdthat get rewritten in place.
Content templates live in the skill dir as references:
-
references/design-doc-prompt.md— Rick's full 35-section Design Document Prompt (supplied in-session), stored with these improvements:- Sections are a menu, not a quota. New preamble: include only sections whose subject exists in the analyzed system; close the doc with an "Omitted sections" list, one line of reason each. (35 enterprise sections against a stdlib-only CLI would be mostly "N/A" padding — omission-with-reason keeps the doc honest AND short.)
- Vendor sections genericized. §16 Redis / §19 Bedrock become "for each cache/AI-provider dependency actually present…", keeping Rick's detailed checklists as the per-dependency template. §17 MCP / §18 AI endpoints keep their checklists, gated the same way.
-
Source material auto-filled, not
[insert]ed. The skill fills System Context/Source Material from the repo itself: README, spec, docs/plans/, docs/adr/,.work/config.yml, test suites — the analyzed repo is the source of truth, placeholders deleted. -
Source-reference + accuracy rules merged in from Rick's companion
walkthrough prompt: every code claim cites
path — function(), lines N–M; quote exactly; never invent; distinguish production/test/deprecated code; no secrets. Labels Confirmed/Assumption/Recommendation/Open Question kept. -
Frontmatter block required (this plan's artifact model: generated_at /
git_hash / branch / tag / roadmap ref) — the prompt's own "store under
docs/design/design_doc.md" line is replaced by our layout:
docs/designs/<DATE>_<NAME>_design_doc.md(Rick's stated convention; the prompt's path/name-order variant normalized to it). - Mermaid rules kept, plus our house constraint: node cap with "+K more" (no silent truncation), diagrams derived from actual code/events only.
- Quality-controls and Output-Rules sections kept verbatim (they're good); "Validate the Mermaid syntax" stays — we render Mermaid in the roadmap already, so broken syntax is visible immediately.
-
references/code-walkthrough-prompt.md— walkthrough variant built from the same accuracy/source-reference rules: guided tour of bin/ + hooks/ + plugin/ in execution order, tests as executable spec, junior-engineer orientation (where to start, what's risky, which invariants must hold), gaps-and-drift section comparing walkthrough against the design doc — design doc as context, never as proof.
Instructions, no shipped code (consistent with skill-based edges):
- Read
.work/config.ymlrelease.sync_docslist (see below). - Generate = run the reference prompt against the ACTUAL repo at HEAD; stamp
frontmatter from
git rev-parse/git describe --tags/ current roadmap. - Release mode: regenerate both
current_*files, then freeze dated copies<DATE>_<vX.Y.Z-release>_*.mdwith tag + snapshot frontmatter. - Sync mode (ad-hoc): regenerate
current_*only; dated copy only when asked. - Publish via wiki-publish:
Design-Doc/Code-Walkthroughlive pages (republish on hash change) + frozen dated pages linked from Home — ledger keysdesign/current-design-doc,design/<date>_<name>-design-doc, etc. - Always executed in a background subagent — same non-blocking rule as viz.
.work/config.yml gains:
release:
sync_docs: # regenerated by background agents at every release
- design-doc # docs/designs/current_design_doc.md + dated freeze
- code-walkthrough # docs/designs/current_code_walkthrough.md + dated freeze
- user-guide # docs/user_guide/*.md reviewed against diff since last tag
- readme # README.md sameRemove an entry to opt a doc out of release sync. plugin/scripts/init.sh scaffold
gains the same block (commented defaults).
release skill (both copies) gains a step between "Tag and platform release" and
"Publish and sync": spawn background agents, never block the tag:
- Agent A — design-docs skill in release mode (current + dated + wiki).
- Agent B — user-docs refresh: diff
vPREV..vX.Y.Z, updatedocs/user_guide/*andREADME.mdwhere the diff made them stale (guided byrelease.sync_docs), commit on main after the release lands, republish changed wiki pages via ledger. - The release itself completes without waiting; agents report when done. Doc commits land AFTER the tag (docs describe the release; the tag doesn't wait for prose).
-
.claude/skills/design-docs/SKILL.md+references/{design-doc-prompt,code-walkthrough-prompt}.md -
plugin/skills/design-docs/mirror (withversion:frontmatter — lockstep test picks it up automatically) -
.claude/skills/release/SKILL.md+plugin/skills/release/SKILL.md— new background-agents step -
.work/config.yml+plugin/scripts/init.sh—release.sync_docsblock -
docs/designs/— first generation:current_*pair + datedv0.11.0-releasepair against the just-cut tag (dogfood proof) -
.claude/skills/wiki-publish/SKILL.md(+ plugin) — one line adding designs to the default publish set; frozen/live rules already cover the rest -
docs/user_guide/user-guide.md,plugin-guide.md,README.md— document the new artifacts + release sync -
tests/test_plugin.py— skill count/version lockstep covers the new skill automatically (assertGreaterEqual); packaging guard unchanged (docs/ never ships) -
CLAUDE.md— one policy bullet: designs regenerate on release via background agents;current_*are the sanctioned rewrite-in-place exception; dated ones frozen
Wave 1 (parallel subagents): skill + references | release-skill step + config | docs updates. Wave 2 (background agent, dogfood): generate the four artifacts against v0.11.0 and publish to wiki. PR → green-gates loop → merge. Version stays 0.11.0 (content change post-release; next release picks it up — same pattern as the ADO-caveats PR).
-
tests/test_plugin.pygreen (canon + lockstep + packaging). -
docs/designs/holds 4 files; frontmatter carries tag/hash/branch/roadmap refs that matchgit rev-parse v0.11.0and the v0.11.0 snapshot path. - Wiki shows Design-Doc + Code-Walkthrough live pages + dated pages linked from
Home;
.work/published.jsonhas the new keys. - A re-run of the design-docs skill with unchanged sources publishes nothing (hash-skip proof).
- Release skill text: next release spawns the agents (proven live at v0.12.0).
- Plan captured via
worklog plan-capturetodocs/plans/at execution start.
- (P1) design-docs skill: SKILL.md + references/design-doc-prompt.md (Rick's 35-section prompt, improved) + references/code-walkthrough-prompt.md; plugin mirror with version frontmatter
- (P1) release skill gains background-agents doc-sync step (both copies); release.sync_docs list in .work/config.yml + init.sh scaffold
- (P1) docs: user guide + plugin guide + README document design artifacts; CLAUDE.md policy bullet; wiki-publish default set gains designs
- (P1) dogfood generation: current_design_doc + current_code_walkthrough + dated v0.11.0-release pair under docs/designs/ (background agent, grounded in actual repo, frontmatter tag/hash/branch/roadmap)
- (P1) wiki: Design-Doc + Code-Walkthrough live pages, frozen dated pages, Home links, published.json ledger keys
- (P2) suites green; PR; green-gates merge; item closeout
- Roadmap
- Design-Doc · Code-Walkthrough
- Plan: Plan-ia-content-model
- Plan: Plan-ticket-sync-and-init-detection
- ADR-0001-event-log-fold-union-merge
- ADR-0002-skill-based-edges-typed-contract
- ADR-0003-green-gates-merge
- Index-Releases
- Latest snapshot: Roadmap-2026-07-29_v0.18.0-release
- Index-Status
- Index-Decisions