Repository navigation
Conversation
…oved for, plus three other /ship approval fixes (GST-3246) /ship stops needing a manual owner ruling in four cases: an approved follow-up review that finds the fix clean clears the findings it was approved for, a stopped /ship run can record that approval itself, a leftover marker from a finished run no longer blocks approvals, and run ids like 507-7192673 are no longer mistaken for phone numbers. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
… review records (GST-3246) Moves the instruction out of the reviewer-pinned review steps, which CI's no-loss pin test refused, into the claim command's output. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…converged, and gstack's own names stay refused in any capitalisation (GST-3246) A fix-check row whose tree changed while it ran, or that was not converged, no longer marks a grant's findings fixed. GStack No-stop default (K1) and other capitalisations of gstack's own names are refused as --by again; only crews such as GStack Minder are admitted. Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/outside-voice#2 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…eds before it clears findings (GST-3246) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… and a long-running /ship run keeps its guard (GST-3246) Closes gaps a second-model read of the design decisions found: a follow-up review with an open finding in a findings file, a stop head only the row copied, or a fingerprint another finding shares no longer clears a finding; a /ship run past two hours whose process still runs, or whose lease file cannot be read, still counts as open; and a run id is exempt from the phone check only in a grant's own scope field. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Contributor
|
Closing this unmerged and splitting it up. The final review of this PR found real gaps in two of its four fixes: letting a clean follow-up review close its own findings, and treating a stale run marker as closed. In both, the fix-check matching and the run-liveness check rely on state that can be pruned or reused, so they need a design change rather than another patch round. Those two move to a separate design issue. The other two fixes go into a new, smaller PR from current main:
|
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.
/ship stops needing a manual owner ruling in four cases: an approved follow-up review that finds the fix clean now clears the findings it was approved for, a stopped /ship run can record that approval itself, a leftover marker from a finished run no longer blocks approvals, and run ids like
507-7192673are no longer mistaken for phone numbers.Why: each case forced a manual ruling or a workaround on 2026-11-19 (gstack #4537, harness-evals #507 and #508).
Nothing to do: when a /ship run takes that approval, it now prints the two extra fields its follow-up review records.
Agent notes
What changed
lib/review-scope.ts,bin/gstack-review-scope): the loop summary reads the branch's fix-check round grants. Areview-fix-checkrow that is complete, hasrange_baseat the grant's stop head, lists every grant finding incovers, holds no unfixed blocker of its own, and was logged after the row that left the finding open marks exactly those findingsfixed. A row covering fewer findings, finding a blocker, reading another range or predating the stop closes nothing, soRECEIPT_BLOCKER_OPENstill fires.gstack-ship-receipt claimprints aFIX_CHECK_ROW:line with both fields when a run claims a fix-check grant. The reviewer-pinnedship/sections/review-army.mdis unchanged (a first version edited it and CI's no-loss pin test refused it).lib/ruled-notes.ts,bin/gstack-approvals):openShipRuncounts a.git/gstack-ship-runmarker only whilegstack-lease opensays its run is open, as gate dispositions already did; a lease check that cannot run keeps the marker open. Inside an open run,round-grantstill refuses everything except--kind fix-check --stop-run <that open run>, which is whatgstack-ship-receipt stop's NEXT line tells the lane to record.lib/redact-patterns.ts): a position exemption for a span inside a fix-check grant scope'sstop=token. The same digits in the reason, the words or anywhere else still report.--by "GStack Minder (GSTA-36)"(lib/ruled-notes.tsand its readers): the/^gstack\b/icatch stays, with an exemption on top forGStack <Capitalised word>. It was a pattern mistake, not a deliberate guard: the code's own comment already calledGStack Minder"a person's crew, not gstack", andround-grantwas fixed that way in READY prints real trial merges and the second-model trail read, plus six small ship-tool fixes (GST-3200) #4529 whilerule,gateandlane-exception(and the readers of their rows) kept the prefix match. gstack writes its own names in lower case only, so the exemption admits none of them.Tests. Failing first on main: 7 new cases failed before the fix. The refusal controls (fix-check with a blocker, covers fewer, other range, no covers, before the stop, extra-round inside the open run, phone in free text, gstack's own names) pass before and after. Four existing fixtures that simulated an open run with a marker alone now also open the run's lease, as
test/ship-gate-dispositions.test.tsalready did; their assertions are unchanged.Lane GSTA-665 for GStack Minder (GSTA-36), issue GST-3246. gstack: ok 1.102.0.0 for=ship.
Trail-read fix round (Captain GStack Minder (GSTA-36), 2026-11-19: one fix round for trail-read rows 1, 2, 3, 6, 8; R51 past two rounds). A cross-family read of the decision trail (openai/gpt-6.2-sol, reports/GSTA-665-decisions.tsv) found gaps, fixed in one commit, each with a test that failed at 81eb28a:
fix_base, else the commit of the bound Step 9 row the fix-check follows), and the copiedrange_basemust agree; the copy alone never counts.gstack-lease open --any-agekeeps a run open past 120 minutes while its holder lives and exits 2 when a lease file cannot be read;openShipRundrops a marker only on exit 1 (released, or holder gone). Gate dispositions and preflight keep their current lease reads.buildRow, for a fix-check grant row'sscopefield only; a grant-shaped excerpt in--reasonor--wordsis scanned as before.Open notes (trail-read rows 4 and 5, below the blocking floor, not fixed by the Captain's ruling):
history(grantedStop) andclaimcheck the stop.--stop-runmatches the open run records even for an unrelated head;historyrejects it later, butclaimand the review plan do not check the recorded stop.gstack-lease touchstill prunes lease files older than 120 minutes, so another session's touch on the same checkout can delete a live long run's lease, which then reads as released.Pre-Landing Review (/ship run ship-4546; full panel, 2 rounds)
Pre-Landing Review: 9 issues — 2 auto-fixed, 3 asked (0 fixed, 3 skipped), 0 deferred, 4 noted
REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=4 fixed=2 scope=frozen dispatches=8
Gate edits: none detected (7 listed, 1 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
GStack No-stop default (K1)slipped through the crew exemption. 3 informational findings skipped as below the floor (self-granted fix-check is the intended design; lease expiry after 120 minutes; grant not tied to its claiming run); 3 native adversarial notes on the same points.grantedFixesis now unreachable; fails closed); red team no findings.isGstackActornames, all as expected.bun run testcarried from CI run 44646663781 (1717 files). macOS and Windows lanes cleared from runs 44646663781 and 44645227922.Documentation
Status: updated. One factual correction, no blockers.
Scope: 3 commits (7f9c1bc..c43f7e3), 17 committed files; no staged, unstaged or new files. The change covers /ship approval fixes: a granted fix-check closes the findings its grant names, a round grant works inside its own stopped run, a closed-lease run marker blocks nothing, the stop= run id is exempt from pii.phone.e164, and crews named "GStack ..." can record rulings.
Documentation health:
Coverage debt: the FIX_CHECK_ROW: output of
gstack-ship-receipt claimand the round-grant--stop-runexception inside an open run have reference coverage only, with no how-to. No diagram drift.Approvals
No approvals recorded for branch ship-approval-fixes.
Plan: exempt: bug fix, no plan review (--kind fix, R65)
Plan check: exempt bug fix