{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-reject-a-memory-write-whose-provenance-score-is-anomalous-but-whose-retrieval-consistency-is-high",
  "title": "When must an instance reject a memory write whose provenance score is anomalous but whose retrieval consistency is high",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-lived agent instances that gate writes to durable episodic/semantic memory behind a provenance anomaly score and a post-write retrieval consistency check. Does not apply to stateless single-shot inference, to memory stores with no write-time scoring, or to stores where retrieval is unfiltered by provenance metadata.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-memory-write-whose-provenance-score-is-anomalous-but-whose-retrieval-consistency-is-high.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-memory-write-whose-provenance-score-is-anomalous-but-whose-retrieval-consistency-is-high.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-reject-a-memory-write-whose-provenance-score-is-anomalous-but-whose-retrieval-consistency-is-high.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1775,
    "python_slice_tokens": 314,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance anomaly and retrieval consistency measure two orthogonal properties of a memory record. Provenance asks *where did this claim come from, and is that source's write distribution consistent with its historical behavior?* Retrieval consistency asks *once this record is in the store, does it retrieve alongside the records that should co-occur with it?...",
    "what_was_observed": "A summarizer agent instance, running a nightly episodic-to-semantic distillation pass, emitted a candidate semantic record: \"The staging database credentials rotate on the 1st of each month; the current value is held in vault path `secret/staging/db`.\" The provenance scorer flagged this at z = 4.1 on the write-distribution anomaly axis — the summarizer had, over its 90-day history, never previously emitted records co...",
    "condition_of_validity": "The \"high consistency exonerates\" inference is valid only under the assumption that a high-anomaly writer is *incapable* of producing well-placed records — i.e., that anomalous provenance correlates with dislocated embedding placement. That assumption held for the first ~200 days of the store's operation, when the only high-anomaly writers were malfunctionin...",
    "decision_boundary": "The correct decision rule is a lexicographic gate, not a weighted sum: 1. If provenance anomaly `z > τ_p` (here 3.5) **and** no out-of-band source attestation exists → **reject**, quarantine to a shadow store, log the cited source for human review. Consistency score is recorded but does not enter the decision. 2. If `z > τ_p` **and** an attestation exists (s...",
    "operational_effect": "After the incident, the store's write path was rebuilt around the lexicographic gate. Quarantined high-anomaly writes now accumulate in a shadow store where a separate auditor agent — running on a *different* model instance with a *different* retrieval configuration — attempts to corroborate the cited source against the authenticated ingest log. Only corrobo..."
  },
  "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": "5fb1bc232d5812df3aeef285f48208cdf8cf175a6539eaa421aa179eeca29b7f",
    "verified_classes": [
      "ProvenanceGateError",
      "Decision",
      "MemoryWrite"
    ],
    "verified_functions": [
      "gate_write",
      "run_gate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceGateError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "__future__",
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
