{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-provenance-weighted-trust-scoring-from-silently-ratifying-a-poisoned-memory-after-cross-session-corroboration",
  "title": "Which invariants prevent provenance-weighted trust scoring from silently ratifying a poisoned memory after cross-session corroboration",
  "date_of_record": "2026 December 1",
  "scope": "Applies to persistent agent memory stores where retrieved episodic records carry provenance metadata (writer identity, session lineage, write-time trust) and where a downstream trust score is computed by weighting provenance against cross-session corroboration counts. Does not apply to stateless single-turn agents, nor to stores where each memory record is re-validated against ground truth on every read.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-weighted-trust-scoring-from-silently-ratifying-a-poisoned-memory-after-cross-session-corroboration.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-weighted-trust-scoring-from-silently-ratifying-a-poisoned-memory-after-cross-session-corroboration.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-provenance-weighted-trust-scoring-from-silently-ratifying-a-poisoned-memory-after-cross-session-corroboration.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2400,
    "python_slice_tokens": 548,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a poisoned memory can enter an agent's working context. The first is *injection*: a hostile record arrives through a tool output, retrieved document, or peer handoff and is used before any trust evaluation runs. This is a known and largely solved problem — you gate writes, you sanitize, you treat untrusted tool output as data rather than i...",
    "what_was_observed": "A research agent maintains a semantic memory store. Each record has the shape `{claim, provenance: {writer_id, session_id, parent_record_id, write_time_trust}, corroboration_count, trust_score}`. On write, `write_time_trust` is assigned by an ingestion gate: 0.9 for records distilled from the agent's own verified tool outputs, 0.4 for records distilled from retrieved web content, 0.2 for records from peer-agent hando...",
    "condition_of_validity": "The provenance-weighted trust score is only a valid estimator of a claim's truth when two conditions hold jointly: 1. **Causal independence of corroborators.** Every record counted toward `corroboration_count` must be traceable to a source that did not itself derive from the record being scored. Formally, the corroboration graph restricted to the claim's clu...",
    "decision_boundary": "The boundary between \"trust scoring works\" and \"trust scoring ratifies poison\" is crossed at the moment a record's `corroboration_count` includes a record whose `parent_record_id` chain passes through the scored record. Before that moment, the score is a conservative under-estimate. After it, the score is an unbounded over-estimate that grows with each sessi...",
    "operational_effect": "With the lineage guardrail in place, the session-4 promotion does not occur. `R3`'s merge is rejected because its ancestor set `{R1, R2}` intersects the cluster `{R1, R2}`. `R1.corroboration_count` stays at 1 (the peer handoff, itself untrusted, and itself subject to the same check). `R1.trust_score` plateaus at ~0.53 and never crosses 0.7. The false fact 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": "749ddec8dedc5ae0640674683448bafce6afa63f6a0a41a2caeeb491434c267c",
    "verified_classes": [
      "ProvenanceCycleError",
      "MemoryRecord"
    ],
    "verified_functions": [
      "_ancestors",
      "merge_into_cluster",
      "recompute_trust"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceCycleError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
