Repository navigation
chore(ci): retire browser proof retention and its audited source pins (#4107) - #4126
Closed
schlessera wants to merge 10 commits into
Closed
schlessera wants to merge 10 commits into
schlessera wants to merge 10 commits into
Conversation
The pin let a ready PR retain browser proof from an earlier run, but the hybrid ruling moved browser proof to the squash's main run, where it is always fresh. All three pinned source files had also drifted, so the binding could no longer qualify. Its only effect left was to fail unit on every dependency change until a manual Docker requalification moved it; three requalifications produced byte-identical output. Remove the binding and its self-test, and stop the browser input closure, worker audit and inclusion inputs from carrying its identity. The container boundary and the producer's run-time checks are unchanged. A guard test keeps the retired identities from being pinned again. ci-proof.ts and visual.mjs still read the now-absent field; they are audited sources, so that dead branch goes at their next re-audit. The maintainer ruling of 2026-11-16 is recorded in ci-utility.md, superseding the 2026-11-02 and 2026-11-11 requalification rulings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Retention could no longer run: ready confirmation selects neither browser nor layout under the hybrid ruling, and main and exhaustive runs are always fresh. Remove the retained-proof lookup, its ledger, the aggregate's revalidation, the inclusion fingerprint and the fresh-execution receipt. - ci.yml has no retention step and no run_browser, run_layout or reuse output; browser and layout run on the planner's selection alone. The checks: read permission, which only the lookup used, is dropped. - The aggregate excuses no skipped selected job. integrate.ts merge refuses a selected-proof receipt that names a retained category. The receipt keeps an always-empty retained list so older checkouts and the timing collector still parse it. - The read-only GitHub client moves from proof-reuse.ts to proof-api.ts. - The two live discovery tests from the retention suite move to browser-inventory-process.test.ts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The audited bindings resolved runtime edges so that a browser closure could be called complete for retention. Each pinned the SHA-256 of first-party source, and its self-test read the live file, so a product change to a pinned file turned unit red until the hash was recomputed. Remove the command-activation, document, runtime-reader, dispatch, payload, locked-asset, generated-CSS and theme bindings with their frozen fixtures and self-tests. The closure walker keeps static imports, CSS inputs and the declared inputs; an edge a binding resolved is now unresolved, and closureSelects keeps the planner's broad rule for it. replay-browser-selection.ts takes a baseline report and lists every category the earlier rule selected and the later one omits. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…y green (#4107) One test refuses a script or test that holds the SHA-256 of a first-party source file. The other copies the tree, changes the bytes of two formerly pinned product files, and requires planning and the root tests the planner's file-input table selects for them to pass. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Replace the retention section of the CI decision record with a short record of what was retired and why (maintainer decision 2026-11-16, superseding #1333, #2126 and the #2408 re-audit rulings), keeping the parts that describe live behaviour: selection, the zero-Worker boundary, the native producer's container boundary and the discovery deadline. Remove retention and re-audit guidance from the testing guide, the contributor guide and the work-issue and github skills, and document the replay comparison. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…to chore/4107-retire-browser-retention # Conflicts: # scripts/source-browser-dispatch.ts
This was referenced Nov 17, 2026
Merged
Merged
Owner
Author
|
Superseded by #4134, which merged this branch together with its sibling proof-system change as one squash ( |
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.
Closes #4107
Lands only after #4106 (the native diagram pin, #4105), and by itself, separately from the other open CI changes. This branch already contains #4106's head
32cbe543. Once #4106 is on main the diff against main is this change alone: 70 files, +486 −3,383.What changed
Browser and layout proof now run fresh whenever the planner selects them, and no script or test pins the SHA-256 of a first-party source file. Editing a product file such as
packages/ui-react/src/ws-client/inbound.tsno longer fails any tooling test.ci.ymlhas no retention step and norun_browser,run_layoutorreuseoutput.heavy-feedback.ymlis regenerated to match.closureSelectskeeps the planner's broad rule for it.scripts/proof-reuse.tstoscripts/proof-api.ts; candidate admission, the merge path, heavy feedback and both cost refreshes import it from there.scripts/proof-inputs.tskeeps checkout identities and browser spec discovery. The zero-Worker boundary (scripts/browser-worker-boundary.tsand the ui-kit setup that installs it) is untouched.docs/decisions/ci-utility.mdshrinks from 354 lines to a record of what was retired and why. The testing guide, contributor guide and thework-issueandgithubskills no longer describe retention or re-audits.Why this shape
The issue states the approach. Four choices were mine:
retained: []stays in the selected-proof receipt. A branch that predates this change runsintegrate.ts mergefrom its own checkout, and that older code refuses a receipt without the field. Dropping it would force every in-flight PR to merge main and confirm again. The new merge path refuses any receipt whose list is not empty.checks: readis dropped from the workflow token. The retention lookup was the only reader of the check-runs API.actions: readstays: the red-main gate and heavy feedback admission still read runs and jobs.packages/. Two leftovers sit in files this PR leaves alone and are filed as ci: remove the code left dead by the retired browser source pins #4119: three exports inwebsocket-handlers/chat.tsthat were kept for a pin, and theBRAIN_PROOF_NATIVE_DIAGRAM_INPUTSreaders inscripts/visual.mjsand a ui-react browser command, which nothing sets any more.Proof
Tested head
d259705d9e9c39b128673e18f6c49e530c3dbcd1, baseorigin/mainat40779d498. Also on that head:bun run typecheck(exit 0),bun run lint(all gates clean), and 13 affected test files outside the fast group (214 pass, 0 fail).{"version":1,"kind":"brain-check-pr-receipt","head":"d259705d9e9c39b128673e18f6c49e530c3dbcd1","base":"origin/main","mode":"focused","startedAt":"2026-11-17T00:38:58.511Z","finishedAt":"2026-11-17T00:41:12.796Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":19736.091771},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":168.06866499999887},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":90.28604300000006},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":27.17955300000176},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":114245.497487}]}Acceptance criteria
1. A product edit to a formerly pinned file fails no test.
tests/first-party-source-pins.test.tscopies the tree, appends a comment tows-client/inbound.tsandwebsocket-handlers/chat.ts, plans the change in the copy and runs the root tests the planner's file-input table (FILE_INPUT_TESTS) selects for those files. Failing first, on the tree before this change (36ac36f13):On this head it passes: the plan is not global, selects browser, layout, endurance and captures, and the six selected root tests pass in the copy.
2. No tracked file pins first-party source. The same file's static test hashes every tracked code and configuration file and refuses any script or test that holds one of those digests. Failing first on
36ac36f13:FIRST_PARTY_SOURCE_STAYS_UNPINNEDlisted 94 pins, among themscripts/source-browser-dispatch.ts pins packages/ui-react/src/ws-client/inbound.ts. Mutation on this head: a plantedscripts/planted-pin.tsholding that file's digest failed the test withscripts/planted-pin.ts pins packages/ui-react/src/ws-client/inbound.ts; removed, it passes.git grep -nE '"[0-9a-f]{64}"' -- scripts testsnow lists only:scripts/captures/font-lock.jsonscripts/ci-pack-probe.mjsscripts/measurements/suggestions-2026-10-07/*scripts/pi-schema-runner.pyscripts/unit-shard-observation.jsontests/fixtures/bridge-tools.after.jsontests/browser-inventory-process.test.ts[]tests/capture-hash.test.tsabctests/native-diagram-retired.test.ts3. No retention step or output; lint passes.
grep -c "reuse\|run_browser\|run_layout" .github/workflows/ci.yml .github/workflows/heavy-feedback.ymlis 0 for both. Mutation: adding&& needs.changeset.outputs.run_browser == 'true'to the browser job failedtests/ci-workflows.test.tsonSELECTION_ALONE:browser(13 failures in that file); restored, it passes.4. The replay shows no narrowing.
scripts/replay-browser-selection.tsnow takes a baseline report and printsomittedSinceBaseline. The baseline ran on36ac36f13, the comparison on this branch.omittedSinceBaseline[][]The archived set was rebuilt from the archived replay report (SHA-256
6cf33fd3…, measurement archive commitc24a8482): same PRs and squash commits, with every changed-path list recomputed from Git and matching its recorded hash. Closure sizes moved from 1,865 / 1,694 / 1,565 / 1,469 files to 1,855 / 1,684 / 1,555 / 1,469, and unresolved inputs from 1,098 / 1,099 / 1,097 / 1,078 to 1,112 / 1,108 / 1,106 / 1,078. All four closures were already unresolved before this change, so selection already used the broad rule. The ten files that left the closures are.github/workflows/ci.ymland nine build and CI scripts;planUnitChecksreportsglobal: truefor each on its own. Mutation: removing the broad fallback fromclosureSelectsfailed 11 tests intests/browser-input-closure.test.ts; restored.5. The aggregate and the merge path still validate.
bun scripts/ci-proof.ts aggregateexits 1 withbrowser: selected proof did not pass (missing).proofProblemsaccept a skipped or missing selected job failed five tests intests/hosted-proof.test.ts, including the emitted-executable test; restored.retained-receiptintests/integration-command.test.ts: a receipt that excuses a skipped selected browser job is refused withRetained proof is retiredand no merge is dispatched. Failing first on36ac36f13:NO_MERGE_ON_RETAINED_BROWSER_PROOFexpected false, received true; the old merge path dispatched the merge. Mutation: deleting the refusal failedshared merge executable requires all three delivered browser shards; restored.6. Docs and skills. No doc or skill tells a contributor to re-audit a pin or expect a retained category; the remaining mentions are the retirement record and a note about archived timing runs.
Checklist
docs/reflect the change, or nothing documented moved.Anything left open
browser,layout,capturesandendurancefresh and green on this head. Draft heavy feedback cannot serve it: that workflow runs main's copy, whose admission job runsbun scripts/proof-reuse.tsin the PR checkout, and this branch deletes that file. Aworkflow_dispatchofCIon this branch ref uses the branch's own workflow and runs every category fresh.bun scripts/issue-queue.ts claim 4107refused because the issue lacksagent-ready. I did not add the label or assign it by hand.tests/first-party-source-pins.test.tstakes about 36 seconds locally and has no measured entry inscripts/test-shard-costs.jsonuntil the next refresh. The 11 deleted tests' entries (about 35 seconds together) are removed.docs/is untouched (391 drifted before and after; a release check). The citations this change moved are repaired.🤖 Generated with Claude Code