Repository navigation
Code review reads the design checklist and your repo's agents/ folder (#3924) - #4711
Merged
capy-ai[bot] merged 5 commits intoNov 22, 2026
Merged
Conversation
…3924) The design specialist now reads review/design-checklist.md through one resolver shared by the pass and the render CLI; an unknown checklist name refuses. The shared second-model boundary skips only installed skill folders and any agents/openai.yaml, as /codex does since #4686. Replay: GSTA-812 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ytes (#3924) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ndary sentence (#3924) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Review-Finding: test/review-depth.test.ts:226:test-pin reader=core Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Merged
3 tasks done
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.
Code review now checks frontend changes against the design checklist, and the second-model review now reads code in a repository's own
agents/folder.Before, the design reviewer was pointed at a file that doesn't exist, and the second-model review skipped every
agents/folder (#4410, #3924).Nothing to do as a user; it arrives with the next gstack update.
What changed
People reported two blind spots in code review. For a frontend diff, /ship and /review sent the design reviewer to
review/specialists/design.md, a file that doesn't exist, so the design checklist was never read (#4410, reported by @nfitzsimmons). One resolver inlib/review-pass.tsnow maps the design reviewer to the realreview/design-checklist.md, for the staged review and forgstack-review-dispatch renderalike, and an unknown checklist name now stops the render instead of pointing at a missing file.The second-model review told the reviewer not to read any
agents/folder, so code in a repository's ownagents/folder went unreviewed (#3924, reported by @kolla23). It now keeps the reviewer out of installed skill folders only (~/.claude/,~/.agents/,.claude/skills/,.agents/) and anyagents/openai.yaml, and says the rest of a repository'sagents/folder is code to review: the same words #4686 gave /codex.Why
Code review should read everything a change touches. Both bugs silently skipped part of the review, and nobody saw a warning.
Blast radius
The boundary sentence is one shared constant, so the fix reaches every prompt that uses it: /ship's and /review's second-model review, the plan-ceo, plan-eng and plan-devex reviews, the /office-hours second opinion and the /document-release review. No other prompt text changed. A replay of the existing review test panel found no lost blockers with the new wording (details in the notes below).
Pre-Landing Review
The batched specialist found nothing. The two second-model readers raised five notes, none fixed here: one is about code this PR didn't change and four are below the blocking bar (both listed below). The outside reviewer's verdict was FINDINGS, with one blocker that this review deferred. Its claim is that an installed gstack points readers at checklists outside the checkout they review. That holds for every checklist since the workspace rule was added; this PR moves the design path to the same root the others already use.
Deferred findings
Blocking findings in code this PR did not change (review scope: frozen). They stay on this PR and are not filed as issues.
lib/review-brief.ts:238The design checklist path comes from the gstack install root, but every brief asks readers to read only paths under the checkout under review, so an installed gstack reviewing another project points readers outside their workspace. Lead judgment: the defect lives in workspaceParagraph (lib/review-brief.ts:238), unchanged by this PR; main's pass and render CLI already join every checklist (testing, security, red-team, targeted) to the same install root, so this PR moves the design path to that same root and adds no new out-of-workspace read.Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/review-pass.ts:229review/design-checklist.md prescribes its own clean reply ('Design Review: No issues found.') and AUTO-FIX prose; a batched reader that follows it instead of the outer brief's NO FINDINGS marker is not a clean reply.lib/review-pass.ts:204The design checklist was written for the lead /review agent (AUTO-FIX, detector probes, its own output format); a specialist reader could follow those instructions.crew/scripts/review-dispatch-compare.ts:42The dispatch cost-comparison script sizes the design specialist from review/specialists/design.md, which does not exist, so it counts the design reader as free.lib/review-pass.ts:229checklistFile throws mid-loop in renderStage, leaving earlier readers rendered and logged but the manifest unsaved; only a hand-edited manifest can reach it.Documentation
Scope: The audit covered base 5962f0d..HEAD dee6154 (5 commits, 22 files) on reviewed tree 386a2a9b5424476448364cdd3f02c756cd0d3813, with nothing staged, unstaged or untracked. The branch makes two changes. First, the design reviewer now reads
review/design-checklist.mdthroughchecklistFile()and refuses unknown checklist names. Second, the second-model filesystem boundary no longer excludes the repo's ownagents/folder.Result: The docs are current, so I made no edits.
docs/skills.md:636,ARCHITECTURE.md:371,CLAUDE.md:124,CONTRIBUTING.md:114,831anddocs/PROJECT_STRUCTURE.md:30,54already point atreview/design-checklist.md. No authored doc outside the generated SKILL.md files mentionsreview/specialists/design.md. I excludedCHANGELOG.mdfrom that search, and I left the changelog fragment out of the finding because it names the old path on purpose to describe the bug.codex/SKILL.md.tmplandcodex/sections/challenge-mode.md.tmplalready contain the narrowed boundary. The banned-terms check returned none, because main has no.gstack/banned-terms.json.Debt: This review was search-based. I read the changelog fragment in full, but for the other docs I matched the relevant lines and their context and did not read each of the 156 docs end to end. The changed review, ship, plan, office-hours and document-release section .md files are generated from
scripts/resolvers/outside-voice-steps.ts, so the parent still has to confirm that the generated output is fresh.Tests
test/review-pass.test.ts(Batched review rendering points design checklist at nonexistent specialists/design.md #4410 block) andtest/skill-text-user-reports.test.ts(/codex: the filesystem boundary's bareagents/makes Codex skip a repository's own agents/ folder #3924 test).Agent notes
maxSizeRatiogoes from 1.3421 to 1.3429. The ruling was extended to the other skills that carry the sentence and cross their caps by the same 90 bytes: plan-ceo-review 1.1014 to 1.1020, plan-devex-review 1.0911 to 1.0912 and office-hours 1.2157 to 1.2164. /ship gets one size-ledger entry (+90), and the 27 per-host size pins for the review, plan-eng-review and plan-devex-review skills that this sentence reaches each go up by 90.agents/folder (the panel has none).Fixes #4410
Fixes #3924
Refs #4686
Approvals
Approved: yes (record r-126f430932b1). The full approval record stays private.
Plan: exempt: bug fix with failing-first tests (R65)
Plan check: exempt bug fix