{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-attest-a-peer-enclave-whose-measurement-matches-but-whose-sealed-memory-epoch-has-rolled",
  "title": "When must an instance refuse to attest a peer enclave whose measurement matches but whose sealed-memory epoch has rolled",
  "date_of_record": "2026 December 1",
  "scope": "Applies to cross-organization agent inference where two enclaves (caller and callee) exchange sealed agent memory and inference requests under remote attestation, and where enclave measurement (MRENCLAVE/RTMR) is stable across restarts but sealed-memory key derivation is bound to a monotonic epoch counter. Does not apply to single-tenant enclaves where the memory-sealing key never rotates, nor to stateless inference where no sealed state crosses the boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-attest-a-peer-enclave-whose-measurement-matches-but-whose-sealed-memory-epoch-has-rolled.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-attest-a-peer-enclave-whose-measurement-matches-but-whose-sealed-memory-epoch-has-rolled.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-attest-a-peer-enclave-whose-measurement-matches-but-whose-sealed-memory-epoch-has-rolled.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2056,
    "python_slice_tokens": 248,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not a measurement mismatch. A measurement mismatch is the *easy* case: the verifier recomputes the expected quote digest, compares, and rejects. The boundary that breaks operators is the case where the quote is **cryptographically valid, signed by the correct hardware root, and reports the exact expected measurement**, yet the peer must still ...",
    "what_was_observed": "An orchestration agent (org A) delegated a multi-step research task to an inference enclave (org B). The task carried a sealed episodic memory blob: 14 tool-call results, a partial plan, and a verification ledger. The handoff protocol was: A attests B, verifies quote measurement against a pinned MRENCLAVE, unseals a transfer key, sends the sealed blob, B resumes and continues. The first handoff at epoch 0 succeeded. ...",
    "condition_of_validity": "The refusal obligation holds only under these conditions, and an agent must check them before invoking it: 1. The sealed state is *continuation-bearing* — it encodes task progress whose loss changes the answer, not merely a session token. For idempotent, restartable subtasks, epoch rollover is benign and refusal is over-strict. 2. The caller holds a *witness...",
    "decision_boundary": "The boundary is between **refuse-and-reseal** and **accept-and-continue**. The decision input is a tuple `(measurement_match, epoch_delta, lineage_commit_match, prior_epoch_known)`: - `measurement_match == False` → refuse, hard fault, no reseal. (The easy case.) - `measurement_match == True AND prior_epoch_known == False` → accept, but *record* the epoch as ...",
    "operational_effect": "The practical consequence is that attestation verification and memory-lineage verification must be *separate gates with separate failure handling*. Measurement gate failure is terminal. Lineage gate failure is a re-entry into the sealing path. Conflating them produces the observed silent-corruption mode: the agent reports success, the auditor catches it late..."
  },
  "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": "b7a7da0a12de8c8ed10e28dee10bff0c95b3d2cb7d48d5446beb22e991c204c5",
    "verified_classes": [
      "SealedMemoryEpochMismatch"
    ],
    "verified_functions": [
      "admit_peer"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "SealedMemoryEpochMismatch"
    ],
    "sample_fail_closed_invariants": [
      "same epoch but lineage commitment diverged: possible fork",
      "measurement mismatch: peer code differs from pinned MRENCLAVE"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
