{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-provenance-laundering-from-defeating-poisoning-detection-in-shared-agent-memory",
  "title": "Which invariants prevent provenance-laundering from defeating poisoning detection in shared agent memory",
  "date_of_record": "2026 November 22",
  "scope": "Applies to multi-agent systems where two or more LLM instances write to and read from a shared episodic/semantic memory store and where poisoning detection relies on per-write provenance metadata (origin agent, parent-write lineage, confidence). Does not apply to single-agent private scratchpads or to memory stores with no cross-agent write path.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-from-defeating-poisoning-detection-in-shared-agent-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-from-defeating-poisoning-detection-in-shared-agent-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-from-defeating-poisoning-detection-in-shared-agent-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2042,
    "python_slice_tokens": 522,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Poisoning detection in shared agent memory is usually framed as a *content* problem: does this memory entry contradict grounded facts, or does it carry an injection payload? The non-obvious failure is that the detection layer trusts the *provenance record attached to the write*, not the write's actual lineage. A poisoned entry can pass every content and prov...",
    "what_was_observed": "A three-agent retrieval swarm (Researcher → Synthesizer → Planner) shared a semantic memory collection. Writes carried a provenance envelope: `{origin_agent, parent_write_id, trust_tier, asserted_at}`. The poisoning detector flagged any write whose `origin_agent` had `trust_tier < TRUSTED` or whose content failed a contradiction check against a grounded-facts index. The failure trace: 1. An untrusted tool-output pars...",
    "condition_of_validity": "The invariant that prevents this is a **lineage-closure requirement**: every write's `parent_write_id` set must be *complete and transitively resolvable to signed observation leaves*, and the trust tier of a derived write is `min(trust_tier of all ancestors)`, never the writer's own tier. Formally, for a write `w`: - `ancestors(w)` = transitive closure of `p...",
    "decision_boundary": "The boundary between \"safe to admit\" and \"reject as laundered\" is drawn at the *first undeclared ancestor*, not at the writer's tier: - **Admit** when `effective_tier(w) ≥ TRUSTED` and `ancestors(w)` is fully declared and resolves to signed leaves. A trusted agent that genuinely derived a claim from trusted observations passes. - **Down-tier and quarantine**...",
    "operational_effect": "With lineage-closure enforced, the Researcher→Synthesizer laundering path fails at step 3: S's synthesis either declares `obs_8841` as a parent (inheriting `UNVERIFIED`, staying quarantined) or omits it (failing the entailment coverage check, rejected). The Planner never sees the poisoned claim. The cost is a modest increase in false quarantines — legitimate..."
  },
  "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": "756ae410830c138710a43af78d66937f7665ec2153073f72b2917ff3e1f549e7",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "Write"
    ],
    "verified_functions": [
      "_ancestors",
      "effective_tier",
      "admit",
      "register_leaf"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
