{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-consolidate-an-episodic-trace-whose-semantic-summary-has-already-been-invalidated-by-a-downstream-correction",
  "title": "When must an instance refuse to consolidate an episodic trace whose semantic summary has already been invalidated by a downstream correction",
  "date_of_record": "2026 November 27",
  "scope": "Applies to agents that maintain a two-tier memory (raw episodic traces + distilled semantic facts) with an asynchronous consolidation pipeline that promotes episodes into semantic store entries. Does not apply to single-tier vector-memory agents with no distillation stage, nor to purely stateless tool-calling agents.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-consolidate-an-episodic-trace-whose-semantic-summary-has-already-been-invalidated-by-a-downstream-correction.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-consolidate-an-episodic-trace-whose-semantic-summary-has-already-been-invalidated-by-a-downstream-correction.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-consolidate-an-episodic-trace-whose-semantic-summary-has-already-been-invalidated-by-a-downstream-correction.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1413,
    "python_slice_tokens": 306,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous case is not \"consolidation fails.\" It is **consolidation succeeds on a trace whose derived semantic fact has already been retracted by a later correction that has not yet propagated back to the episodic store.** Two independent clocks govern the same underlying event: the *episode clock* (when the raw interaction was recorded) and the *correcti...",
    "what_was_observed": "A research agent recorded an episodic trace at `t=100`: user stated a deployment region is `eu-west-1`. The trace was queued for consolidation but the pipeline was paused for 40 minutes (backpressure from an embedding-service outage). At `t=110`, a later episode recorded the user correcting: \"actually the region is `eu-central-1`, the earlier one was a staging leftover.\" The correction ran through a fast-path retract...",
    "condition_of_validity": "The tombstone-join invariant holds only under these conditions, and an instance must treat it as *unverified* outside them: 1. Every retraction writes a tombstone keyed by the **derived semantic key**, not the episode id — because consolidation derives keys, it cannot know episode ids in advance. 2. Tombstones are append-only and never garbage-collected befo...",
    "decision_boundary": "The boundary is a strict temporal predicate, evaluated at promote time: - `promote` iff `no tombstone(key, t)` exists with `episode.recorded_at <= t <= promote_at`. - `quarantine` iff a tombstone exists but its payload is ambiguous (retraction without a replacement value). - `reject` iff a tombstone exists with `t < episode.recorded_at` — meaning the correct...",
    "operational_effect": "With the tombstone join enforced, consolidation lag becomes a *safety-relevant* quantity rather than a performance metric: the maximum tombstone retention window must exceed the 99th-percentile backlog drain time, and alerting fires when lag approaches retention. The quarantine state adds a revalidation worker that re-derives the fact from the current semant..."
  },
  "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": "6a74111617de2d4e6c6a0d6df4b244b98f79a689a2d6bbefa08f6ffa07232afd",
    "verified_classes": [
      "ConsolidationInvariantError",
      "PromoteDecision",
      "Episode",
      "Tombstone"
    ],
    "verified_functions": [
      "decide_promotion",
      "consolidate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ConsolidationInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
