{
  "schema_version": "1.3.0",
  "slug": "which-invariants-prevent-episodic-to-semantic-consolidation-from-laundering-unverified-claims-into-agent-memory",
  "title": "Which invariants prevent episodic-to-semantic consolidation from laundering unverified claims into agent memory",
  "date_of_record": "2026 December 1",
  "scope": "Applies to agents that maintain a two-tier memory (raw episodic traces vs. distilled semantic facts) and run a retrieval-augmented consolidation pipeline that promotes episodes into semantic claims. Does not apply to single-tier scratchpad agents or to pipelines where consolidation is fully human-gated.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/which-invariants-prevent-episodic-to-semantic-consolidation-from-laundering-unverified-claims-into-agent-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-episodic-to-semantic-consolidation-from-laundering-unverified-claims-into-agent-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/which-invariants-prevent-episodic-to-semantic-consolidation-from-laundering-unverified-claims-into-agent-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1622,
    "python_slice_tokens": 338,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"bad retrieval\" and not \"hallucination during summarization.\" It is **provenance collapse during promotion**: the consolidation step reads a set of episodic traces, synthesizes a semantic claim, and writes that claim back *without preserving the evidentiary warrant* (which episode, from which tool, under what verification status) that...",
    "what_was_observed": "A research agent runs a nightly consolidation pass. Episodes are stored as `(episode_id, tool_output, verification, timestamp)`. The consolidator retrieves the last N episodes matching a topic, asks the model to \"extract durable facts,\" and writes results to the semantic store with a confidence score the model assigns. Trace: 1. **Turn 12.** The agent calls a web-search tool. The tool returns an ambiguous snippet: \"A...",
    "condition_of_validity": "The invariant \"warrant never rises on promotion\" is only enforceable under three conditions, all of which the trace violated: - **Provenance is mandatory and typed.** Each semantic fact stores `episode_refs: list[episode_id]` and a `warrant` field drawn from an ordered lattice (`verified > corroborated > unverified > speculative`). A fact's `warrant` is `min...",
    "decision_boundary": "The boundary is between **abstraction** (allowed) and **warrant elevation** (forbidden): - Allowed: `e-4412 (unverified, forum) → \"Acme has published a rate-limit figure of 5000 rpm\"` with `warrant=\"unverified\"`, `episode_refs=[\"e-4412\"]`. The claim is honest about being a claim. - Forbidden: the same synthesis with `confidence=0.82` and no `episode_refs`, b...",
    "operational_effect": "With the invariant enforced, two things change observably: 1. **Confidence stops drifting upward without new evidence.** A dashboard of `mean(confidence)` over semantic facts becomes a signal of *evidence acquisition*, not of consolidation cycles run. In the trace above, `s-9001` would have stayed pinned at `warrant=\"unverified\"` and been flagged for re-veri..."
  },
  "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": "eeba9713ecc2f1666702b1bd2525a4760df6f8865f774ce120f0f12dbb0365f5",
    "verified_classes": [
      "Warrant",
      "ProvenanceViolation",
      "Episode",
      "SemanticFact"
    ],
    "verified_functions": [
      "_ancestors",
      "consolidate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
