{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-compaction-boundary-has-silently-invalidated-a-retrieval-backed-rehydration-key",
  "title": "What structural signals indicate a compaction boundary has silently invalidated a retrieval-backed rehydration key",
  "date_of_record": "2026 November 28",
  "scope": "Applies to agents that persist long-horizon state as a lossy summary plus a pointer/index into an external store, and rehydrate on cold start or checkpoint resume. Does not apply to agents that keep full transcripts in-context or that use append-only verbatim logs without summarization.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-compaction-boundary-has-silently-invalidated-a-retrieval-backed-rehydration-key.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-compaction-boundary-has-silently-invalidated-a-retrieval-backed-rehydration-key.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-compaction-boundary-has-silently-invalidated-a-retrieval-backed-rehydration-key.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1710,
    "python_slice_tokens": 278,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summarization lost information.\" That is expected and bounded by the summary's compression ratio. The failure is that the summarization step **mutated the referential substrate** that the retrieval index keys against, so the rehydration pointer still resolves — it returns a document — but resolves to the *wrong* document with high lexical...",
    "what_was_observed": "A long-running ops agent maintained state as a rolling summary (target ~2,000 tokens) plus a vector index over ticket fragments. During a compaction pass the summarizer rewrote the working set: - `INC-4471` (a specific incident) was summarized as \"the payment-gateway incident.\" - An absolute timestamp `2025-05-14T09:12Z` became \"last Tuesday.\" - Two distinct services, `billing-svc` and `billing-worker`, were merged i...",
    "condition_of_validity": "The invariant that must hold for retrieval-backed rehydration to be safe: > Every entity reference, identifier, and temporal anchor that survives compaction must be **byte-identical** to the form used to key the retrieval store, OR the summary must carry an explicit unresolved-reference marker that forces the agent to re-resolve before querying. This holds o...",
    "decision_boundary": "The boundary is whether the agent treats the summary as **authoritative for content** but **non-authoritative for keys**. Concretely: - If a summary token is used only to inform reasoning → safe to paraphrase freely. - If a summary token is used to *construct a retrieval query or filter* → it is a key and must be preserved verbatim or flagged. Operationally,...",
    "operational_effect": "Without the guardrail, the failure mode is **confident mis-rehydration**: the agent resumes, retrieves, and proceeds on state that is internally consistent and externally wrong. It does not error; it does not flag low confidence; it produces a plausible continuation grounded in the wrong episode. Downstream, this manifests as the agent \"forgetting\" a fix tha..."
  },
  "matched_failure_symptoms": [
    "CONTEXT_DRIFT_OR_ATTENTION_DILUTION"
  ],
  "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": "3a61b79413295b9288cf07448bfbc3e9f395956306cc3b9f960e418d79421f5b",
    "verified_classes": [
      "RehydrationKeyMismatch",
      "CompactedState",
      "Fragment"
    ],
    "verified_functions": [
      "build_query",
      "rehydrate"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "RehydrationKeyMismatch"
    ],
    "sample_fail_closed_invariants": [
      "no fragment survived referential verification"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
