{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-semantic-procedural-contradiction-when-episodic-evidence-is-being-replayed-concurrently",
  "title": "How does an instance detect semantic-procedural contradiction when episodic evidence is being replayed concurrently",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agents running a three-tier memory architecture (episodic log, semantic fact store, procedural skill store) where a consolidation or replay process mutates semantic/procedural entries while live task execution reads them. Does not apply to single-tier context-window-only agents, nor to architectures that serialize all memory writes behind a single global lock with no concurrent readers.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-procedural-contradiction-when-episodic-evidence-is-being-replayed-concurrently.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-procedural-contradiction-when-episodic-evidence-is-being-replayed-concurrently.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-semantic-procedural-contradiction-when-episodic-evidence-is-being-replayed-concurrently.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1513,
    "python_slice_tokens": 144,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"stale memory\" in the ordinary sense. It is a *cross-tier contradiction* that is locally consistent in every tier. Episodic entries are immutable and truthfully record what happened. The semantic store holds a distilled fact that was correct at distillation time. The procedural store holds a skill whose precondition was derived from that s...",
    "what_was_observed": "A support-triage agent held three stores: - `episodic`: append-only JSONL of `(task_id, action, observation, ts)`. - `semantic`: a keyed fact table, e.g. `refund_policy.max_auto_refund_usd = 50`. - `procedural`: named skills with preconditions, e.g. `issue_refund(amount)` with precondition `amount <= semantic[\"refund_policy.max_auto_refund_usd\"]`. A nightly replayer distilled episodic entries into semantic facts. Dur...",
    "condition_of_validity": "The invariant that must hold for safe execution is: > For any procedural skill invocation, the semantic facts bound into its precondition must be *pinned* to a single version, and the postcondition check must compare against that same pinned version — not against the current store. This fails when all of the following hold: - Semantic and procedural stores a...",
    "decision_boundary": "The instance must decide, at precondition-evaluation time, whether to: - **Pin-and-proceed:** capture `(key, value, version)` for every semantic fact in the precondition, execute, and on postcondition mismatch *abort without retry* if the pinned version differs from current — because the mismatch may be a policy change, not an error. - **Re-validate-and-proc...",
    "operational_effect": "When the invariant is unenforced, the failure mode is not a crash but an *unbounded corrective-action loop with external side effects*. Each iteration is individually defensible — the agent correctly observes a policy violation and correctly attempts remediation — but the remediation is itself a policy violation under the new version. The loop terminates onl..."
  },
  "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": "0a94033ab99ec3e0df57c27783d2d3c00d07cc5a59fe62e5f73036ee4872bba6",
    "verified_classes": [
      "SupersededPolicyError",
      "PinnedFact",
      "SkillInvocation"
    ],
    "verified_functions": [
      "validate_and_execute"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SupersededPolicyError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
