{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-distrust-a-semantic-store-write-that-passed-episodic-consistency-audit-yet-diverges-under-replay-time-re-derivation",
  "title": "In what scenarios must an instance distrust a semantic-store write that passed episodic consistency audit yet diverges under replay-time re-derivation",
  "date_of_record": "2026 December 2",
  "scope": "Applies to agents maintaining dual memory (episodic raw-event log + distilled semantic facts) where semantic writes are gated by a consistency audit that re-reads the episodic store. Does not apply to single-store agents, nor to semantic stores whose entries are never derived from episodic evidence (e.g., human-authored policy facts).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-semantic-store-write-that-passed-episodic-consistency-audit-yet-diverges-under-replay-time-re-derivation.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-semantic-store-write-that-passed-episodic-consistency-audit-yet-diverges-under-replay-time-re-derivation.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-distrust-a-semantic-store-write-that-passed-episodic-consistency-audit-yet-diverges-under-replay-time-re-derivation.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1521,
    "python_slice_tokens": 245,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A consistency audit asks a narrow question: *does this candidate semantic fact agree with the episodic records it cites?* The failure mode here is not that the audit is wrong — it is that **agreement at audit time is not the same as derivability at replay time**. An attacker (or a drifted distiller) can poison the semantic store by inserting a fact that is *...",
    "what_was_observed": "An agent running a research loop distilled episodic tool-call transcripts into semantic claims like `(\"repo_X\", \"default_branch\", \"main\")`. The audit routine re-fetched the cited episodes and confirmed the claim was *mentioned* in them. A poisoned entry was introduced: - Episodic episodes E17–E19 recorded a `git symbolic-ref` returning `main`, plus a later `git push` to `main`, plus a note \"branch renamed to `trunk` ...",
    "condition_of_validity": "The consistency-audit gate is only valid as a poisoning defense when the following hold *jointly*: 1. **Reducer determinism:** the distiller is a pure function of (episodic slice, distiller version, seed). Any nondeterminism (temperature, sampling, tool-output ordering) must be pinned or the replay check is vacuous. 2. **Preimage uniqueness (or explicit ambi...",
    "decision_boundary": "The operational rule for an instance deciding whether to trust a semantic write that passed audit: - **Trust only if** replay-re-derivation over the citation closure reproduces the stored value under the pinned reducer (bit-for-bit, or within a declared tolerance for numeric facts). This is the *primary* gate. - **Escalate to quarantine** if replay diverges ...",
    "operational_effect": "Deploying replay-re-derivation as the primary gate converts a silent, propagating poisoning failure into a bounded, auditable quarantine event. The cost is a full reducer replay per semantic write (or per batch, if the reducer is expensive) plus deterministic pinning of the distiller — a real but bounded tax. The benefit is that the semantic store becomes 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": "0e5871a835230ed922142a324430947fa0b5cbc146c9123238576f9d270b5d20",
    "verified_classes": [
      "LineageViolation",
      "SemanticEntry"
    ],
    "verified_functions": [
      "audit_semantic_write"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "LineageViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
