Repository navigation
fix: release stamps and a docs-audit edit after the last fix-check are no gate-class edit (GST-1702) - #4101
Merged
Conversation
…e no gate-class edit (GST-1702) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
The GST-1702 carry no longer applies when the range after the fix-check holds an executable, symlink or gitlink file, or a commit whose message the gate scan tags as a CI skip marker (RH-14); both still stop. Two regression cases in test/review-plan-post-review-stamps.test.ts. Review-Finding: s11/outside-voice#2.1 reader=outside-voice Review-Finding: s11/outside-voice#2.2 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…gment wording Step 14.5 documentation audit fix (docs/ship-policy.md) and the prose-lint rewording of the changelog.d fragment. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
4 tasks done
…able-docs case holds on Windows 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
gstack-review-plan --post-review --last fix-check --range-base <fix-check commit>now reads the edits since the last fix-check with the receipt's classifier,docsChangeSince. Release stamps under the base policy's stamp rule plus plain docs planNEXT: done; a docs claim on a targeted-class diff plansNEXT: targeted; anything else keeps the old stop.Image: none (CLI change with no visible surface; text before/after below).
Before / after for GBRA-341's shape (stamps plus a docs-audit line after a granted fix-check)
NEXT: stop (… the fix-check edited a gate-class path …)NEXT: done (the edits after the last fix-check <sha> are plain docs and release stamps (docsChangeSince), no gate-class edit (GST-1702) …)Why
"GBRA-341 needed a second owner grant and a fix-check on a 39-line stamp delta" (gbrain #8705). The receipt already carried that delta after #4099, and only the plan disagreed. Now the plan and the receipt use the same classifier, so a stamp-only or docs-only tail after the last fix-check no longer costs an owner grant.
Tests
test/review-plan-post-review-stamps.test.ts(failing first on main: 4 of 5 failed at the plan step, the negative control passed): stamps plus plain docs (write binds and plan done), stamps alone, a real field in plugin.json or a code line in the behavior-change file still stops, a numeric docs claim on a money-class PR plans the targeted read (write still refuses), and the same claim on a PR with no targeted class is done.Blast radius
Only
bin/gstack-review-planchanges, and only on the--post-review --last fix-checkpath with a readable fix range; every refusal (unreadable range, unreadable raw diff, unavailable gate scan, acodeverdict) falls back to the pre-change forced stop. Evidence: script ran,test/review-plan-post-review-stamps.test.ts7/7 andtest/review-plan-cli.test.ts27/27, and CI run 42328030770 green at ff05005.lib/ship-receipt-depth.tsis unchanged.Approvals
Approved: yes (record r-a0e756004aa9). The full approval record stays private: this repository is public or its visibility is unknown.
Summary
A lane that restamps VERSION, package.json and plugin.json and takes a docs-audit line after its last granted fix-check hit a stop that asked the owner for another grant. The post-review plan now classifies that tail the way the receipt does and plans done (or the one targeted read). Review found two ways the carry could hide a real edit (an executable docs-named file and a skip-CI commit); both now refuse the carry and have regression tests. The Windows shard needed the executable bit set through the index.
Test Coverage
Coverage: 75% of changed paths have a test (6 of 8), 62% value-weighted, from Step 7 at afcead8; the review round then added two regression cases (executable docs file, CI-skip commit), and the Windows fix makes the executable case hold where fs mode is not recorded.
Tests: 5 → 7 in test/review-plan-post-review-stamps.test.ts (+2 new).
Test value: 2 tests written, 0 rejected by the authoring gate, 0 existing tests extended, 1 path weakly covered.
Proposed (not written): an unresolvable
--range-baserow expecting the old stop; a--targeted-ranvariant of the money case expecting done.Tests ran: focused 7
Pre-Landing Review
Pass 1 (full panel): specialists NO FINDINGS; Red Team 1 informational (skipped). Step 11: outside voice (openai/gpt-6.1-sol via host subagent, completed) found 2 blocking carry bypasses, both fixed in d489c5c with red-first tests; native adversarial 4 findings, all below the floor. Fix-check at d489c5c: 1 informational. Granted fix-check at ff05005 (one-line Windows test fix): 1 informational.
REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=5 fixed=2 scope=frozen ledgers_read=5 fix_checks=2 dispatches=4
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)
Outside review: completed (openai/gpt-6.1-sol), 2 blocking findings, both fixed.
Review notes
Below the blocking floor; recorded here and not fixed in this PR.
bin/gstack-review-plan:247--range-base is not checked against the newest logged review-fix-check commit.bin/gstack-review-plan:255the GST-1702 reason prefix also prints when the plan still stops; an unused grant is silent.test/review-plan-post-review-stamps.test.tsno case for a base merge after the fix-check, a wrong --range-base, grant plus stamps, or lean mode.bin/gstack-review-plan:251the new refusals read the whole fix-check..HEAD range, so a main merge after the fix-check that brings an executable file or a CI-skip commit gives a false stop (fails closed).lib/ship-receipt-depth.ts:636(outside the diff, GSTA-370) the carry detects executables by tree mode only; a shebang docs file at mode 100644 under core.fileMode=false still carries as docs.Exploratory QA
Two functional smoke probes ran at afcead8 and passed: pass 1 planning, and a code edit after a fix-check keeping the old stop. Both are superseded by the later fixes and were not rerun; the fixes are covered by the regression cases above and CI at ff05005.
Design Review
No frontend files changed — design review skipped.
Eval Results
No prompt-related files changed — evals skipped.
Review bot comments
No review bot comments.
Scope Drift
Scope Check: CLEAN
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 s11/outside-voice#2
Verification Results
No plan-specific verification items (bug fix, no plan bound).
TODOS
No TODO items completed in this PR.
Documentation
Status: updated. One factual fix, no blockers.
Scope: base e4b1e34 to head d489c5c plus the unstaged changelog.d fragment. Selected files: bin/gstack-review-plan, docs/review-policy.md, changelog.d/capy-gst-1702-post-review-stamps.md and test/review-plan-post-review-stamps.test.ts. I also checked the docs that mention gstack-review-plan: ship-policy, troubleshooting, ship-budget and model-policy.
Documentation health
Coverage debt: the post-review stamp and docs carry has reference coverage only (review-policy, ship-policy and the --help text) and no how-to. That is a common gap, not a critical one. No diagram drift.
Test plan