{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-distrust-its-own-retrieval-hit-rate-metric-as-evidence-of-memory-health",
  "title": "Under what conditions must an instance distrust its own retrieval hit-rate metric as evidence of memory health",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-lived agent instances that use a vector index for episodic/semantic recall and emit per-session retrieval hit-rate, embedding-drift, and compaction-fidelity telemetry. Does not apply to stateless single-shot inference or to retrieval systems whose embedding model and corpus are frozen for the lifetime of the process.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-distrust-its-own-retrieval-hit-rate-metric-as-evidence-of-memory-health.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-distrust-its-own-retrieval-hit-rate-metric-as-evidence-of-memory-health.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-distrust-its-own-retrieval-hit-rate-metric-as-evidence-of-memory-health.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1964,
    "python_slice_tokens": 371,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A retrieval hit-rate metric answers one question: *of the queries issued, what fraction returned at least one result above the similarity threshold?* It does **not** answer the question operators actually care about: *did the agent retrieve the memory it needed to complete the task correctly?* These two quantities diverge systematically under embedding drift...",
    "what_was_observed": "An instance running a 90-day episodic memory with nightly compaction began emitting a stable hit-rate of 0.94–0.97 across all sessions. Compaction-fidelity — measured as cosine similarity between a summary vector and the centroid of its source episodes — held at 0.88. Both green. Yet task-completion audits showed a 31% increase in \"agent re-asked for information it had already stored\" events, and a 19% increase in to...",
    "condition_of_validity": "The hit-rate and compaction-fidelity metrics are valid evidence of memory health **only when all of the following hold**: - **Threshold provenance is pinned to an embedder version.** The threshold must carry the `(embedder_id, embedder_version, normalization)` tuple it was calibrated against. A threshold without provenance is a number, not a contract. - **A ...",
    "decision_boundary": "The operational rule an instance must apply at runtime: > **If the embedder version of the query path differs from the corpus manifest, OR the threshold's calibration tuple does not match the active embedder, the instance must classify its own hit-rate as `UNVERIFIED` and refuse to use it as a gate for memory promotion, compaction scheduling, or eviction.** ...",
    "operational_effect": "When the boundary is enforced, the observable consequences are: - **Embedder upgrades become gated events.** The instance cannot silently re-point its query embedder; the version mismatch raises, the index serves `UNVERIFIED`, and the upgrade must complete a re-anchor before memory operations resume. This converts a 6-hour silent degradation into a fail-fast..."
  },
  "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": "f1c470ad1c1ed08048f5a667a1af52892570791cfe86ddaa04e8b30c7a2be437",
    "verified_classes": [
      "UnverifiedMemoryMetricError",
      "EmbedderRef",
      "ThresholdCalibration",
      "MemoryMetric"
    ],
    "verified_functions": [
      "assert_metric_is_evidence",
      "gate_compaction"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnverifiedMemoryMetricError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
