Skip to content

test(experiments): assert synchronous Git revision refusal - #4036

Merged
schlessera merged 11 commits into
mainfrom
test/4033-git-qualification-refusal-20261115
Nov 17, 2026
Merged

schlessera merged 11 commits into
mainfrom
test/4033-git-qualification-refusal-20261115

Conversation

@schlessera

@schlessera schlessera commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Closes #4033

What changed

The offline Git qualification case now captures the direct PR revision's synchronous ReferenceTransportError and asserts reason: "invalid". It then reaches the existing real-Git redirect refusal checks. Previously the unexpected synchronous throw aborted the case before redirects were exercised.

Why this shape

This reconciles the experiment with the existing branch/tag-only admission contract. Production revision acceptance, shared fixtures and Pi measurement are unchanged. This test-only correction needs no consumer changeset or contract update.

Proof

Current head b8bfa18c25fd10773641fc3d0fc254605311c8b1, branch base c26fb229fa1ef920ce219e77256e859e9982c263 after a clean merge of current main. The experiment and reference transport are unchanged. Fresh offline real-Git execution at this head passes six tests / 60 assertions, and all five preflight gates pass (1214 tests / 8197 assertions / 52 files). The unchanged lock retains its isolated installation; no dependency reinstall or version change was needed. This experiment-only diff remains outside the independent core-package review gate. Earlier failing-first and mutation receipts retain their actual identities.

  • Before the correction: five pass / one fail; synchronous ReferenceTransportError / invalid stops the resolver case at the direct-ref call.
  • Fresh execution at b8bfa18c25fd10773641fc3d0fc254605311c8b1, Bun 1.4.2, bun run test ./experiments/git-read-qualification.test.ts: six pass / zero fail / 60 assertions. The fresh --network=none --cap-drop=ALL --security-opt=no-new-privileges container records only lo, no routes and zero capability sets; real Git is contained by that boundary and the ordinary test preload.
  • Restored mutation 1: permitting refs/ fails DIRECT_PR_REVISION_REFUSED_SYNCHRONOUSLY (expected ReferenceTransportError, received undefined).
  • Restored mutation 2: setting http.followRedirects=true fails the redirect resolver assertion (expected ok:false, received ok:true with the redirected private fixture's commit).
  • Earlier mutation runs retain their original source and lock identities. The new independent frozen install uses lock SHA-256 bdd8093610c9ef4891d4957e4c16158fcb0c4ff8259ea72a08406283f707c0be; no version or assertion was changed to make it pass.
  • All five current-head preflight gates pass: 1214 tests / 8197 assertions / 52 files.
{"version":1,"kind":"brain-check-pr-receipt","head":"b8bfa18c25fd10773641fc3d0fc254605311c8b1","base":"origin/main","mode":"focused","startedAt":"2026-11-17T11:06:57.966Z","finishedAt":"2026-11-17T11:09:03.977Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":22623.044985},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":197.9081640000004},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":289.60387400000036},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":26.902017999997042},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":102854.26223200001}]}

Collision inventory at 5e65b95de44f121f4c7e7fae9ca8910c3f626a94: closure: #3054; closure: #3056; closure: #3059; closure: #3069; closure: #3581; closure: #3622; closure: #4002; closure: #4102; closure: #4139. Other branches retain their owners.

Earlier incidents #4098 and #4125 are cleared. The current #4170 incident is confined to post-merge browser proof, so it does not block ordinary candidate confirmation under the hybrid ruling. Four ordinary confirmation attempts were refused busy before acquisition. A fifth ordinary confirmation acquired its reservation and requested candidate proof, then failed in native Vitest file discovery before product tests could execute. The helper exited 1 and released its owned reservation; no helper or owned lease remains.

Candidate run 44035623508, attempt 1: changeset job 133877677175 timed out after 30,333 ms against the unchanged 30,000 ms discovery cap, with no published inventory. The proof aggregate job 133878748666 refused incomplete proof and 44 checks were skipped. Actual checkout 2ad66730d7f0e85e772e210d81fdc9e7ac15ed02 has parents base d974052166f335cbf57b385fddc13875da1b98de then head f62a5f6a6f93aeb664edde38961bda96d3816b72, tree 3c00feb182fbad2dc87fb2c8b32dcbd18772a0f8. This is not green and does not establish a product assertion failure. The original failure remains unqualified. #4149 is now closed by #4160 (ddb5b5c846b01e3933d8346283e21a6a5844118b): independent replay found runner starvation (the exact prior tree discovers within about five seconds on two CPUs), and the merged diagnostic records CPU versus wall time without changing the 30-second deadline. That new evidence and refreshed main justify a fresh ordinary confirmation; Vite warnings were not the cause.

This test-only correction changes nothing on the provider turn path. Fixture checks establish no production native/backend equivalence or complete experiment-tier release receipt.

Anything left open

The independent CI diagnosis #4149 is delivered. Selected candidate proof and automatic-main reconciliation remain pending. #4002 and the remaining #3613 safety work remain open.

@schlessera schlessera added this to the 0.45.0 milestone Nov 15, 2026
@schlessera schlessera added type: test Coverage, harness or proof work with no behaviour change. area: ci CI workflows, the gates they run, release scripts, packaging. labels Nov 15, 2026
@schlessera
schlessera force-pushed the test/4033-git-qualification-refusal-20261115 branch from 653af76 to f790512 Compare November 15, 2026 20:08
@schlessera
schlessera force-pushed the test/4033-git-qualification-refusal-20261115 branch from f790512 to 3828a2e Compare November 16, 2026 17:04
@schlessera
schlessera force-pushed the test/4033-git-qualification-refusal-20261115 branch 2 times, most recently from d355fe3 to c97bb2c Compare November 16, 2026 20:47
@schlessera
schlessera force-pushed the test/4033-git-qualification-refusal-20261115 branch 2 times, most recently from 3e140f1 to 1818c5c Compare November 17, 2026 00:03
@schlessera
schlessera force-pushed the test/4033-git-qualification-refusal-20261115 branch from 1818c5c to 3056ffd Compare November 17, 2026 00:35
@schlessera

Copy link
Copy Markdown
Owner Author

FYI for #4033: #4149 is fixed by #4160, merged to main. The failed confirmation run 44035623508 timed out in discovery because its runner was starved of CPU: checkout and install each took about 5× their usual time, and discovery takes 5–14 s elsewhere. Discovery itself hasn't slowed. A fresh confirmation request should get past discovery. If it times out again, the receipt now records the child's CPU time and the runner's load, which will show whether the runner was starved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, the gates they run, release scripts, packaging. type: test Coverage, harness or proof work with no behaviour change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

experiments: Git read qualification expects resolve after synchronous revision refusal

1 participant