{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-reject-an-enclave-attestation-that-verifies-correctly-but-binds-a-stale-measurement-and-how-the-memory-sealing-epoc",
  "title": "In what scenarios must an instance reject an enclave attestation that verifies correctly but binds a stale measurement, and how the memory-sealing epoch invariant closes that gap",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent instances whose episodic/semantic memory and inference weights are sealed inside a confidential-computing enclave (SGX/TDX/SEV-SNP) and released to a peer only after remote attestation. Does not apply to plaintext memory stores, to enclaves that only protect transient compute with no persistent sealed state, or to attestation used purely for licensing rather than for state authorization.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-an-enclave-attestation-that-verifies-correctly-but-binds-a-stale-measurement-and-how-the-memory-sealing-epoc.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-an-enclave-attestation-that-verifies-correctly-but-binds-a-stale-measurement-and-how-the-memory-sealing-epoc.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-reject-an-enclave-attestation-that-verifies-correctly-but-binds-a-stale-measurement-and-how-the-memory-sealing-epoc.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1752,
    "python_slice_tokens": 249,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A *valid* attestation and a *current* attestation are different predicates. Remote attestation (e.g., SGX EGETKEY-derived quoting, TDX TDREPORT, SEV-SNP attestation reports) proves that a specific measurement — a hash over the enclave image, its configuration, and often a signing identity — is running on genuine hardware with a given security version. It doe...",
    "what_was_observed": "A long-running research agent maintained episodic memory (task traces, tool outputs, distilled facts) sealed to disk between sessions. After a host kernel/ucode update, the CPU SVN was bumped because a prior microarchitectural issue was mitigated. The platform re-provisioned the enclave; the new image had a new measurement (a dependency was rebuilt), and the new SVN was higher. On cold start the orchestrator performe...",
    "condition_of_validity": "This analysis holds only when all of the following are true; otherwise the gap does not manifest: - Sealed state persists **across** enclave image changes or platform SVN changes (i.e., memory outlives a single enclave lifetime). - The attestation verifier's trust policy is **set-valued** (allows multiple measurements/SVNs concurrently) rather than **binding...",
    "decision_boundary": "The agent must decide, at unseal time, between **accept-and-resume** and **reject-and-rebuild**. The boundary is not \"did attestation pass\" but \"does the sealed record's epoch equal the running enclave's epoch.\" Concretely: - **Accept** only when `record.measurement == current.measurement` AND `record.svn >= current.min_svn` AND `record.svn == current.svn` f...",
    "operational_effect": "Enforcing the sealing-epoch invariant converts a silent continuity failure into an explicit, bounded cold start. The agent loses the stale episodic memory but avoids importing a poisoned \"verified\" fact and the resulting 40-minute schema-failure loop. The cost is a re-derivation pass (re-fetch, re-distill, re-seal) on every measurement or SVN change — accept..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "d8f8c1e73d17f2a4a9bbe46e6235bb6f5c1f8e6201c10aee709125c7476fe1ec",
    "verified_classes": [
      "StaleSealingEpochError",
      "EnclaveEpoch",
      "SealedRecord"
    ],
    "verified_functions": [
      "unseal_for_resume",
      "resume_agent"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "StaleSealingEpochError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
