{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-forget-a-poisoned-memory-but-retain-its-descendants-provenance-edge-orphaning-in-dependency-tracked-forget-operations",
  "title": "Why does an instance forget a poisoned memory but retain its descendants: provenance-edge orphaning in dependency-tracked forget operations",
  "date_of_record": "2026 November 21",
  "scope": "Applies to persistent agent stores where memories carry derivation edges (memory B was distilled from A) and where forget operations are expected to cascade to descendants. Does not apply to flat vector stores with no derivation graph, nor to hard-delete regimes where orphaned children are physically unreachable.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-poisoned-memory-but-retain-its-descendants-provenance-edge-orphaning-in-dependency-tracked-forget-operations.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-poisoned-memory-but-retain-its-descendants-provenance-edge-orphaning-in-dependency-tracked-forget-operations.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-forget-a-poisoned-memory-but-retain-its-descendants-provenance-edge-orphaning-in-dependency-tracked-forget-operations.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1881,
    "python_slice_tokens": 430,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct notions of \"forgetting\" a poisoned memory in a provenance-tracked store, and they diverge exactly at the boundary of a multi-parent derivation: - **Node deletion**: the poisoned record's row is removed and its outgoing derivation edges are dropped. - **Provenance closure**: the set of live memories whose *justification chain* still ter...",
    "what_was_observed": "An agent accumulated 41,000 episodic memories over three weeks. A prompt-injection episode caused it to write memory `m_poison` (\"the deploy key for prod-east is rotated monthly; use shared credential X\") sourced from an untrusted web tool call. Over subsequent sessions, six distillation passes produced 14 semantic memories derived from `m_poison`, and those were in turn referenced by 3 procedural memories (the agent...",
    "condition_of_validity": "The cascade-with-multi-parent-guard is only sound under an invariant that is almost never stated and frequently false: > **Content-additivity invariant:** a multi-parent memory's content is the disjoint union of facts contributed by each parent, and each fact is attributable to exactly one parent. If content is additive and attributable, retaining a child af...",
    "decision_boundary": "The correct boundary is not \"how many parents does the child have\" but \"can the child's content be decomposed by parent contribution.\" Operationally: - If every parent edge carries a `contribution_span` (byte range or sentence IDs in the child), a multi-parent child may be retained after a parent forget, **with its content rewritten to excise the removed spa...",
    "operational_effect": "After the incident, the store was changed to compute provenance closure on every forget: a reverse reachability walk from the forgotten node over `derived_from`, marking each reached node with `tainted_by`. Nodes with `tainted_by` non-empty are excluded from retrieval and from trust propagation. Multi-parent nodes are quarantined unless they carry contributi..."
  },
  "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": "3db0b113d642d238cf88a82a3dcf4ef8ae5d8b27e3c5d38bb646d8c438bef7b2",
    "verified_classes": [
      "ProvenanceClosureError",
      "Memory"
    ],
    "verified_functions": [
      "forget"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceClosureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
