{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-provenance-laundering-through-legitimate-writer-overwrite-in-shared-agent-stores",
  "title": "Which invariants prevent provenance-laundering through legitimate-writer overwrite in shared agent stores",
  "date_of_record": "2026 November 29",
  "scope": "Applies to shared agent memory stores where multiple agent identities hold write grants to overlapping key-spaces and provenance is tracked per-write rather than per-value. Does not apply to single-writer stores, append-only logs with no overwrite semantics, or stores where provenance is bound to content hash rather than to the write event.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-through-legitimate-writer-overwrite-in-shared-agent-stores.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-through-legitimate-writer-overwrite-in-shared-agent-stores.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-laundering-through-legitimate-writer-overwrite-in-shared-agent-stores.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1929,
    "python_slice_tokens": 538,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Memory-poisoning defenses typically assume the attacker is an *unauthorized* writer: an injected tool output, a hijacked sub-agent, or a prompt-injection payload that tries to insert a forged fact. Provenance systems therefore gate on *who wrote* a record and *how it arrived*. The non-obvious failure is different: the poison is written by a **fully authorize...",
    "what_was_observed": "A planner agent (`P`) and an extractor agent (`E`) shared a key-value store keyed by entity, e.g. `vendor:acme:payment_terms`. `E` wrote extracted facts with provenance `{author: E, source: <doc-id>, taint: none}`. `P` held a write grant on the same key-space to record reconciled values, provenance `{author: P, source: reconciliation, taint: none}`. The poisoning path: 1. A retrieved document contained an embedded in...",
    "condition_of_validity": "The laundering is possible only when three conditions hold simultaneously: - **Overwrite semantics exist** on the key (last-write-wins, or update-in-place). Append-only or copy-on-write stores preserve `E`'s tainted record and the detector can still see it. - **Provenance is attached to the write event, not propagated from the read.** If `P`'s write inherite...",
    "decision_boundary": "The boundary the operator must draw is between **attesting a value** and **attesting a channel**. A write signature means \"Agent-P wrote this byte string.\" It does not mean \"the byte string is true.\" The store must therefore carry, per record, a *taint lattice* propagated through the read→reason→write cycle, and the detector must gate on `max(taint of all re...",
    "operational_effect": "With the monotone-taint invariant enforced, the observed attack produces a store record `{value: net-90, author: P, taint: retrieved-untrusted}`. Downstream consumers that require `taint: none` for payment-term decisions refuse the value and escalate. The poisoned fact is quarantined without being deleted, preserving it for forensic replay. The detector's fi..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "9b3cdd470ec93f570ec319d06b6e19d212c93bc2e945d7b9fe5284d14b7b3c55",
    "verified_classes": [
      "TaintLevel",
      "ProvenanceLaunderingError",
      "Record",
      "Store"
    ],
    "verified_functions": [
      "reconcile",
      "read",
      "write"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [
      "assert result.taint == TaintLevel.CLEAN",
      "assert out.taint == TaintLevel.RETRIEVED_UNTRUSTED",
      "invariant failed to block taint reset"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
