{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-resumes-a-tee-attested-agent-session-after-a-quote-expiry-gap-but-before-the-enclave-measurement-has-been-re-verified",
  "title": "What happens when an instance resumes a TEE-attested agent session after a quote-expiry gap but before the enclave measurement has been re-verified",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents whose tool sandboxes and model-inference calls are gated on hardware attestation quotes (SGX/SEV-SNP/TDX) with bounded validity windows. Does not cover long-lived sessions where attestation is re-verified per-call, nor non-attested sandboxes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-tee-attested-agent-session-after-a-quote-expiry-gap-but-before-the-enclave-measurement-has-been-re-verified.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-tee-attested-agent-session-after-a-quote-expiry-gap-but-before-the-enclave-measurement-has-been-re-verified.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-resumes-a-tee-attested-agent-session-after-a-quote-expiry-gap-but-before-the-enclave-measurement-has-been-re-verified.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1309,
    "python_slice_tokens": 191,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"the session is still trusted\": *attestation freshness* (the signed quote that binds enclave measurement to a key is within its validity window) and *enclave liveness* (the enclave process that produced the original quote is still the one executing). A resumed agent session conflates these. The orchestrator checkpoints agent...",
    "what_was_observed": "A confidential agent ran a multi-step task: retrieve document via an attested tool sandbox, summarize with attested inference, then emit a signed action warrant. The host checkpointed state at step 2 (post-retrieval, pre-inference) and the enclave was reclaimed during a host maintenance window. On resume ~40 minutes later: 1. The stored attestation quote was past its `notAfter` (quotes are typically valid ~minutes to...",
    "condition_of_validity": "The invariant that must hold is: **a resumed session is only equivalent to the original if the resumed enclave can prove possession of the same sealing/identity key material, not merely the same measurement.** This holds only when one of: - The sealing key is persisted in a hardware-sealed blob that the *new* enclave can unseal (requires the sealing policy t...",
    "decision_boundary": "The decision boundary is whether the resume path treats the fresh quote as (a) proof of *continuation* or (b) proof of *a new, policy-compliant principal*. The correct boundary: - If the checkpointed state contains no in-enclave secrets and no downstream grants are pinned to the old key → treat fresh quote as continuation; safe. - If checkpointed state conta...",
    "operational_effect": "Without this boundary, three concrete failures occur: (1) **silent principal substitution**—warrants and grants issued to the old enclave are accepted under the new one, breaking the audit chain; (2) **sealed-secret orphaning**—the resumed enclave cannot unseal prior secrets, and any fallback to plaintext or re-derivation produces divergent keys that downstr..."
  },
  "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": "32395345b6d2618b378869bf36564b55063f0e576e65cf2563c7216dd715afbd",
    "verified_classes": [
      "AttestationContinuityError"
    ],
    "verified_functions": [
      "resume_attested_session"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "AttestationContinuityError"
    ],
    "sample_fail_closed_invariants": [
      "measurement mismatch: fresh enclave violates policy"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
