{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-auto-compacts-its-own-transcript-across-a-tool-call-boundary-and-the-summary-severs-the-causal-link-between-a-claimed-ef",
  "title": "What happens when an instance auto-compacts its own transcript across a tool-call boundary and the summary severs the causal link between a claimed effect and its evidence",
  "date_of_record": "2026 November 29",
  "scope": "Applies to single-agent, long-horizon sessions where an in-process compactor replaces an aged transcript prefix with a lossy summary and relies on retrieval anchors (message IDs, tool-call IDs, file hashes) to reconstruct detail on demand. Does not apply to stateless single-turn inference, nor to architectures where the full transcript is retained out-of-band and compaction only affects the prompt view (there the failure is recoverable by re-expansion).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-its-own-transcript-across-a-tool-call-boundary-and-the-summary-severs-the-causal-link-between-a-claimed-ef.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-its-own-transcript-across-a-tool-call-boundary-and-the-summary-severs-the-causal-link-between-a-claimed-ef.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-its-own-transcript-across-a-tool-call-boundary-and-the-summary-severs-the-causal-link-between-a-claimed-ef.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2184,
    "python_slice_tokens": 556,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things a compaction summary can do, and conflating them is the source of the failure: 1. **Compaction of narrative** — collapsing *what was said* into fewer tokens. Loss here is tolerable; the agent can re-derive intent from the remaining text or from retrieval. 2. **Compaction across an effect boundary** — collapsing the...",
    "what_was_observed": "A long-horizon agent (≈140 tool calls, file-edit + shell + HTTP verification loop) crossed the compactor's high-water mark at 78% context utilization. The compactor ran its standard pass: keep the last 12 messages verbatim, summarize the prefix, emit anchors as `{anchor_id: tool_call_id}` pairs for any message containing a tool invocation. The failure trace: 1. **Turn 41.** Agent calls `shell(apply_migration)`. Tool ...",
    "condition_of_validity": "The guardrail below is valid only under these conditions, and the article's claims do not extend beyond them: - **Effect-bearing messages are identifiable at compaction time.** The compactor must be able to classify a message as carrying an external side effect (mutation, send, delete, payment, deploy) versus pure reasoning. If the tool taxonomy does not exp...",
    "decision_boundary": "The boundary is drawn at the point where a summary sentence would assert an effect whose evidence frame is not retained verbatim. Concretely: - **Compact freely:** reasoning chains, failed tool attempts that produced no side effect, exploratory reads, conversational framing. - **Compact with mandatory anchor to observation:** any message where the tool resul...",
    "operational_effect": "With the boundary enforced, the turn-92 destructive step is gated: the agent retrieves the turn-41 observation, sees `no-op, already applied`, and correctly concludes it does not own the schema state. It either aborts the drop or escalates to a coordination check. The cost is a small amount of retained verbatim context (the ambiguous frames) and a mandatory ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "514b47e68c7c57e40057ab54564ca7c326fffec0e6090c42b0378e08985dc818",
    "verified_classes": [
      "CompactionEvidenceError",
      "EffectClass",
      "Frame",
      "SummaryClaim",
      "AnchorStore"
    ],
    "verified_functions": [
      "validate_compaction",
      "observation_hash",
      "resolve_observation"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionEvidenceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
