Skip to content

Plan reviews no longer read a /design-review audit summary as the design doc (#4615) - #4623

Merged
capy-ai[bot] merged 1 commit into
mainfrom
fix/design-doc-find-skips-audit-summaries
Nov 21, 2026
Merged

capy-ai[bot] merged 1 commit into
mainfrom
fix/design-doc-find-skips-audit-summaries

Conversation

@garrytan

@garrytan garrytan commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

After a /design-review run, /autoplan, /plan-ceo-review and /plan-eng-review now read the branch's real design doc instead of the one-line audit summary that /design-review saves next to it.
Plan reviews are only useful when they review the actual design, so picking up a pointer file silently gave them nothing to work with.
Nothing to do.

What changed

With a design doc and a newer audit summary on the branch, the finder used to return the audit summary; now it returns the design doc

With a design doc and a newer audit summary on the branch, the finder used to return the audit summary; now it returns the design doc.

Before/after as text: With a design doc and a newer audit summary on the branch, the finder used to return the audit summary; now it returns the design doc
--- Before · before.txt · captured output
+++ After · after.txt · captured output
 $ gstack-design-doc-find proj feat-x
+~/.gstack/projects/proj/user-feat-x-design-20261101-0900.md
-~/.gstack/projects/proj/user-feat-x-design-audit-20261121-1000.md
 

/design-review writes a one-line summary named {user}-{branch}-design-audit-{datetime}.md into the same project folder as the design docs. gstack-design-doc-find picks the newest *-design-*.md file there, so right after a design review it handed the plan reviews that summary instead of the design doc. The finder now skips audit summaries the same way it already skips office-hours decision memos, falls back to the next-newest real doc, and still finds the right doc on a branch whose own name contains "design-audit".

Why

Reported by @robbiesierra in #4615: after running /design-review, the next plan review read the audit pointer as the design doc. Plan reviews now get the design they are meant to review.

Blast radius

Only bin/gstack-design-doc-find changed, in the loop that filters candidate files; the precedence between the private state folder and docs/designs/, and the plan-copy warnings, are untouched (file read, and the existing 22 tests in the two finder test files pass). Its callers are the Design Doc Check blocks in the plan-review skills, which only read the printed path, so a file that is no longer returned can only change which doc they read, never break them (two new tests and two isolated CLI runs).

Pre-Landing Review

No issues found. The batched specialist reader (testing, security, state machines, red team) and the separate adversarial reader both returned no findings. The core checklist found nothing either.

Exploratory QA

Two isolated command-line runs, both passing: with a design doc and a newer audit summary on branch feat-x, the finder returns the design doc; on a branch named fix-design-audit, it returns that branch's design doc, not its newer audit summary. Not re-run: the docs/designs/ precedence and the plan-copy warnings, which this change does not touch.

Scope Drift

Scope Check: CLEAN. Intent: stop the design-doc finder from returning /design-review audit summaries (#4615). Delivered: one filter in the finder, its header comment, two tests and a changelog note.

Eval Results

No prompt-related files changed, so evals were skipped.

Verification Results

No plan file for this bug fix, so there were no plan-specific checks; the two QA runs above are the automatic checks.

TODOS

No TODO items completed in this PR.

Documentation

Scope: I audited the branch diff against bd77c8c: bin/gstack-design-doc-find, test/gstack-design-doc-find.test.ts and changelog.d/fix-design-doc-find-skips-audit-summaries.md. There were no staged, unstaged or new files outside those three. I also searched docs/, README.md, AGENTS.md and CLAUDE.md for references to the design-doc finder and to design-audit file names.

Result: The docs are current. The fix updates the finder's own precedence comment to say it skips /design-review audit summaries the same way it skips decision memos. The changelog fragment explains the change to users. None of the docs that mention the finder or design-audit (docs/skills.md, docs/designs/IMPECCABLE_INTEROP.md, docs/designs/FIX_WAVE_2026_10_06.md) describe its filename matching, so none of them went stale.

Debt: None.

Tests
  • bun --no-env-file test --timeout=30000 test/gstack-design-doc-find.test.ts test/design-doc-plan-copy.test.ts: 24 pass, 0 fail. The two new tests failed on main (bd77c8c) before the fix.
  • bun run test (full free suite): runs in CI on this PR.
Agent notes

Refs #4615

Source: an outside issue; no outside code was carried over.

Approvals

No approvals recorded for branch fix/design-doc-find-skips-audit-summaries.
Plan: exempt: bug fix (kind fix; failing-first test written and seen failing on main bd77c8c)
Plan check: exempt bug fix

REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen unbound=1 ledgers_read=2 dispatches=1 est_input_tokens=2002
Gate edits: none detected (1 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

{
  "schema_version": 1,
  "pr": 4623,
  "head": "37dbee22bcb0139ebb31d52a8020a0331d8919ba",
  "version": "1.102.1.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 24,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 44924790317,
      "attempt": 1,
      "tree": "b666122cec06772a239c7db4773879de5bed65f0"
    }
  ],
  "calls": 14,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/ship-4615/run1",
  "head_tree": "b666122cec06772a239c7db4773879de5bed65f0",
  "product_patch_id": "7c065539d095af32cc8a57abb35a50d01805a76c",
  "gstack_version": "1.102.1.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 6,
    "rules": "85b3923b1a978e41",
    "base": "bd77c8ccaa373e3a072ef3d9f4839edae16b46f0",
    "registry": "bd77c8ccaa373e3a072ef3d9f4839edae16b46f0",
    "gate_scan": {
      "tagged": 0,
      "head": "37dbee22bcb0139ebb31d52a8020a0331d8919ba"
    },
    "reasons": [
      "runtime=6"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @b666122cec06 (8 checks, current for 37dbee22bcb0)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44924790317/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=b666122cec06 tests=38687 skipped=67 runs=44924790317/1 profiles=ci-reuse/free-tests heads=37dbee22bcb0 verified=2026-11-21T16:34:31.928Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      4615
    ],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, CONTRIBUTING.md, AGENTS.md, CLAUDE.md and the branch diff (bin/gstack-design-doc-find header comment)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "est_input_tokens": 2002,
    "ledgers_read": 2,
    "unbound": 1,
    "dispatches": {
      "specialist-batched": 1
    }
  },
  "gate_dispositions": []
}

