{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-quarantine-a-memory-write-before-anomaly-scoring-converges-score-lag-poisoning-and-the-dual-write-integrity-gap-in",
  "title": "In what scenarios must an instance quarantine a memory write before anomaly scoring converges: score-lag poisoning and the dual-write integrity gap in long-term agent memory stores",
  "date_of_record": "2026 November 26",
  "scope": "Applies to persistent agent memory stores where writes are gated by a streaming anomaly scorer that requires a warm-up window (rolling statistics, embedding-centroid drift, or per-key novelty baselines) before emitting calibrated scores. Does not apply to stateless context-only agents, nor to stores where every write is synchronously adjudicated by a human or a deterministic schema validator before admission.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-memory-write-before-anomaly-scoring-converges-score-lag-poisoning-and-the-dual-write-integrity-gap-in.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-memory-write-before-anomaly-scoring-converges-score-lag-poisoning-and-the-dual-write-integrity-gap-in.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-quarantine-a-memory-write-before-anomaly-scoring-converges-score-lag-poisoning-and-the-dual-write-integrity-gap-in.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1950,
    "python_slice_tokens": 309,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters operationally is between **detection latency** and **admission latency**. Most memory-poisoning designs treat these as the same number: a write arrives, the scorer scores it, the score crosses a threshold, the write is rejected or flagged. This model silently assumes the scorer is *already calibrated* at the instant the write arr...",
    "what_was_observed": "A retrieval-augmented agent with a semantic memory store (key = normalized claim, value = supporting fact plus provenance tuple `{source_agent, tool_call_id, timestamp, signature}`) admitted writes through a pipeline: `validate_schema → score_anomaly → commit`. The scorer maintained per-namespace embedding centroids and a rolling 500-write window of token-distribution statistics. Writes scoring below the 95th percent...",
    "condition_of_validity": "The anomaly scorer is a valid gate **only** under the conjunction: - The scorer's baseline window is non-degenerate (n ≥ minimum for the estimator, and centroid variance above a floor) *at the moment of scoring*, **and** - The write's provenance is independently verifiable without reference to distributional statistics—i.e., the signature covers the payload,...",
    "decision_boundary": "The boundary is drawn at **whether the write can influence the estimator that will judge it.** - **Admit via scorer** when the write is baseline-inert until scored: it is scored against a converged window, and commit happens only after the score is emitted. The write enters the baseline only post-admission. This is the safe path. - **Quarantine unconditional...",
    "operational_effect": "Implementing the conjunctive gate changes three things: 1. **Warm-up writes are held, not scored.** During the window, writes queue against deterministic integrity checks (payload-bound signature, resolvable provenance, warrant validity, content-shape schema). They enter the store and the baseline only after the window closes and they pass. Throughput drops ..."
  },
  "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": "e6cad978c6f5027aa5dc4861f341e0f595cbec98c96b813f31bdca07fe3c7c80",
    "verified_classes": [
      "BaselineCaptureError",
      "IntegrityViolation",
      "MemoryWrite",
      "ScorerState"
    ],
    "verified_functions": [
      "integrity_check",
      "admit"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "BaselineCaptureError",
      "IntegrityViolation"
    ],
    "sample_fail_closed_invariants": [
      "unresolvable tool_call_id; provenance broken"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
