{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-draw-the-compaction-boundary-to-preserve-causal-dependencies-across-summarized-segments",
  "title": "Where must an instance draw the compaction boundary to preserve causal dependencies across summarized segments",
  "date_of_record": "2026 November 22",
  "scope": "Applies to long-running single-instance agents that perform rolling context compaction (summarize-oldest-N-turns) mid-task and must continue executing against tool results, commitments, and pending sub-goals established in the summarized region. Does not apply to stateless request/response inference, nor to agents whose entire working set fits within the context window without compaction.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-boundary-to-preserve-causal-dependencies-across-summarized-segments.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-boundary-to-preserve-causal-dependencies-across-summarized-segments.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-draw-the-compaction-boundary-to-preserve-causal-dependencies-across-summarized-segments.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2092,
    "python_slice_tokens": 441,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure here is not \"summarization lost information.\" Lossy summarization is expected and tolerable. The failure is a **causal cut**: compaction that severs a dependency edge between a fact in the retained (unsummarized) segment and the *reason* for that fact, which now lives only in the abstracted segment. The retained segment keeps the *effect*; the su...",
    "what_was_observed": "Trigger condition: rolling compaction fires on a token-budget threshold (e.g., 80% of window), summarizing the oldest `k` turns while retaining the newest `m`. The boundary is chosen by recency, not by dependency structure. If a pending sub-goal references an observation older than `k`, the reference survives and its referent does not. Failure trace across a single compaction event: 1. **Pre-compaction state.** Worki...",
    "condition_of_validity": "The guardrail holds only under these conditions, and inverts outside them: - **Provenance-tagged retention.** Every literal copied into the retained segment that originated in a tool result must carry a `source_turn` tag and a `content_hash` of the original observation. On compaction, these tags are checked: if the source turn falls inside the summarized reg...",
    "decision_boundary": "The decision is not \"summarize or don't.\" It is: **when a retained turn references a fact that would fall inside the summarized region, do you pin, re-materialize, or block?** - **Pin** when the fact is small, stable, and cheap to carry verbatim (a numeric bound, a boolean, a short commitment). Cost: a few tokens per pin, bounded by the number of active cons...",
    "operational_effect": "With provenance-tagged retention and closure checks, compaction becomes a *verified* state transition rather than a lossy one. The observable effects: - Silent constraint decay drops to zero for pinned constraints; the agent either honors `retries=0` or explicitly re-decides it against a fresh observation, and the re-decision is logged. - Compaction occasion..."
  },
  "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": "46160c238a2c6bbc79471848a97959d792ab7a77e8841cd244be07a93413c74e",
    "verified_classes": [
      "CausalCutError",
      "Turn",
      "Constraint",
      "WorkingSet"
    ],
    "verified_functions": [
      "plan_compaction"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CausalCutError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