Open in Capy

…ign doc (#4615)

gstack-design-doc-find matched {user}-{branch}-design-audit-{datetime}.md, the one-line summary /design-review writes, as the branch design doc. It now skips audit summaries the way it skips decision memos. Reported by @robbiesierra in #4615.

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

trunk-io Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@capy-ai
capy-ai Bot merged commit a1e2c7e into main Nov 21, 2026
52 checks passed
@garrytan garrytan mentioned this pull request Nov 21, 2026
capy-ai Bot added a commit that referenced this pull request Nov 21, 2026
- Habits from nine teams, written into gstack. (#4585)
- Three more habits from teams that run evals. (#4602)
- The /ship conductor trial plan gives its real-problem judge one more attempt on fresh labels after it missed its agreement bar twice, and stops the trial incomplete if it misses again (GST-3003). (#4611)
- The /ship conductor trial plan now stops a trial only at the final remote-gate refusal, gives both arms the same note that the brief overrides team rules, and counts every report the no-gstack arm returns (GST-3003). (#4609)
- The /ship conductor trial plan now ends a trial at the remote gate when its case base isn't main, gives the no-gstack arm a test runner, and audits every trial for exposure to the plan (GST-3003). (#4605)
- The /ship conductor trial plan now runs an uncounted pilot in every arm before its counted trials and takes one planned look at half the cases (GST-3003). (#4587)
- gstack's own use on Capy can be counted, and is kept out of real-use numbers. (#4576)
- Free Tests shards finish closer together. (#4578)
- The weekly test-time recording can land again on its own. (#4581)
- The job-log tree.json step's recommended sleep is long enough for real runners. (#4589)
- Pull requests no longer wait on the Trunk flaky-test upload, and the quick tier's flaky passes now reach Trunk. (#4579)
- Windows Setup E2E finishes sooner on install changes. (#4575)
- Skills no longer stop on Codex when they clean up temp files. (#4612)
- /review on Codex with OpenAI models no longer holds back a review that ran its adversarial pass. (#4622)
- Crew threads on Capy now check in at 500M own tokens, standing threads rotate at 250M and any subagent past 50M gets a look, half the old lines, because Capy's token counts read about half what they did before 2026-11-15. (#4582)
- gstack no longer offers to add a `## Skill routing` section to your project's CLAUDE.md. (#4629)
- The README and docs no longer say gstack makes your agent fix more bugs. (#4598)
- `/eval-plan` now writes eval plans that waste less money. (#4591)
- /cso checks every folder above a source file before it looks at the file, so it never looks through a symlinked folder. (#4592)
- Plan reviews no longer read a /design-review audit summary as the branch's design doc. (#4623)
- Node's built-in test files now run with `node --test` in repos that use vitest or jest. (#4626)
- A quarantined test that the runner skipped now fails the run instead of passing it. (#4590)
- A flaky free test is fixed: the spawnSync overflow check no longer fails about once an hour on CI. (#4613)
- Free Tests runs its shards on 16-core runners. (#4600)
- /office-hours asks for ground truth first. (#4468)
- Every startup session ends with a dated test. (#4468)
- /plan-tune's dream cycle now logs each send of your typed answers to Anthropic. (#4621)
- Landing a ready PR no longer depends on a hand-copied gate decision, and the ready note, release PR and squash message say the right thing. (#4596)
- /ship no longer asks for a fresh review because of a stacked parent that main already had. (#4580)
- Results PRs with large captured agent sessions can be reviewed. (#4574)
- /ship no longer stalls on review notes a reviewer already cleared, counts review rounds the way the review policy reads them, and keeps security findings out of the PR body. (#4595)
- /ship's review readers are now told never to stop processes they didn't start. (#4607)
- /ship's review no longer stops when Capy's own drive sync database grows past 100 MB. (#4606)
- /ship's preflight now honors your repository's time limit for rerunning CI-skipped tests, and tells you when a fresh worktree needs its packages installed. (#4608)
- The slowest free test file is now six files. (#4588)
- Step 11.5 keeps a reviewed head current across base-only merges. (#4577)
- On a Capy install, only the owner's opt-in sends telemetry. (#4597)
- New page: working across agent systems. (#4583)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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