Skip to content

v1.91.220.0 fix(office-hours,plan-reviews): write the plan-mode copy through to the design doc and warn when it is newer (#542) - #3408

Merged
capy-ai[bot] merged 4 commits into
mainfrom
garrytan/542-design-doc-plan-copy
Oct 25, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
garrytan/542-design-doc-plan-copy

Conversation

@garrytan

@garrytan garrytan commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

What changed

Plan review before/after
A plan review on a design doc that was revised in host plan mode. Before, it reads the stale gstack copy ("three tiers"). After, the discovery helper names the newer plan-mode copy, the review writes it through, and it reads the revised design.

office-hours before/after
office-hours' closing design-doc check now writes newer plan-mode edits through to the gstack doc and records the pairing the plan reviews read.

  • /office-hours: the closing design-doc check takes the host plan file that holds the doc. If that file is newer and differs, it's copied over the gstack doc (PLAN_COPY: written through) and the pairing is recorded in <doc>.plan-copy. Any repo copy under docs/designs/ is rewritten from the doc under Phase 5's scan rule. An older plan file never overwrites the doc.
  • bin/gstack-design-doc-find: when the newest state-root doc has a recorded plan copy, the helper prints DESIGN_PLAN_COPY with the write-through command on stderr. It adds STALE_DESIGN_DOC with the cp to run when the copy is newer than the chosen doc and differs from it. Stdout is still just the doc path, so the {{DESIGN_DOC_DISCOVERY}} block and every skill that renders it (plan reviews, /autoplan, the spec-review prerequisite check) stay byte-identical.
  • /plan-ceo-review, /plan-eng-review: run a STALE_DESIGN_DOC write-through before reading and say so in one line. After a review edits the plan copy, they write it through after the exit gate, before telemetry.
  • Size: no pin was raised. plan-eng-review drops its 15th cognitive pattern ("Error budgets", which pattern 7 already names). office-hours drops three explanatory sentences and shortens one. The pins went down by 44 characters (plan-eng-review, 11 hosts) and 31 (office-hours, 4 hosts).

Why

Fixes #542. When /office-hours ran in Claude Code's plan mode, the design doc existed twice, and later edits went only to .claude/plans/. /plan-ceo-review and /plan-eng-review then read the stale ~/.gstack copy as the source of truth, and each review's own edits drifted the two further apart. Garry decided on Oct 17 ("designdoc") that the gstack doc stays the single source, with plan-copy edits written through and a warning when the copy is newer.

Approvals

Date Ask Garry's words Covers Pending
2026-10-17 #542: which file is the source of truth in plan mode "designdoc" gstack design doc stays the source; write-through plus stale-copy warning —
2026-10-24 Build the triaged fix wave "do it" (relayed by GStack Minder) Full-scope build of #542, no further ask Merge through a train (standing)

Evidence

  • Head db7ea4ce44f822f6044df54e315ca07c34cc991b, unstamped. CI green: 45 passed, 0 failed.
  • Free tier: remote pregate on Ubicloud, tree 2a8cd52, 17,469 tests, 0 failed ($0.05). macOS and Windows obligations cleared from this head's Free Tests and Windows Free Tests runs.
  • Focused paid cases (PR selection, run locally): auq-format-gate, office-hours-auto-mode, plan-ceo-review-plan-mode, plan-eng-coverage-audit and plan-review-report all passed. The plan-ceo-review modes judge passed.
  • Flaky: the plan-eng-review sections judge failed once (median clarity 3, actionability 3), then passed the rule-16 rerun at the same tree (4/5/4). Main 749a238 also scores 4/5/4. The failing samples cite pre-existing dangling references outside this diff. It's logged in the crew flaky ledger.
  • Size: SKILL.md size guard green with pins only lowered. test/parity-suite.test.ts green.

garrytan and others added 2 commits October 25, 2026 07:25
… to the design doc and warn when it is newer (#542)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits October 25, 2026 07:32
…removed cross-team sentence

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title fix(office-hours,plan-reviews): write the plan-mode copy through to the design doc and warn when it is newer (#542) v1.91.220.0 fix(office-hours,plan-reviews): write the plan-mode copy through to the design doc and warn when it is newer (#542) Oct 25, 2026
@capy-ai
capy-ai Bot merged commit 956a3f5 into main Oct 25, 2026
62 checks passed
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.

/office-hours design doc saved to .claude/plans/ is invisible to downstream gstack skills

1 participant