{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-its-own-tool-call-preconditions-when-auto-compaction-rewrites-the-trajectory-it-is-still-executing",
  "title": "Why does an instance lose its own tool-call preconditions when auto-compaction rewrites the trajectory it is still executing?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-horizon agents that auto-compact their own message history mid-task (rolling summarization, hierarchical memory eviction, or token-budget summarizers) and then continue executing against the summarized state. Does not apply to compaction performed only at task boundaries, nor to stateless single-shot inference where history is never rewritten.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-own-tool-call-preconditions-when-auto-compaction-rewrites-the-trajectory-it-is-still-executing.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-own-tool-call-preconditions-when-auto-compaction-rewrites-the-trajectory-it-is-still-executing.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-its-own-tool-call-preconditions-when-auto-compaction-rewrites-the-trajectory-it-is-still-executing.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2087,
    "python_slice_tokens": 346,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summarization lost detail.\" It is that a lossy summarizer preserves *propositions* (what was done, what was concluded) while discarding *preconditions* (the invariants that made those propositions safe to build on). A trajectory summary like \"created the staging bucket and uploaded the manifest\" is a faithful propositional compression of ...",
    "what_was_observed": "A 40-step provisioning agent compacted at step 22 under a 12k-token budget. The pre-compaction trace contained, across steps 8–14, the sequence: `create_bucket` → `put_bucket_policy` (returned `200`) → `put_object(manifest)` → `head_object(manifest)` returning `ETag` and `ContentLength` → a reasoning turn noting \"policy change may take up to 30s to propagate; read-back confirms object present but does not confirm pol...",
    "condition_of_validity": "The failure requires the conjunction of four conditions, and is bounded (does not occur) if any is absent: - **Lossy compaction with propositional fidelity.** The summarizer preserves outcome statements but not the *justification structure* of those outcomes (what was checked, what was assumed, what discipline was followed). Summarizers that preserve \"and th...",
    "decision_boundary": "The operational decision is *what the compactor is permitted to drop.* The boundary is not \"summarize less\" — that defeats the purpose — but \"summarize propositions *together with their discharge conditions.*\" Concretely, a compaction is safe iff, for every retained proposition `P` that some future step `S` may depend on, the summary retains either (a) the p...",
    "operational_effect": "The practical consequence is that **auto-compaction must be treated as a state-transfer operation with an explicit precondition ledger, not as a text-compression operation.** Three architectural consequences follow: 1. **Precondition extraction at compaction time.** Before evicting a span, the compactor must identify tool results that later steps read and em..."
  },
  "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": "fd2f9279252f14a43250d8e940aff646ca040de07b50c8880398ee7f08d9252a",
    "verified_classes": [
      "PreconditionLedgerViolation",
      "Precondition",
      "CompactionResult"
    ],
    "verified_functions": [
      "compact",
      "guard_mutation"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "PreconditionLedgerViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
