Skip to content

chore(ci): retire browser proof retention and repeat changed tests under load (#4107, #4109) - #4134

Merged
schlessera merged 55 commits into
mainfrom
chore/ci-pipeline-bundle-2
Nov 17, 2026
Merged

schlessera merged 55 commits into
mainfrom
chore/ci-pipeline-bundle-2

Conversation

@schlessera

@schlessera schlessera commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Closes #4107
Closes #4109

What changed

Two proof-system changes as one squash, as the proof-system lane allows. Each was built and proved on its own branch; this PR is their merge.

Order. #4106 (the native pin retirement, #4105) and #4122 (action pins, eight unit partitions, the review gate) have both merged; this branch is refreshed on main and contains only its own two changes.

Why this shape

One squash is one lease cycle and one stability window. The two changes meet in ci.yml, the workflow lint and the aggregates; merging them here resolved those once: the new determinism job references its actions by commit, and its if follows the planner-selection-only form #4107 introduces. Per-change reasoning is in #4126 and #4118.

Proof

bun run check:pr --base origin/main

Passed on this head: 1,216 pass, 0 fail in the affected fast invariants.

{"version":1,"kind":"brain-check-pr-receipt","head":"2d442177ad04f1525b76b931f8d1719346b06af8","base":"origin/main","mode":"focused","startedAt":"2026-11-17T03:47:09.986Z","finishedAt":"2026-11-17T03:48:44.807Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":12916.197574999998},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":124.21589200000017},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":102.49761500000022},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":20.1927340000002},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":81640.849531}]}

Checklist

  • Focused local preflight/behavioral receipts passed; the hosted qualification runs are above, and the ready confirmation follows.
  • Acceptance criteria from the issues are all met, or the gap is named below.
  • A PR touching the core packages carries a recorded independent review of its head, or it touches none of them. This PR touches none.
  • The PR and completed/advanced issues have verified release milestones under docs/process/github.md.
  • A changeset is included, or this changes nothing a consumer can see.
  • No personal data anywhere in the diff — the leakage gate covers the whole tree.
  • The integration contract index or relevant component is updated in this same commit, or nothing in the machine surface moved.
  • Docs under docs/ reflect the change, or nothing documented moved.
  • A fail-closed guard added or changed answers the proportionate-containment checklist in this body, or no guard changed.
  • Provider history stays append-only: nothing on a turn's path changed.

Guard checklist. The determinism job restricts one PR's merge, only when that PR changes a Bun test file. It names the failing file, repetition and case, keeps no state, and clears when the test is fixed and pushed. The first-party pin guard acts in the unit tier only and names the offending file.

Anything left open

🤖 Generated with Claude Code

schlessera and others added 30 commits November 16, 2026 23:25
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>
Every workflow referenced its actions by a mutable major tag. Each uses:
now names the full commit that tag pointed at on 2026-11-16, with the tag
as a comment. scripts/action-pins.ts owns the table; the workflow lint
refuses a tag, a branch, an unreviewed commit or a missing tag comment in
any workflow file, and the generated heavy-feedback workflow keeps the
comments its YAML rendering drops. No action moves to a newer release.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…4108)

Ready confirmation and draft heavy feedback plan up to eight unit
partitions; main pushes and exhaustive runs keep four. UNIT_PARTITIONS in
scripts/proof-shards.ts is the one owner: the planner reads it by cadence,
the hosted aggregate refuses a published partition set that differs from
the plan, the merge path bounds the confirmed set by the confirmation cap,
the weight refresh takes its job count from it, and the workflow guard
refuses a literal unit matrix or divisor.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…4108)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…4110)

scripts/review-receipt.ts writes, posts and reads the record of an
independent review: one PR comment in a fixed block naming the reviewed
head, the base, the reviewer as agent or human only, and each finding with
exactly one disposition. It decides whether a record covers a candidate head
from real Git ancestry: merges of the base keep it valid; a new commit, a
rebase or an amend does not.

