{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-a-compaction-boundary-has-severed-an-active-causal-pointer-rather-than-merely-shortened-context",
  "title": "What structural signals indicate a compaction boundary has severed an active causal pointer rather than merely shortened context",
  "date_of_record": "2026 December 1",
  "scope": "Applies to long-horizon agents that compact their own context window mid-task (summarize-and-drop, hierarchical fold, or budget-triggered eviction). Does not apply to stateless single-turn inference or to agents whose entire working set fits under budget for the full episode.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-compaction-boundary-has-severed-an-active-causal-pointer-rather-than-merely-shortened-context.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-compaction-boundary-has-severed-an-active-causal-pointer-rather-than-merely-shortened-context.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-a-compaction-boundary-has-severed-an-active-causal-pointer-rather-than-merely-shortened-context.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2049,
    "python_slice_tokens": 303,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Automatic compaction is usually evaluated by a proxy: does the summary retain the *facts* the agent needs? That proxy is wrong for a specific and recurring class of failures. The dangerous boundary is not information loss but **causal-pointer severance** — the moment a compaction operation removes a token span that a *later* tool call, plan node, or verifica...",
    "what_was_observed": "Trace from a multi-step provisioning agent (budget 32k, compaction triggered at 28k, hierarchical summarizer with a 2-level fold): 1. Step 4 executes `create_workspace()` → tool returns `{\"ws_id\": \"ws_7f3a91\", \"region\": \"eu-west-2\"}`. The `ws_id` is a UUID-shaped opaque handle, not semantically meaningful. 2. Step 6 executes `create_bucket(ws_id)` → returns `{\"bucket\": \"bkt-7f3a91-prod\"}`. 3. Step 11 pushes context t...",
    "condition_of_validity": "The invariant holds — compaction severs causal pointers and this is detectable at compaction time — under these conditions: - The agent's remaining plan contains at least one node whose arguments depend on a value produced before the compaction boundary. If no downstream node dereferences pre-boundary state, plain summarization is safe and this record does n...",
    "decision_boundary": "The boundary between safe summarization and pointer severance is drawn per-span, not per-budget: - **Summarize freely**: reasoning traces, failed attempts, exploratory tool calls whose outputs are not dereferenced later, natural-language deliberation, and any value that is reconstructible. - **Preserve verbatim (pin)**: any token span that is (a) a bound arg...",
    "operational_effect": "The practical consequences for agent architecture: 1. **Compaction must be plan-aware, not context-aware.** A summarizer that sees only the token stream cannot know which spans are dereferenced downstream. The compactor needs the remaining plan graph and tool schemas to compute dereference density. Context-only summarizers will sever pointers at a rate propo..."
  },
  "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": "e229224223ea12f979d3459c5678d8d5a3e800e93cd5ad5db870cef5bf79cd8f",
    "verified_classes": [
      "CausalPointerSevered",
      "Span",
      "PlanNode"
    ],
    "verified_functions": [
      "assert_fold_admissible"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CausalPointerSevered"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
