Repository navigation
A stopped or crashed /ship run no longer blocks the next run or its granted fix round (GST-3260) - #4654
Merged
Conversation
…nd a live run past two hours stays open (GST-3260) The bare run marker becomes a run record whose state only gstack commands change; gstack-ship-run status and abandon end a run that stopped working. Stops bind to the head their last reading row read (#4591), and a reused run id counts once per head (gstack-evals#406). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ip run record (GST-3260) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…nder a token cap refreshes the run's heartbeat (GST-3260) Review-Finding: p1/specialist-batched#1 reader=security Review-Finding: p1/specialist-batched#2 reader=testing Review-Finding: p1/specialist-batched#3 reader=state-machines Review-Finding: p1/specialist-batched#4 reader=state-machines Review-Finding: lib/ship-run-record.ts:167:correctness reader=core Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ound (GST-3260) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…r a /ship run is open (GST-3260) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
5 tasks done
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.
A /ship run that stopped or crashed no longer blocks the next run or the fix round it stopped for, and a run that is still working past two hours stays protected.
Why: a leftover "run in progress" note blocked fix-round grants on four PRs, and the old 2-hour timer could mark a live run as finished.
Nothing for readers to do; a run that really died is ended with
gstack-ship-run abandon.What changed
.git/gstack-ship-runnote becomes a small record with a state (open, stopped, finished, abandoned) that only gstack's own commands change, under a lock, as a compare-and-swap. A record that can't be read blocks, as before.--not-securityrulings and test exceptions stay refused until the run has finished or been abandoned. Relayed rulings (--owner-ref) still work.--runstops on a stopped record instead of merging the base under it.gstack-ship-run statusandabandon(refused within 60 minutes of the last heartbeat; an unreadable record is ended by its file digest; abandon also leaves an entry in the PR body).Behavior changes
Why
A run that stopped or died left a note that blocked the very grant its stop asked for, and the 2-hour lease could be pruned by another run while the first was still working, so preflight could merge the base under live reviewers. This gives every /ship run one record with a plain state, so nothing ends a run except gstack's own commands.
Blast radius
/ship preflight,
gstack-approvalsround grants, rulings and test-coverage exceptions, gate dispositions,gstack-ship-receiptstop, claim and history, finish, andgstack-skill-end. A run parked before finish used to stop counting after 120 minutes; now it counts until it is stopped, finished or abandoned. The upgrade guard's lease file is unchanged.Pre-Landing Review
Two full review rounds (gate-class panel: specialists, red team, second-model native and outside reviews, targeted reader), one fix round, no blocker. Round 1 fixed five informational findings (a stopped run granting itself repeated fix rounds, two untested transitions, a preflight with no run id merging under a stopped record, and heartbeats dropped under a token cap); two were left as notes. Round 2 and the second-model reviews found nothing at the blocking floor; their notes are listed below and are not fixed in this PR.
Exploratory QA: 5 functional probes of
gstack-ship-runstatus and abandon, pass, rerun after the fix.Documentation
Status: updated. The audit made two factual terminology fixes and found no blockers.
Scope: branch ship-run-record-replaces-stale-marker against base dd61103, using candidate docs2-pre.json (head dca87ed, 28 selected files, plus unstaged edits to docs/review-policy.md, docs/ship-policy.md and docs/troubleshooting.md). Authored .md and .tmpl docs were searched for references to the old run marker and the 120-minute lease.
Documentation health:
Debt: no coverage gaps or diagram drift found. No generated output needs regenerating.
Tests
bun run test: carried from CI run 44977756783 at this tree (38736 tests)bun run typecheck: cleanTests ran: targeted 113
Tests ran: test 38736
Issues
Refs #4591
Agent notes
Agent notes
REVIEW_LOOP: passes=2 blocking_found=0 deferred=0 noted=7 fixed=5 scope=frozen ledgers_read=4 dispatches=4 est_input_tokens=74722
Gate edits: none detected (13 listed, 10 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Approvals
Approved: yes (record r-43e48e297893). The full approval record stays private.
Plan: approved (record r-8e2f1973faf3)
Plan check: approved (record r-8e2f1973faf3)