Repository navigation
Description
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):
- source: the frozen test(ci): qualify browser retention and snapshot fault ownership #2293 snapshot,
e8502b6f…, 859 files; - installation: a hash over every package, file, byte and mode in
node_modules,ea866695…; - the three pinned source files.
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.tshashes17e0c248…against the pinnedc58de06e…, and the other two differ too. The binding (nativeDiagramInputs, called fromscripts/browser-input-closure.ts:63) therefore returnssource-pin-mismatchbefore 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
qualifiedandsourcePinsfromscripts/native-diagram-inputs.ts, along with the binding's dependency on them. The binding then never qualifies, sobrowser-input-closurereports 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.
- Amend
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.mdandCONTRIBUTING.mdrecord the ruling, and no doc still tells a contributor to requalify or forbids moving a pin that no longer exists. -
bun run check:prand 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
schlessera commentedon Nov 16, 2026
Claimed for implementation. Claim token:
claim-7b8b0176. Branch:chore/4105-retire-native-pin.collisions: see claim follow-up
chore(ci): drop the retired native identity from the worker audit rec…
docs(ci): drop the last qualification-pin wording for the retired nat…
schlessera commentedon Nov 17, 2026
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: thediagramRasterComparisoncommand record inscripts/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.docs(ci): count the native requalifications correctly (#4105)
test(ci): keep every retired native identity out of the tree (#4105)
docs(ci): say which handoff checks still run after the native retirem…
test(ci): keep the retired-identity scan's JSON control after the aud…
chore(ci): retire the frozen native diagram qualification pin (#4105) (…
schlessera commentedon Nov 17, 2026
Delivered in #4106, squashed to
mainasb0fc83f9b(milestone 0.45.0).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'ssourceAudit.nativeis gone.tests/native-diagram-retired.test.tskeeps every retired identity out of scripts, tests and their JSON. It failed first onmain's bytes.docs/decisions/ci-utility.mdrecords the ruling. The requalification guidance is removed fromCONTRIBUTING.md, the diagnostic-install guide and the release skill.image-markup.test.tsxsharedask-user-dom.ts) that the changed unit partitions exposed.tldtson top of this change.chore(ci): retire browser proof retention and repeat changed tests un…
chore(ci): remove the code left dead by the retired browser source pi…