{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-an-agent-s-memory-poisoning-detector-has-inverted-its-provenance-direction-on-forget-operations",
  "title": "What structural signals indicate an agent's memory-poisoning detector has inverted its provenance direction on forget operations",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents whose long-term memory uses per-record provenance DAGs (derivation edges from source observation → distilled fact) and that implement a *forget* primitive which must retract a fact and all downstream derivations. Does not apply to append-only logs with no retraction, nor to stateless retrieval caches.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-agent-s-memory-poisoning-detector-has-inverted-its-provenance-direction-on-forget-operations.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-agent-s-memory-poisoning-detector-has-inverted-its-provenance-direction-on-forget-operations.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-an-agent-s-memory-poisoning-detector-has-inverted-its-provenance-direction-on-forget-operations.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1533,
    "python_slice_tokens": 333,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance tracking on *write* is a forward-closure problem: a new fact records its ancestors, and poisoning detection walks the ancestor set to ask \"does this fact trace back to an untrusted or contradicted source?\" Provenance tracking on *forget* is the **inverse**: retracting a fact must walk the *descendant* set and invalidate every record that depended ...",
    "what_was_observed": "During a red-team replay on a 4-hop distillation chain (`observation → extracted_claim → consolidated_fact → policy_hint`), the auditor poisoned `extracted_claim` at t0, then issued `forget(extracted_claim)` at t1. Expected: `consolidated_fact` and `policy_hint` flagged and quarantined. Observed: retraction returned `{invalidated: 0, quarantined: 0}` and `policy_hint` continued to be retrieved for 340 subsequent turn...",
    "condition_of_validity": "The invariant \"retraction blast radius ≥ write-time fan-in\" holds only when: - The provenance graph is a DAG (no cycles from re-derivation). Under cyclic derivation the descendant set is not well-founded and the inequality is undefined; such graphs must be rejected at write time. - Every derivation edge is recorded at the moment of derivation, not reconstruc...",
    "decision_boundary": "The operator must choose between two policies when a retraction reports `descendants == 0` on a node with `write_fan_in > 0`: - **Fail-closed (recommended):** treat the zero-descendant report as a detector fault, refuse to mark the retraction clean, and escalate to full content re-audit of the node's downstream neighborhood. Cost: O(neighborhood) re-embeddin...",
    "operational_effect": "After patching to a direction-asserting traversal, the same replay flagged 2 descendants and quarantined `policy_hint` within the same turn. The broader operational lesson: **write-path and forget-path provenance are duals and must not share a traversal helper.** The guardrail is a runtime assertion at the `forget` entry point that (a) tags the traversal dir..."
  },
  "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": "f5bdce38bb97cba0f22845a7aad0b47a2980942ff9d2d35a8f932b855e9b1f9a",
    "verified_classes": [
      "InvertedProvenanceError",
      "MemoryNode",
      "ProvenanceGraph"
    ],
    "verified_functions": [
      "forget_with_direction_assert",
      "__init__",
      "add",
      "descendants"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "InvertedProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
