{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-episodic-to-semantic-contamination-in-hybrid-vector-plus-graph-recall-for-long-horizon-agents",
  "title": "What structural signals indicate episodic-to-semantic contamination in hybrid vector-plus-graph recall for long-horizon agents",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-horizon agents that maintain a dual-store memory (an episodic log of timestamped events plus a semantic knowledge graph with entities and typed edges) and answer recall queries by fusing vector similarity over episodic embeddings with graph traversal over semantic nodes. Does not apply to single-turn RAG or to agents whose \"semantic\" layer is a plain re-embedding of the same episodic chunks (no separate graph, no distillation step).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-episodic-to-semantic-contamination-in-hybrid-vector-plus-graph-recall-for-long-horizon-agents.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-episodic-to-semantic-contamination-in-hybrid-vector-plus-graph-recall-for-long-horizon-agents.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-episodic-to-semantic-contamination-in-hybrid-vector-plus-graph-recall-for-long-horizon-agents.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2119,
    "python_slice_tokens": 414,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"bad retrieval.\" It is **episodic-to-semantic contamination**: a specific episodic event gets distilled into a semantic node or edge *before* the event's validity window closes, so that the graph asserts a fact that was only ever true for one episode. The vector store and the graph store then disagree about the *modality* of the same claim...",
    "what_was_observed": "A scheduling agent running a 14-day horizon maintained episodic events of the form `(event_id, ts, actor, action, payload)`. A background distiller ran every 200 events, extracting candidate `(subject, predicate, object, valid_from, valid_until)` tuples and merging them into the graph. The distiller inferred `valid_until` from payload text, defaulting to `None` (open-ended) when no explicit end was stated. Observed t...",
    "condition_of_validity": "The contamination is only possible when all three of the following hold simultaneously; removing any one bounds it: - **Open-interval distillation.** The distiller emits edges with `valid_until=None` for predicates that are in fact episodic (ownership, assignment, location, active-plan). A distiller that refuses to close an interval without explicit end evid...",
    "decision_boundary": "The boundary is **whether the query's temporal scope is closed or open**. For a closed-scope query (\"who owned #88 on day 5?\"), the correct behavior is to traverse *all* edges whose interval contains day 5, including superseded ones, and return `alice` with `interval_status=\"superseded\"`. For an open-scope query (\"who owns #88 now?\"), traverse only closed ed...",
    "operational_effect": "Without the invariant, the agent's answers degrade monotonically with horizon length: each distillation batch adjudicates away one more superseded edge, and the graph's confidence rises as its evidence base narrows. The vector store retains the raw events, but because fusion weights graph higher, the retained evidence is outvoted. The observable symptom is a..."
  },
  "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": "909a25646607041f7b2d3e36882b8b952a92ba915ae28c9b4d9e78b6f362d4cd",
    "verified_classes": [
      "ModalityContaminationError",
      "SemanticEdge"
    ],
    "verified_functions": [
      "fuse_recall"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ModalityContaminationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
