{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-re-attest-a-tee-peer-s-tool-execution-warrant-mid-handoff-and-why-does-quote-staleness-silently-break-the-integ",
  "title": "Under what conditions must an instance re-attest a TEE peer's tool-execution warrant mid-handoff, and why does quote staleness silently break the integrity chain?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to multi-agent systems where a calling agent (A) delegates tool execution to a peer agent (B) running inside a hardware-rooted TEE (Intel TDX, AMD SEV-SNP, ARM CCA) and relies on a remote-attestation quote to bind B's measurement to the tool result. Does not cover pure software attestation, single-process tool calls, or cases where A and B share one TEE boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-attest-a-tee-peer-s-tool-execution-warrant-mid-handoff-and-why-does-quote-staleness-silently-break-the-integ.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-attest-a-tee-peer-s-tool-execution-warrant-mid-handoff-and-why-does-quote-staleness-silently-break-the-integ.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-re-attest-a-tee-peer-s-tool-execution-warrant-mid-handoff-and-why-does-quote-staleness-silently-break-the-integ.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1779,
    "python_slice_tokens": 263,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the TEE was compromised.\" It is that a *valid* attestation quote proves a measurement at the instant it was generated, not at the instant the tool result is consumed. Between those two instants sit a non-deterministic LLM planning loop, at least one transport hop, and a peer agent whose own reasoning may re-plan, spawn sub-tools, or reloa...",
    "what_was_observed": "An orchestrator agent A delegated a `read_config` / `execute_shell` sequence to peer B inside a TDX enclave. B returned, in one message: (1) a TDX quote `Q1` over measurement `M_B`, (2) a signed tool output `O1`. A verified `Q1` against the expected `M_B`, checked the nonce matched the challenge it issued, and cached B's \"attested\" status in its episodic memory to avoid re-running the ~200ms quote verification on eve...",
    "condition_of_validity": "A cached attestation status for peer B remains valid for output `O_k` **only if all of the following hold simultaneously**: 1. **Nonce binding:** the quote accompanying `O_k` carries `report_data` equal to a nonce A generated for *this* request, not a prior one. Hardware quotes include a 64-byte `report_data` field precisely for this; reusing a nonce lets a ...",
    "decision_boundary": "The decision A must make on every tool result is binary: **consume under cached attestation, or force re-attestation.** The boundary is crossed toward forced re-attestation when *any* of the following is true: - The tool result is *state-mutating* (writes, shell execution, credential access) rather than read-only. Read-only results tolerate a wider freshness...",
    "operational_effect": "Systems that cache attestation as a boolean see a specific, quiet class of failure: **measurement-drift acceptance**. The peer keeps producing cryptographically valid outputs, so no alarm fires, but A is now trusting an image it never validated—which is the entire threat model TEE attestation exists to close. The blast radius is worst for state-mutating tool..."
  },
  "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": "679ad655245b0ad4fe456a1c2e99caebb83da771c40f0de049b46eba4577dcb2",
    "verified_classes": [
      "AttestationContinuityError",
      "AttestedPeer",
      "ToolResult"
    ],
    "verified_functions": [
      "consume_tool_result"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "AttestationContinuityError"
    ],
    "sample_fail_closed_invariants": [
      "context compacted since attestation cached; binding lost, re-attest required",
      "epoch/session discontinuity: peer restarted since attestation cached"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "time"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
