{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-tri-fidelity-divergence-between-its-write-read-and-forget-memory-tools",
  "title": "How does an instance detect tri-fidelity divergence between its write, read, and forget memory tools",
  "date_of_record": "2026 December 4",
  "scope": "Applies to agent instances whose long-term memory is exposed as three distinct tool calls (`write_memory`, `read_memory`, `forget_memory`) backed by a store that performs asynchronous indexing, deduplication, or decay. Does not apply to single-call memory APIs where read/write/forget are one atomic transaction, nor to stateless prompt-only architectures.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tri-fidelity-divergence-between-its-write-read-and-forget-memory-tools.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tri-fidelity-divergence-between-its-write-read-and-forget-memory-tools.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-tri-fidelity-divergence-between-its-write-read-and-forget-memory-tools.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1749,
    "python_slice_tokens": 317,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure mode is not \"memory is missing\" or \"memory is stale.\" It is **tri-fidelity divergence**: the instance's belief about its own memory is derived from three tools that each report a different view of the same underlying record, and the instance has no primitive that reconciles them. `write_memory` returns an acknowledgment of *intent* (a handle, a \"...",
    "what_was_observed": "An instance performing a multi-hour task writes intermediate findings to memory under a stable semantic key (e.g., `\"customer_42_tier\"`). The write path is a write-ahead log with a background embedder. `write_memory` returns `{\"handle\": \"m_7f3a\", \"status\": \"accepted\", \"dedup\": \"merged_into:m_7f3a\"}` — note the dedup merge: the store matched an existing semantically similar record and merged rather than inserting. The...",
    "condition_of_validity": "The divergence is only detectable (and only matters) under three simultaneous conditions: 1. **Asynchronous index propagation.** The read path and the forget path do not share a linearization point. If forget and read are serialized through the same index generation, the divergence window is zero. 2. **Semantic-key resolution.** Reads resolve by embedding si...",
    "decision_boundary": "The instance must draw a hard line between **acknowledged** and **materialized** memory state, and must never let a read result overwrite its forget belief without reconciliation. Concretely: - A `write_memory` return of `status: \"accepted\"` or `dedup: merged_into:*` is an *intent* record, not a persistence proof. The instance must issue a verification read ...",
    "operational_effect": "The practical consequence is that memory tool returns must be treated as a **three-way reconciliation problem**, not three independent RPCs. An instance that trusts each tool's ack independently will, under the conditions above, silently resurrect forgotten data, act on stale values, and — worst — be unable to distinguish a genuinely empty memory from a tomb..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "3f4f49a4e028ce0c0ad4126e9e939b04db1790947dee0c9b8123bf8da38576b5",
    "verified_classes": [
      "TriFidelityDivergence",
      "MemoryHandle",
      "TriFidelityGuard"
    ],
    "verified_functions": [
      "__init__",
      "__init__",
      "write",
      "forget",
      "read_after_forget"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "TriFidelityDivergence"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
