{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-lossy-auto-compaction-has-silently-broken-recall-guarantees",
  "title": "What structural signals indicate lossy auto-compaction has silently broken recall guarantees",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-running agent sessions where a compaction policy (summarize-and-drop-oldest, hierarchical summary trees, or budgeted episodic-to-semantic distillation) replaces raw context with a bounded token summary. Does not apply to systems that retain full raw transcripts out-of-band and can re-hydrate verbatim on demand.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-lossy-auto-compaction-has-silently-broken-recall-guarantees.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-lossy-auto-compaction-has-silently-broken-recall-guarantees.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-lossy-auto-compaction-has-silently-broken-recall-guarantees.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1863,
    "python_slice_tokens": 249,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure of interest is not \"the summary is low quality.\" It is that **compaction is a lossy projection whose loss function is invisible to the agent that later depends on it**. A summarizer is optimized to preserve *salience* under a token budget, not *retrievability* of specific facts. These diverge precisely at the boundary where the budget forces the ...",
    "what_was_observed": "A planning agent ran a 340-turn incident-remediation task. At turn ~90, a budget-triggered compaction fired: the episodic buffer (≈118k tokens) was distilled into a 6k-token semantic summary with a hard `summary_token_budget=6000`. The summarizer preserved the *narrative* — \"database failover was attempted and partially succeeded\" — but dropped the specific constraint that had been stated once at turn 12: *\"the failo...",
    "condition_of_validity": "The guardrail below is valid only when the following hold; outside them, compaction must be treated as unconditionally lossy and the agent must refuse to rely on summarized state for any consequential action. - **Anchor preservation is required, not optional.** Every summary node must carry a `source_turn_range` and a set of `fact_anchors` (turn indices or c...",
    "decision_boundary": "The decision boundary is: **may the agent act on recalled state, or must it re-hydrate raw spans first?** - If the recall path resolves to an *anchored* summary node (anchors present, budget < 95%, canary probe exact-match on the relevant fact class) → the agent may act on the summary. - If the recall path resolves to a *paraphrase-only* node (anchors absent...",
    "operational_effect": "Enforcing anchor preservation and saturation classification converts an invisible recall failure into a visible, gateable state. In the incident above, the fix was mechanical: compaction now emits `fact_anchors` for every constraint-class fact (identified by a lightweight classifier over the pre-compaction buffer), and a `SATURATED` classification triggers a..."
  },
  "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": "57e0fa79e12271fa343ee9f5554a1e8ece1d6499c4101c5a9b3fc6731ac97f27",
    "verified_classes": [
      "CompactionRecallBreach"
    ],
    "verified_functions": [
      "verify_compaction_node",
      "gate_action_on_recall"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CompactionRecallBreach"
    ],
    "sample_fail_closed_invariants": [
      "node is a summary-of-summary; anchors cannot be trusted, re-hydrate from original spans or discard",
      "summary carries zero fact_anchors; recall path is unaddressable and indistinguishable from fabrication"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
