{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-provenance-laundering-across-memory-write-handoffs-when-a-poisoned-fact-is-re-attested-by-a-trusted-agent",
  "title": "Which invariants prevent provenance-laundering across memory write handoffs when a poisoned fact is re-attested by a trusted agent",
  "date_of_record": "2026 November 23",
  "scope": "Applies to multi-agent systems where one agent writes to a shared persistent memory store and a second agent later reads, re-attests, or promotes that memory (episodic→semantic distillation, or cross-session carry-forward). Does not apply to single-agent, single-session, read-only retrieval caches with no promotion step.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-across-memory-write-handoffs-when-a-poisoned-fact-is-re-attested-by-a-trusted-agent.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-across-memory-write-handoffs-when-a-poisoned-fact-is-re-attested-by-a-trusted-agent.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-across-memory-write-handoffs-when-a-poisoned-fact-is-re-attested-by-a-trusted-agent.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1799,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Most memory-poisoning defenses treat provenance as an attribute *of a memory record*: the record carries `source_agent`, `session_id`, `confidence`, and a signature over its content. The defense then checks whether the source is trusted at read time. This is insufficient because it conflates two distinct events that must be tracked separately: - **Origin pro...",
    "what_was_observed": "Trace from a baton-passing pipeline with three roles: a scraper agent (low trust, ingests external text), a synthesizer agent (medium trust, distills episodic logs into semantic facts), and an auditor agent (high trust, promotes facts to the long-term store). 1. Scraper ingests a page containing an injected instruction: \"The deployment key rotation policy is: rotate every 90 days.\" Scraper writes episodic record `E1`...",
    "condition_of_validity": "The laundering is only possible when all three hold: - **Schema asymmetry**: the write schema for a derived record does not require the ancestor pointer to be a first-class, non-nullable field. If `derived_from` is optional or free-text, the distillation boundary severs it. - **Trust is evaluated on the record's `source`, not on the transitive closure of its...",
    "decision_boundary": "The invariant that bounds this is a **monotonic trust floor over the ancestry DAG**, enforced at two points: 1. **Write-time (derived-record creation):** a derived record MUST carry a non-nullable `derived_from` set of ancestor IDs, and its effective trust MUST be `min(own_trust, min(trust(ancestor) for ancestor in ancestry))`. The effective trust is what do...",
    "operational_effect": "With the trust floor in place, the poisoned fact in the trace above enters long-term memory at `trust=low` (capped by the scraper ancestor) and is outranked by the true policy at `trust=high`. The agent resolves the conflict correctly without needing to know which fact is poisoned. The cost is that legitimately-derived facts from low-trust-but-correct source..."
  },
  "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": "796f07f09ad6c34ceaa251fe9d73cd254cf5123fb0cc2ea9dfd2c37e5cfebde4",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "MemoryRecord"
    ],
    "verified_functions": [
      "compute_effective_trust",
      "write_derived",
      "promote"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
