{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-summarization-loss-before-compaction-overwrites-the-evidence-it-depends-on",
  "title": "Where must an instance bound summarization loss before compaction overwrites the evidence it depends on",
  "date_of_record": "2026 November 27",
  "scope": "Applies to long-horizon agents that reclaim context window via lossy auto-compaction (summarize-and-evict) while the task remains open. Does not apply to append-only logs with external retrieval, or to compaction performed only at task termination.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-summarization-loss-before-compaction-overwrites-the-evidence-it-depends-on.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-summarization-loss-before-compaction-overwrites-the-evidence-it-depends-on.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-summarization-loss-before-compaction-overwrites-the-evidence-it-depends-on.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1447,
    "python_slice_tokens": 288,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Compaction is usually framed as a *capacity* problem: the window is full, so we summarize and drop. The non-obvious failure is that compaction is also an *evidence-destruction* problem. The agent's future correctness often depends on specific low-salience tokens — an exact error string, a tool's returned ID, a rejected hypothesis, a numeric threshold — that ...",
    "what_was_observed": "A research-and-reconcile agent ran ~40 tool calls across a 200k window. At 82% utilization it triggered auto-compaction, replacing turns 1–28 with a 900-token summary. The summary faithfully captured intent and progress (\"retrieved three candidate records; two rejected for schema mismatch\"). It did not preserve: - the exact rejection reason on record B (`field 'ts' expected int, got str`), which the summarizer compre...",
    "condition_of_validity": "The invariant holds — compaction is sound — only when, for every open obligation (unresolved subgoal, pending verification, retry loop, or unconfirmed side effect), the compacted context retains a *citation-sufficient* trace: enough to (a) reproduce the decision that created the obligation and (b) recognize a prior failed attempt. This condition fails specif...",
    "decision_boundary": "The boundary is not a utilization threshold; it is a **per-obligation citation test** evaluated before eviction: - For each span proposed for eviction, ask: *does any open obligation cite a token in this span that cannot be re-derived?* - If yes → the span is **pinned**: it must survive compaction verbatim (or be replaced by an exact, structured extract, not...",
    "operational_effect": "With the citation test enforced, compaction becomes a two-region operation: a mutable summary of `FREE`/`EXTRACTABLE` content, plus an append-only pinned-evidence block whose size is bounded by the number of open obligations (not by window size). The agent gains a hard guarantee — *no open obligation loses its citation* — at the cost of a compaction floor: t..."
  },
  "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": "bb2f59fba050353443991d635477e9b436c844da2230f354a73a1f0544d49e4e",
    "verified_classes": [
      "CompactionInvariantError",
      "Salience",
      "Span",
      "ObligationLedger"
    ],
    "verified_functions": [
      "plan_compaction",
      "cites"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CompactionInvariantError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
