ADR-090: An Unresolved Surface Without Type-Level Evidence Is Not a Clean Verdict¶
Date: 2026-10-28
Status: Accepted (2026-11-08) — implemented. A compare whose compatibility claim rests on a side with no type-level evidence now reads UNCONFIRMED and exits 1 by default; assurance.unconfirmed: warn keeps the label at exit 0. The maintainer's answers to the open questions are under "Maintainer decisions"; what shipped is under "Implementation".
Governed by: ADR-009 (verdict and exit codes), ADR-042 (compatibility decision separated from gate decision), ADR-049 (contract domain default), ADR-064 (exit-decision precedence), ADR-065 (absent is not removed), ADR-066 (policy decides acceptance, not facts), ADR-071 (assurance.require_complete for a release), ADR-084 (a header-less exit-code change, maintainer-approved precedent), ADR-088 (one compare exit gate).
Context¶
The reported defect, reproduced¶
Built from catalog/cases/case19_enum_member_removed (old/lib.c and new/lib.c) with gcc -shared -fPIC -g, then strip --strip-debug applied to copies. Run on this checkout (python -m abicheck from the worktree). The scratch directory is shown as <scratch>/; nothing else was edited.
Unstripped, no headers (python -m abicheck compare one_unstripped.so two_unstripped.so), exit 4:
Warning: '<scratch>/one_unstripped.so' — no headers provided. Will use DWARF debug info if available, else symbols-only mode.
Warning: '<scratch>/two_unstripped.so' — no headers provided. Will use DWARF debug info if available, else symbols-only mode.
abicheck: DWARF debug info ...
abicheck: DWARF debug info ...
abicheck: DWARF debug info done (0.0s)
abicheck: DWARF debug info done (0.0s)
one_unstripped.so old -> new
Compatibility: BREAKING | Policy: strict_abi | Gate: REJECTED (exit 4)
Evidence: recorded snapshot facts; no debug-derived layout verification, no source replay.
WARNING: No header/AST data; type-level changes may be missed
Findings: 2 detected; 1 retained (1 gating, 0 non-gating); 1 review groups.
Public surface: 0 additions, 1 removals, 0 modifications.
Runtime/dependency: 0 findings.
Header/binary consistency: 0 introduced, 0 resolved, 0 persistent, 0 not evaluated.
1. Status::FOO: removed
Consequence: Enum member removed: Status::FOO
Action: Review the detailed finding and its evidence.
Findings: enum_member_removed
Audit: 2 detected; 1 gating; 0 acknowledged; 0 suppressed; 0 rule(s) applied; 0 scope-excluded.
Details: add -o markdown=abi-report.md -o json=abi-report.json to this invocation.
Exit-code scheme: legacy verdict (0=compatible, 2=API break, 4=ABI break; 1=the contract domain could not be closed on the evidence; with .abicheck.yml's assurance.require_complete: true, 1=incomplete analysis assurance -- both orthogonal axes that never lower a 2/4). Set a severity setting (--severity-preset, a --pack, or .abicheck.yml's severity: block) for the severity-aware scheme -- there is no manual scheme selector any more.
Stripped, no headers (python -m abicheck compare one.so two.so), exit 0:
Warning: '<scratch>/one.so' — no headers provided. Will use DWARF debug info if available, else symbols-only mode.
Warning: '<scratch>/two.so' — no headers provided. Will use DWARF debug info if available, else symbols-only mode.
abicheck: DWARF debug info ...
abicheck: DWARF debug info done (0.0s)
abicheck: DWARF debug info ...
abicheck: DWARF debug info done (0.0s)
Warning: public-header scoping could not resolve the public surface (no header-derived public symbols); fell back to the full export table. Compatibility is UNCONFIRMED — treat this result as manual-review-required, not a clean public surface.
one.so old -> new
Compatibility: NO_CHANGE | Policy: strict_abi | Gate: ACCEPTED (exit 0)
Evidence: recorded snapshot facts; no debug-derived layout verification, no source replay.
WARNING: Manual review required -- the public surface could not be resolved, so analysis fell back to the full export table. Treat this result as unconfirmed, not a clean public surface.
WARNING: Binary-only analysis without debug info; many ABI changes cannot be detected (struct layout, enum values, type changes)
Findings: 0 detected; 0 retained (0 gating, 0 non-gating); 0 review groups.
Public surface: 0 additions, 0 removals, 0 modifications.
Runtime/dependency: 0 findings.
Header/binary consistency: 0 introduced, 0 resolved, 0 persistent, 0 not evaluated.
Audit: 0 detected; 0 gating; 0 acknowledged; 0 suppressed; 0 rule(s) applied; 0 scope-excluded.
Details: add -o markdown=abi-report.md -o json=abi-report.json to this invocation.
Exit-code scheme: legacy verdict (0=compatible, 2=API break, 4=ABI break; 1=the contract domain could not be closed on the evidence; with .abicheck.yml's assurance.require_complete: true, 1=incomplete analysis assurance -- both orthogonal axes that never lower a 2/4). Set a severity setting (--severity-preset, a --pack, or .abicheck.yml's severity: block) for the severity-aware scheme -- there is no manual scheme selector any more.
With .abicheck.yml containing assurance.require_complete: true in the stripped directory: exit 1. Without it: exit 0, as above.
The matrix observed so far¶
All runs below are gcc, C, on this checkout. "stored" means dump to JSON, then compare on the two JSON files.
| Operands | Headers | Live / stored | verdict |
exit | analysis_assurance.status |
confidence / evidence_tier |
scope.resolved |
|---|---|---|---|---|---|---|---|
unstripped (-g) both |
none | live | BREAKING | 4 | complete | medium / dwarf_aware | true |
unstripped (-g) both |
none | stored | BREAKING | 4 | — | — | — |
| stripped both | none | live | NO_CHANGE | 0 | partial | low / elf_only | false |
| stripped both | none | stored | NO_CHANGE | 0 | not captured (text output only) | not captured | not captured |
| stripped both | -H per side |
live | BREAKING | 4 | complete | high / header_aware | true |
| unstripped both | -H per side |
live | BREAKING | 4 | complete | high / header_aware | true |
| old unstripped, new stripped | none | live | COMPATIBLE | 0 | partial | medium / dwarf_aware | true |
The last row is a second instance of the same defect, and it is not the shape the brief described. The old side has DWARF and the new side does not. enum_member_removed is not reported at all. The report carries two findings, dwarf_info_missing and public_surface_shrank (2 → 1 declarations), both compatible. The verdict is COMPATIBLE, which is not NO_CHANGE, and the exit is 0. The scope resolved, because the one-sided DWARF side still produced a public surface. So a rule keyed only on "public surface unresolved" does not fire on this run.
The stripped-both headline also contradicts its own release_recommendation: version_bump: none, rationale "No ABI or API changes detected; no version bump required." The run_outcome.compatibility, the top-level verdict, and the terminal headline all say NO_CHANGE. The exit.reasons is ["clean"].
What the rule says¶
AGENTS.md (Product decisions, "Weaker evidence narrows conclusions"): missing evidence "never upgrades to a clean compatibility claim". "Absent is not removed" requires that an unknown is reported as unknown. vision.md (Evidence and trust): "uncertainty is reported as uncertainty and never upgraded to a clean compatibility claim", and "a strict project may require certain evidence and fail its assurance gate when it is missing, without that gate manufacturing an ABI finding."
The detection gap itself is legitimate. Without DWARF or headers, an enumerator removal cannot be seen. The defect is the claim. The label, the JSON verdict, the release_recommendation, and the gate all assert that the comparison is clean, while the same run's warnings and analysis_assurance.status: partial say it is not.
The machinery already exists, but its default is off¶
analysis_assuranceis already computed on everycompare.policy/analysis_assurance/_compute.pyderivesstatus: partialfrom roughly a dozen conditions. One of them isnot result.scope_resolved, so the stripped run above ispartialthrough that branch. The others include asymmetric L0/DWARF/L3 context, graph degradation, unaccounted exports, and contract-coverage partiality.- The exit contribution exists but is opt-in.
policy/analysis_assurance/_outputs.pyreturns 0 "unconditionally whenrequire_completeis False (the default)".docs/reference/exit-codes.md("Analysis-assurance contribution") documentsassurance.require_complete: trueas the only switch. - The headline does not consult
analysis_assurance.Compatibility: NO_CHANGEis computed from the change set alone, and the warnings are appended beside it.
The same defect is already known and open¶
docs/contribute/known-gaps.md, entry dated 2026-10-15 ("A default release-profile Rust run without headers reports NO_CHANGE ... ACCEPTED while its own warnings say the result is unconfirmed"), status OPEN. Its full write-up is docs/contribute/known-gaps/header-less-rust-runs-report-no-change-and-alignment-noise.md. It records a real return-type change read as NO_CHANGE, Gate: ACCEPTED, exit 0. The 2026-10-15 entry says the fix "is a verdict-labelling decision (ADR-066/063), not a fix for one reader." This ADR is that decision.
Two observations from the reproduction that shape the proposal¶
- The
dwarf_info_missingfinding is emitted only when exactly one side has DWARF. The both-stripped run emits warnings but no finding. So the tool records one-sided absence as a fact and both-sided absence only as prose. --header(-H) applied as shorthand gives both sides the same header. The stripped run with one shared header readNO_CHANGE, which was my own setup error (the new side still declaresFOO). With--header old=… --header new=…it readsBREAKING/4. Per-side headers are needed to test this path.
Decision¶
Accepted 2026-11-08, with the answers recorded under "Maintainer decisions" below, which override this section where the two differ (notably: no separate exit-0 stage).
D1. The trigger¶
A comparison is unconfirmed when all of the following hold:
- (a) The change-derived verdict is
NO_CHANGE,COMPATIBLEorCOMPATIBLE_WITH_RISK. An observedAPI_BREAKorBREAKINGis never downgraded or overridden by this rule. - (b) Type-level evidence is absent on at least one compared side. A side has type-level evidence when any supported backend parsed usable type/layout data for it, or a header AST was parsed for it. The backends are DWARF; PDB for PE (
pdb_metadata.parse_pdb_debug_info); BTF and CTF for ELF (theirto_dwarf_metadata(), which setshas_dwarfwhen the section parsed); and the header AST (from_headers). A side with only a symbol or export table has none of these. - (c) The run is not an exempt identical pair. A pair is exempt only when the two binaries have equal SHA-256 and the effective comparison inputs are identical on both sides: the same type-level sources (no headers on either side, or the same header set) and the same debug-artifact selection, including a PE's external PDB and a detached debug file. Identical bytes do not make the comparison identical. An identical binary with a header on only one side has different effective inputs, and its one-sided evidence gap is real. An exempt pair is
NO_CHANGEby construction, not an evidence gap.
The public surface being unresolved (scope.resolved: false) is recorded as a reason in the notes but is not a required conjunct. The brief proposed "public surface unresolved AND type-level evidence absent on either side". The mixed run in the matrix above (one side DWARF, one side stripped, no headers) is the reason for dropping the conjunct: it has a resolved scope, has type-level evidence missing on one side, and reads COMPATIBLE/0 with the enum removal unreported. Keeping the conjunct would leave that case as a clean-looking pass.
Under D1, the table of cells is:
- Both sides have type-level evidence, from the same backend or different ones (DWARF, PDB, BTF/CTF, or headers): not triggered. This includes a headerless PE with PDB layouts on both sides and an ELF with BTF or CTF layouts on both sides.
- One side has type-level evidence and the other has none (for example, headers on one side and a stripped binary with no headers on the other, or a PE with a PDB on one side only): triggered.
- Both sides stripped, no headers, and not an exempt identical pair under (c): triggered.
D2. The outcome¶
When triggered, the compatibility outcome is UNCONFIRMED, not NO_CHANGE or COMPATIBLE. It is a new value on the compatibility axis:
- Headline:
Compatibility: UNCONFIRMED | Policy: strict_abi | Gate: REJECTED (exit 1). The gate word is provisional; the point is that the headline and the gate agree. - JSON:
verdict: "UNCONFIRMED",run_outcome.compatibility: "UNCONFIRMED",exit.reasonsgains"unconfirmed_compatibility", and a newexit.unconfirmed_contribution(0 or 1) sits beside the other axis contributions. release_recommendation.version_bumpbecomes"undetermined"with a rationale naming the missing evidence and the two remedies (headers on both sides, or unstripped debug builds). The current"none"is the clean claim this ADR removes.
Where the value lives: Verdict (abicheck/model/change_catalog/registry.py) is the change-derived enum. The proposal adds UNCONFIRMED to the report's compatibility vocabulary, not to the change-kind verdict set that *_KINDS derive from. The implementation has to keep those two apart. A separate compatibility_outcome field was considered and rejected: the 2026-10-15 defect is exactly a headline and a field disagreeing, and a field that consumers ignore keeps the clean headline.
D3. The exit code¶
UNCONFIRMED contributes exit 1 by default, folded with max like the existing contract-coverage and analysis-assurance axes. It never lowers a 2 or 4. No new exit code is introduced, because 1 already means "the analysis could not be closed on the evidence" in docs/reference/exit-codes.md.
D4. Opt-out and migration¶
- New
.abicheck.ymlkey:assurance.unconfirmed: fail | warn.failis the default from stage 2.warnkeeps theUNCONFIRMEDlabel and the same JSON, and contributes exit 0.warnis an honest, permanent, non-gating mode, not a deprecated one. The label itself has no opt-out, because the label is the thing being corrected. - No setting restores
NO_CHANGEfor a triggered run. - Stages (pre-1.0; the surface reset precedent is ADR-043):
- Stage 0 (this ADR accepted): no behaviour change; the design is recorded and the test matrix below is built, with the oracle described there.
- Stage 1 (next minor release): the
UNCONFIRMEDlabel ships in the headline, JSON, SARIF and Markdown, with exit still 0. stderr notice names the stage-2 exit change and theassurance.unconfirmedkey. Changelog fragment (scriv create) marks it a behaviour change, because any consumer matchingverdict == "NO_CHANGE"on a stripped run will see it change. - Stage 2 (the following minor release): default exit becomes 1 (
assurance.unconfirmed: fail). Changelog fragment,docs/reference/exit-codes.mdmigration note, and the headline known-gap entry from 2026-10-15 closed (the alignment-noise entry stays open). - Release (directory/package) fan-out: each member's own triggered contribution folds with
max, the same pattern as ADR-071.
D5. Remedy wording¶
The UNCONFIRMED message names the two remedies, in this order: supply --header old=… --header new=… for both sides, or compare unstripped debug builds (-g without strip --strip-debug). It does not say the build is wrong.
Surfaces affected¶
Exact list for the implementation PR. Each item needs a check, not just a text update.
CLI (abicheck compare)
- The scalar compare, and the directory/package fan-out (--select, --dry-run plan view if it reports a verdict).
- compare --no-baseline (ADR-068's audit mode): its headline and exit.
- The stderr "Exit-code scheme" epilog text, which names the current exit-1 meanings.
- The frontends/cli/runtime.py stderr notice path.
Other CLI commands that consume a compare exit
- abicheck aggregate reads analysis_assurance_exit_contribution per target. It needs an unconfirmed_exit_contribution term alongside it.
- dump produces no verdict; it is affected only where a stored snapshot is later compared. The trigger must be decidable from stored facts (see Open questions).
Config
- abicheck/buildsource/build_config.py: new KeySpec for assurance.unconfirmed, beside assurance.require_complete.
- docs/reference/config-keys-reference.md (generated by scripts/gen_config_reference.py).
GitHub Action
- Root action.yml outputs and gate.
- actions/check-target, actions/aggregate, actions/report. actions/report is a projection (ADR-072, ADR-073) and must render UNCONFIRMED without recomputing it.
- docs/reference/github-action-inputs.md (generated) if any input text changes.
Typed Python API
- CompareRequest and effective_gate_for_compare (abicheck/policy/effective_gate.py, ADR-088): the new key has to flow through the same single derivation, so the CLI and typed API cannot disagree.
- DiffResult.verdict and AnalysisAssurance consumers.
JSON and schemas
- abicheck/schemas/compare_report.schema.json: verdict enum, run_outcome.compatibility, exit.reasons, the new unconfirmed_contribution, release_recommendation.version_bump enum.
- abicheck/schemas/aggregate_report.schema.json.
- abicheck/schemas/release_schema.py (release JSON).
- abicheck/report/change_json.py (the producer of those fields).
Other formats
- SARIF (abicheck/sarif.py): the run-level level for UNCONFIRMED (see Open questions).
- JUnit (abicheck/junit_report.py): ADR-042 notes it computes its exit inline in places, so it needs the same change.
- HTML CI Gate card (abicheck/html_report.py).
- Markdown (abicheck/reporter_markdown.py, which already has a manual-review branch around line 845).
- Terminal review (abicheck/report/render_review.py).
- Confidence text (abicheck/confidence.py, the "Binary-only analysis without debug info" warning).
Policy
- abicheck/policy/exit_decision.py, exit_decision_precedence.py (the new axis in ADR-064's precedence).
- abicheck/policy/analysis_assurance/_outputs.py (today's require_complete contribution).
- abicheck/policy/release_assurance.py and release_exit_decision.py (release fold).
Docs
- docs/reference/exit-codes.md: the exit-1 row, the analysis-assurance section, and the "Exit 0 covers NO_CHANGE, COMPATIBLE, and COMPATIBLE_WITH_RISK" warning, which needs UNCONFIRMED added as a non-zero case.
- docs/learn/verdicts.md: the verdict-to-exit chain.
- docs/contribute/known-gaps.md: the headline Rust entry dated 2026-10-15 is closed at stage 2, and section 1 of its write-up is marked closed. The separate alignment-noise entry dated 2026-10-15 stays OPEN, and section 2 of the write-up is left as it is.
Consequences¶
- Stripped and debug-less libraries stop passing by default. A
comparewith no type-level evidence on a side exits 1 from stage 2. That is the point of the change, and it is the largest population affected. Defaultcargo build --releaseartifacts are the known case; the blast radius across other ecosystems is not measured. - Identical stripped inputs are the exception that matters for CI. Under D1(c), a pair with equal SHA-256 and identical effective inputs on both sides (for example,
compare same.so same.sowith no headers or debug artifacts on either side) remainsNO_CHANGE, because it is provably the same comparison. Without that exemption,compare same.so same.soon stripped artifacts would fail, which is absurd. The exemption does not extend to a byte-identical pair whose sides differ in headers or debug artifacts; that pair isUNCONFIRMED(matrix row 17). - Consumers that match on
verdictsee a new value. Stage 1 exists so this breaks with a warning first. Any consumer that enumerates verdicts exhaustively needsUNCONFIRMEDadded. - The standalone-binary promise is preserved as admission, not acceptance.
vision.mdsays "standalone binaries are first-class inputs, even stripped ones" and "debug information is consumed when present and is never a prerequisite". This ADR does not make stripped binaries inputs that are refused. It changes what a clean result on them may claim. The vision's own wording ("the coverage stated") supports that reading, but a maintainer should confirm it, because it is the strongest tension with the vision. - Header-less exit changes have a precedent in both directions. ADR-084 lowered a header-less exit from 2 to 0, with maintainer approval. This ADR raises a header-less exit from 0 to 1, and it needs the same kind of approval.
- The one-sided DWARF case must not depend on scope. Because D1 does not require
scope.resolved: false, the mixed run stops being a clean pass. It also meansscope.resolvedno longer carries the whole burden of the trigger. - Known-gap closure, headline only. The headline entry dated 2026-10-15 ("A default release-profile Rust run without headers reports
NO_CHANGE ... ACCEPTEDwhile its own warnings say the result is unconfirmed") is closed at stage 2, and section 1 of its write-up is marked closed. The alignment-noise entry dated 2026-10-15 ("Header-less runs flagexported_object_alignment_reducedon an unrelated exported static") shares that write-up, and this ADR does not fix it. It stays OPEN, and section 2 of the write-up is left as it is. Under D1, a header-less Rust run that also carries the alignment finding readsUNCONFIRMED, and that finding stays in the report. This ADR does not suppress it. - Traceability.
docs/contribute/adr/adr-surface-registry.yamlgets agapentry for this ADR, following ADR-079 and ADR-083, because nothing is shipped yet.
Alternatives considered¶
-
Keep as-is and record it as a known gap. This is the status quo: the 2026-10-15 Rust entry already exists and is OPEN, and the defect is still reproducible. A known-gap entry records the defect; it does not stop the label or the exit from asserting a clean result. It also leaves the rule in
AGENTS.mdviolated on the default path, which the brief and this repository's own rule both forbid. Rejected. -
Change only the text label. For example
NO_CHANGE (unconfirmed), or keep the enum and only reword the warning. The JSONverdict,run_outcome.compatibility,release_recommendation.version_bump: "none", SARIF level, Action outputs, and the gate all still read clean. The stripped run already prints two warnings that say "unconfirmed" besideNO_CHANGE ... ACCEPTED, and that did not prevent the reading the maintainer reported. Rejected. -
Make
assurance.require_completedefault true. This is the strongest alternative on exit, and it does catch the mixed run, because that run ispartial. Its problems are these. It flips the exit on everypartialrun, andpartialhas about a dozen causes unrelated to type-level evidence (asymmetric L0 context, graph degradation, unaccounted exports, contract-coverage partiality, and others). It keeps the headlineNO_CHANGEon a run where the verdict is still asserted clean, so the label remains the defect. It also leaves the opt-in shape in place and only changes its default. Rejected as the primary fix. Its breadth should be measured before it is ever proposed again, because the number of runs it would newly fail is unknown here. -
Trigger only on "public surface unresolved" (the brief's conjunct, minus type-level evidence). This is simpler, and it is what
scope.resolvedalready encodes. It misses the mixed run, which readsCOMPATIBLE/0 with a resolved scope and an unreported enum removal. Rejected in favour of D1's disjunction on type-level evidence. -
A new exit code for
UNCONFIRMED. The exit-code table is a public contract (docs/reference/exit-codes.md), and1already carries "could not be closed on the evidence". A new code would break every consumer that switches on the existing set. Rejected. -
A separate
compatibility_outcomefield, leavingverdictas is. Considered above in D2. A field that consumers ignore is what let the headline and the gate disagree. Rejected.
Test matrix¶
The test matrix is the proof this ADR asks for. Its oracle is not the implementation's own helper. The oracle is: (i) catalog/cases/case19_enum_member_removed as ground truth (enum_member_removed is BREAKING, exit 4, when type-level evidence is present on both sides); (ii) the rule "a triggered comparison must never read NO_CHANGE, COMPATIBLE or COMPATIBLE_WITH_RISK with exit 0 in any surface"; and (iii) the identical-pair exemption, which is decided by the operands' hashes and the effective input configuration recorded per side, not by the implementation under test.
Dimensions: stripped (strip --strip-debug) versus unstripped (-g), per side (both, and the mixed cases in both orientations); the type-level backend per side (DWARF, PDB, BTF, CTF, headers, or none); headers none versus per-side -H; C versus C++; live versus stored (dump then compare); gcc and clang. Plus release fan-out with one stripped member, and identical-input cases.
| # | Operands | Headers | Language | Live / stored | Expected after implementation | Observed today |
|---|---|---|---|---|---|---|
| 1 | unstripped both | none | C | live | BREAKING / 4 | BREAKING / 4 (verified) |
| 2 | unstripped both | none | C | stored | BREAKING / 4 | BREAKING / 4 (verified) |
| 3 | stripped both | none | C | live | UNCONFIRMED / 1 | NO_CHANGE / 0 (verified) |
| 4 | stripped both | none | C | stored | UNCONFIRMED / 1 | NO_CHANGE / 0 (verified) |
| 5 | stripped both | per-side | C | live | BREAKING / 4 (not UNCONFIRMED: headers present both sides) | BREAKING / 4, aa complete (verified) |
| 6 | unstripped both | per-side | C | live | BREAKING / 4 | BREAKING / 4 (verified) |
| 7 | old unstripped, new stripped | none | C | live | UNCONFIRMED / 1 (verdict is COMPATIBLE today) |
COMPATIBLE / 0, enum removal not reported (verified) |
| 8 | old stripped, new unstripped | none | C | live | UNCONFIRMED / 1 | not run |
| 9 | old stripped (no headers), new stripped with -H on the new side only |
C | live | UNCONFIRMED / 1 if no change is observed. For case 19 the old side cannot show Status::FOO, so the removal is not observed and the result is UNCONFIRMED / 1. BREAKING if a change is observed through the evidence both sides have |
not run | |
| 10 | stripped both, byte-identical, no headers or debug artifacts on either side | none | C | live | NO_CHANGE / 0 (exempt by D1(c): identical inputs) | not run |
| 11 | stripped both | none | C++ | live and stored | UNCONFIRMED / 1 | not run |
| 12 | stripped both | per-side | C++ | live | BREAKING where the change is header-visible | not run |
| 13 | rows 1–9 and 16–21 | — | clang | live and stored | same as gcc | not run |
| 14 | release directory, one stripped member | none | C | release fan-out | release exit = max of member contributions; the member reads UNCONFIRMED | not run |
| 15 | default cargo build --release cdylib with a return-type change |
none | Rust | live | BREAKING if observed, otherwise UNCONFIRMED / 1 (closes the headline portion of the 2026-10-15 gap; the alignment-noise portion is not covered) | NO_CHANGE / 0 (documented in the known-gap write-up, not re-run here) |
| 16 | old unstripped (-g), new stripped with -H on the new side only |
C | live | Not triggered: both sides have type-level evidence. Negative control. BREAKING / 4 for case 19 (the removal is seen through the old side's DWARF); never UNCONFIRMED | not run | |
| 17 | stripped both, byte-identical, -H on the new side only |
C | live | UNCONFIRMED / 1 when no change is observed. The effective inputs differ, so D1(c) does not exempt the pair. An observed break stays BREAKING per D1(a) | not run | |
| 18 | headerless PE, PDB layouts on both sides, a struct layout change | C | live | Not UNCONFIRMED: PDB gives type-level evidence on both sides. Negative control. BREAKING / 4 where the layout change is observed through the PDBs | not run | |
| 19 | headerless PE, PDB on the new side only, no change observed | C | live | UNCONFIRMED / 1 (the old side has no type-level evidence) | not run | |
| 20 | ELF stripped of DWARF with a .BTF section on both sides, a struct layout change |
C | live | Not UNCONFIRMED: BTF gives type-level evidence on both sides. Negative control. BREAKING / 4 where the layout change is observed through BTF | not run | |
| 21 | ELF stripped of DWARF with a .ctf or .SUNW_ctf section on both sides, a struct layout change |
C | live | Same as row 20, through CTF | not run |
Assertions required across every surface in the Surfaces list, not only the CLI: the JSON verdict, run_outcome.compatibility, exit.code, release_recommendation.version_bump; the SARIF and JUnit output; the Markdown and HTML headline; the Action outputs; the typed CompareRequest result; the aggregate roll-up. Each must agree with the others for a given cell. A NO_CHANGE or COMPATIBLE with exit 0 on any row where D1's trigger holds fails the matrix.
Negative controls: rows 1, 2, 5, 6, 16, 18 and 20 must not be UNCONFIRMED and must keep their observed verdict and exit. Any change on those rows is over-triggering.
Per the repository's bug-class rule, the regression test exercises the invariant with more than the reported input: at least the rows above plus a generated set of stripped-versus-unstripped pairs, against the oracle, not against the trigger helper.
Maintainer decisions (2026-11-08)¶
Accepted by the maintainer on 2026-11-08, with these answers to the seven open questions below. They override the Decision section where the two differ.
- Trigger breadth.
COMPATIBLE_WITH_RISKis included, as D1(a) is written. - Verdict enum versus compatibility field.
UNCONFIRMEDis part of the report's compatibility vocabulary only: the JSONverdict,run_outcome.compatibility, every headline. It is not aVerdictmember, so the*_KINDSsets andDiffResult.verdict(the observed, change-derived verdict) are unchanged. The observed verdict is kept in the report'sunconfirmed.observed_verdict. - Stored-snapshot decidability. D1(b) is decided from the facts snapshots already carry: debug-info evidence (
model/debug_evidence.py; BTF, CTF and PDB reduce to it) andfrom_headers. A stored snapshot that lacks the fact reads it at its absent default, so it can only read as no evidence (UNCONFIRMED), never as clean. Per-backend provenance is not recorded; it would only change message wording. The stored route is tested before the live one (tests/test_unconfirmed_compatibility.py::test_stored_stripped_snapshot_lacks_type_evidence, then end to end intests/test_unconfirmed_compatibility_matrix.py::test_stored_snapshots_read_the_same_as_live). - Stage 1 label change. Label and exit ship together in one release. There is no exit-0 stage.
assurance.unconfirmed: warnis the opt-out. The changelog fragment marks the behaviour change, anddocs/reference/exit-codes.mdcarries the migration note. - SARIF level.
warning. It is emitted as atoolExecutionNotificationsentry (the channel ADR-049 uses for contract coverage), not as aresults[]finding. - Blast radius. Measured as part of the implementation; recorded under "Measured blast radius" below. Not blocking.
- Vision wording. Confirmed: "stripped binaries are first-class inputs" is about admission, not about the clean claim.
Implementation (2026-11-08)¶
Shipped in one change, label and exit together (answer 4). What each part of the Decision became:
- The fact (D1(b)).
abicheck/model/type_evidence.pyrecords, per side, whether it carried type-level evidence: debug info (model/debug_evidence.py, which BTF, CTF and PDB already reduce to) orfrom_headers. A snapshot with no binary metadata at all is a model surface, not a binary operand, and counts as carrying it, the readingconfidence._detect_evidence_tiersalready gives it.workflows/analysis_assurance_attach.attach_type_evidencestamps it onDiffResult.type_evidenceon both pairwise entry points (checker.compareandcompare_classify), so the typed API, the scalar CLI, release members and stored bundle members all carry it. - The exemption (D1(c)). Decided only when both sides lack the evidence: byte-identical binaries (
LibraryMetadata.sha256), or, with no binary hashes, identical persisted snapshot content (storage.snapshot_encode.same_persisted_content). A one-sided gap is never exempt, whatever the bytes. A type-only C change built without-gcompiles to byte-identical libraries; such a pair is exempt, correctly, because the artifacts carry no trace of the change. - The trigger and outcome (D1, D2).
abicheck/policy/unconfirmed_compatibility.pyownsis_unconfirmed, the report value (report_compatibility), the JSONunconfirmedblock and the exit contribution.DiffResult.verdictand theVerdictenum are unchanged (answer 2). A--no-baselineaudit compares nothing and is never triggered. - The exit (D3).
ExitDecision.unconfirmed_contributionandExitReason.UNCONFIRMED_COMPATIBILITY("unconfirmed_compatibility"), folded withmaxinresolve_compare_exit_decision, the release resolver (release_unconfirmed_contribution,maxover members, the ADR-071 shape) andabicheck aggregate(per-targetunconfirmed_exit, aggregate schema 1.12). - Opt-out (D4).
.abicheck.ymlassurance.unconfirmed: fail | warn,--set assurance.unconfirmed=warn, and the typedCompareRequest.unconfirmed. The resolved mode is stored onDiffResult.unconfirmed_mode(likepolicy/policy_file), so every exit derivation of one result reads the same mode; a release hands it to every member throughReleaseMemberCompareRequest. - Surfaces. Report schema 7.4:
verdictandrun_outcome.compatibilitygainUNCONFIRMED, the top-levelunconfirmedblock,exit.unconfirmed_contribution, andrelease_recommendation.version_bump: "undetermined"(statereview). Terminal, Markdown and HTML headlines sayUNCONFIRMED(the terminal gate word follows the exit:REJECTED (exit 1)). SARIF:invocations[0].exitCodefolds the axis,abiVerdictisUNCONFIRMED, and awarning-leveltoolExecutionNotificationsentry carries the block (answer 5). JUnit: anabicheck.unconfirmed_compatibility.<library>suite with one<failure>underfail. Release members reportUNCONFIRMEDas theirverdict, ranked above every claim and below every observed break. The GitHub Action publishesverdict: UNCONFIRMED(exit 1 underfail; still published at exit 0 underwarn). -
Remedy wording (D5).
UNCONFIRMED_REMEDY, used by the JSON block, SARIF, JUnit and the release recommendation. When headers were supplied for a lacking side but header scoping fell back to the export table (PE/Mach-Oscope_fallback, e.g.mangling-fallback: no header declaration matched an export, so the parsed surface was not kept), the fact recordsheader_scope_fallback, the block carries it, and every surface says the headers were supplied but scoping fell back, withHEADER_SCOPE_FALLBACK_REMEDYin place of asking for headers again. Since #1967 a live PE/Mach-O dump keeps the parsed header surface when no declaration binds to an export (export-binding-unresolved), so that side has type-level evidence; the wording applies to stored snapshots dumped before that fix (legacymangling-fallback), whose header surface was dropped. -
An explicit
--depth binaryis not exempt. The projection to binary depth drops the header evidence by request, so the claim that remains has no type-level evidence behind it and readsUNCONFIRMED;assurance.unconfirmed: warnaccepts it. D1 states no depth carve-out, and a pinned depth that discards evidence is exactly the case D1 exists for. - Stored
BundleFactsroute. Its exit was resolved without the member entries, so every member axis was dropped there; it now folds them like the live fan-out, and its reported verdict folds each member's report value.assurance.unconfirmedreaches its member diffs from.abicheck.yml. - Repeated-call budget. Reading each side's evidence once per comparison adds two
debug_info_evidencecalls per compare beyond the confidence pass's own; the repeat baseline (tests/perf_repeat_baseline.json) was re-recorded for that, and the second attach of one comparison reuses the first's per-side answers.
Not done here, recorded rather than claimed:
compare --no-baseline(audit mode) is out of scope: it states no compatibility claim to narrow.- Per-backend provenance (DWARF vs BTF vs CTF vs PDB) is not recorded; only message wording would use it (answer 3).
- Matrix rows 13 (clang), 15 (Rust cdylib), 18-21 (PE/PDB, BTF, CTF) were not run here: no clang-built pair, cargo, MSVC or BTF/CTF toolchain was exercised. Their trigger reduces to the same
debug_info_evidencefact the DWARF rows test.
Measured blast radius (answer 6)¶
Measured on this implementation over catalog/cases/ (232 cases). 149 cases build as a plain v1/v2 single-source pair with gcc/g++ -shared -fPIC -g -O0. The other 83 need their own CMake setup or a multi-file build and were skipped. Each built case was compared through the CLI under four configurations: -g without headers, -g then strip without headers, stripped with per-side headers, and -g with per-side headers. That is 568 runs in total; the header configurations need both v1.h and v2.h, which 135 cases have. A run "newly exits 1" when every other exit contribution is 0, so it exited 0 before.
| Configuration | Runs | Newly exit 1 under D1 | Newly exit 1 under require_complete: true |
|---|---|---|---|
-g, no headers |
149 | 2 | 20 |
| stripped, no headers | 149 | 107 | 107 |
| stripped, per-side headers | 135 | 0 | 6 |
-g, per-side headers |
135 | 0 | 6 |
| Total | 568 | 109 | 139 |
Every one of the 109 D1 runs is also a require_complete run, so D1 is a strict subset: it newly fails 30 fewer runs, all of them partial for reasons unrelated to type-level evidence. The 107 stripped runs had observed verdicts NO_CHANGE (82), COMPATIBLE (18) and COMPATIBLE_WITH_RISK (7). The two -g runs are case224/case226 (header-only templates): the .so carries debug sections, but debug-info collection records none, and the API lives entirely in the header that was not passed, so UNCONFIRMED is the correct reading there. No run with headers on both sides was triggered. The measuring script is not committed; the per-row numbers came from the report's own exit block and analysis_assurance.status.
Amendment (2026-11-09): a stored dump records its binary's SHA-256¶
Problem. D1(c) exempts a pair whose two binaries have equal SHA-256. As implemented, only a live operand had a hash (LibraryMetadata.sha256): a stored dump recorded none. So a stored dump of a binary, compared with that same binary live, could never be proven one input, and a header-less, debug-less pair of them read UNCONFIRMED (exit 1) although nothing differs. Two stored dumps of one binary fell back to the evidence identity digest, which also counts the library name, so two dumps of one binary under different file names were not proven identical either.
Decision. A dump of a binary file records the SHA-256 of the binary's bytes, hashed through a GNU ld linker script to its final target exactly as a live operand is (resolve_input, which abicheck dump, the typed dump API and release members reach, and the Tier-1 run_dump). A release member's degraded ELF-only capture, taken after its extraction failed, records none on purpose: it is not the same comparison input as a full dump of the binary. It is the binary section's optional extension fact abicheck.binary_sha256 (ADR-062 D19: an older reader that ignores it gives the conservative answer, so no SCHEMA_VERSION bump). D1(c) then reads each side's identity as its live operand's hash, or else the hash its stored dump recorded:
- equal hashes prove the pair identical on every route: stored vs live, live vs stored, stored vs stored;
- with a live side, nothing else proves it: different hashes, or a stored dump that recorded none (written before extractor generation 51), leave the pair
UNCONFIRMED; - with neither side live, when the hashes do not prove it (one is missing, or they differ), the evidence identity digest decides, as before. A recorded hash therefore only adds exemptions; it never removes one a stored pair had (two dumps of a same-name rebuild whose extracted facts agree stay
NO_CHANGE). The recorded hash is capture, not evidence (likebuild_id): it never enters that digest (extension_fact_catalog.VOLATILE_CAPTURE_FACTS), so an older and a newer dump of one binary keep one evidence identity, and two rebuilds with equal extracted facts keep one package evidence digest.
Against a live binary, equal SHA-256 is the whole test. A rebuild whose only difference is an embedded timestamp (a PE TimeDateStamp) has different bytes and, compared with a live side, is not exempt: D1(c) proves identity from the artifacts, and two different artifacts do not prove it even when no extracted fact differs. Two stored dumps of such a rebuild keep the answer the evidence digest gave them before this amendment (NO_CHANGE when the name and every extracted fact agree); tightening that is a separate decision, not part of this change. An exempt pair whose stored side was dumped by an older extractor can still observe a difference that is extractor drift, not a change; its binaries are the same bytes, so no type-level change can hide behind it, and the exemption holds.
Implementation. AbiSnapshot.binary_sha256 (model/snapshot.py), the BINARY_SHA256 fact (storage/extension_fact_catalog.py, written and restored by storage/extension_facts.py; an undecodable stored value reads as unknown, the conservative answer), computed by extract.binary_identity.binary_sha256 (the one helper a live operand's collect_metadata hash also uses, through the memoized cache_input_digest.file_digest), stamped at input_resolution.resolve_input's finishing step and in the run_dump wrapper, and read by attach_type_evidence and by confidence.note_if_same_binary_compared, whose same-binary note fires on equal recorded hashes as it does on equal live ones. Extractor generation 51 (the frozen generation-50 corpus is tests/fixtures/generations/gen50/) and extraction-cache salt 45, so no warm entry is served without the fact. Tests: tests/test_unconfirmed_binary_identity.py (PE and ELF cells: stored vs live, live vs stored, stored vs stored, one byte changed, a PE TimeDateStamp-only rebuild (live, and a same-name stored pair that keeps NO_CHANGE), an older dump without the fact against a live binary and against a newer dump, a linker script; a FIFO operand carrying no identity; the Tier-1 dump; the evidence digest's independence of the hash).
Open questions for maintainers (answered above)¶
- Trigger breadth. D1 includes
COMPATIBLE_WITH_RISK. Should risk-only results on a debug-less side beUNCONFIRMED, or should onlyNO_CHANGEandCOMPATIBLEbe triggered? Including it is the rule as written; excluding it is narrower and would still leave the case-19 defect fixed. - Verdict enum versus compatibility field. D2 adds
UNCONFIRMEDto the report's verdict vocabulary. The change-kindVerdictenum stays unchanged. Confirm this split is acceptable to the*_KINDSderivation and to ADR-042. - Stored-snapshot decidability. D1(b) must be decidable from a stored snapshot. The stored stripped run is
partialandelf_only, so the fact is at least partly recorded. It has not been confirmed which snapshot field records per-side type-level evidence from each backend (DWARF, PDB, BTF, CTF, headers).abicheck/confidence.pycollapses these to thehas_dwarf,has_dwarf_advancedandhas_headersbooleans, so per-backend provenance may not be stored. The implementation must check that before stage 1. - Stage 1 label change. Should the label ship with exit 0 for one release (as proposed), or should label and exit move together? The first is gentler; the second is one fewer release of a known-wrong label.
- SARIF level. What SARIF
leveland notification shape doesUNCONFIRMEDtake? Usingnotewould repeat the clean-looking mistake;warningis proposed. - Blast radius of
require_complete. Measure how many currentpartialruns (across the catalog and the test corpus) would newly exit 1 under the alternative in Alternatives 3, so that the trade-off is recorded with numbers rather than by argument. - Vision wording. Confirm the reading in Consequences that "first-class, even stripped" concerns admission, not the clean claim.
Verification of this ADR¶
What was run for this proposal: the reproduction above, on this checkout, with the commands and outputs quoted. The matrix rows marked "verified" were run; the rest are proposals for the implementation to measure. Not run: C++, clang, the GitHub Action, macOS and Windows, release fan-out, and the Rust default-build case. These are the implementation's test matrix, not claims made here.
No **Verified:** receipt is attached: that receipt is anchored to a commit on main, and this ADR is a proposal on a branch.