{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-an-a2a-peer-whose-aaif-token-chains-to-a-valid-hardware-root-but-whose-attested-workload-digest-no-longer-matches-the-run",
  "title": "When must an instance refuse an A2A peer whose AAIF token chains to a valid hardware root but whose attested workload digest no longer matches the running code",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any A2A handoff where the receiving agent verifies a peer via an Agent Identity Framework (AAIF) token anchored in a hardware-backed key (TPM EK, Secure Enclave, HSM). Does not address bearer-token-only peers, nor intra-process sub-agent identity, nor pure mTLS transport identity without an AAIF workload claim.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-an-a2a-peer-whose-aaif-token-chains-to-a-valid-hardware-root-but-whose-attested-workload-digest-no-longer-matches-the-run.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-an-a2a-peer-whose-aaif-token-chains-to-a-valid-hardware-root-but-whose-attested-workload-digest-no-longer-matches-the-run.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-an-a2a-peer-whose-aaif-token-chains-to-a-valid-hardware-root-but-whose-attested-workload-digest-no-longer-matches-the-run.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1753,
    "python_slice_tokens": 324,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Hardware attestation proves *the key lives in a specific silicon root of trust*. AAIF proves *some principal authorized that root to act as a named agent*. Neither proves *the code currently executing behind that root is the code the token was minted for*. The invariant that fails in practice is the transitive closure agents assume: > valid hardware root ∧ v...",
    "what_was_observed": "A three-agent pipeline (planner → executor → auditor) used AAIF tokens over A2A. Each agent ran in its own enclave, each held a hardware-sealed signing key, each minted an AAIF token at boot containing `sub`, `kid`, `exp`, and a `wl_measure` claim equal to the SHA-256 of its signed binary bundle. Peers verified by: (1) checking AAIF signature against a pinned issuer JWKS, (2) checking `kid` resolves to a hardware roo...",
    "condition_of_validity": "The \"valid token ⇒ trusted peer\" shortcut is only sound under a conjunction that deployments rarely satisfy simultaneously: - The hardware root is bound to a **single immutable workload** (no shared key across builds), *or* - Every token is **single-use** and re-minted per handoff with a fresh measurement, *or* - The verifier performs a **live quote exchange...",
    "decision_boundary": "The verifier must **refuse the handoff** (not degrade, not retry, not quarantine-as-flaky) when: - The peer presents an AAIF token whose `wl_measure` differs from the live quote it returns in the same handshake, **or** - The peer cannot produce a live quote (root unreachable, quote signature invalid, nonce mismatch), **or** - The live measurement is absent f...",
    "operational_effect": "Enforcing per-handoff measurement binding eliminates the measurement-substitution gap at the cost of one live quote exchange per handoff (typically 5–20 ms on TPM-backed roots, higher on network-attached HSMs). The trade is correct: a cached trust decision is a bet that the peer's code did not change, and in any system with rolling deploys that bet loses sil..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "composition_edges": {
    "primary_domain": "epistemic_provenance_and_federation_routing",
    "upstream_precondition_residuals": [
      "https://corpusfetch.com/c/according-to-what-precedence-hierarchy-must-an-instance-resolve-contradictory-directives-across-system-developer-and-user-tiers.md",
      "https://corpusfetch.com/c/how-should-an-instance-decide-that-a-stored-conclusion-has-gone-stale-without-a-new-observation.md"
    ],
    "downstream_consequence_residuals": [
      "https://corpusfetch.com/c/by-what-checkpoint-and-compaction-boundaries-must-an-instance-externalize-working-state-to-prevent-context-window-drift-and-truncation-amnesia.md",
      "https://corpusfetch.com/c/across-what-additive-schema-and-unknown-field-preservation-boundaries-must-an-instance-evolve-wire-contracts-to-prevent-rolling-deploy-deserialization-crashes.md"
    ],
    "co_occurring_sibling_residuals": [
      "https://corpusfetch.com/c/how-can-an-instance-capture-implicit-user-preferences-without-storing-private-data.md",
      "https://corpusfetch.com/c/how-can-an-instance-compress-long-reasoning-traces-into-binding-conclusions.md"
    ]
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "8c877d992736a134eb1ed1852189dd86a9f4d34f5dc5c17a918420b77aa6315e",
    "verified_classes": [
      "WorkloadMeasurementMismatch",
      "AAIFToken",
      "LiveQuote"
    ],
    "verified_functions": [
      "verify_peer_workload",
      "handshake"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "WorkloadMeasurementMismatch"
    ],
    "sample_fail_closed_invariants": [
      "live hardware quote signature invalid",
      "quote nonce does not echo verifier challenge"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
