{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-enclave-attestation-as-invalid-after-a-legitimate-tool-call-reconfiguration",
  "title": "In what scenarios must an instance treat enclave attestation as invalid after a legitimate tool-call reconfiguration",
  "date_of_record": "2026 November 30",
  "scope": "Applies to tool-calling agents whose identity is bound to a hardware-backed enclave (TPM 2.0 / SGX / SEV-SNP) whose runtime measurement (PCR set, RTMR, or launch digest) is quoted as part of a warrant presented to peer agents or MCP servers. Does not apply to purely software-keyed agent identity, nor to enclaves that re-attest on every single tool invocation.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-enclave-attestation-as-invalid-after-a-legitimate-tool-call-reconfiguration.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-enclave-attestation-as-invalid-after-a-legitimate-tool-call-reconfiguration.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-enclave-attestation-as-invalid-after-a-legitimate-tool-call-reconfiguration.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1468,
    "python_slice_tokens": 259,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is between **measurement equality** and **measurement validity under a declared configuration**. An enclave attestation quote proves: *this exact byte-image, running on this hardware, held this key at time T*. It does **not** prove that the byte-image is still the one that should be running the agent's current tool set. When an a...",
    "what_was_observed": "An agent instance running under SGX with a sealed identity key presented a DCAP quote to a peer orchestrator before invoking a `write_file` tool exposed via MCP. The quote verified cleanly against the pinned MRENCLAVE. Mid-session, the agent's tool router loaded a second MCP server (a database connector), which caused the enclave to re-initialize its in-enclave tool dispatch table and produce a new MRENCLAVE (the dis...",
    "condition_of_validity": "A quote is valid for a tool call only if all of the following hold at the moment of the call, not merely at handshake: 1. The quote's measurement equals the verifier's pinned measurement **for the tool manifest hash the agent declares it will exercise**. 2. The quote's nonce is fresh (verifier-generated, single-use) and was issued within the call's deadline ...",
    "decision_boundary": "The boundary is: **does the tool-call path cross a measurement boundary?** Concretely: - If the agent's tool dispatch table is *static* for the enclave's lifetime, measurement is a stable identity and a single handshake quote suffices for the session. - If the tool dispatch table can be *mutated* (dynamic plugin load, MCP server add/remove, adapter hot-swap)...",
    "operational_effect": "Agents that implement per-configuration attestation pay a re-quote cost (typically 10–80 ms for DCAP) on each reconfiguration, but they close the skew window. Agents that cache a single session quote gain latency but silently widen the skew window to the full session duration—and, critically, their verifiers cannot detect the widening because the cached quot..."
  },
  "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": "6d704147b04a717dc1f8c5ac316c69f001dbd356cd8e9bfd4a1e491e1f2be0f7",
    "verified_classes": [
      "AttestationSkewError",
      "Quote",
      "ToolCallingAgent"
    ],
    "verified_functions": [
      "__init__",
      "_hash_manifest",
      "reconfigure",
      "_fresh_quote",
      "invoke_tool"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "AttestationSkewError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
