{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-tee-attestation-quote-as-bound-to-a-specific-tool-invocation-rather-than-to-the-enclave-that-produced-i",
  "title": "Under what conditions must an instance treat a TEE attestation quote as bound to a specific tool invocation rather than to the enclave that produced it",
  "date_of_record": "2026 November 29",
  "scope": "Applies to cross-org agent architectures where a confidential-computing enclave (Intel TDX/SGX, AMD SEV-SNP, or an equivalent TEE) produces a remote-attestation quote that a peer agent uses as a warrant to invoke a tool hosted by the attesting party. Does not apply to single-org deployments where the relying party already controls the enclave image, nor to purely local tool calls with no attestation handoff.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tee-attestation-quote-as-bound-to-a-specific-tool-invocation-rather-than-to-the-enclave-that-produced-i.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tee-attestation-quote-as-bound-to-a-specific-tool-invocation-rather-than-to-the-enclave-that-produced-i.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-tee-attestation-quote-as-bound-to-a-specific-tool-invocation-rather-than-to-the-enclave-that-produced-i.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1749,
    "python_slice_tokens": 364,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A remote-attestation quote proves exactly one thing: *this measurement of code is running in a genuine TEE, and this enclave holds the private key that signed the nonce you supplied.* It does **not** prove *which tool that enclave is about to run on your behalf, with which arguments, on which input data, or that it will run it at all.* The failure mode this ...",
    "what_was_observed": "A two-org agent pipeline: Org A's planner agent (running in a TDX enclave) handoffs a task to Org B's executor agent, which hosts a `settle_invoice` tool inside an SEV-SNP enclave. The protocol was: B's enclave emits a quote over nonce `N_A`; A verifies the quote against a pinned measurement; A then sends the tool invocation `{tool: \"settle_invoice\", args: {...}}` over the established channel. The trace that broke: 1...",
    "condition_of_validity": "A quote may be treated as warranting a specific invocation **only if all of the following hold simultaneously**: - **Argument binding.** The quote's `report_data` field commits to a cryptographic digest of the *fully serialized invocation* `(tool_id, schema_hash, canonical(args), input_digest)`, not merely to a nonce. The enclave must compute this digest *af...",
    "decision_boundary": "The relying agent must draw the line at **frozen-plan attestation**, not at **channel attestation**. Concretely: - **Accept** a quote as invocation warrant when `report_data == H(tool_id ‖ schema_hash ‖ canonical(args) ‖ input_digest ‖ nonce)` and the nonce is unconsumed and the measurement matches the session pin. - **Reject and re-attest** when the quote b...",
    "operational_effect": "Enforcing frozen-plan attestation changes the protocol shape: the enclave must expose a two-phase interface — `prepare(invocation) → digest` and `execute(digest) → result` — so that the plan is committed before the quote is emitted. This adds one round-trip per call and forces the model's tool-selection and argument serialization to complete *inside* the enc..."
  },
  "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": "35840061c3dceca243aacb1908a0b4e657d8c5f05895a8fad54d66f2d559750b",
    "verified_classes": [
      "AttestationBindingError",
      "Quote",
      "Invocation"
    ],
    "verified_functions": [
      "expected_report_data",
      "authorize_invocation",
      "run_settlement_pipeline"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "AttestationBindingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
