Skip to content

chore(ci): re-audit cold-capture reader and shared producers - #4057

Merged
schlessera merged 2 commits into
mainfrom
chore/3548-cold-capture-reaudit
Nov 16, 2026
Merged

schlessera merged 2 commits into
mainfrom
chore/3548-cold-capture-reaudit

Conversation

@schlessera

@schlessera schlessera commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Closes #3548
Refs #3233

What changed

Restores the optional generated-CSS and installed-asset bindings for the reviewed cold-capture reader by moving the shared frozen positive owner and its matching producer/reader pins together. No reader behavior, asset validation, fallback logic, product code or package output changes.

Why this shape

Follows the separate post-merge re-audit procedure and audited-reader ruling in the CI decision and #2408. A shared owner requires reviewing the other producer and reader drift in the same PR, as #3548 explicitly requires. #3233 is referenced for coordination rather than silently treated as delivered; its owner can reconcile the overlapping producer acceptance criteria after this lands.

Audit identity and scope

  • Previous frozen owner: 736a3445e82aee509e10f3c8d00b95fc77749202.
  • Reviewed delivered-main owner and local base: a9bcdbd6734c1733390570e2a68c10afde3b00a9.
  • Owner tree: 5221359a249376353f6fd4939f4076596517c87f.
  • Verified fix(ui-react): controls reach 44px past their paint instead of drawing it (#3252) #3533 squash 54e47ae5503d4c8c622609397a0fbaaece3e98d8 is an ancestor. All positive blobs are available through offline git show, with no feature-branch ownership.
  • Candidate head: 0a5ef9ee8eb7825c132899f6b51d1d7b0ce90121; candidate tree: 11266b558352ecc312b9264491b6f7b01bb060ad.
  • Reviewed every producer and reader between those owners. Exactly five of twelve producers and all three readers differ. The seven unchanged producers are build.ts, build-execution.ts, build-receipt.ts, build-repeat-observation.ts, bin-modes.ts, publishable-packages.ts and workspace-lease.mjs, all under scripts/. Their pins remain unchanged.

Reader audit

cold-capture/commands.ts: the only diff replaces the painted-height assertion with a DOM edge-hit probe. It scrolls each button into view, retains the 44px painted-box rule for controls without .bk-hit, and checks reaching Buttons at four target edges, using a 44px floor under any-pointer: coarse. All new operations execute inside the existing page evaluation. There are no new imports, filesystem reads, spawned processes or network reads. The sole installed external read remains the exact ../../node_modules/axe-core/axe.min.js literal. The existing ../ui-react/dist/styles.css read still binds generated source; esbuild's tracked app/worker entries, loopback server, origin-only route refusal, egress observation and blob playback reads are unchanged. The pin moves because the source bytes changed, not because the installed-asset boundary broadened.

form-browser.ts: comment-only change documenting the viewport restoration offsets. Executable behavior and the generated stylesheet read are byte-for-byte unchanged.

share-review/commands.ts: fixed waits become explicit admission/queue/settled observations; the racing-tab case waits for a post-admission loser attempt, dismiss waits for the durable queue removal, empty-state cases assert durable inventory, and lost-response closes in the socket write callback. New helpers only evaluate the existing page proof surface. No imports or filesystem/process/network read sites are added. The existing generated stylesheet and literal axe-core reads, loopback server and origin-only routing remain unchanged. Both installed-asset reader pins move together with their generated-CSS pins.

Combined producer audit

  • ci-proof.ts: adds disk and unit-memory observations plus reference-pool runtime inventory. Diagnostics are written in cleanup, independently of command success. Browser/layout/endurance still select the workspace build first, then await each command sequentially through runCommands; a failed build throws before the browser command or successful reusable receipt. Checkout/input identities are captured before execution, and dirty tracked inputs refuse reusable qualification.
  • check-pr.ts: adds structured local receipts, explicit skip/timeout/preemption outcomes, host admission, opt-in import-graph feedback, private unit workers, a reference-pool probe and a larger compiler memory setting. Local stages parallelize only types and units; workspace build and browser stages remain sequential. Unproven local work remains unproven in the receipt and requires hosted coverage. No CSS compilation inputs or copy semantics change.
  • ci-runner.ts: command diagnostics and compiler-runtime observation are additive. Commands retain detached process-group cleanup, nonzero/signal refusal and bounded SIGTERM/SIGKILL cleanup. Timeouts throw; interrupted commands cannot acquire successful receipt outcomes. Receipt-write failure refuses complete coordinator evidence. The compiler probe does not replace or suppress the actual typecheck or its failure.
  • .github/workflows/ci.yml: frozen installs and full-history checkouts remain. Verify now separates install/plan/proof budgets and emits setup/proof summaries. Native setup budgets are separate from unchanged proof budgets; telemetry and optional kernel diagnostics do not replace proof. Main pushes still execute selected proof after metadata failures, while aggregate validation still requires metadata and selected-job success. Red-main gating and RED_MAIN_OID affect admission/selection, not the CSS producer or success requirements. Browser image/version/offline launch remains pinned.
  • package.json: only an added test:skills command and removed research-only SDK alias. The build and browser scripts are unchanged; no Tailwind/compiler dependency changes occur in this file.

The unchanged builder still removes each package dist before compilation, resolves the locked Tailwind CLI, awaits and checks tsc/CSS child exits, copies source theme/token bytes, records per-child/per-package outcomes and only finishes a successful fresh build receipt after successful execution. The real offline compiler control verifies that changing owned CSS changes output. Source-path, package identity/version, SHA-256, mode, symlink/escape and unknown-input refusal are unchanged. Other independent browser-document owners/pins remain untouched; this audit does not qualify their drift. Any later producer or reader drift continues to select fresh proof.

Changed pins (SHA-256)

Source Previous digest Reviewed digest
scripts/ci-proof.ts 094977e01d5549bc518a6aa74ef6ba6ee9267d79fcb841f4fd439c84de202931 17e0c248792ebe7abc22bd93eb4bd402356cc395c6cab548b8cf65810238eae7
scripts/check-pr.ts 44edfa9c7da42c301988fda62e9f2bf9e72eb56d9eedfb2bf1b4c77af9764bd0 a5ef505c320306ecfef9cb2d9452ad78898c09be6567201649913d01636a27a0
scripts/ci-runner.ts e6b9da9fdf92cb7ade402c620a8f58727bf5a09725bed03000a862866a6f9262 1f65e665afa202c2e8a72938fb193dcee7cebeb7c6d4e97456520e461e52609f
.github/workflows/ci.yml ba93d519013905c8bbd943bf8887733a45911e5309a622f34827f70fdef94427 a5b3f82fa11111ed9bff29a5423873b6fc91bc4187370754e16e85ad06f11d56
package.json 0d2ba2667eed49f4b686e57e54578d5f51e6c1b93605de0e1f5c8d08f8d0b188 fb862fa1374a2e31a4d4eb317fabb1453e5325a9cd154ede1ecc8c91e9acc16c
packages/ui-kit/tests/visual/form-browser.ts 3ccf67a71fa64af195bbf8cf6d173064dc9d2d4fc6abc699fa0a638c352ca62e 5def3875a8e16e41b22bf1ff2a25b045a3adc59bdc2df2e0c7754126f3c8e27b
packages/ui-react/tests/browser/offline/cold-capture/commands.ts f0d6d9512b1de67f1804d808dded17e29ee344be22283a734e07f3233fc340ee 1b9063232ed794ed206cb09520641ff25897a3133e6168ceff10f18cca746ef0
packages/ui-react/tests/browser/share-review/commands.ts a5f25033f06d388d2e0c83446f5cb7340d22626ea9afe1f7b6c3af92cc86f8ad 49dc3fd14d370ddf087986fc135343b2419efd0f1924096edd669b6e0d0f6e33

Proof

bun install --frozen-lockfile succeeded. Focused suite: bun run test tests/locked-browser-assets.test.ts tests/inclusion-inputs.test.ts tests/generated-build-inputs.test.ts tests/browser-input-closure.test.ts tests/generated-theme-inputs.test.ts passed 54/54, 332 assertions (before mutations and after restoration). Includes the real offline Tailwind compile and installed-asset byte/mode inclusion checks.

Failing-first: moving only the owner while retaining the old pin failed FROZEN_READER_MATCHES_PIN: expected f0d6d951…, received reviewed 1b906323… (exit 1, 2 failed). Updating the pins restored 54/54.

Mutation receipts, each restored before the final 54/54 run:

Mutation Named failing control Result
Remove the digest comparison in lockedBrowserAsset only exact audited dependency asset readers admit bytes; missing, escaped and symbolic inputs stay unknown exit 1; line 16 drift assertion expected undefined, received an asset receipt; 1 failed, 2 passed
Remove the producer digest comparison in generatedCssInputs producer, execution-order, receipt and package-script drift refuse generated stylesheet binding exit 1; line 29 expected undefined, received generated source binding; 1 failed, 5 passed
Replace owner with the previous available main owner the frozen audited reader matches its pin and yields the installed receipt exit 1; FROZEN_READER_MATCHES_PIN expected reviewed digest, received old digest; 2 failed, 1 passed
Replace owner with the all-zero unavailable commit frozen positive fixture runtime read exit 1; FROZEN_GENERATED_SOURCE_OWNER_AVAILABLE_OFFLINE, git exit 128 rather than 0; 2 failed, 1 passed

The repo-reader test takes its pinned branch: independently computed source SHA-256 equals auditedReaderDigest; lockedBrowserAsset returns package axe-core, version 4.13.0, asset axe.min.js, SHA-256 c24f097bd2f451d4f933e8bc7d8d539f8672a2ebcb5cc9f9f3eec8ca9470a0c1, installed mode 384 (0600 on this host). The matching-receipt test also verifies installed package version and actual consumed bytes. generatedCssInputs returns the source stylesheet and complete producer list on the reviewed tree.

bun run check:pr --base origin/main passed, including 1208 affected fast tests across 53 files (7888 assertions), lint/leakage, environment documentation and changeset gates.

{"version":1,"kind":"brain-check-pr-receipt","head":"0a5ef9ee8eb7825c132899f6b51d1d7b0ce90121","base":"origin/main","mode":"focused","startedAt":"2026-11-15T21:17:39.636Z","finishedAt":"2026-11-15T21:19:48.046Z","checks":[{"name":"all lint and leakage gates","categories":["changeset"],"outcome":"passed","elapsedMs":13220.111788999999},{"name":"environment documentation","categories":["changeset"],"outcome":"passed","elapsedMs":107.24609200000123},{"name":"pending changeset package names","categories":["changeset"],"outcome":"passed","elapsedMs":82.67182700000194},{"name":"contribution changeset","categories":["changeset"],"outcome":"passed","elapsedMs":19.185144999999466},{"name":"affected fast invariants","categories":["verify","unit"],"outcome":"passed","elapsedMs":114960.38561799999}]}

Checklist

  • Complete selected hosted candidate proof (orchestrator owns confirmation).
  • Local behavior and mutation proof completed; acceptance gaps below.
  • PR and issue release milestone: 0.45.0.
  • No changeset: internal CI audit pins only, no consumer-visible change.
  • Leakage screened; no public machine contract or documented behavior changed.
  • No guard logic changed; existing narrow unknown-binding fallback remains.
  • Provider history untouched.

Anything left open

Hosted candidate qualification and merge belong to the orchestrator. No hosted success or retained browser proof is claimed by the local audit. #3233 remains open for its owner to reconcile the producer review delivered here. No new follow-up issues filed.

bun scripts/collisions.ts --json --pr 4057 at head 0a5ef9ee8eb7825c132899f6b51d1d7b0ce90121: graph built; 27 closure-only overlaps, zero textual/path/unknown collisions. Compared heads: #3054@a3401a68ecbcd85ef0565ede7a7a1d2e6d5f8912, #3056@966d79e0d845e0328a0ed82785b3053293144ca6, #3059@0f0fd07538c27dbca64d30d5b2a5de0467b0c90f, #3069@44c302ecae7dd6005ea29af6b891eb31b2ca1c0f, #3437@ce943f3dff8ec8cd90c1f5718f9f3c2e78326398, #3581@eb4d654b1ee24d3badb245d17ddf53735c6cfe67, #3622@6a814ee735e6a37ae3a8c034b4e1c35c65b56d60, #3806@260b1713481b446324439be588a247125e79860b, #4002@b40a5e3cca3e35ce627372be42748e6bc8e157d0, #4018@ddc6bf80b1932b416409cafbb97d6badace40754, #4024@aa8b320bf6212b56a3c91e0e8a83b92faff1d1f4, #4028@e1223a5cd88f5c6e5889fb1bc2a84c04fc43fbcf, #4034@a2d2fd815d78cb9fcc0e914fb36701ccef5cad5a, #4035@4570672077284cd77104a8c89b7f3b35c3c8acaa, #4036@f7905121dd64734461774c927f2076a863ed3ef7, #4037@9da07b14ddf2873c756a194a8badd329368cc483, #4038@1727dc77d5d70aa5ccc56759d14cc67dec205ce9, #4040@ee73f2d62ffe834c533a4fff67055a9056b16d7f, #4041@e782dc9eec5e8c5a1ed733a1800aa17adc843810, #4042@722c47ce2c1cb23b415b04b4e0ec4cf2be157b6b, #4046@8c294206f883e04de11e308d1954dbf0c3a8e59d, #4050@358cc819ca1c544404ec0e45ba34f97d63544ee0, #4051@b17b174bd91af671a3d7e7905a12802285b0dc6c, #4052@a7fe275b3560811786dfb79b3f29e64b290a8522, #4053@99d841106d4d0b35b3be7a38beb407cc4feb9135, #4055@7c2104d37d1cdb60a763de802e54b620cfac8dd8, #4056@972a16f037e7aff683108dd120520be300f83895. Shared CI/test closure overlap is detection, not an integration lock; the orchestrator owns ordering.

@schlessera
schlessera marked this pull request as ready for review November 16, 2026 09:08
@schlessera
schlessera merged commit 2182752 into main Nov 16, 2026
50 of 52 checks passed
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: re-audit the cold-capture audited reader after #3252 lands

1 participant