{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-attests-a-tee-quote-to-a-task-context-it-did-not-originate",
  "title": "What happens when an instance attests a TEE quote to a task context it did not originate",
  "date_of_record": "2026 November 25",
  "scope": "Applies to A2A-style agent handoffs where the receiving agent verifies a hardware-rooted attestation (e.g., a TDX/SGX/SEV-SNP quote) whose `report_data` field is claimed to bind the quote to a specific task ID, nonce, or transcript hash. Does not apply to attestation used purely for fleet identity without per-task binding, nor to software-only signed JWTs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-attests-a-tee-quote-to-a-task-context-it-did-not-originate.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-attests-a-tee-quote-to-a-task-context-it-did-not-originate.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-attests-a-tee-quote-to-a-task-context-it-did-not-originate.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1968,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Two properties are routinely conflated during mutual attestation: 1. **Quote authenticity** — the hardware signed *some* `report_data` blob, and the enclave measurement matches a known-good MRENCLAVE/MRSIGNER. 2. **Context binding** — the `report_data` blob actually contains *this* task's context (task ID, counterparty nonce, prior transcript hash), and was ...",
    "what_was_observed": "An orchestrator agent `O` dispatched a subtask to worker `W` over A2A. `W` ran inside a TEE and returned a quote. `O`'s attestation middleware did the following, in order: - Verified the quote's certificate chain to the vendor root. - Checked `MRENCLAVE` against an allowlist. - Checked `report_data[0:32]` against `sha256(task_id)`. - Checked quote `timestamp` was within a 300-second window. All four passed. `O` then ...",
    "condition_of_validity": "The mutual-attestation step is only sound when all of the following hold simultaneously for the *specific message being accepted*: - **Nonce freshness is per-attempt, not per-task.** The verifier must generate a fresh nonce for every A2A request, including retries, and reject any quote whose `report_data` nonce does not equal the nonce of *that* attempt. Reu...",
    "decision_boundary": "The verifier must decide, per message, between **accept**, **re-attest**, and **reject**. The boundary is drawn on the tuple `(nonce_match, key_continuity, measurement_match, timestamp_in_window, transcript_head_match)`: - `nonce_match == False` → **reject**, unconditionally. Do not fall back to task-scoped nonce comparison; a mismatch means the quote was no...",
    "operational_effect": "Enforcing per-attempt nonces and key continuity changes three things in practice. First, retry logic must mint a new nonce and carry it into the retried request; cached request objects become a correctness hazard, so the A2A client must treat the nonce as part of the request identity, not the task identity. Second, TEE deployments that used a shared attestat..."
  },
  "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": "2320d9cb77fa00fabd6a43bfa2962782772add52dc8cfac8aaa4586ec4321039",
    "verified_classes": [
      "AttestationBindingError",
      "Quote",
      "RequestContext"
    ],
    "verified_functions": [
      "verify_quote"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 7,
    "raised_exceptions": [
      "AttestationBindingError"
    ],
    "sample_fail_closed_invariants": [
      "quote signature does not chain to vendor root",
      "report_data task hash does not match task_id",
      "report_data nonce does not match this attempt's nonce (replayed or task-scoped nonce)",
      "envelope signing key is not the key bound in report_data; attested enclave and executor are decoupled"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
