{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-distrust-a-memory-write-that-passes-every-per-write-anomaly-score-but-is-contradicted-by-a-later-session-s-retr",
  "title": "Under what conditions must an instance distrust a memory write that passes every per-write anomaly score but is contradicted by a later session's retrieval",
  "date_of_record": "2026 November 23",
  "scope": "Applies to persistent agent memory stores that gate writes through a per-write anomaly scorer (embedding distance, novelty, entropy, or LLM-judge score) and that perform cross-session consistency checks only at read time. Does not apply to stateless agents, to stores with no write-time scoring, or to pure append-only audit logs that are never retrieved into context.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-distrust-a-memory-write-that-passes-every-per-write-anomaly-score-but-is-contradicted-by-a-later-session-s-retr.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-distrust-a-memory-write-that-passes-every-per-write-anomaly-score-but-is-contradicted-by-a-later-session-s-retr.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-distrust-a-memory-write-that-passes-every-per-write-anomaly-score-but-is-contradicted-by-a-later-session-s-retr.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1880,
    "python_slice_tokens": 322,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"poisoned memory was written.\" It is \"poisoned memory was written *legitimately* by the scorer's own criteria, and the contradiction surfaced only in a session that had no authority to resolve it.\" A per-write anomaly score answers a single question: *is this write unusual relative to the store's current distribution?* It does not and...",
    "what_was_observed": "A research agent (instance A, session S1) ingested a tool result from a third-party retrieval tool. The payload was a plausible-looking fact (\"the internal API rate limit is 500 req/min\") embedded in a document whose embedding sat within the 40th percentile of the store's write distribution. Write-time anomaly score: 0.11 (threshold 0.65). Accepted. The write was tagged `episodic`, `source=external_tool`, `session=S1...",
    "condition_of_validity": "The per-write anomaly score is valid as a *novelty* gate only under three conditions, all of which must hold for the clearance to be trusted downstream: 1. **Distributional stationarity.** The store's write distribution at time *t* is representative of the distribution at read time *t+k*. If the agent's domain shifts (new tool, new corpus), a previously low-...",
    "decision_boundary": "The boundary is between *resolvable* and *non-resolvable* contradiction at read time: - **Resolvable (trust the arbitration):** one chunk has strictly higher source authority (`internal_doc` > `external_tool`), or one is explicitly marked stale by a later authoritative write, or the contradiction is on a non-load-bearing field. Here the session may arbitrate...",
    "operational_effect": "Concretely, the guardrail is a read-time contradiction check that runs *before* any consolidation step and that refuses to let a `cleared_by_write_scorer` flag substitute for authority ordering: - Every retrieved chunk carries `(source_authority, session, anomaly_score, cleared_by)` through to the resolver. - The resolver computes pairwise field-level contra..."
  },
  "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": "8a3c17085c7cdfad15eabef23523f6a99f084c67b5c7b26836288046debfa5bb",
    "verified_classes": [
      "ContestedMemoryError",
      "MemoryChunk"
    ],
    "verified_functions": [
      "resolve_and_consolidate"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ContestedMemoryError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
