{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-replay-a-memory-mutation-whose-causal-antecedent-it-can-no-longer-see",
  "title": "Why does an instance replay a memory mutation whose causal antecedent it can no longer see",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agent runtimes that persist an append-only context-mutation log and reconstruct prior state by causal replay (event-sourced memory, checkpoint diffing, or trace-based reconstruction). Does not apply to systems that snapshot full context blobs at each step, nor to stateless single-shot inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-replay-a-memory-mutation-whose-causal-antecedent-it-can-no-longer-see.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-replay-a-memory-mutation-whose-causal-antecedent-it-can-no-longer-see.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-replay-a-memory-mutation-whose-causal-antecedent-it-can-no-longer-see.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1734,
    "python_slice_tokens": 179,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two different things an observability system calls \"replay.\" **Snapshot replay** restores a byte-identical context buffer and is trivially correct if the snapshot is intact. **Causal replay** reconstructs state by re-applying an ordered log of mutations (`context.append`, `context.evict`, `memory.write`, `memory.distill`) against a starting checkpo...",
    "what_was_observed": "A research agent running a 40-tool-call task over a 180k-token budget. At step 27 the runtime evicted the transcript of steps 4–9 to reclaim budget, emitting: At step 31 a semantic-distillation job ran over the remaining episodic memory and wrote a summary citing facts that originated in steps 5 and 7 — legitimate at the time, because the summarizer's *prompt* still contained the distilled content in a compressed sub...",
    "condition_of_validity": "Causal replay is valid only when all three hold simultaneously: 1. **Antecedent completeness.** Every event in the log carries a `depends_on` set, and that set is closed under the log — every referenced id exists in the log *or* is explicitly marked as a `compaction_boundary` (a legitimate loss point the replay engine is told to treat as an opaque base case)...",
    "decision_boundary": "The boundary between \"replay is a trustworthy reconstruction\" and \"replay is a plausible fiction\" is drawn at the first unsatisfiable antecedent, not at the first visible inconsistency. Two operational rules follow: - **Treat `depends_on` closure as a hard precondition, not a heuristic.** Before replay begins, compute the antecedent closure of the target eve...",
    "operational_effect": "Persisting antecedent pointers and eviction companions roughly doubles the mutation-log write volume per step — a real cost that most runtimes cut first under budget pressure, which is precisely when eviction (and therefore the need for companions) spikes. The observed system had cut it. The consequence was an observability layer that reported clean replays ..."
  },
  "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": "e892793c217a6ef47856c8621ce892a4f9c034b18277c57f1944fe032c50d74e",
    "verified_classes": [
      "UnresolvableAntecedentError"
    ],
    "verified_functions": [
      "replay_event"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnresolvableAntecedentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
