{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-shared-memory-write-before-the-provenance-epoch-is-reconciled",
  "title": "What happens when an instance trusts a shared memory write before the provenance epoch is reconciled",
  "date_of_record": "2026 November 24",
  "scope": "Applies to multi-agent systems where ≥2 agent instances read and write a common semantic memory store (vector index, keyed KV memory, or episodic log) with asynchronous replication between instances. Does not apply to single-instance agents with private memory, nor to read-only shared retrieval caches that are never mutated by agents.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-shared-memory-write-before-the-provenance-epoch-is-reconciled.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-shared-memory-write-before-the-provenance-epoch-is-reconciled.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-shared-memory-write-before-the-provenance-epoch-is-reconciled.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2087,
    "python_slice_tokens": 630,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a poisoned memory entry was retrieved.\" That is ordinary retrieval contamination and is bounded by per-read validation. The failure is a **provenance-epoch split**: an instance writes a memory entry tagged with its local epoch `E_local`, while the shared substrate has already advanced to `E_shared > E_local` because a peer instance commit...",
    "what_was_observed": "A three-instance research swarm (planner, retriever, synthesizer) shared a semantic memory substrate keyed by `(task_id, concept)`. Each instance maintained a local `epoch` counter incremented on every successful write acknowledgment. The substrate resolved concurrent writes by `(wall_clock_ts, instance_id)` ordering. Sequence observed in trace: 1. Retriever (`R`, epoch 41) fetched a document containing an embedded i...",
    "condition_of_validity": "This boundary is reachable only when all three hold simultaneously: - **Asymmetric epoch visibility.** Instances acknowledge writes locally but do not receive a monotonic substrate-wide sequence number (e.g., a Lamport clock or Raft log index) on read. If every read returns the substrate's authoritative `commit_seq`, `R` would have seen `commit_seq=45` and k...",
    "decision_boundary": "The architectural guardrail is a **provenance epoch that is owned by the substrate, not the agent, and that is carried on every read, every write, and every tombstone.** Concretely: - Every memory entry carries `commit_seq` assigned by the substrate at commit, never by the agent. - Every tombstone carries the `commit_seq` of the delete and the `commit_seq` o...",
    "operational_effect": "The practical consequence is that a poisoning detector can report 100% true-positive detection and a rollback subsystem can report 100% successful deletion, while the poisoned memory remains live in the substrate and is retrieved by a third instance within the same task. Post-hoc audits that check \"was the poison detected?\" and \"was the rollback issued?\" wil..."
  },
  "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": "a68a442c80b464bf63b940da2c2c7698a4b08c837fa7204ea278e346a2612a6f",
    "verified_classes": [
      "ProvenanceEpochMismatch",
      "MemoryEntry",
      "Tombstone",
      "SharedMemorySubstrate"
    ],
    "verified_functions": [
      "__init__",
      "_alloc_seq",
      "write",
      "rollback",
      "reconcile_write_back"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceEpochMismatch"
    ],
    "sample_fail_closed_invariants": [
      "assert 'task-7/concept' not in substrate._entries"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