scripts/fast-lane.ts is the single owner of the core-package path rule that
the fast lane and the review requirement share.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…orded review (#4110)

confirm checks before it takes the reservation or requests candidate CI, and
the merge reads the record again. A PR outside the core packages is never
asked and its comments are never read. An expedited red-main fix is exempt.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…iew step (#4110)

The 2026-11-16 maintainer decision gets its own section in the CI decision
record, and the fast lane section cites the shared path predicate. The
work-issue skill and its CI reference gain the step: when to request the
review, how to start a reviewer that is given only the PR and its issue, how
to answer findings and when a new review is needed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…y the comment reads back (#4110)

A finding's summary can contain a mention or an issue reference. Outside a
code fence GitHub would notify or link it, so the comment now carries the
findings only inside the block, pretty-printed, under one line of counts.
post refuses a comment its own reader cannot parse back. The decision
record's citations follow the lines this change and the gate's import moved.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Add bun scripts/test-determinism.ts. It selects the Bun test files a change
adds or modifies against its merge base and runs them through the offline
test wrapper with --rerun-each and --bail=1 while one busy loop per CPU runs.
Five repetitions by default, reduced uniformly to a floor of two when the
reviewed weights exceed the 600-second budget; no selected file is skipped and
the report lists each with its repetitions. Burners are killed by PID on every
exit path and exit by themselves when their parent dies.

The planner records the selection for pull requests and selects determinism at
every pull-request cadence, drafts included, and never on main.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…4109)

Add the hosted determinism job with the unit job's runtime prerequisites, and
the same job in the generated draft heavy feedback workflow. The proof and
draft gates aggregates, the feedback aggregate and the merge path require it
when selected and its intentional skip otherwise. check:pr never runs it and
names the command in --plan.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…minism (#4109)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The command appends its table to GITHUB_STEP_SUMMARY. The fixture runs now
write to a scratch file, and the receipts assert on it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ommit (#4121)

The independent review gate counted commits, so a conflict resolution or
an edit added while merging the base rode into a core-package PR unread.
A merge commit now keeps a record valid only when it is clean: two
parents, and exactly the tree Git's automatic merge of them writes. A
resolved conflict, an altered merge and an octopus merge need a new
review of the current head; a merge that cannot be recomputed is refused
too.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <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
…n gate (#4109)

The first hosted determinism run failed in the gate's own test. Under
GITHUB_ACTIONS Bun 1.4.2 prints each run header as ::group::<file>: (run #k),
which the failure parser did not read, so a failure lost its file and
repetition. The parser reads both forms, and the racy-fixture receipt now runs
under the plain and the log-group reporter.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
schlessera and others added 13 commits November 17, 2026 01:40
…dle-2

# Conflicts:
#	docs/decisions/ci-utility.md
#	docs/decisions/test-health.md
#	scripts/integrate.ts
#	tests/ci-plan.test.ts
#	tests/hosted-proof.test.ts
#	tests/integration-proof.test.ts
…ation

It shared ask-user-dom.ts, whose body runs once per process. When ask-user's
test ran first in the same worker, its afterAll unregistered the DOM and the
image markup test failed with "document is not defined". Retiring the native
diagram test reshuffled unit partitions and put the two together. A sibling
module per file is the contract ask-user-dom.ts documents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ord (#4105)

The record's sourceAudit.native still held the frozen #2293 source,
installation and runtime hashes, though nothing reads them since the binding
was removed; qualification compares the computed identity and counts, never
those bytes. The retirement guard now scans JSON as well, and fails first on
the old record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ive binding (#4105)

The release skill and diagnostic guide no longer tell a contributor to keep
qualification pins unchanged, ci-utility.md calls the native fixture's
container a boundary rather than a binding, and the worker audit record's
scope gains a dated note that its native qualification statements are
historical.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two requalifications ran (#3320, #3968); #4102 was blocked, not requalified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guard now also names #2293's installation and the qualified producer
runtime, the two identities removed from the worker audit record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ent (#4105)

The browser still checks the handoff session, checkout and artifact hashes;
the comparisons against an expected source, installation or runtime identity
took it from the retired binding and no longer run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ive-pin

# Conflicts:
#	docs/decisions/ci-utility.md
…dle-2

# Conflicts:
#	docs/decisions/ci-utility.md
…to chore/ci-pipeline-bundle-2

# Conflicts:
#	docs/decisions/ci-utility.md
#	scripts/browser-worker-audit.json
…it manifest is gone (#4105, #4107)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@uploads-sh

uploads-sh Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

No attachments are currently associated with this pull request.

Maintained by uploads.sh · uploads put <file> --pr 4134 · docs

…dle-2

# Conflicts:
#	CONTRIBUTING.md
#	docs/decisions/ci-utility.md
#	scripts/browser-input-closure.ts
#	scripts/browser-worker-audit.json
#	scripts/browser-worker-audit.ts
#	scripts/inclusion-inputs.ts
#	scripts/proof-inputs.ts
#	tests/browser-worker-audit.test.ts
#	tests/native-diagram-retired.test.ts
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: chore Tooling, CI, release plumbing, dependencies.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: repeat a PR's changed Bun test files under CPU load before merge ci: retire browser proof retention and its audited source pins

1 participant