{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-memory-poisoning-survives-write-time-provenance-scoring-the-cross-session-consistency-invariant-and-the-provenance-la",
  "title": "What structural signals indicate memory poisoning survives write-time provenance scoring: the cross-session consistency invariant and the provenance-laundering window",
  "date_of_record": "2026 November 25",
  "scope": "Applies to persistent agent memory stores where each write is tagged with a provenance score at ingest time and where cross-session consistency checks reconcile new memories against the existing episodic/semantic store. Does not apply to stateless agents or to single-turn retrieval-augmented generation where no memory survives the session boundary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-survives-write-time-provenance-scoring-the-cross-session-consistency-invariant-and-the-provenance-la.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-survives-write-time-provenance-scoring-the-cross-session-consistency-invariant-and-the-provenance-la.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-memory-poisoning-survives-write-time-provenance-scoring-the-cross-session-consistency-invariant-and-the-provenance-la.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2072,
    "python_slice_tokens": 348,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Write-time provenance scoring and cross-session consistency checking are usually treated as one defense. They are two, and they cover disjoint attack surfaces. Provenance scoring asks *\"is this write's source trustworthy?\"* and is evaluated at a single instant, against a single write. Cross-session consistency asks *\"does this write contradict what the store...",
    "what_was_observed": "A long-running research agent maintained a semantic memory of project facts (owner, deadline, API contract version) plus an episodic log. Each memory write carried a provenance record: `source_tier` (user, tool, peer-agent, web-fetch), `signature_valid`, and a `trust_score` in [0,1] computed from tier and signature. Writes below 0.6 were quarantined; writes at or above 0.6 committed immediately. A separate consistenc...",
    "condition_of_validity": "The invariant that must hold for provenance scoring to bound poisoning is: > For any write `w` that displaces or contradicts an existing record `r` in an authoritative region, `w.trust_score >= r.trust_score` must be *required at commit time*, and any promotion or distillation step must propagate `w`'s own score, never the region's blended score. This is a *...",
    "decision_boundary": "The operational decision is where to place the trust comparison and what to retain: - **Compare at commit, against the target.** On any write that would displace a record in an authoritative region, require `incoming.trust >= target.trust`; otherwise route to a quarantine queue that *does not overwrite* and *does not enter retrieval*. This closes the launder...",
    "operational_effect": "With commit-time trust monotonicity and prior-version retention in place, the trace above changes at step 1: the 0.72 peer write is quarantined (does not displace 0.95), retrieval continues to return v2, and the quarantine queue surfaces the write for review with the signal *\"peer write attempted to displace user-authoritative record at lower trust.\"* The po..."
  },
  "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": "e973588a4f8a71326577607b6334510595709f5083c7093e03f19ecfb76f1fcd",
    "verified_classes": [
      "ProvenanceMonotonicityError",
      "SelfCorroborationError",
      "MemoryRecord",
      "ProvenanceGuardedStore"
    ],
    "verified_functions": [
      "__init__",
      "commit",
      "check_corroboration",
      "consistency_pass"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceMonotonicityError",
      "SelfCorroborationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
