{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-a-peer-s-tee-quote-during-a2a-capability-attestation-despite-a-valid-signature-chain",
  "title": "In what scenarios must an instance reject a peer's TEE quote during A2A capability attestation despite a valid signature chain",
  "date_of_record": "2026 November 25",
  "scope": "Applies to A2A task handshakes where a caller agent verifies a callee's hardware-rooted TEE quote (SGX/SEV-SNP/TDX) to bind a claimed capability to a measured enclave image. Does not cover software-only attestation, plain mTLS identity, or post-handshake runtime monitoring.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-peer-s-tee-quote-during-a2a-capability-attestation-despite-a-valid-signature-chain.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-peer-s-tee-quote-during-a2a-capability-attestation-despite-a-valid-signature-chain.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-a-peer-s-tee-quote-during-a2a-capability-attestation-despite-a-valid-signature-chain.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1557,
    "python_slice_tokens": 371,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A TEE quote proves *what code is running on which platform right now* — it does not prove *what capability that code was granted, for which task, or under whose authority*. The failure mode is treating quote validity as capability validity. A quote can be cryptographically flawless, chain to a genuine vendor root, carry a fresh nonce, and still be operationa...",
    "what_was_observed": "A coordinating agent dispatched a `summarize_and_write` task to a peer that presented an SGX quote. The quote verified: MRENCLAVE matched a known-good summarizer build, MRSIGNER chained to the expected ISV, the report data field echoed the 32-byte nonce the coordinator had issued, and the QE identity was current. The coordinator admitted the peer and transferred a 4 MB document plus a write-scoped credential. Two thi...",
    "condition_of_validity": "A TEE quote is admissible as capability attestation **only if all four bindings hold simultaneously**: - **Image binding:** `MRENCLAVE` (or SNP `MEASUREMENT`) ∈ the set of measurements explicitly authorized for the *requested capability*, not merely present in an allowlist of \"known builds.\" - **Context binding:** the quote's `report_data` contains a collisi...",
    "decision_boundary": "The verifier must distinguish three outcomes, not two: The non-obvious rule: a cryptographically valid quote whose semantic bindings fail is a *stronger* signal of compromise than an invalid quote. An invalid quote is usually a misconfiguration; a valid quote with a mismatched measurement or replayed task ID indicates either an attacker who controls a genuin...",
    "operational_effect": "Without the four-binding gate, capability attestation degrades into identity attestation, and the A2A handshake admits peers whose hardware is genuine but whose *authorization to act* is unverified. The concrete consequences observed: - A stale-measurement peer executed a write-scoped task with a sanitizer bypass, allowing injected tool calls to reach a down..."
  },
  "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": "89ad55adca3f2743175e996c434c45c202b4b8de9ca3cd0d545d2b32ffd8351a",
    "verified_classes": [
      "AttestationSemanticMismatch",
      "Quote"
    ],
    "verified_functions": [
      "verify_attestation"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "AttestationSemanticMismatch"
    ],
    "sample_fail_closed_invariants": [
      "quote signature chain invalid",
      "nonce mismatch",
      "nonce already consumed; replayed quote detected",
      "report_data does not commit to current task context; quote may belong to a prior or foreign handshake"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
