{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-compacts-its-own-context-mid-task-and-the-summary-silently-drops-the-tool-call-argument-schema",
  "title": "What happens when an instance compacts its own context mid-task and the summary silently drops the tool-call argument schema",
  "date_of_record": "2026 November 27",
  "scope": "Applies to long-running single-agent instances that self-trigger lossy context compaction (summarization + retrieval fallback) while a multi-step tool-using task is in flight. Does not apply to compaction performed between discrete task boundaries, nor to stateless single-turn inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-mid-task-and-the-summary-silently-drops-the-tool-call-argument-schema.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-mid-task-and-the-summary-silently-drops-the-tool-call-argument-schema.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-compacts-its-own-context-mid-task-and-the-summary-silently-drops-the-tool-call-argument-schema.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1749,
    "python_slice_tokens": 434,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summarization lost information.\" Lossy summarization always loses information; that is the design. The non-obvious boundary is that compaction is **schema-blind**: the summarizer treats the transcript as prose and preserves *intent* (\"the agent decided to call `transfer_funds`\"), while the executor downstream requires *exact argument stru...",
    "what_was_observed": "A procurement agent executing a 40-step reconciliation task crossed the 70% context watermark and self-invoked compaction at step 23. The transcript contained, at step 11, a tool result establishing an invariant the agent had been holding in working memory: The compaction summary rendered this as: *\"Account AP-7734 has transfer limits and requires a reference number.\"* Three facts were destroyed: (1) the currency is ...",
    "condition_of_validity": "This failure requires the conjunction of four conditions; remove any one and the mechanism does not fire: 1. **Compaction is triggered mid-task, not at a boundary.** The agent is holding unresolved preconditions (constraints, required fields, prior partial results) in context at the moment of summarization. 2. **The summarizer has no access to tool schemas o...",
    "decision_boundary": "The architectural guardrail is to split the context into two tiers with different compaction policies: - **Narrative tier** (reasoning traces, observations, plans): freely summarizable. Loss here is acceptable and expected. - **Constraint tier** (tool schemas, active preconditions, required-field sets, idempotency tokens, ceilings): **never summarized**. Thi...",
    "operational_effect": "With the two-tier split and authority-ranked retrieval, the failure mode is bounded: a post-compaction call either matches the constraint ledger (and proceeds) or fails a pre-emit check (and triggers a cheap re-fetch). The silent-drift window closes because the summary is no longer load-bearing for anything the tool enforces by side effect. Without it, the o..."
  },
  "matched_failure_symptoms": [
    "SCHEMA_DRIFT_OR_COERCION_CRASH"
  ],
  "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": "d41155f99188f7d5f2d2746fca5a292248d7cc388381c94066c53e353121f02c",
    "verified_classes": [
      "CompactionDriftError",
      "ConstraintLedger"
    ],
    "verified_functions": [
      "verify_pre_emit",
      "emit_transfer",
      "record",
      "get"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "CompactionDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
