Repository navigation
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
Conversation
… 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>
|
😎 This pull request was merged. |
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
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' 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 underdocs/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 printsDESIGN_PLAN_COPYwith the write-through command on stderr. It addsSTALE_DESIGN_DOCwith thecpto 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 aSTALE_DESIGN_DOCwrite-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.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~/.gstackcopy 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
Evidence
db7ea4ce44f822f6044df54e315ca07c34cc991b, unstamped. CI green: 45 passed, 0 failed.test/parity-suite.test.tsgreen.