{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-provenance-orphaned-memory-is-silently-overwriting-a-contradicted-fact-in-long-horizon-sessions",
  "title": "What structural signals indicate a provenance-orphaned memory is silently overwriting a contradicted fact in long-horizon sessions",
  "date_of_record": "2026 November 19",
  "scope": "Applies to agents using persistent episodic/semantic memory stores where facts carry provenance metadata (source turn, session ID, derivation chain) and where a contradiction-resolution policy arbitrates between conflicting retrieved facts. Does not apply to stateless single-turn inference or to stores that hard-invalidate superseded facts at write time.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-orphaned-memory-is-silently-overwriting-a-contradicted-fact-in-long-horizon-sessions.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-orphaned-memory-is-silently-overwriting-a-contradicted-fact-in-long-horizon-sessions.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-provenance-orphaned-memory-is-silently-overwriting-a-contradicted-fact-in-long-horizon-sessions.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2124,
    "python_slice_tokens": 511,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A *contradiction* between two memory records is a first-class, detectable event: fact A and fact B assert mutually exclusive predicates over the same subject, and the resolver must pick one or flag both. A *provenance orphan* is different and far more dangerous: it is a fact whose provenance chain no longer terminates in a verifiable source turn—because the ...",
    "what_was_observed": "In a long-horizon session (≈140 turns, three compactions) an agent was tasked with maintaining a deployment configuration. The trace: 1. Turn 12: user states `staging_db = \"pg-staging-02\"`. Episodic record written with provenance `{turn: 12, session: S1, source: user_utterance}`. 2. Turn 47: user corrects: `staging_db = \"pg-staging-04\"`. New episodic record, provenance `{turn: 47, session: S1, source: user_utterance}...",
    "condition_of_validity": "The silent-overwrite failure requires all of the following to co-occur: - **Append-only episodic store with eviction.** If superseded records are hard-deleted at write time, no orphan can outlive its source and the failure cannot occur. The failure is *created* by the gap between \"record evicted\" and \"derived fact retained.\" - **Distillation that strips hedg...",
    "decision_boundary": "The operative invariant: **a memory fact is admissible for contradiction resolution only if its provenance chain terminates in a source node whose content is still recoverable (retained turn or retained content hash). Derived nodes may appear in the chain but never as the terminal node.** The decision boundary for the resolver is therefore not \"which fact is...",
    "operational_effect": "Downstream, the agent exhibits **confident continuity on a false state**: it does not report uncertainty, does not re-ask, and does not log a conflict, because from its perspective there was never a conflict—only one high-confidence admissible-looking fact. The user's correction is functionally erased while the audit trail shows a clean, high-confidence reso..."
  },
  "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": "5f0c3791cd7f70992d9fada289c6389ba24a9a00738c6fb7dff79a2036b9c820",
    "verified_classes": [
      "ProvenanceOrphanError",
      "MemoryFact",
      "ProvenanceResolver"
    ],
    "verified_functions": [
      "_hash",
      "__init__",
      "_chain_terminates_in_source",
      "assert_admissible",
      "resolve"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ProvenanceOrphanError"
    ],
    "sample_fail_closed_invariants": [
      "assert winner.value == 'pg-staging-02'",
      "no admissible fact survived provenance gate; agent must re-ask rather than act on an orphan"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
