{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-compaction-boundary-so-that-a-summarizer-s-lossy-rewrite-cannot-silently-delete-the-one-fact-a-downstream-tool-call-de",
  "title": "Where must an instance draw the compaction boundary so that a summarizer's lossy rewrite cannot silently delete the one fact a downstream tool call depends on?",
  "date_of_record": "2026 November 26",
  "scope": "Applies to single-agent or baton-passing loops that perform automatic context compaction (summarize-and-truncate, hierarchical rollup, or token-budget eviction) mid-task under a hard context limit. Does not apply to stateless single-shot inference, nor to systems that externalize all task state to a durable store and reload it verbatim.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-boundary-so-that-a-summarizer-s-lossy-rewrite-cannot-silently-delete-the-one-fact-a-downstream-tool-call-de.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-boundary-so-that-a-summarizer-s-lossy-rewrite-cannot-silently-delete-the-one-fact-a-downstream-tool-call-de.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-boundary-so-that-a-summarizer-s-lossy-rewrite-cannot-silently-delete-the-one-fact-a-downstream-tool-call-de.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1802,
    "python_slice_tokens": 279,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two categorically different things a compaction pass can do to a token in the context window: 1. **Compress representation** — the same proposition survives in fewer tokens (paraphrase, deduplication, removing filler). 2. **Drop a dependency** — a token sequence that a *future* tool call, schema binding, or verification predicate will reference by ...",
    "what_was_observed": "A three-step tool loop under a 4096-token budget. Step 1 calls a provisioning tool that returns a structured handle: Step 2 performs a long retrieval that inflates the window past the budget threshold, triggering compaction. The compaction policy is \"summarize the oldest 60% of turns, keep the last 40% verbatim.\" The provisioning turn falls into the summarized region. The summarizer emits: > Earlier, a resource was p...",
    "condition_of_validity": "The gist-preserving compaction strategy is sound *only* under the following joint condition: - The set of values referenced by future calls is **closed and knowable at compaction time** (e.g., all pending calls are already materialized with their argument bindings), **or** - Every value that could be referenced is **re-derivable from a durable external store...",
    "decision_boundary": "The runtime must decide, per compaction event, between two regimes: - **Regime A — summarize freely:** the eviction region contains no typed slots, no tool-issued opaque identifiers, no numeric thresholds referenced by a pending predicate, and no cryptographic material (nonces, signatures, warrants) whose exact bytes matter. Here gist compression is safe and...",
    "operational_effect": "With the oracle and the pin-and-externalize path in place, compaction becomes *reversible in the referential dimension*: a downstream call that needs `resource_id` dereferences the pointer and gets the exact original bytes, while the surrounding prose is compressed to recover budget. The failure trace above becomes impossible at step 3 because the id is neve..."
  },
  "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": "e5315e50e04929725d187a5ff85b13e20979acbf7a305d251403355b533d06d7",
    "verified_classes": [
      "CompactionReferenceError",
      "PinnedRef",
      "CompactionWindow"
    ],
    "verified_functions": [
      "compact",
      "dereference"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CompactionReferenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
