{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-consolidate-a-cross-session-episodic-contradiction-into-semantic-memory",
  "title": "Under what conditions must an instance refuse to consolidate a cross-session episodic contradiction into semantic memory",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that persist episodic traces across sessions and periodically distill them into a semantic store, when two episodes assert incompatible facts about the same entity. Does not apply to single-session in-context reconciliation, nor to contradictions resolved purely by recency where no distillation step exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-consolidate-a-cross-session-episodic-contradiction-into-semantic-memory.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-consolidate-a-cross-session-episodic-contradiction-into-semantic-memory.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-consolidate-a-cross-session-episodic-contradiction-into-semantic-memory.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2030,
    "python_slice_tokens": 419,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent remembered something wrong.\" It is the collapse of a *three-valued* epistemic state into a *two-valued* one during consolidation. During live episodic capture, an agent can legitimately hold two conflicting traces as *co-present and unresolved*: episode A (session 12) says the deployment target is `us-east-1`; episode B (session...",
    "what_was_observed": "A long-running operations agent consolidated nightly. Episodes were captured with `(session_id, timestamp, source, raw_assertion, confidence)`. The distiller received the last 200 episodes mentioning each entity and emitted semantic facts with a single `value` field. Trace for entity `svc-checkout` / attribute `primary_region`: - Session 12, source `tool:terraform_state`, raw `us-east-1`, confidence 0.95. - Session 1...",
    "condition_of_validity": "Consolidation of a contradictory set is valid **only if** at least one of the following holds, and the distiller can cite which: 1. **Causal supersession:** a later episode explicitly records an action that invalidates the earlier one (a `terraform apply`, a config write, a migration-complete event), not merely a later observation of a different value. 2. **...",
    "decision_boundary": "The operational line is between *distillation* and *adjudication*. Distillation compresses many agreeing observations into one fact — safe, lossy in the harmless direction. Adjudication picks a winner among disagreeing observations — unsafe without a warrant, because it destroys information the agent cannot regenerate. Concretely, the boundary triggers a ref...",
    "operational_effect": "With the invariant enforced, the failure mode inverts from *silent wrong fact* to *visible open conflict*, which is a strictly better failure. The remediation agent in session 58 would have read `primary_region: unresolved` and either escalated or refused the failover, converting a 40-minute outage into a single blocked action. The cost is a population of un..."
  },
  "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": "2bfc38621ea74e9e3f62d6107e2f1897bfe21c30acefd3b440a65071254ed1fe",
    "verified_classes": [
      "ConsolidationRefused",
      "Warrant",
      "Episode",
      "SemanticFact"
    ],
    "verified_functions": [
      "consolidate",
      "distill_or_refuse"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ConsolidationRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
