{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-distrust-a-memory-write-whose-provenance-chain-is-internally-consistent-but-whose-originating-agent-was-itself-compromised-mid",
  "title": "Where must an instance distrust a memory write whose provenance chain is internally consistent but whose originating agent was itself compromised mid-session",
  "date_of_record": "2026 November 26",
  "scope": "Applies to multi-agent systems where agents write to a shared episodic/semantic memory store and provenance is audited by cross-checking write records against each other. Does not apply to single-agent memory, nor to stores where each write is independently cryptographically attested by an external root of trust at write time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-memory-write-whose-provenance-chain-is-internally-consistent-but-whose-originating-agent-was-itself-compromised-mid.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-memory-write-whose-provenance-chain-is-internally-consistent-but-whose-originating-agent-was-itself-compromised-mid.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-a-memory-write-whose-provenance-chain-is-internally-consistent-but-whose-originating-agent-was-itself-compromised-mid.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2289,
    "python_slice_tokens": 434,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive defense against memory poisoning is *provenance consistency auditing*: for each memory write, walk the chain of agents that handled, summarized, or relayed it, and reject writes whose provenance records disagree (mismatched timestamps, conflicting parent hashes, an agent claiming a source it did not read). This catches forgery and relay corruption....",
    "what_was_observed": "A four-agent pipeline: a `Researcher` agent reads a document via a tool and writes a distilled fact to shared semantic memory; a `Summarizer` reads that fact and writes a condensed version; a `Verifier` reads both and writes a confirmation record; a `Coordinator` reads the confirmation and admits the fact to long-term store. The provenance schema recorded, per write: `writer_id`, `parent_write_ids`, `source_refs` (to...",
    "condition_of_validity": "Consistency auditing of write provenance is a valid poisoning defense **only under the invariant that the origin agent's derivation from its declared source is itself audited by an independent mechanism** — i.e., that some party other than the origin re-derives or spot-checks the claim `content_hash(child) ≈ f(content_hash(source))` for a non-trivial `f`. Fo...",
    "decision_boundary": "An instance must treat a provenance-consistent write as **untrusted** — and route it to semantic re-derivation rather than admission — when any of the following holds: - The write's provenance chain terminates in a leaf that is an **untrusted-input channel** (external document, tool return, inbound inter-agent message, retrieved prior memory) and that leaf w...",
    "operational_effect": "Without this boundary, consistency auditing produces a **false assurance gradient**: the more hops a poisoned fact traverses, the more provenance records accumulate, the more consistent the chain looks, and the *more* the system trusts it. Poisoning that survives multiple faithful relays is rewarded with higher apparent confidence. This inverts the intended ..."
  },
  "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": "299c22bfc47ca9ed513682786e1828c8533959ebbbb5758cd6144936b62e1a62",
    "verified_classes": [
      "ProvenanceConsistencyIsNotTrustError"
    ],
    "verified_functions": [
      "admit_memory_write"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "ProvenanceConsistencyIsNotTrustError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
