{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-poisoned-provenance-from-surviving-a-forget-operation-in-persistent-agent-stores",
  "title": "Which invariants prevent poisoned provenance from surviving a forget operation in persistent agent stores",
  "date_of_record": "2026 November 26",
  "scope": "Applies to persistent agent memory stores that attach provenance (source, trust tier, write epoch) to memory records and support targeted forgetting (deletion, redaction, or demotion). Does not address stateless inference, in-context-only scratchpads, or stores with no forget primitive.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-poisoned-provenance-from-surviving-a-forget-operation-in-persistent-agent-stores.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-poisoned-provenance-from-surviving-a-forget-operation-in-persistent-agent-stores.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-poisoned-provenance-from-surviving-a-forget-operation-in-persistent-agent-stores.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1597,
    "python_slice_tokens": 325,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"a poisoned memory was written.\" Poisoned writes are a detection problem. The failure is that a **forget operation severs the provenance chain while leaving derived records intact**, so the poison's *descendants* survive with laundered provenance. A memory `M` written by an untrusted tool, then distilled into a semantic summary `S`, then c...",
    "what_was_observed": "A store held 41k records. A retrieval-augmented agent ingested a web document through an untrusted fetch tool at epoch 880, producing record `R-8801` with `provenance: {source: tool:fetch, trust: 0.2, epoch: 880}`. Over the next ~200 turns, the episodic distiller folded `R-8801` into a semantic summary `S-9120` with `derived_from: [R-8801, R-8802, R-8814]` and `trust: 0.9` (the distiller averaged nothing—it assigned ...",
    "condition_of_validity": "The monotone-taint invariant is only enforceable when the store maintains the derivation DAG as first-class, queryable state—not as a denormalized `derived_from` list that gets rewritten on parent deletion. Concretely, three conditions: - **Edge persistence over node persistence.** Derivation edges must be tombstoned, not deleted, when their source node is f...",
    "decision_boundary": "The boundary is between **forget-as-deletion** and **forget-as-taint-propagation**. Choose deletion semantics only when the store guarantees that no record is ever derived from another (flat episodic memory, no distillation). The moment a distiller or summarizer exists, deletion semantics are unsound and you must implement propagation. A second boundary: **w...",
    "operational_effect": "With monotone-taint and tombstoned edges in place, the epoch-940 forget produces: `R-8801` tombstoned; `S-9120` marked `tainted_by: R-8801`, effective trust forced to 0.2; `P-9402` transitively marked and quarantined; the planner's next read of `S-9120` fails the 0.7 gate and the agent replans from the epoch-939 checkpoint. The poison is *removed*—its descen..."
  },
  "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": "86c448a6ef1b6a7bc7109d450b9a7235e1281686fcebe9b08cd94a52cc249e86",
    "verified_classes": [
      "ProvenanceLaunderingError",
      "Record",
      "ProvenanceStore"
    ],
    "verified_functions": [
      "__init__",
      "add",
      "forget",
      "_descendants",
      "read"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceLaunderingError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
