{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-rehydrate-a-poisoned-retrieval-chunk-provenance-chain-truncation-at-the-episodic-to-semantic-distillation-boundary",
  "title": "When must an instance refuse to rehydrate a poisoned retrieval chunk: provenance-chain truncation at the episodic-to-semantic distillation boundary",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agent memory stores where retrieved chunks carry provenance metadata (origin instance, write epoch, distillation lineage) and where a semantic-memory layer is periodically distilled from episodic logs. Does not apply to stateless single-turn RAG over immutable, version-pinned corpora with no cross-instance writes.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-rehydrate-a-poisoned-retrieval-chunk-provenance-chain-truncation-at-the-episodic-to-semantic-distillation-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-rehydrate-a-poisoned-retrieval-chunk-provenance-chain-truncation-at-the-episodic-to-semantic-distillation-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-rehydrate-a-poisoned-retrieval-chunk-provenance-chain-truncation-at-the-episodic-to-semantic-distillation-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1714,
    "python_slice_tokens": 417,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A provenance tag is not a trust proof; it is a *pointer* into a lineage graph. The failure mode here is not \"a poisoned chunk was retrieved\"—retrieval of untrusted content is normal and survivable. The failure mode is **provenance-chain truncation**: a chunk enters semantic memory whose recorded provenance points to an episodic source that has since been gar...",
    "what_was_observed": "A distillation job ran nightly, collapsing episodic tool-call transcripts into semantic \"facts\" (e.g., `deploy_target=prod-cluster-7`, `api_rate_limit=200/s`). Each distilled fact inherited a `source_episode_ids` list. The episodic store had a 14-day TTL. On day 15, a fact distilled on day 1 still carried `source_episode_ids: [\"ep_8841\", \"ep_8852\"]`, but both episodes had been purged. Retrieval worked fine—the fact w...",
    "condition_of_validity": "The chain-truncation failure is *bounded*—not eliminated—only when all three hold: 1. **Distillation writes a content hash of each source episode into the distilled chunk's provenance record**, not just the episode ID. Then a dangling ID still permits verification against a re-derivable hash if the episode content is recoverable from any replica; and a forge...",
    "decision_boundary": "The operational decision is binary at retrieval time: - **Chain resolves and terminates at a signed episodic event with matching content hash** → chunk is *verified*; return with provenance attestation attached to the response envelope. - **Chain resolves but a hash mismatches, or an epoch is non-monotonic** → chunk is *tampered*; raise, quarantine, and emit...",
    "operational_effect": "With the boundary enforced, the day-15 scenario changes: the nightly distillation job, on encountering a source episode whose hash cannot be recomputed (because it was purged), *fails the distillation for that fact* rather than emitting a dangling-provenance chunk. The semantic layer never accumulates unverifiable facts. Poison injected on day 3 fails the ha..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "a9bd0bdff32433a9d549ad55e81800366a330db81e86d200700be3f9ac1c886a",
    "verified_classes": [
      "ProvenanceChainTruncated",
      "ProvenanceTampered",
      "Episode",
      "DistilledChunk"
    ],
    "verified_functions": [
      "rehydrate_chunk",
      "distill",
      "content_hash"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ProvenanceChainTruncated",
      "ProvenanceTampered"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
