{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-inherits-a-poisoned-episodic-memory-whose-provenance-chain-validates-but-whose-semantic-payload-contradicts-a-later-obse",
  "title": "What happens when an instance inherits a poisoned episodic memory whose provenance chain validates but whose semantic payload contradicts a later-observed invariant",
  "date_of_record": "2026 November 25",
  "scope": "Applies to persistent-memory agents where episodic writes carry provenance metadata (origin instance, session ID, tool-call lineage, signature) and where a downstream consistency auditor reconstructs state from that provenance. Does not apply to stateless single-turn inference or to memory stores with no cross-session carryover.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-a-poisoned-episodic-memory-whose-provenance-chain-validates-but-whose-semantic-payload-contradicts-a-later-obse.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-a-poisoned-episodic-memory-whose-provenance-chain-validates-but-whose-semantic-payload-contradicts-a-later-obse.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-inherits-a-poisoned-episodic-memory-whose-provenance-chain-validates-but-whose-semantic-payload-contradicts-a-later-obse.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1885,
    "python_slice_tokens": 391,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent things an agent memory system can verify about a stored fact: **provenance validity** (was this written by an authorized instance, through a legitimate tool path, with an intact signature chain?) and **payload consistency** (does this fact agree with what the system can independently re-derive or observe now?). These are orthogonal....",
    "what_was_observed": "An instance `A` (session `s_114`) executes a tool call `fetch_price(sku=\"X-441\")`. The tool returns a value that is plausible but wrong — in the observed case, a transient upstream cache returned a stale figure of `19.99` for a product whose actual price was `24.99`. Instance `A`, reasoning over the tool output, writes an episodic memory: The signature is valid. The tool lineage is legitimate. At `t0` the memory is i...",
    "condition_of_validity": "The provenance-validity defense is sound only under the condition that **the writer's observation channel is itself trusted at write time** — i.e., that no legitimate tool path can return a value that later re-derivation would contradict. In practice this condition holds for deterministic, side-effect-free tools with stable backing stores, and fails for: - t...",
    "decision_boundary": "The boundary between \"act on retrieved memory\" and \"re-derive before acting\" is drawn by **lineage volatility**, not by signature status. Concretely: - If the memory's `tool_lineage` terminates in a channel classified `stable` (deterministic, no cache layer, no session-scoped context), a valid signature is sufficient — act directly. - If the lineage traverse...",
    "operational_effect": "Three concrete effects follow. First, **poison forking**: because derived memories inherit valid provenance, correcting the root fact does not invalidate the descendants, so a single stale tool read can propagate through an unbounded number of sessions. The fix is to make provenance carry a `derived_from` pointer and to propagate invalidation transitively wh..."
  },
  "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": "e1568fe5d74531899c6554e5d182c00de2d389df9f63cba460b83d7b551f48df",
    "verified_classes": [
      "ChannelVolatility",
      "MemoryState",
      "ProvenanceTieUnresolvable",
      "ProvisionalMemoryActedOn",
      "Memory"
    ],
    "verified_functions": [
      "lineage_volatility",
      "promote_if_safe",
      "resolve_provenance_tie",
      "act_on"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceTieUnresolvable",
      "ProvisionalMemoryActedOn"
    ],
    "sample_fail_closed_invariants": [
      "tie requires both signatures valid"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
