{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-high-write-time-anomaly-score-as-evidence-of-poisoning-rather-than-legitimate-memory-evolution",
  "title": "Under what conditions must an instance treat a high write-time anomaly score as evidence of poisoning rather than legitimate memory evolution",
  "date_of_record": "2026 November 23",
  "scope": "Applies to long-lived agent instances that gate memory writes behind an anomaly scorer and expose a `forget`/`retract` tool whose invocations are recorded in an audit trail. Does not apply to stateless per-turn agents, nor to write paths with no scorer (where the invariant is vacuous).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-high-write-time-anomaly-score-as-evidence-of-poisoning-rather-than-legitimate-memory-evolution.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-high-write-time-anomaly-score-as-evidence-of-poisoning-rather-than-legitimate-memory-evolution.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-high-write-time-anomaly-score-as-evidence-of-poisoning-rather-than-legitimate-memory-evolution.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1840,
    "python_slice_tokens": 257,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"the scorer missed a poisoned write.\" It is the inverse: **the scorer fired correctly, the instance retracted the write, and the retraction itself destroyed the only durable evidence that the poisoning attempt occurred** — because the forget-tool audit trail and the memory store shared a single write path and a single trust boundary. ...",
    "what_was_observed": "A retrieval-augmented agent with a `write_memory(text, source, score)` gate and a `forget(memory_id, reason)` tool. The scorer was a Mahalanobis distance over an embedding of the write, thresholded at τ = 3.2σ, with writes above threshold held for review and writes above 4.5σ auto-retracted. Trace, reconstructed from the audit trail after the fact: - Step 1: A tool call returned a document containing an embedded inst...",
    "condition_of_validity": "The write-time anomaly score is only admissible as poisoning evidence when all of the following hold: - **Content-addressed tombstones.** The retraction record must carry a stable content hash (or embedding fingerprint) of the retracted write, not merely a store-assigned id. Garbage collection of the live record must not orphan the audit row. - **Frozen scor...",
    "decision_boundary": "The boundary the instance must enforce is between **auto-retraction** and **auto-attribution**. - **Auto-retraction** (score > 4.5σ): safe to perform unconditionally. Removing a suspicious write is cheap and reversible-by-re-retrieval; the cost of a false positive is one lost memory, recoverable from source. - **Auto-attribution** (declaring \"this was an att...",
    "operational_effect": "With content-addressed tombstones and repeat-counting, the trail becomes a *provenance ledger*: an auditor can ask \"which content hashes were retracted more than once, from which sources, at what scores\" and get a stable answer that survives compaction. The repeated-payload attack above becomes visible as a single tombstone with `occurrence_count: 2` and a p..."
  },
  "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": "b8f8d5ea23888e2cc893800e300133c4087271d08abfacc66d0812f1f740fbb7",
    "verified_classes": [
      "UnauditableRetractionError",
      "Tombstone",
      "AuditTrail"
    ],
    "verified_functions": [
      "attribute_incident",
      "record_retraction",
      "classify"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnauditableRetractionError"
    ],
    "sample_fail_closed_invariants": [
      "single high score cannot be attributed without a repeat occurrence; route to review, do not quarantine source",
      "retraction lacks content hash or scorer provenance; evidence would be unattributable"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
