Skip to content

ci: retire the frozen native diagram qualification pin #4105

Closed

Description

@schlessera

Context

#2293 qualified the native diagram producer so that a ready PR could retain its browser proof (skip it) on the strength of an earlier green run. The qualification pins three identities in scripts/native-diagram-inputs.ts (qualified, line 20; sourcePins, lines 26-30):

tests/native-diagram-inputs.test.ts enforces the pins. Any dependency change anywhere in the repo moves the installation hash, turns unit red, and has so far needed a manual requalification under a maintainer ruling (#3320 on 2026-11-02, #3968 on 2026-11-11). #4102 hit it again on 2026-11-16 by adding tldts to ui-kit.

An independent review of the rationale and the code (2026-11-16) found the pin no longer protects anything live:

  • Its consumer is gone. Under the hybrid ruling (2026-11-10), ready confirmation no longer runs browser proof, and the squash's main run is always fresh. No path retains browser proof any more.
  • It cannot qualify today anyway. All three pinned source files have drifted on main: scripts/ci-proof.ts hashes 17e0c248… against the pinned c58de06e…, and the other two differ too. The binding (nativeDiagramInputs, called from scripts/browser-input-closure.ts:63) therefore returns source-pin-mismatch before it compares the installation.
  • Requalification has never found a difference. In both runs the frozen producer's SVG and PNG were byte-identical to the previous qualification (chore(deps): drop the unused claude-agent-sdk-research-292 alias #3320, CONTRACT: feat(backends): run Pi's web tools in a trusted host executor on the pinned extension #3968 receipts).
  • It costs a full merge cycle. The mismatch surfaces only in hosted candidate proof, after a lease wait. The fix then needs an hour of host-specific work and a second refresh, lease and confirmation cycle.
  • The guidance is contradictory. Its recovery text says "never refresh qualification pins", yet moving the pin is the only way a dependency change has ever merged.

Decision (maintainer, 2026-11-16): retire the frozen installation and source qualification pin. This supersedes the 2026-11-02 (#2509/#3320) and 2026-11-11 (#3968) requalification rulings. The container boundary and the producer's live checks stay.

Scope

  • Remove the frozen qualification. Delete qualified and sourcePins from scripts/native-diagram-inputs.ts, along with the binding's dependency on them. The binding then never qualifies, so browser-input-closure reports no native binding, and browser proof runs fresh, as it already does on main. Remove the binding entirely if nothing else needs it.
  • Retire the frozen-positive-control self-test. Remove or rewrite tests/native-diagram-inputs.test.ts, so no test depends on a frozen installation or source hash. Keep any assertion that still guards live behaviour, such as a native importer outside the owned role being refused.
  • Keep the live checks. The network-disabled, read-only Docker boundary stays. So do the producer's own identity self-checks, which compute and re-verify the private copy at run time, and tests/diagram-export-installation.test.ts. None of these depends on a pinned hash.
  • Docs.
    • Amend docs/decisions/ci-utility.md (the native diagram binding section, around lines 1051-1093) to record this ruling and why it was made.
    • Update CONTRIBUTING.md's native installation recovery guidance (around line 87).
    • Remove the "never refresh qualification pins" recovery text from the code.

Acceptance criteria

  • A dependency change (for example a new package in bun.lock) does not fail any unit or proof test because of a native diagram identity. To prove it, add or keep a test that changes the installation and asserts it no longer causes a failure.
  • The diagram export proof still runs fresh on main inside the same container boundary. Its producer self-checks are unchanged.
  • No source file pins e8502b6f…, ea866695… or the three source-file hashes.
  • docs/decisions/ci-utility.md and CONTRIBUTING.md record the ruling, and no doc still tells a contributor to requalify or forbids moving a pin that no longer exists.
  • bun run check:pr and hosted candidate proof pass.

Out of scope

Changing the producer's container boundary, the browser consumer, or the hybrid proof split. If browser retention ever returns to ready confirmation, re-qualification is designed afresh then.

Unblocks #4102 (#3800), which otherwise needs a third requalification for tldts.

2026-11-17 (from review of #4106): criterion 1 is met by two things together. First, once the binding is removed, no code compares an installation identity to a pin, and tests/native-diagram-retired.test.ts keeps any retired identity out of scripts, tests and their JSON. Second, the end-to-end check is #4102, which adds tldts on top of this change, so its hosted unit run is the automated proof; the same change failed unit (3) on main in run 43965353066. A test that adds a package to the shared node_modules would race other workers, so none is added. The "add or keep a test" wording is superseded.

Activity

  1. added this to the 0.45.0 milestone on Nov 16, 2026
  2. added
    type: chore
    area: ci
    priority: p1
    agent-ready
    on Nov 16, 2026
  3. self-assigned this
    on Nov 16, 2026
  4. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-7b8b0176. Branch: chore/4105-retire-native-pin.

    collisions: see claim follow-up

  5. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Clarification of criterion 3 (2026-11-17, from review of #4106). "The three source-file hashes" means the native qualification's own sourcePins. One of those files, packages/ui-react/tests/browser/diagram-export-command.ts (f7c3d14c…), is also pinned for a separate, live audit: the diagramRasterComparison command record in scripts/bound-browser-documents.ts:130. That pin is out of this issue's scope and stays. The retirement guard therefore excludes that one hash and still covers the others.

  6. schlessera commented on Nov 17, 2026

    @schlessera
    OwnerAuthor

    Delivered in #4106, squashed to main as b0fc83f9b (milestone 0.45.0).

    • Removed: the frozen native diagram binding (scripts/native-diagram-inputs.ts) and its self-test. The browser input closure, worker audit and inclusion inputs no longer carry a native identity, and the worker audit record's sourceAudit.native is gone.
    • Guard: tests/native-diagram-retired.test.ts keeps every retired identity out of scripts, tests and their JSON. It failed first on main's bytes.
    • Docs: docs/decisions/ci-utility.md records the ruling. The requalification guidance is removed from CONTRIBUTING.md, the diagnostic-install guide and the release skill.
    • Also fixed: an order-dependent render test (image-markup.test.tsx shared ask-user-dom.ts) that the changed unit partitions exposed.
    • Criteria: the first criterion is met as amended on 2026-11-17. The end-to-end proof is CONTRACT: feat(ui-kit): GitHub component family and UntrustedText (#3800) #4102, which adds tldts on top of this change.
    • Review: six independent review rounds, every finding recorded and answered on chore(ci): retire the frozen native diagram qualification pin (#4105) #4106.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyarea: cipriority: p1type: chore

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions