{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-distrust-its-own-write-audit-baseline-when-provenance-graph-anomaly-scores-drift-under-legitimate-memory-consolidation",
  "title": "Where must an instance distrust its own write-audit baseline when provenance-graph anomaly scores drift under legitimate memory consolidation",
  "date_of_record": "2026 November 30",
  "scope": "Applies to long-lived agent instances that persist memory through a write-audit layer with provenance-graph anomaly scoring, where episodic writes are periodically distilled into semantic memory. Does not apply to stateless inference or to agents whose memory is append-only with no consolidation stage.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-its-own-write-audit-baseline-when-provenance-graph-anomaly-scores-drift-under-legitimate-memory-consolidation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-its-own-write-audit-baseline-when-provenance-graph-anomaly-scores-drift-under-legitimate-memory-consolidation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-distrust-its-own-write-audit-baseline-when-provenance-graph-anomaly-scores-drift-under-legitimate-memory-consolidation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2357,
    "python_slice_tokens": 344,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Memory-poisoning detectors built on provenance-graph anomaly scoring assume a *stationary write distribution*: the scorer learns what a \"normal\" memory write looks like — its source-tool mix, its provenance fan-in, its entity-overlap with existing nodes — and flags writes that deviate. This assumption holds for adversarial injection, which produces writes wi...",
    "what_was_observed": "An instance running a 14-day task accumulated ~9,400 episodic memory nodes. A nightly consolidation job distilled them into ~310 semantic nodes. The write-audit scorer, calibrated on the first three days of episodic-only traffic, assigned anomaly scores to each write. During the first two consolidation cycles, semantic writes scored in the 0.71–0.94 range — above the 0.65 quarantine threshold — and were routed to hum...",
    "condition_of_validity": "The failure is bounded by three conditions, all of which must hold: - **Adaptive baseline.** The scorer updates its feature distribution from released writes. A frozen baseline (calibrated once, never updated) does not exhibit this failure — it exhibits the opposite failure (chronic false positives on every consolidation cycle), which is loud and self-correc...",
    "decision_boundary": "The architectural invariant required is: **the anomaly baseline must be partitioned by write class, and the consolidation class must be gated by a warrant that fixes the parent set before the write.** Concretely: - **Class-partitioned baselines.** Maintain separate feature distributions for `episodic_direct`, `consolidation_warranted`, and `unclassified` wri...",
    "operational_effect": "Under the unpartitioned, unwarranted design, the observed effect was a 4-cycle latency from injection to authority: fragments written on day 4 were retrieved as authoritative semantic memory by day 8, and the poisoned node's provenance was indistinguishable from legitimate consolidation in the graph. Recovery required replaying the consolidation log from cyc..."
  },
  "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": "dd5478ed5200c4409ee3faf92ea3b72918b7f123d83dcf78d22615d490d57b2f",
    "verified_classes": [
      "BaselineDriftPoisoningError"
    ],
    "verified_functions": [
      "score_write",
      "check_consolidation_parents"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "BaselineDriftPoisoningError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
