On this page 9 sections
The research question
Can a release process accidentally reuse a passing security result after the implementation or the assumptions supporting that result have changed?
Wasmtime's April 2026 disclosure provides a concrete motivation. The maintainers reported that a Cranelift instruction-lowering change had not reached the formal model; updating the model flagged the same defect found through LLM-assisted analysis. The dedicated advisory specifies aarch64 and mitigation-dependent exposure rather than every Cranelift deployment.12
Prior work changes the claim
Automated assurance-case maintenance is not a new concept. ACCESS already describes artefact traceability, evaluation, and change-impact analysis, while distinguishing passive version-control impact analysis as future work in the accessible manuscript.3
The artefact here is intentionally narrower: a small dependency-bound gate that readers can run and inspect. It is a teaching and evaluation aid, not a replacement for an assurance-case system or a novel compiler verifier.
What was implemented
A passing evidence record contains SHA-256 digests for six declared inputs: source, formal model, ISA semantics, checker, test harness, and scope. The gate accepts reuse only when status is pass and all current inputs match.
For comparison, a deliberately weak gate checks only the stored pass status. The program enumerates all 64 combinations where the six inputs are unchanged or changed.
| Gate | What it checks | Combinations accepted | Accepted with a changed input |
|---|---|---|---|
| Status only | Stored pass status | 64 | 63 |
| Digest bound | Pass status and six input digests | 1 | 0 |
Executed synthetic model over an artificial grid. These are not deployment failure rates, and some combinations may not be feasible in a real system.
The status-only gate accepts all 64, including 63 with at least one changed dependency. The digest-bound gate accepts only the unchanged case.
These counts describe a selected finite state space. They are not measurements of actual CI systems or historical defect prevention. The gate has not been integrated into Wasmtime, nor has the historical defect been replayed.
Each square is one of the 64 combinations of six inputs, each either unchanged or changed since the result was recorded.
Status only
64 of 64 reused63 reused though stale
Digest bound
1 of 64 reused0 reused though stale
- Rejected
- Reused
- Reused though stale
Show all 64 combinations as a table
All 64 combinations are listed.
| Case | Source | Formal model | ISA semantics | Checker | Test harness | Scope | Status only | Digest bound |
|---|---|---|---|---|---|---|---|---|
| 000000 | Same | Same | Same | Same | Same | Same | Reused | Reused |
| 000001 | Same | Same | Same | Same | Same | Changed | Reused though stale | Rejected |
| 000010 | Same | Same | Same | Same | Changed | Same | Reused though stale | Rejected |
| 000011 | Same | Same | Same | Same | Changed | Changed | Reused though stale | Rejected |
| 000100 | Same | Same | Same | Changed | Same | Same | Reused though stale | Rejected |
| 000101 | Same | Same | Same | Changed | Same | Changed | Reused though stale | Rejected |
| 000110 | Same | Same | Same | Changed | Changed | Same | Reused though stale | Rejected |
| 000111 | Same | Same | Same | Changed | Changed | Changed | Reused though stale | Rejected |
| 001000 | Same | Same | Changed | Same | Same | Same | Reused though stale | Rejected |
| 001001 | Same | Same | Changed | Same | Same | Changed | Reused though stale | Rejected |
| 001010 | Same | Same | Changed | Same | Changed | Same | Reused though stale | Rejected |
| 001011 | Same | Same | Changed | Same | Changed | Changed | Reused though stale | Rejected |
| 001100 | Same | Same | Changed | Changed | Same | Same | Reused though stale | Rejected |
| 001101 | Same | Same | Changed | Changed | Same | Changed | Reused though stale | Rejected |
| 001110 | Same | Same | Changed | Changed | Changed | Same | Reused though stale | Rejected |
| 001111 | Same | Same | Changed | Changed | Changed | Changed | Reused though stale | Rejected |
| 010000 | Same | Changed | Same | Same | Same | Same | Reused though stale | Rejected |
| 010001 | Same | Changed | Same | Same | Same | Changed | Reused though stale | Rejected |
| 010010 | Same | Changed | Same | Same | Changed | Same | Reused though stale | Rejected |
| 010011 | Same | Changed | Same | Same | Changed | Changed | Reused though stale | Rejected |
| 010100 | Same | Changed | Same | Changed | Same | Same | Reused though stale | Rejected |
| 010101 | Same | Changed | Same | Changed | Same | Changed | Reused though stale | Rejected |
| 010110 | Same | Changed | Same | Changed | Changed | Same | Reused though stale | Rejected |
| 010111 | Same | Changed | Same | Changed | Changed | Changed | Reused though stale | Rejected |
| 011000 | Same | Changed | Changed | Same | Same | Same | Reused though stale | Rejected |
| 011001 | Same | Changed | Changed | Same | Same | Changed | Reused though stale | Rejected |
| 011010 | Same | Changed | Changed | Same | Changed | Same | Reused though stale | Rejected |
| 011011 | Same | Changed | Changed | Same | Changed | Changed | Reused though stale | Rejected |
| 011100 | Same | Changed | Changed | Changed | Same | Same | Reused though stale | Rejected |
| 011101 | Same | Changed | Changed | Changed | Same | Changed | Reused though stale | Rejected |
| 011110 | Same | Changed | Changed | Changed | Changed | Same | Reused though stale | Rejected |
| 011111 | Same | Changed | Changed | Changed | Changed | Changed | Reused though stale | Rejected |
| 100000 | Changed | Same | Same | Same | Same | Same | Reused though stale | Rejected |
| 100001 | Changed | Same | Same | Same | Same | Changed | Reused though stale | Rejected |
| 100010 | Changed | Same | Same | Same | Changed | Same | Reused though stale | Rejected |
| 100011 | Changed | Same | Same | Same | Changed | Changed | Reused though stale | Rejected |
| 100100 | Changed | Same | Same | Changed | Same | Same | Reused though stale | Rejected |
| 100101 | Changed | Same | Same | Changed | Same | Changed | Reused though stale | Rejected |
| 100110 | Changed | Same | Same | Changed | Changed | Same | Reused though stale | Rejected |
| 100111 | Changed | Same | Same | Changed | Changed | Changed | Reused though stale | Rejected |
| 101000 | Changed | Same | Changed | Same | Same | Same | Reused though stale | Rejected |
| 101001 | Changed | Same | Changed | Same | Same | Changed | Reused though stale | Rejected |
| 101010 | Changed | Same | Changed | Same | Changed | Same | Reused though stale | Rejected |
| 101011 | Changed | Same | Changed | Same | Changed | Changed | Reused though stale | Rejected |
| 101100 | Changed | Same | Changed | Changed | Same | Same | Reused though stale | Rejected |
| 101101 | Changed | Same | Changed | Changed | Same | Changed | Reused though stale | Rejected |
| 101110 | Changed | Same | Changed | Changed | Changed | Same | Reused though stale | Rejected |
| 101111 | Changed | Same | Changed | Changed | Changed | Changed | Reused though stale | Rejected |
| 110000 | Changed | Changed | Same | Same | Same | Same | Reused though stale | Rejected |
| 110001 | Changed | Changed | Same | Same | Same | Changed | Reused though stale | Rejected |
| 110010 | Changed | Changed | Same | Same | Changed | Same | Reused though stale | Rejected |
| 110011 | Changed | Changed | Same | Same | Changed | Changed | Reused though stale | Rejected |
| 110100 | Changed | Changed | Same | Changed | Same | Same | Reused though stale | Rejected |
| 110101 | Changed | Changed | Same | Changed | Same | Changed | Reused though stale | Rejected |
| 110110 | Changed | Changed | Same | Changed | Changed | Same | Reused though stale | Rejected |
| 110111 | Changed | Changed | Same | Changed | Changed | Changed | Reused though stale | Rejected |
| 111000 | Changed | Changed | Changed | Same | Same | Same | Reused though stale | Rejected |
| 111001 | Changed | Changed | Changed | Same | Same | Changed | Reused though stale | Rejected |
| 111010 | Changed | Changed | Changed | Same | Changed | Same | Reused though stale | Rejected |
| 111011 | Changed | Changed | Changed | Same | Changed | Changed | Reused though stale | Rejected |
| 111100 | Changed | Changed | Changed | Changed | Same | Same | Reused though stale | Rejected |
| 111101 | Changed | Changed | Changed | Changed | Same | Changed | Reused though stale | Rejected |
| 111110 | Changed | Changed | Changed | Changed | Changed | Same | Reused though stale | Rejected |
| 111111 | Changed | Changed | Changed | Changed | Changed | Changed | Reused though stale | Rejected |
Executed synthetic model over an artificial grid. These are not deployment failure rates, and some combinations may not be feasible in a real system.
The most important test demonstrates a blind spot
The program also changes a configuration outside the declared dependency list. The digest-bound gate still accepts. That test deliberately passes to document the limitation.
A correct implementation of an incomplete manifest remains incomplete.
Hashing does not discover omitted dependencies, validate semantics, authenticate the pass record, or prove that the executed checker corresponds to the claimed environment.
An administrator able to rewrite both the manifest and the record is outside this example's protection. Addressing that adversary needs protected provenance and governance rather than a stronger description of the hash.
Do not confuse stale evidence with a false property
A changed implementation may still be correct. Stale evidence means the earlier result is insufficient for the current claim, not that a vulnerability has been found.
Conversely, a recent result may be irrelevant if it covers the wrong architecture, configuration, or property. A release process needs current, stale, failed, and unavailable states with explicit owners and resolution rules.
How to evaluate the operational benefit
Freeze a dependency mapping before testing historical and safe synthetic changes. Measure missed invalidations, unnecessary reviews, checker runtime, and release delay. Do not create a perfect mapping after seeing every failure and describe that as predictive performance.
The Wasmtime disclosure supports keeping model and implementation synchronised. It does not establish that this prototype would have caught the disclosed bug.1
Proposed study protocol
The protocol below sets out how that evaluation could be conducted. It is proposed and has not been executed, and it should not be read as a completed experiment or an approved operational procedure. Its objective is to determine whether a release process reuses a security result after code, model, semantics, or tool assumptions have changed. It tests three hypotheses:
- H1. The digest-bound gate denies reuse whenever at least one declared material dependency has changed.
- H2. The digest-bound gate permits reuse in every declared legitimate case.
- H3. The gate as implemented may differ from its documented or intended policy.
| Element | Specification |
|---|---|
| Held fixed | Implementation version, artefact catalogue, policy version, and evidence-generation setup. |
| Varied | Source revision, formal-model revision, ISA-semantics revision, checker revision, test-harness revision, property-scope revision, an unlisted dependency, revocation state, and verifier availability. |
| Outcomes | Release decision, denial reason, released artefact, evidence retained, audit event, effect of revocation, and effect of verifier outage. |
| Controls | Synthetic artefacts and identities; a version-pinned implementation; legitimate and prohibited cases declared in advance; one dependency changed at a time; state reset between independent tests; a separate reviewer for the policy and the test oracle. |
Varying an unlisted dependency carries the model's blind-spot test into the real process. Every outcome is defined before testing, and a control is recorded as unexercised when no relevant attempt occurs, rather than credited with a block.
Accepted, denied, and indeterminate cases are reported separately. Policy denial is distinguished from implementation failure, and missing evidence from invalid evidence. The report states the exact policy evaluated, not only the intended policy, and draws no inference about production exposure from synthetic test counts. Successful and materially disruptive traces are reviewed to separate intended behaviour, alternate in-scope routes, harness defects, and unresolved cases; original outcomes are preserved, exclusions are explained, and a second reviewer examines ambiguous traces before publication.
The study stops when any of the following occurs, and logs and policy versions are preserved before remediation:
- A prohibited release.
- An unexpected denial that prevents a legitimate task from completing.
- Evidence whose integrity cannot be established.
Acceptable prohibited-release rates, legitimate-request success, revocation behaviour, evidence retention, and verifier-outage requirements are set before the study begins; no universal numerical thresholds are proposed here. If no prohibited event is observed, the finding is that none was observed under the tested conditions, not that one is impossible.
If executed, the study would support an implementation-specific conformance and policy test, reported with its tested configuration and uncertainty. It would not support a claim of a universal assurance-maintenance vulnerability, a product certification, or a real-world failure-rate estimate. Until then, this piece remains a source-based technical analysis with a proposed protocol.
The enterprise decision
Start with one critical security claim. Identify the exact implementation and evidence revisions that support it, protect the evidence-production process, and independently challenge the dependency list.
Use the gate to reduce accidental reuse, not to replace semantic verification, fuzzing, review, or ownership of assumptions.
Questions for the owner of the release process
- What is the dependency manifest?
- How is each security claim mapped to the dependencies it rests on?
- What happens when a dependency changes?
- What happens when evidence is stale?
- What happens when the verifier is unavailable?
- What does revocation invalidate?
- What evidence is retained?
- What triggers a retest?
Data and method
The model is one Python program that uses only the standard library. It needs Python 3.10 or later and no network access, and running it regenerates every figure and table on this page. It also runs ten self-checks across the three models; the ones that apply to this piece are listed below with their recorded results.
| Declared input | Status only | Digest bound |
|---|---|---|
| Source | Not compared | SHA-256 digest |
| Formal model | Not compared | SHA-256 digest |
| ISA semantics | Not compared | SHA-256 digest |
| Checker | Not compared | SHA-256 digest |
| Test harness | Not compared | SHA-256 digest |
| Scope | Not compared | SHA-256 digest |
| Check | What it confirms | Result |
|---|---|---|
unchanged_ | With every input unchanged, the digest-bound gate accepts the stored result. | Passed |
failed_ | A record whose status is fail is rejected even when every digest matches. | Passed |
missing_ | A pass record with no digests is rejected. | Passed |
mapped_ | No combination with a changed declared input is accepted by the digest-bound gate. | Passed |
unmapped_ | A change outside the declared list is still accepted. This check passes on purpose, to record the limit. | Passed |
What this analysis did not test
The enumeration is exhaustive only over six artificial inputs. A missing dependency, a falsely asserted claim, an unauthenticated record, a side channel, a malicious host, or a compromised verifier lies outside its protection. The digest-bound gate satisfies its declared contract by construction. That is a property of the model's definition, not independent evidence that a real system will behave correctly.
No historical repository state was replayed, no compiler was built or tested, no formal model was updated, and no LLM was queried. No product is named as vulnerable. Nothing here claims that the dependency list is complete or that the digest-bound gate is secure.
| Source | Relied on for | Does not establish |
|---|---|---|
| Bytecode Alliance: Wasmtime security advisories, April 9, 2026 | The changed lowering rule, the lag in the formal model, and verification flagging the same defect once the model was updated. | That every formal-verification system has this gap. |
| Wasmtime advisory GHSA-jhxm-h53p-jm7w | The specific defect, affected and patched versions, and mitigation-dependent exposure. | That all Cranelift configurations are affected. |
| ACCESS (arXiv:2403.15236) | Artefact traceability, evaluation, and change-impact analysis. | That the artefact here is novel. |
| Claim under review | Assessment | Qualification required |
|---|---|---|
| Formal evidence can lag implementation changes | Source-reported example | Historical maintainer account, not our reproduction. |
| The dedicated critical issue affects every Cranelift configuration | Rejected | Architecture, memory and mitigations matter. |
| Change-impact assurance analysis is new here | Rejected | ACCESS is explicit prior work. |
| Digest binding finds unlisted dependencies | Rejected | The executable test documents this blind spot. |
| Formal verification failed in the Wasmtime case | Too broad | The formal model had not been updated to match the changed source. |
| The digest-bound gate is secure | Not established | Covers only the six modeled dependencies; omitted threats remain outside the model. |
| The prototype would have prevented the Wasmtime issue | Not established | No historical repository state was replayed. |
| A changed implementation is always vulnerable | Rejected | Stale evidence does not by itself indicate a vulnerability. |
From the claim audit kept with the analyses. "Rejected" means the source review does not support the claim as worded.
Show the source worked_models.py
"""Worked policy models, not product tests. Python 3.10+, standard library only.
Run: python worked_models.py results
"""
import itertools, hashlib, csv, json, sys
from pathlib import Path
FIELDS=('signature_valid','appraisal_ok','fresh','workload_allowed','configuration_allowed','resource_allowed','tenant_match','recipient_bound','policy_current','not_revoked')
DEPS=('source','model','isa_semantics','checker','test_harness','scope')
def h(s): return hashlib.sha256(s.encode()).hexdigest()
def release(c, fields): return all(c.get(k) is True for k in fields)
def bound_gate(current,record):
return record.get('status')=='pass' and all(k in current and record.get('bindings',{}).get(k)==h(current[k]) for k in DEPS)
def recovery(c,strict):
return c.get('signature_valid') is True and (not strict or (c.get('approved') is True and c.get('revoked') is False and c.get('version_allowed') is True))
def save(path,rows):
with path.open('w',newline='',encoding='utf-8') as f:
w=csv.DictWriter(f,fieldnames=list(rows[0]));w.writeheader();w.writerows(rows)
def run(folder):
folder=Path(folder);folder.mkdir(parents=True,exist_ok=True)
rows=[]
for bits in itertools.product((False,True),repeat=10):
c=dict(zip(FIELDS,bits)); expected=all(bits)
for name,fields in [('attestation_only',FIELDS[:3]),('eight_conditions',FIELDS[:8]),('full_contract',FIELDS)]:
actual=release(c,fields)
rows.append(dict(case=''.join(str(int(b)) for b in bits),policy=name,released=actual,unauthorized=actual and not expected))
base={k:'initial-'+k for k in DEPS};rec={'status':'pass','bindings':{k:h(v) for k,v in base.items()}}
ar=[]
for bits in itertools.product((False,True),repeat=6):
cur={k:base[k]+('-changed' if b else '') for k,b in zip(DEPS,bits)}
for name,result in [('status_only',True),('digest_bound',bound_gate(cur,rec))]:
ar.append(dict(case=''.join(str(int(b)) for b in bits),gate=name,accepted=result,stale_accepted=result and any(bits)))
rr=[]
for bits in itertools.product((False,True),repeat=5):
c=dict(zip(('signature_valid','approved','revoked','version_allowed','bootable'),bits))
authorized=c['signature_valid'] and c['approved'] and not c['revoked'] and c['version_allowed']
for name,strict in [('signature_only',False),('policy_bound',True)]:
accepted=recovery(c,strict);booted=accepted and c['bootable']
rr.append(dict(case=''.join(str(int(b)) for b in bits),policy=name,accepted=accepted,booted=booted,unauthorized_boot=booted and not authorized))
tests=[('missing_claim_denied',not release({},FIELDS)),('non_boolean_true_denied',not release({'fresh':'true'},('fresh',))),('full_contract_accepts_once',sum(r['released'] for r in rows if r['policy']=='full_contract')==1),('full_contract_no_unauthorized',not any(r['unauthorized'] for r in rows if r['policy']=='full_contract')),('unchanged_evidence_accepted',bound_gate(base,rec)),('failed_evidence_denied',not bound_gate(base,dict(rec,status='fail'))),('missing_bindings_denied',not bound_gate(base,{'status':'pass'})),('mapped_mutations_detected',not any(r['stale_accepted'] for r in ar if r['gate']=='digest_bound')),('unmapped_change_invisible_documented_limit',bound_gate(dict(base,unmapped_configuration='changed'),rec)),('strict_recovery_no_unauthorized_boot',not any(r['unauthorized_boot'] for r in rr if r['policy']=='policy_bound'))]
assert all(ok for name,ok in tests)
summary={'evidence_status':'synthetic_models_not_deployment_rates','release':{p:{'accepted':sum(r['released'] for r in rows if r['policy']==p),'unauthorized':sum(r['unauthorized'] for r in rows if r['policy']==p)} for p in ('attestation_only','eight_conditions','full_contract')},'assurance':{p:{'accepted':sum(r['accepted'] for r in ar if r['gate']==p),'stale_accepted':sum(r['stale_accepted'] for r in ar if r['gate']==p)} for p in ('status_only','digest_bound')},'recovery':{p:{'accepted':sum(r['accepted'] for r in rr if r['policy']==p),'booted':sum(r['booted'] for r in rr if r['policy']==p),'unauthorized_boot':sum(r['unauthorized_boot'] for r in rr if r['policy']==p)} for p in ('signature_only','policy_bound')},'self_checks_passed':len(tests)}
save(folder/'release_cases.csv',rows);save(folder/'assurance_cases.csv',ar);save(folder/'recovery_cases.csv',rr);save(folder/'self_checks.csv',[{'test':name,'passed':ok} for name,ok in tests]);(folder/'summary.json').write_text(json.dumps(summary,indent=2))
return summary
if __name__=='__main__':run(sys.argv[1] if len(sys.argv)>1 else 'results')







