Repository navigation
review-plan: a granted fix round after the targeted read plans one targeted-only reader (GST-1607) - #4064
Merged
Conversation
…rgeted-only reader (GST-1607) After the owner granted a fix round past the loop cap, the granted round's fix moved the product patch the targeted record names, so the receipt asked for a fresh targeted read while the plan printed done (harness-evals #271). With that --grant (checked against the approval record as before), any change since the read except plain docs now plans NEXT: targeted on the GST-1598 route: one targeted reader on HEAD for the head classes. A head with no targeted class adds no reader; no grant keeps done. The Capy pass program now runs a targeted manifest's voices stage, so a NEXT: targeted pass driven through it creates its reader (it activated voices only for fix-check). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…list (docs audit) 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.
After the owner granted a fix round past the loop cap, that round's fix moved the product patch the targeted record names, so the receipt asked for a fresh targeted read (GST-986), while the plan printed
doneonce the granted fix-check came back clean. Every granted round then needed another manual grant (harness-evals #271).What changes
--grantpasses the existing check (an approvedreview_loop_grantrow naming a stop head inside range_base..HEAD), any change since the targeted read except plain docs plansNEXT: targeted: one targeted reader on the merge-base diff at HEAD for the head's targeted classes, withTARGETED_DELTAprinted and the grant named in the reason. Without a grant a code change keepsdoneas before. A head with no targeted class adds no reader. The receipt is unchanged.fix-checkmanifests, so aNEXT: targetedpass driven throughlib/capy-review-pass.jscreated no reader (a gap in review-plan: a docs claim added after the loop plans one targeted-only reader (GST-1598) #4062).docs/review-policy.mdand /ship Step 19 name the--grantfor this case.Tests
test/review-plan-granted-targeted.test.ts: the #271 shape dispatches one targeted reader under the grant and then plansdone, andparseReviewTargetedrefuses the pre-fix record and binds the one read at HEAD; a granted fix on a head with no targeted class adds no reader; the same change with no grant keepsdone; a fabricated grant refuses.test/review-pass.test.ts: a targeted-only manifest run through the pass program creates the one targeted reader. The #271 case and the program case failed before the change.What changed
review-policy: a granted fix round after the targeted read now plans one targeted-only reader instead of done (GST-1607).
Before/after as text: review-policy: a granted fix round after the targeted read now plans one targeted-only reader instead of done (GST-1607)
Why
On harness-evals #271 the owner granted a fix round past the review-loop cap, and that fix moved the product patch the targeted record names. The receipt then asked for a fresh targeted read, but the plan printed
done, so every granted round needed a second manual grant. Now the same--grantmakes the plan printNEXT: targetedand run one targeted reader on the head, and the Capy pass program actually runs that reader.Blast radius
The change touches
gstack-review-plan(the post-loop targeted route now also opens under--grant),targetedDeltain lib/review-targeted-delta.ts (agrantedflag that skips the docs-only filter) and one condition in lib/capy-review-pass.js. It is safe because the new branch runs only when--granthas already passed the existing approval check,--range-baseand--targeted-ranare both given and the loop already saysdone; without a grant every path behaves as on main. The plan's grant check returns before line 238 on a missing or fabricated grant (read at bin/gstack-review-plan:138-155, and probed on the branch binary: exit 2 without--range-base, exit 3 for a fabricated id), and test/review-plan-granted-targeted.test.ts covers the granted, no-grant, no-class and fabricated cases (476 tests ran green in the targeted lane).Approvals
APPROVALS_RENDER: redacted (repository visibility public); gstack-approvals list shows the full record
No approvals recorded for branch gst-1607-granted-targeted.
Summary
After an owner-granted fix round, the targeted record went stale with no route to refresh it. This PR lets the existing
NEXT: targetedroute take the grant, names the grant in the plan's reason, and makes the Capy pass program run a targeted manifest's reader. This /ship run added two commits: 17179e7 adds the changelog.d fragment, and 0263cc1 is the docs audit's one-clause correction in docs/review-policy.md (the skip list now says "with no--grant"), read clean by a scoped reader.Test Coverage
Coverage audit (Step 7, audit-only, at a6b6715): 7/7 changed behaviors have a ★★ or ★★★ test (★★★ 3, ★★ 4). GAPS: 0.
Tests: no tests added by this run (audit-only).
Coverage: 100% value-weighted (the preflight map counts 4 of 6 runtime files with no changed test naming them: docs/review-policy.md, lib/review-targeted-delta.ts and the two pr-body files; lib/review-targeted-delta.ts is exercised through the plan binary in test/review-plan-granted-targeted.test.ts).
Tests ran: targeted 476
Tests ran: parity 2
Tests ran: typecheck count unavailable
Pre-Landing Review
Pre-Landing Review: 5 issues (2 CRITICAL by the voices' labels, 3 informational) — 0 auto-fixed, 0 asked, 0 deferred, 5 noted
REVIEW_LOOP: passes=1 blocking_found=1 deferred=0 noted=1 fixed=0 scope=frozen unrecorded=1 ledgers_read=2 dispatches=4
Gate edits: none detected (3 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Outside review: openai/gpt-6.1-sol (host subagent, certified configuration) completed. It found one finding it marked
Blocks: yes, the same defect the red team and native adversarial voice reported (first note below).Review plan: full panel (gate class, full depth, runtime_lines=31). Pass 1 ran the batched specialist (testing, security, state-machines: no findings), the red team, the native adversarial voice and the outside voice. The repeat plan printed
NEXT: done(no edits), so there was no pass 2. A scoped reader (anthropic/claude-sonnet-5-5) read the post-review docs-audit edit: clean.The two CRITICAL labels come from the voices' rules (
Blocks: yes, or FIXABLE from the native voice). This run kept them as notes on the crew's blocking floor ("would fail a test, break production, or lose data or secrets"): the first fails closed to main's behavior (NEXT: stop, then the owner), and the second is caught by /ship's own reviewed-tree route (lib/ship-release.ts:337 stops on any behavior change since review).unrecorded=1: Step 11 logs the voices' row without findings, so the outside voice'sBlocks: yesfinding has no review-log row; it is listed below.Review notes
Below the blocking floor ("would fail a test, break production, or lose data or secrets"). These are notes, not fixed here:
Blocks: yesMedium, red team, native adversarial Fix project-local /browse installs and harden setup #4; three sources): a granted fix round that edits a gate-class path still stops before the targeted reader.--range-base(the targeted-read commit) also builds the fix range, sotouched_gateturns the loop tostopandtargetedDeltanever runs. Reproduced by the red team and the outside voice in scratch repos (NEXT: stop,fix_range.touched_gate: true,targeted_delta: null). It fails closed, the same as main, but gstack's own merge-check paths are gate class, so this route won't clear the fix: add --local flag for project-scoped gstack install #271 shape for them. A fix is a separate--targeted-read <sha>baseline (the same note was left on review-plan: a docs claim added after the loop plans one targeted-only reader (GST-1598) #4062).NEXT: targetedfor unreviewed code. /ship's finish route still stops on behavior changed since the reviewed tree. A fix is to applygrantedonly up to the granted fix-check head. No test covers a commit after the fix-check.reviewstart token, not a targeted or fix-check one.pass, its voices stage, ...)" can read as two calls now that the default stage runs the reader; a second voices-stage call on its own--outwould dispatch a second targeted reader.Exploratory QA
Functional CLI smoke on the branch binary at a6b6715 (abbreviated: QA's method sections were not read this run).
./bin/gstack-review-plan --base mainexited 0 withNEXT: full;--grantwithout--range-baseexited 2 with its usage line; a fabricated--grantexited 3 and named the missingreview_loop_grantrow. The grantedNEXT: targeteddispatch is covered by the test file, not by a live probe.Design Review
No frontend files changed — design review skipped.
Eval Results
No PR-pass evals were selected. The selector at origin/main 937b360 chose no quality judges, and its 152 selected behaviors remain scheduled or release coverage, not PR passes. Evals skipped.
Review bot comments
No review bot comments.
Scope Drift
Scope Check: CLEAN
Intent: let an owner-granted fix round refresh the targeted read without a second grant (GST-1607, harness-evals #271).
Delivered: the granted
NEXT: targetedroute, the pass program's targeted voices stage, docs, tests, a changelog fragment and one docs-audit clause.Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). Fix: add "Plan: " to the PR body, or run /autoplan.
Issues
Refs harness-evals#271
Verification Results
No plan-specific verification items (no plan bound): VERIFY_RESULT=skipped.
Remote pregate
CI_CARRY: accepted ci-carry tree=60121485e264 tests=35906 runs=42215967633/1 profiles=ci-reuse/free-tests heads=0263cc16fed0 verified=2026-11-06T12:19:17.573Z
PREGATE: verify ok on the stamped tree (requires-remote cleared: macos-named-regressions run 42215967633/1, windows-smoke run 42215967919/1, remote_gate carried from run 42215967633/1)
TODOS
No TODO items completed in this PR.
Documentation
Status: updated. One factual correction made; no blockers.
Scope: base 937b360..HEAD 17179e7 (10 committed files, nothing staged, unstaged or untracked), plus the 174 candidate docs inventoried; docs touched by the diff or naming the targeted-read/grant contract were read in full. Banned terms: none.
Documentation health
Coverage debt: no tutorial or explanation page for the granted targeted-read flow. Reference and how-to coverage is in docs/review-policy.md and the PR-body step. No diagram drift. No regeneration required.
Test plan
bun test test/parity-suite.test.ts: 2 tests ran, exit 0bun run typecheck: exit 0🤖 Generated with Claude Code