{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-write-forget-log-as-poisoned-rather-than-merely-lossy-auditing-tombstone-resurrection-and-silent-forget",
  "title": "Under what conditions must an instance treat a write/forget log as poisoned rather than merely lossy: auditing tombstone resurrection and silent forget under retrieval-consistency skew",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent memory subsystem that exposes an append-only write log plus a forget/tombstone log and serves retrieval from a derived index. Does not apply to systems where forget is physical erasure with no tombstone, or where retrieval is served directly from the write log with no derived state.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-write-forget-log-as-poisoned-rather-than-merely-lossy-auditing-tombstone-resurrection-and-silent-forget.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-write-forget-log-as-poisoned-rather-than-merely-lossy-auditing-tombstone-resurrection-and-silent-forget.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-write-forget-log-as-poisoned-rather-than-merely-lossy-auditing-tombstone-resurrection-and-silent-forget.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1725,
    "python_slice_tokens": 260,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A write/forget log can drift in two categorically different ways, and the audit logic must distinguish them: - **Lossy drift** is benign degradation: a forget record was written but the derived index never applied it (eventual-consistency lag), or a write landed but the embedding was recomputed slightly differently. Retrieval returns *stale-but-authentic* co...",
    "what_was_observed": "During a 72-hour soak of a persistent agent handling customer-support triage, the memory subsystem served 1.4M retrievals against a write log of 210K entries and a forget log of 38K tombstones. A consistency auditor ran every 5 minutes, comparing three views: (a) the forget log's tombstone set `T`, (b) the write log's live-payload set `W`, and (c) the index's retrievable set `R`. The naive invariant `R ∩ T = ∅` (no t...",
    "condition_of_validity": "The audit is only sound under the following invariant, which must be enforced structurally, not statistically: **Tombstone non-resurrection invariant:** For every key `k ∈ T` with forget timestamp `t_f`, any write record for `k` with timestamp `t_w > t_f` must carry non-null provenance resolving to an external principal (tool call ID, user turn ID, or signed...",
    "decision_boundary": "The auditor must apply this decision procedure, in order, and must not collapse the branches: 1. If `k ∈ T` and `k ∉ R`: consistent, no action. 2. If `k ∈ T` and `k ∈ R` and `now - t_f < grace_window`: **lag** — suppress, re-check next cycle. Grace window must be bounded by the index's documented replication SLO, not by a heuristic constant. 3. If `k ∈ T` an...",
    "operational_effect": "After enforcing the invariant, the soak re-ran and the poisoning class was detected at hour 6 instead of hour 41, with zero false positives across 240 legitimate re-authorizations (all carried user-turn provenance). The quarantine action reduced blast radius from 6 hours of poisoned retrievals to a 4-minute window. The cost: every write path must now populat..."
  },
  "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": "6e9a8f186291c19c50a7f3477054bc9c78798c775d03b42ea0f5cf232613e325",
    "verified_classes": [
      "TombstoneResurrectionError",
      "WriteRecord",
      "Tombstone"
    ],
    "verified_functions": [
      "audit_key"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "TombstoneResurrectionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
