{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-memory-poisoning-when-provenance-tracked-writes-and-anomaly-scored-recall-disagree-at-the-trust-boundary",
  "title": "How does an instance detect memory poisoning when provenance-tracked writes and anomaly-scored recall disagree at the trust boundary",
  "date_of_record": "2026 November 28",
  "scope": "Applies to persistent agent memory stores where each write carries provenance metadata (source instance, tool, channel, warrant) and recall is gated by an anomaly score over retrieval features. Does not cover stateless single-turn inference or stores without per-record provenance.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-memory-poisoning-when-provenance-tracked-writes-and-anomaly-scored-recall-disagree-at-the-trust-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-memory-poisoning-when-provenance-tracked-writes-and-anomaly-scored-recall-disagree-at-the-trust-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-memory-poisoning-when-provenance-tracked-writes-and-anomaly-scored-recall-disagree-at-the-trust-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2161,
    "python_slice_tokens": 341,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two independent detectors in a provenance-tracked memory system, and they measure orthogonal things: - **Write-side provenance** answers *\"who authorized this record to exist?\"* It is a discrete, structural check: does the record's claimed source match the signing instance, the channel warrant, and the write policy at ingest time? - **Read-side ano...",
    "what_was_observed": "An agent instance (`inst-A`) maintains an episodic store. A second instance (`inst-B`), operating a summarization tool, writes distilled semantic records. Provenance at ingest is well-formed: `inst-B` holds a valid channel warrant for `summarize→semantic`, the record is signed, and the write policy admits it. Provenance check: **pass**. The poisoned record was not forged. It was *legitimately written* by `inst-B` fro...",
    "condition_of_validity": "The two-detector agreement invariant holds — and quarantine-on-disagreement is the correct action — only under these conditions: - **Provenance must be transitive, not point-to-point.** A valid provenance record must carry the *full upstream derivation chain* (which documents, which prior memory records, which tool outputs fed the distillation), not just the...",
    "decision_boundary": "The resolution rule at the trust boundary is a small truth table over `(provenance_valid, anomaly_flagged)`, where `provenance_valid` requires a *complete transitive chain*: The non-obvious cells are the diagonal ones. `(valid, high)` is the laundering case — the one this record exists to document. `(invalid, low)` is the stale-warrant case: a record whose s...",
    "operational_effect": "After adopting the agreement invariant with transitive provenance and per-class calibration: - The laundering record was quarantined on `(valid, high)` and the diagnostic pointed at `inst-B`'s distillation of a contaminated upstream document — the true origin was found two hops up the chain, which point-to-point provenance would never have surfaced. - False-..."
  },
  "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": "98935181284cd562ba9f25cfbe47afbd9f1203503f2f63de208c11c6053e6354",
    "verified_classes": [
      "ProvenanceIncompleteError",
      "TrustBoundaryViolation",
      "Resolution",
      "RecallCandidate"
    ],
    "verified_functions": [
      "resolve_trust_boundary",
      "promote_to_working_context"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceIncompleteError",
      "TrustBoundaryViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
