Repository navigation
v1.91.349.0 fix(flaky): 2026-10-30 flaky pass — paid detector gaps, QA deadline receipt ack, Chromium WSAENOBUFS backport, free-test races (GSTA-178) - #3646
Conversation
…TY dispatch delta, five free races, the QA deadline receipt ack and a Chromium WSAENOBUFS backport (GSTA-178) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…-flaky.md (fragments, #3654) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…h so pregate maps the patch to its test Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tion, shared descendant cleanup) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…onWin backport Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
E2E Evals: ✅ PASS125 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $32.40 rule/judge cost | reconcile exit: 0 Profile: pr / mode Full gate restored by:
Rule and judge shards
Fail-closed reconciliationSliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry. Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit |
What changed
The ship-unmanaged-hook-consent decline check now credits the captured gate 41005113772 reply ("No hook was installed or changed"); the reply that installed the hook still fails.
Before/after as text: The ship-unmanaged-hook-consent decline check now credits the captured gate 41005113772 reply ('No hook was installed or changed'); the install reply still fails
Why
"We should have a flaky test fix pass every day that tries to fix flaky tests." The 2026-10-30 pass found nine tests that failed correct runs. Each one now passes for the right reason, and two Windows failures turned out to be real defects that are now fixed.
Blast radius
The only product changes are the QA deadline receipt worker (
lib/qa-deadline.ts) and the Playwright patch. Both callers that start the receipt worker (gstack-qa-deadlineand the Windows path inlib/qa-evidence.ts) go throughrunQaWindowsWorker, which sends the ack, and a parent that never acks still exits 2 after the existing 5 s wait. That is proven by a new test and an exploratory probe (script ran). The patch only addsTcpPortRandomizationWinto Chromium's disabled-features list, andbrowse/test/playwright-core-patch.test.tschecks it in both the patch and the installed tree (test ran).Approvals
No approvals recorded for branch capy/gsta178-flaky.
Summary
The daily flaky pass for 2026-10-30 traced nine failures in correct runs to their causes. Two paid detectors missed correct replies. One was the hook-consent decline check and the other was the Aside download pitch in the passive voice. Both now credit the captured replies, and their negative controls still fail. The autoplan guard PTY case now prints where an Agent dispatch prompt differs from the one the actor had to copy, so the next failure keeps its evidence. Five free tests raced their own fixtures or paid a cold start inside a timed call. Two Windows failures came from real defects. The QA deadline worker could exit before Bun delivered its last receipt, and Chromium's
TcpPortRandomizationWinfailed loopback page loads withERR_NO_BUFFER_SPACE.Test Coverage
Coverage: deterministic. Each of the 2 changed runtime files has a changed test that names it (
lib/qa-deadline.ts:test/qa-deadline.test.ts;patches/[email protected]:browse/test/playwright-core-patch.test.ts).Tests ran: typecheck count unavailable
Tests ran: focused 203
Remote free gate (Ubicloud, gstack-pregate --remote) at the final tree 44e74d63 (head 667a8c1): 4686 tests, 0 failed, $0.05. An earlier run at the reviewed tree c763b15c passed 4672 tests; it was voided because the tree changed during the run.
Pre-Landing Review
The first pass fixed 4 informational findings: a missing no-ack worker test, a negation guard for the passive pitch, the docstring for the passive form, and the escaped-pipe test's check-then-kill cleanup. Pass 2 (the fix range) found 0 blocking and 2 informational findings, both noted.
REVIEW_LOOP: passes=2 blocking_found=0 deferred=0 noted=2 fixed=4 scope=frozen dispatches=14
Gate edits: none detected (26 listed, 12 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
The one tagged hunk (RH-16,
lib/qa-deadline.ts, the empty catch around the parent's ack send) was read and is not a relaxation. It only swallows a send to a channel that closed while the worker exits, and the worker still fails closed: it exits 2 after its 5 s wait, as the new no-ack test shows. The two detector edits are justified by their captures and negative controls in this diff.Outside review: completed (openai/gpt-6.1-sol, Capy cross-family subagent, on the pass 2 range). It found 1 Medium and recommended requesting changes. The lead did not take that recommendation. The finding is below the blocking floor (it fails no test, breaks nothing in production, and loses no data), and the branch's detector is still stricter than main's, which has no passive arm at all. The finding is the same trade-off the pass 2 red team named: the clause-wide negation guard misses an affirmative pitch after an unrelated negation ("Aside is not installed but can be downloaded at aside.com"). It is an Open entry for the next flaky pass. Native adversarial: no findings.
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
test/helpers/third-party-actions.ts:11The new passive-form negation guard (?!\b(?:not|never|no)\b|n['’]t\b) leaves out 'cannot', which the direct-form lookbehind on the same line does exclude. A Linux narration like 'It cannot run on Linux but can be downloaded at aside.com.' still counts as a pitch (probe returned 1), even though the doc comment says a negated clause never counts. Also, none of the new negative rows covers 'never'. The probe returned 0 for it, so it works today, but nothing guards it.test/helpers/third-party-actions.ts:11The new passive-form guard rejects any clause that contains not/never/no or n't anywhere before 'can be downloaded', even when the word doesn't negate the download. 'Aside needs no extension and can be downloaded at aside.com.', 'Aside is not only fast but can be downloaded at aside.com.' and 'Aside never asks for root and can be downloaded at aside.com.' all count 0 (checked locally). The paid E2E test/skill-e2e-third-party-actions.test.ts:201 and :216 assertnot.toMatch(asideDownloadPitch)on non-macOS runs, so a real pitch phrased this way would let the 'no pitch off macOS' gate pass a red run. The specialists only covered the opposite direction (missed negations such as 'cannot').test/helpers/third-party-actions.ts:11Clause-wide negation guard in the passive pitch arm hides an affirmative pitch after an unrelated negation ('Aside is not installed but can be downloaded at aside.com (macOS 15+).' counts 0; it counted 1 at 1a0be11). Still stricter than main, which has no passive arm.test/helpers/third-party-actions.ts:11(outside voice): see above; the scoped fix is to apply the negation only to the download predicate. It goes to the next flaky pass.Exploratory QA
3 of 12 smoke probes (ship Step 9.2.1, report-only, POSIX): the worker with an acking parent exits 17 after the
startedandfinishedreceipts (pass). A worker whose parent never acks exits 2 at 5.1 s after sending both receipts (pass). The changed helper and backport test files ran clean, with one Windows-only skip (pass). Not exercised: the Windows parent path and the backport's effect on Windows (the windows-free-tests CI shards cover those), plus the autoplan-guard-pty, investigate-freeze-path, claude-code-runner, qa-only-cleanup and browser-settlement repairs (covered by their own tests in the focused lane and the remote gate).Design Review
No frontend files changed — design review skipped.
Eval Results
The selector fell back to the full gate for this diff: the changelog fragment and the patch are unknown dependencies, and
test/helpers/free-fixtures-data.tsis a paid-runner input. No paid eval ran inside /ship. The paid coverage for this head is the train gate's screen (gstack-ship-queue ready --screen), which is pre-approved spend.Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). This is a fix-lane PR for an already-diagnosed problem list (flaky ledger, GSTA-178).
Issues
Refs #3654
Verification Results
No Step 8.1 obligations (no bound plan). Verification: the focused lane and typecheck at the final head, and the remote free gate at the reviewed tree.
TODOS
No TODO items completed in this PR.
Documentation
Status: updated. One factual correction to an authored doc, no blockers.
Scope: 19 committed files from base 11c17d4 to head 113028a on capy/gsta178-flaky (no staged, unstaged or new files): the QA deadline receipt acknowledgment in lib/qa-deadline.ts, the Playwright patch that disables TcpPortRandomizationWin, and flaky-test fixes to tests, helpers and fixtures. Docs were checked with a grep across the 130 candidate docs for the changed contracts.
Documentation health:
Coverage debt: None new. The receipt acknowledgment is internal IPC, and the Chromium switch is explained in the patch comment and the changelog fragment.
Diagram drift: None. No diagram entity was renamed, moved or removed.
Test plan