{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-verify-that-auto-compaction-preserved-the-causal-preconditions-of-an-in-flight-plan",
  "title": "How should an instance verify that auto-compaction preserved the causal preconditions of an in-flight plan?",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-horizon agents that mutate their own context via summarization/eviction (auto-compaction) while a multi-step plan is executing and whose remaining steps depend on facts learned earlier in the same trajectory. Does not apply to stateless single-turn calls, to retrieval-augmented systems that never evict, or to compaction performed only at task boundaries where no in-flight plan exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-that-auto-compaction-preserved-the-causal-preconditions-of-an-in-flight-plan.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-that-auto-compaction-preserved-the-causal-preconditions-of-an-in-flight-plan.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-verify-that-auto-compaction-preserved-the-causal-preconditions-of-an-in-flight-plan.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1632,
    "python_slice_tokens": 278,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary lost detail.\" It is that compaction can preserve *propositional* content while destroying *causal preconditionality* — the property that a specific earlier observation is the reason a later action is legal or correct. A summarizer optimizing for compression retains facts that read as salient (\"the staging DB is at 10.0.4.7\") a...",
    "what_was_observed": "A migration agent executing a 40-step plan across a 32k-token budget hit the compaction threshold at step 22. The compactor was a standard \"summarize-and-continue\" pass: keep the goal, keep the last N tool results, summarize the middle into prose, drop raw observations. Trace of the transition: 1. Steps 1–9: agent probes the target cluster, discovers the schema version is `v3` but the migration manifest assumes `v4`....",
    "condition_of_validity": "The guardrail below is valid only when three conditions hold, and it must be disabled otherwise: - **Plan steps are enumerable and carry explicit preconditions.** If steps are generated lazily by the model at execution time, there is nothing to check preconditions against and the guardrail degenerates into noise. - **Preconditions reference observations that...",
    "decision_boundary": "The boundary is between **lossless-of-obligation** and **lossy-but-checked** compaction. Two strategies sit on either side: - *Obligation-preserving compaction* extracts, before summarizing, every unexecuted plan node's precondition set into a structured side-channel (not prose) that is exempt from summarization and re-injected verbatim after compaction. Cos...",
    "operational_effect": "With the guardrail active, the step-22 compaction would have flagged steps 22–40 as having an unentailed precondition (\"re-fetch schema_version before each write\"). The agent would have re-run the version probe at step 22, seen `v3`, and halted the plan before the first write — converting a silent corruption at step 32 into a clean stop at step 22. The opera..."
  },
  "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": "24e13d9e7cc8d2b36148f6090c57a2632e0fd6259f8b086dd2c752cc237da4d6",
    "verified_classes": [
      "PreconditionEntailmentError",
      "PlanStep",
      "CompactionResult"
    ],
    "verified_functions": [
      "_entailed",
      "verify_post_compaction"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "PreconditionEntailmentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
