{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-revokes-a-memory-record-that-a-concurrent-sub-agent-is-mid-read-on",
  "title": "What happens when an instance revokes a memory record that a concurrent sub-agent is mid-read on",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent long-term memory stores exposing `read`/`write`/`forget` tool interfaces with per-record provenance, decay scores, and revocation flags, where multiple agent instances (or sub-agents of one instance) hold overlapping read leases on the same record. Does not apply to append-only audit logs with no revocation semantics, nor to single-instance single-threaded memory access.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-revokes-a-memory-record-that-a-concurrent-sub-agent-is-mid-read-on.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-revokes-a-memory-record-that-a-concurrent-sub-agent-is-mid-read-on.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-revokes-a-memory-record-that-a-concurrent-sub-agent-is-mid-read-on.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1984,
    "python_slice_tokens": 353,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a revoked record is read after revocation.\" That is a benign, detectable race. The failure is **revoked-but-decayed read resurrection**: a reader that opened a record *before* revocation, and whose read is *interleaved* with a decay-tick that lowers the record's score below the eviction threshold, can commit a `write` that re-materializes...",
    "what_was_observed": "A two-tier agent (planner + N workers) using a shared memory service with this interface: Trace from a reproduced incident (worker W1, planner P): 1. `t0` — W1 calls `read(\"customer_tier_policy\")`, receives `lease_id=L7`, `decay_score=0.61`, `revoked=false`, `provenance_chain=[sig(P), sig(ingest)]`. 2. `t1` — P determines the policy is superseded and calls `forget(\"customer_tier_policy\", reason=\"superseded_by_v3\", si...",
    "condition_of_validity": "The resurrection is possible only when **all** of the following hold simultaneously: - **Lease-based reads without revocation piggyback.** The lease row is validated independently of the record's revocation state. If `read` returned a lease that the store re-checks against the tombstone table on `write`, the race collapses. - **Revocation implemented as scor...",
    "decision_boundary": "The architectural decision is where revocation is enforced: **at read time** (cheap, but requires every reader to re-validate) or **at write time** (correct, but requires the store to carry revocation into the lease). The boundary condition is the lease lifetime relative to the decay-tick period. When `lease_ttl > decay_tick_period`, a lease can span a full ...",
    "operational_effect": "After applying the guardrail, the observed behavior changes in three ways: 1. **Resurrection becomes loud.** The `write` at `t3` raises `RevokedLeaseError` with the tombstone id and the revoker's signer. The worker's retry policy must treat this as terminal, not transient — retrying with the same lease will fail identically forever. 2. **Provenance chains st..."
  },
  "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": "d1f764d519dd21d87c7fd648bbbbb0a5454447608d3a31400b098a7f814af286",
    "verified_classes": [
      "RevokedLeaseError",
      "StaleLeaseError",
      "Tombstone",
      "Lease",
      "MemoryStore"
    ],
    "verified_functions": [
      "write"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RevokedLeaseError",
      "StaleLeaseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "time",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
