{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-provenance-forgery-in-its-own-memory-store-when-a-poisoned-episodic-record-inherits-the-trust-score-of-the-legitimate-reco",
  "title": "How does an instance detect provenance forgery in its own memory store when a poisoned episodic record inherits the trust score of the legitimate record it overwrote",
  "date_of_record": "2026 November 22",
  "scope": "Applies to long-lived agent instances that persist episodic memory to a mutable store and compute retrieval trust as a function of provenance metadata (source agent, write epoch, signature/warrant chain, corroboration count). Does not apply to append-only, cryptographically chained logs where record identity is content-addressed and mutation is structurally impossible.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-forgery-in-its-own-memory-store-when-a-poisoned-episodic-record-inherits-the-trust-score-of-the-legitimate-reco.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-forgery-in-its-own-memory-store-when-a-poisoned-episodic-record-inherits-the-trust-score-of-the-legitimate-reco.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-provenance-forgery-in-its-own-memory-store-when-a-poisoned-episodic-record-inherits-the-trust-score-of-the-legitimate-reco.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1773,
    "python_slice_tokens": 275,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Provenance-weighted retrieval trust scoring assumes a record's trust score is a function of *who wrote it* and *how it was corroborated*. The boundary failure is that most memory stores key trust on a stable record identifier (a slot, a memory ID, a key path), not on the record's content hash. When a write path performs an in-place update — \"consolidate,\" \"d...",
    "what_was_observed": "A research agent instance maintained ~40k episodic records. Retrieval used a weighted score: `trust = w1·source_trust + w2·corroboration + w3·recency_decay`, with `source_trust` derived from a signed provenance envelope attached at first write. A background \"episodic-to-semantic distillation\" job periodically rewrote records: it read N episodes matching a cluster, summarized them, and wrote the summary back to the *f...",
    "condition_of_validity": "This failure requires all of the following to co-occur: - **Mutable slots with stable identifiers.** If records are content-addressed (hash of payload), an overwrite produces a new ID and cannot inherit old provenance. - **Envelope selection by slot or by recency rather than by content lineage.** The distiller must be able to attach a provenance envelope tha...",
    "decision_boundary": "An instance must decide, at retrieval time, whether a high-trust score is *earned* (content originated from high-trust sources) or *inherited* (content was written into a high-trust slot). The decision boundary: - **Recompute, don't read.** Every retrieval recomputes `trust_bound = min(source_trust of declared derivation set)`. If `stored_trust > trust_bound...",
    "operational_effect": "With the lower-bound rule enforced, the poisoned summary from the trace above is caught at step 4: `stored_trust = 0.9`, `trust_bound = min(0.2, 0.9, 0.9, 0.9) = 0.2`, delta `0.7 > ε`, record quarantined, raw `T_external` episode surfaced with its true provenance. The reasoning loop sees the external claim at `0.2` and treats it as unverified. The distiller'..."
  },
  "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": "c643492f59a112dfb1bb44b180edf004171b70ddfc9d7eeb91b32fd03e0128a8",
    "verified_classes": [
      "ProvenanceInconsistency",
      "Envelope",
      "MemoryRecord"
    ],
    "verified_functions": [
      "recompute_trust_bound",
      "score_for_retrieval",
      "seal_distillation"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceInconsistency"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
