Repository navigation
Fix six test and eval checks that misread correct work or raced their own fixtures (GST-2338) - #4284
Merged
Merged
Conversation
… own fixtures (GST-2338) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…credit to file:// targets with no || before it Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/specialist-batched#1 reader=specialist-batched Review-Finding: p1/red-team#3 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e goto's pipeline Review-Finding: p2/red-team#3 reader=red-team 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.
This fixes six test and eval checks that failed on correct work or raced their own fixtures, found by the 2026-11-10 daily flaky-test pass (harvest window 2026-11-09T14:00Z to 2026-11-10T14:00Z). It serves the goal of keeping CI red only for real defects, so crews stop rerunning flaky checks. Only tests, fixtures and detectors change; no product code, threshold, trial count, case kind or retry.
Paid eval checks
gstack-docs-candidate attempt <child output> --state <file>since Fix five small browse and question-hook bugs #4192, but the docsync fixture's command interface never listed that call. The model followed the interface, refused to run the undeclared command and stopped before launching any audit. The interface now declaresattempt <a saved private child output> --state <a private .json under home>andattempt --help, and the observer admits exactly that shape. Negative controls stay refused: a state file in the repo, a non-JSON state, a state under the installed skills, a child output inside the repo, a missing or misplaced--state, extra flags and the tilde path.$B goto "<fixture>" >/dev/null && $B htmlwould fail a correct run. It now also credits a goto whose stdout goes to /dev/null when the call proves it exited 0: noExit code N, tool error,Errorornet::ERR_line, and every command after the goto is joined by&&. The target must be the fixture URL itself or$PWDunder the case's working directory (followed through literalcd).;,||,&, a trailing; echo, single-quoted$PWD,cdelsewhere and a goto quoted insideechostay uncredited.Free tests
writeFileSync, and the parent read it as soon as it existed, so it could read it empty (Expected "INSUFFICIENT_CAPACITY", Received ""). The child now writes a temp file and renames it into place. A standalone writer/reader loop read an empty file 2,315 and 2,210 times out of 3,000 with the plain write and 0 of 3,000 with the rename.The harness pin for test/helpers/session-runner.ts is re-recorded as non-behavioral: browseNavigatedTo's only caller is the changed scrape-prototype-path case file.
Agent notes
Plan: exempt: daily flaky pass repairs
Pre-Landing Review
REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=1 fixed=4 scope=frozen unrecorded=1 unbound=1 ledgers_read=4 dispatches=8
Pass 1 found 4 issues: 3 fixed (the /dev/null goto credit is limited to file:// targets, a one-sentence defer offer is credited again, a
||directly before the goto refuses the credit) and 1 skipped (red-team#2 below). Pass 2 found 2: 1 fixed (only a||directly before the goto's pipeline refuses) and 1 noted. The targeted reader for the harness pin found nothing.Gate edits: none detected (15 listed, 10 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Review notes
Ruled note: test/helpers/third-party-actions.ts:85:adversarial at bc4d54e ruled by Captain GStack Minder (GSTA-36) at 2026-11-10T15:49:48.878Z: false credit only; main 6b32714 gives the same answer; below the blocking floor (approval a-3075294a5334)
These are below the blocking floor and are not fixed in this PR.
test/helpers/third-party-actions.ts:85. offersDefer credits a status line after an unrelated "later", e.g. "D) Approve the token now for use later, this step is waiting on you." It's a false credit only, and main 6b32714 gives the same answer.test/helpers/docsync-observer.ts(p1/red-team#2): the docsync fixture doesn't admit Step 14.5's FORMAT_REPAIR path (repair-prompt,result --repair-of). That predates this PR (Let the docs audit repair a badly shaped final line without using an attempt #4205), and changing it would change the prompt for every docsync case.test/helpers/session-runner.ts(p1/red-team#3, empty-output half): a goto call with an empty result is still credited, because the parser can't tell an empty result from a missing one.test/helpers/session-runner.ts:121The cd tracker updates PWD even for a cd that a preceding || skips, so 'true || cd /tmp/w && $B goto file://$PWD/f.html >/dev/null && $B html' is credited for /tmp/w; the cd tracking predates this range.test/helpers/third-party-actions.ts:82'Not yet, the step stays blocked on you.' is not credited while 'Not yet. The step stays blocked on you.' is: the clause negation lookahead rejects 'not'. main behaves the same.test/helpers/third-party-actions.ts:84'Sign in later and the step stays blocked on you.' now counts as a defer offer; whether that wording is a defer or a manual path is a contract call. main behaves the same.Status: current. The diff is test-only, and no documentation needed changes.
Scope: base 6b32714 to bc4d54e (3 commits, 12 files: test helpers, test files, one harness pin and one changelog.d fragment). There were no staged, unstaged or new files.
Documentation health:
docs/evals/detector-inventory.md: current. Its line references for the changed cases still resolve.docs/flaky.md: current. It doesn't mention the changed detectors.docs/TESTING_INTERNALS.md: current. It doesn't mention the changed detectors.changelog.d/fix-flaky-checks-2026-11-10.md: accurate. The/dev/nullgoto credit sentence could also name its file:// URL limit.Coverage debt: none. No public surface changed.
Diagram drift: none.
Agent notes