Skip to content

ci: re-audit the cold-capture audited reader after #3252 lands #3548

Closed

Description

@schlessera

Context

Blocked by #3252

#3252 (PR #3533) changes the audited cold-capture reader, packages/ui-react/tests/browser/offline/cold-capture/commands.ts. Its touch-target check stops requiring a 44px painted box for reaching Buttons (.bk-hit) and instead probes elementFromPoint 1px inside each edge of a 44px target. The reader reads no new files, and its only external read is still the literal ../../node_modules/axe-core/axe.min.js.

The reader's digest is pinned twice, in const readers (scripts/locked-browser-assets.ts:6-9) and const auditedReaders (scripts/generated-build-inputs.ts:37-41). The positive controls read it from the frozen owner 736a3445e (const owner, tests/frozen-generated-source.ts:7), as do the inclusion-inputs controls (tests/inclusion-inputs.test.ts:80-96).

Under the maintainer ruling of 2026-11-04 on #2408, reader drift follows the producer rule. A changed audited reader leaves its asset binding unknown, so proof runs fresh, and #3533 does not refresh the pins. Until this re-audit lands, every cold-capture layout run executes fresh.

#3233 moves the same single frozen owner for the producer drift already on main (scripts/ci-proof.ts, scripts/check-pr.ts, scripts/ci-runner.ts, .github/workflows/ci.yml, package.json), and packages/ui-kit/tests/visual/form-browser.ts also drifted from its reader pin with #3508. One owner serves every frozen positive control, so do this re-audit together with #3233 or sequence the two explicitly. Never pin a positive control to a commit whose other frozen files do not match their pins.

Scope

After #3252 is delivered on main, re-audit the changed cold-capture reader under the procedure in docs/decisions/ci-utility.md ("Only a reviewed re-audit moves the audited revision", including its "Audited readers" rule). Move the frozen owner to a delivered main commit that contains the new reader bytes, then refresh the reader's digest in both maps in the same PR.

Out of scope

  • Any change to the reader's behaviour or to the product.
  • Automatic pin refreshes, per-file ownership, and any change to fresh-proof fallback or to the locked-asset checks (package identity, version, SHA-256, mode, symlink and escape refusal).
  • Producer drift owned by ci: re-audit generated-build producers after verify budget repair #3233, except where moving the shared owner forces it to be reviewed in the same PR.

Acceptance criteria

  • The owner is a delivered origin/main commit at or after fix(ui-react): controls reach 44px past their paint instead of drawing it (#3252) #3533's squash. The PR records its exact SHA and tree.
  • The audit records the reader's diff since the previous owner and confirms the reader's external reads are unchanged: the axe-core literal only, with no new filesystem, spawn or network reads. It records the new digest and the rationale.
  • One PR updates tests/frozen-generated-source.ts, the cold-capture entries in scripts/locked-browser-assets.ts and scripts/generated-build-inputs.ts, and every other pin whose file differs at the new owner (in coordination with ci: re-audit generated-build producers after verify budget repair #3233).
  • tests/locked-browser-assets.test.ts, tests/inclusion-inputs.test.ts, tests/generated-build-inputs.test.ts and tests/browser-input-closure.test.ts pass. After the refresh, the repo reader yields the installed receipt… takes its pinned branch, and that is shown in the PR.
  • Mutation receipts: (1) dropping the digest comparison in lockedBrowserAsset fails the drift assertions; (2) corrupting the frozen owner fails FROZEN_READER_MATCHES_PIN / FROZEN_GENERATED_SOURCE_OWNER_AVAILABLE_OFFLINE. Both are restored afterwards.

Verification

Follow #2408 and the CI decision record. Use live main at audit time, keep the exact owner, head and base identities, and complete local and hosted proof.

Contract impact

None.

Activity

  1. added this to the 0.45.0 milestone on Nov 4, 2026
  2. added
    type: choreTooling, CI, release plumbing, dependencies.
    area: ciCI workflows, the gates they run, release scripts, packaging.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Nov 4, 2026
  3. removed
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Nov 4, 2026
  4. schlessera commented on Nov 4, 2026

    @schlessera
    OwnerAuthor

    Blocker #3252 is delivered: #3533 squashed as 54e47ae55 on main, and that commit carries the new cold-capture reader bytes. Removed blocked. Coordinate the shared frozen-owner move with #3233.

  5. self-assigned this
    on Nov 15, 2026
  6. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-128b9fd6. Branch: chore/3548-cold-capture-reaudit.

    No live implementation PR. Collision scan reports shared CI/test closure overlap with existing PRs; no competing reader-pin implementation. Shared-owner producer review required by #3233 is included only as forced by #3548.

  7. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Implementation ready for orchestrator landing in #4057 at 0a5ef9ee8eb7825c132899f6b51d1d7b0ce90121. The PR records delivered owner/tree, combined producer/reader audit, changed digests, all restored mutations and exactly one passing check:pr receipt. Focused proof: 54/54. Preflight: 1208 affected fast tests, all metadata gates passed. Final collision scan: 27 closure-only overlaps; no textual or unknown collisions. Milestone 0.45.0 is verified on the PR and #3548; #3233 is coordinated and also milestoned because the forced producer review advances it. Worktree clean; claim retained for the orchestrator. No hosted confirmation or merge claimed, and no new follow-ups filed. Next action: orchestrator confirms the current candidate and lands through its single merge queue.

  8. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

    Merged in #4057 as 218275239 through the integration lease (orchestrator merge queue for 0.45.0). Candidate confirmation passed on the exact head; the squash's own main run carries the post-merge heavy categories.

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

Metadata

Metadata

Assignees

Labels

agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ciCI workflows, the gates they run, release scripts, packaging.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: choreTooling, CI, release plumbing, dependencies.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions