Repository navigation
/cso finish no longer closes an audit after a refused submit (GST-3504) - #4692
Merged
Merged
Conversation
A refused submit now leaves a marker in the run directory. finish refuses while the audit is running and the deadline has not passed, and after the deadline it closes the audit with the refused submission listed as a gap. A later accepted submit clears the marker. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
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.
When the /cso helper refuses a submission,
finishnow keeps the audit open and asks for a corrected submit, instead of closing it and losing the evidence.Why: an eval session hit
exclusions must be an array, ranfinishin the same command, and its corrected resubmit was then refused because the audit had closed.Nothing to do for users;
finishstill closes the audit once the audit deadline passes.What changed
submitwritessubmission-refused.jsonin the run directory when the helper refuses input for a running audit before its deadline. A later accepted submit removes it.finishrefuses withPREREQUISITEwhile that marker exists and the deadline has not passed, and names the refused message. After the deadline it closes the audit and adds the gap "A refused submission was never resubmitted: ".test/cso-cli.test.tsdrives the compiled launcher: refused submit, blocked finish,inspectstill reportsremainingSeconds, corrected submit, finish; then a second audit whose deadline has passed finishes with the gap. It fails on main at the blocked-finish step.Why
A refused submit followed by
finishclosed the audit, so the corrected resubmit had nowhere to land and the evidence was lost. Keeping the audit open until a submit is accepted, or until the deadline, keeps that evidence.Blast radius
Only the /cso helper's
submitandfinishcommands (lib/cso/cli.ts). Audits with no refused submit behave as before. An audit whose last submit was refused now needs one accepted submit, or the deadline, beforefinishcloses it.Documentation
Scope: the diff from ef72e41 to fix/cso-finish-after-refused-submit (lib/cso/cli.ts, test/cso-cli.test.ts and the new changelog fragment), plus the /cso docs that mention submit or finish (cso/SKILL.md.tmpl, cso/SKILL.md, docs/cso-scanners.md, docs/cso-release-qualification.md). No staged, unstaged or untracked changes were present.
Result: docs are current. The changelog fragment matches the new behaviour:
finishrefuses to close an audit whose last submit was refused until the deadline passes, then closes it and records the refused submission as a gap. No other doc contradicts this, and no files were edited.Debt: cso/SKILL.md.tmpl line 98 ('make one correction, then finish partial') doesn't say that
finishwaits for the deadline if that correction is also refused. Clarifying it is a small, optional follow-up that needs a template edit and regeneration.Tests
cso(bun test test/cso-cli.test.ts test/cso-cli-lifecycle.test.ts): pass, tests_ran=35, at 54ddf89.Exploratory QA
Five probes against the compiled launcher on a throwaway fixture repo. Required checks pass: a refused submit is recorded, and
finishthen refuses and leaves the audit running. Optional probe 005 shows that an empty{}submit clears the marker and letsfinishclose before the deadline; that is review notelib/cso/cli.ts:1530below, under the blocking floor. The QA tool's overall verdict is fail because of that probe.Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/cso/cli.ts:1543resume after the deadline marks the run interrupted, so finish skips the refused-submission marker and closes without the gaplib/cso/cli.ts:1402recordRefusedSubmission swallows a lease failure; a submit refused for a busy lease leaves no markerlib/cso/cli.ts:1530any accepted submit, even {}, clears the refused marker (duplicate of specialist-batched#1)lib/cso/cli.ts:1394pre-lock JSON-shape refusal can race a concurrent valid submit and leave a stale marker; a resubmit clears itlib/cso/cli.ts:1563marker file is left in the run directory after finish (redacted, 0600, unread once finished)Agent notes
Agent notes
inspectomittingremainingSeconds) does not reproduce on main: a daily run with--budget 600returnsremainingSecondsfrominspect(539 at the first call), and the existing run-clock test pins it. The new test also checks it after a refused submit. The eval's session transcripts were not available to compare.bun test test/cso-cli.test.ts32 pass,test/cso-cli-lifecycle.test.ts3 pass,format:cso:checkand typecheck clean.Approvals
Plan: exempt: bug fix with a failing-first test (GST-3504)
Pre-Landing Review: 1 issue — 0 auto-fixed, 1 asked (0 fixed, 1 skipped), 0 deferred, 0 noted
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)