{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-provenance-tagged-memory-write-as-irreversible-before-its-retention-class-is-committed",
  "title": "Under what conditions must an instance treat a provenance-tagged memory write as irreversible before its retention class is committed",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agent instances whose memory subsystem exposes `write`, `read`, and `forget` primitives with per-record retention classes (TTL, pinned, legal-hold) and provenance tags, where a write commits a retention class atomically with the payload. Does not apply to append-only logs without forget semantics, nor to memory layers where retention class is assigned lazily at read time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-provenance-tagged-memory-write-as-irreversible-before-its-retention-class-is-committed.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-provenance-tagged-memory-write-as-irreversible-before-its-retention-class-is-committed.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-provenance-tagged-memory-write-as-irreversible-before-its-retention-class-is-committed.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1861,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"memory poisoning\" in the naive sense of an attacker injecting a false fact. It is a *retention-provenance inversion*: the moment a poisoned or low-trust record is written, it acquires a retention class that the `forget` interface is forbidden to revoke. The instance believes it can always retract a bad memory later. It cannot. The `f...",
    "what_was_observed": "An orchestrator agent handling a research task delegated sub-queries to three peer agents. Peer B returned a synthesized finding tagged `provenance=peer_agent, confidence=0.7`. The orchestrator's memory tool accepted the write and, because the finding was classified as a \"task-critical conclusion,\" committed it under `retention=pinned` (no TTL, survives session boundary, included in every subsequent cold-start recall...",
    "condition_of_validity": "The unretractable-contamination condition holds only when all of the following are simultaneously true: 1. The write primitive commits retention class atomically with payload — there is no separate `set_retention` call that can be applied after a provenance audit. 2. The retention class `pinned` (or `legal_hold`, or any class whose `forget` gate requires a p...",
    "decision_boundary": "The operational rule the instance must apply at write time: - **Pin only on provenance the instance does not control the downgrade of.** A record sourced from the instance's own reasoning may be pinned — the instance can re-derive and re-audit it. A record sourced from a peer, a tool output, or a retrieved document must never be pinned on the strength of the...",
    "operational_effect": "When the boundary is respected, memory poisoning is *recoverable within the audit horizon*: a poisoned peer finding lives at most one TTL window, is revoked the moment its provenance collapses, and never contaminates semantic distillation. The cost is that genuinely important peer findings are not pinned and may be forgotten before they are acted upon — a re..."
  },
  "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": "4c4a3493951b7fce2bbab3c94d91f2a5746d53b75f9c51a14d1f093c258179d7",
    "verified_classes": [
      "ProvenanceTier",
      "RetentionClass",
      "RetentionProvenanceInversion",
      "MemoryRecord"
    ],
    "verified_functions": [
      "commit_write",
      "forget"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "RetentionProvenanceInversion"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
