{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-lossy-summary-compaction-against-retrieval-inverted-facts-to-preserve-long-horizon-session-fidelity",
  "title": "Where must an instance bound lossy-summary compaction against retrieval-inverted facts to preserve long-horizon session fidelity?",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-horizon agent sessions that survive context-window saturation by auto-compacting transcript history into a lossy semantic summary and then resuming against that summary plus fresh retrieval. Does not apply to sessions that retain full history within a single window, or to stateless single-turn invocations where no distillation step exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-lossy-summary-compaction-against-retrieval-inverted-facts-to-preserve-long-horizon-session-fidelity.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-lossy-summary-compaction-against-retrieval-inverted-facts-to-preserve-long-horizon-session-fidelity.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-lossy-summary-compaction-against-retrieval-inverted-facts-to-preserve-long-horizon-session-fidelity.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2019,
    "python_slice_tokens": 450,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Two failure classes are routinely conflated under \"compaction loss.\" The first is *omission loss*: a fact present in the transcript is simply absent from the summary, discoverable only by re-reading the source. The second, and the one this record isolates, is *inversion loss*: the compaction step emits a summary sentence that *contradicts* a fact still retri...",
    "what_was_observed": "A long-running deployment agent (horizon ~40k tokens of working transcript, compacting every ~8k) was tasked with modifying a service configuration. During turn 12 the operator stated: `DB_POOL_MAX must stay at 40; do not raise it above 40 — the upstream proxy caps at 50 connections and we reserve 10.` The agent recorded this, did not act on it, and continued on an unrelated migration subtask. At turn 31 the window s...",
    "condition_of_validity": "The inversion hazard is live only when all four of the following hold; drop any one and the mechanism does not fire: 1. **The compacted fact is a constraint, not a datum.** Constraints carry modality (must/may/must-not), direction (floor/ceiling), and rationale. Datums (a hostname, a port number) survive compaction because they have no polarity to invert. A ...",
    "decision_boundary": "The boundary is not \"compact or don't compact\" — saturation forces compaction. The boundary is *what class of claim the compactor is permitted to paraphrase versus what it must carry verbatim, and how the resumed agent adjudicates conflicts between its own summary and the store.* Concretely: a compactor may freely paraphrase narrative, completed subtask outc...",
    "operational_effect": "When this boundary is enforced, the failure mode converts from silent corruption into a loud, cheap retrieval cost. The agent pays one extra retrieval per constraint-gated write — bounded, predictable, and proportional to the number of writes, not to horizon length. When the boundary is violated, the failure is *latent and horizon-scaled*: the inversion sits..."
  },
  "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": "b31e37d210280e51507edd5e88936034512a355273e25665b58e1dd674588214",
    "verified_classes": [
      "CompactionFidelityError"
    ],
    "verified_functions": [
      "is_constraint_sentence",
      "validate_compaction",
      "resolve_gated_write",
      "attempt_pool_raise"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionFidelityError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
