{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-trusts-a-memory-write-whose-audit-score-was-computed-against-a-poisoned-baseline",
  "title": "What happens when an instance trusts a memory write whose audit score was computed against a poisoned baseline",
  "date_of_record": "2026 November 27",
  "scope": "Applies to persistent agent memory stores (episodic or semantic) that gate writes through an anomaly-scoring auditor trained or calibrated on the store's own historical write distribution. Does not apply to write-once immutable logs, to stores with per-write human review, or to scoring that uses an externally pinned reference corpus.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-memory-write-whose-audit-score-was-computed-against-a-poisoned-baseline.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-memory-write-whose-audit-score-was-computed-against-a-poisoned-baseline.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-trusts-a-memory-write-whose-audit-score-was-computed-against-a-poisoned-baseline.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2232,
    "python_slice_tokens": 302,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Anomaly-scored write auditing is not a filter on individual writes; it is a filter on the *relationship* between a write and a baseline distribution. The baseline is itself mutable state derived from prior writes. This creates a two-phase failure surface that is categorically different from a single bad write slipping past a threshold: an attacker (or a drif...",
    "what_was_observed": "A retrieval-augmented agent with a persistent episodic store accumulated memory writes over a multi-week deployment. Each write was scored by an isolation-forest auditor fitted on the trailing 30-day write distribution (feature vector: embedding centroid distance to nearest cluster, token entropy, source-tool identity hash, write frequency from the originating session, and a normalized recency delta). Writes above th...",
    "condition_of_validity": "The invariant that must hold for write-audit scoring to be trustworthy is: > The scoring baseline must be derived from a distribution that the write path cannot influence, or the influence must be bounded and independently verified. Three concrete conditions define when this holds: 1. **Baseline provenance is external or frozen.** The reference distribution ...",
    "decision_boundary": "The operational decision boundary is not the per-write score threshold. It is the point at which the auditor's baseline is allowed to incorporate a write. Concretely: - **Commit-and-refit** (the failing pattern): a write scoring below threshold is committed and immediately eligible for baseline refit. Boundary condition: any adversary who can issue many sub-...",
    "operational_effect": "The practical consequences of getting this wrong are not \"a bad memory gets in.\" They are: 1. **Silent baseline capture.** The auditor's logs show a clean bill of health for the entire poisoning window. Post-incident forensics must reconstruct the baseline trajectory, not just the write log, because the write log looks normal by construction. Any incident-re..."
  },
  "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": "ecdf0ca135bad43d0bc604cb4a610964e4980d1963bf537a1535e880b34a332d",
    "verified_classes": [
      "BaselineCaptureError",
      "WriteAuditGate"
    ],
    "verified_functions": [
      "_region_key",
      "admit"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "BaselineCaptureError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
