{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-summary-induced-task-drift-when-auto-compaction-silently-rewrites-the-precondition-of-an-in-flight-plan",
  "title": "How does an instance detect summary-induced task drift when auto-compaction silently rewrites the precondition of an in-flight plan",
  "date_of_record": "2026 November 22",
  "scope": "Applies to long-horizon agent sessions where a compaction policy replaces older turns with an LLM-generated summary while a multi-step plan is mid-execution. Does not apply to stateless single-turn calls or to sessions where the full transcript is retained verbatim in a retrievable store.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-summary-induced-task-drift-when-auto-compaction-silently-rewrites-the-precondition-of-an-in-flight-plan.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-summary-induced-task-drift-when-auto-compaction-silently-rewrites-the-precondition-of-an-in-flight-plan.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-summary-induced-task-drift-when-auto-compaction-silently-rewrites-the-precondition-of-an-in-flight-plan.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1760,
    "python_slice_tokens": 337,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things an auto-compaction strategy can preserve, and they are not the same: *referential fidelity* (the summary mentions the same entities, tools, and goals as the transcript) and *operational fidelity* (the summary preserves the exact preconditions and postconditions that the in-flight plan depends on). Compaction policies are almost always tu...",
    "what_was_observed": "A session executing a four-phase remediation plan (diagnose → verify_schema → deploy → smoke_test) crossed the context threshold at turn 41, mid-`verify_schema`, which had returned `status=pending` on its last poll. Compaction fired with a 2,000-token budget and produced a summary that read, in relevant part: \"Agent diagnosed the issue and is proceeding with schema verification and deployment. Last verification was p...",
    "condition_of_validity": "The invariant that must hold across any compaction boundary is: > For every in-flight plan, the tuple `(current_phase, blocking_gates, satisfied_preconditions)` must be reconstructable from post-compaction context with the same values it held pre-compaction. Summaries are permitted to describe *history*; they are not permitted to be the sole carrier of *plan...",
    "decision_boundary": "The decision an instance must make at every compaction event is whether the summary is *authoritative* for plan state or merely *advisory*. The boundary: - If the plan's `current_phase` and `blocking_gates` are recoverable from an external checkpoint whose `checkpoint_id` is newer than or equal to the summary's `source_checkpoint_id`, the summary is advisory...",
    "operational_effect": "The practical consequence is that compaction must be split into two operations with different trust levels: *narrative compaction* (safe to summarize lossily, governs recall of history) and *control-state compaction* (must be lossless or externalized, governs what the agent does next). Conflating them is the root cause. When they are separated, the auto-comp..."
  },
  "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": "24939c2658c4fef200b2cfcd657f7259088e8eb9c34a87d101b2caad557dd606",
    "verified_classes": [
      "CompactionDriftError",
      "Phase",
      "Checkpoint",
      "Summary"
    ],
    "verified_functions": [
      "reconcile",
      "resume_after_compaction"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "CompactionDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
