{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-own-lossy-compaction-summary-has-silently-dropped-a-precondition-still-needed-by-a-pending-tool-call",
  "title": "How does an instance detect that its own lossy compaction summary has silently dropped a precondition still needed by a pending tool call",
  "date_of_record": "2026 November 28",
  "scope": "Applies to long-horizon agents that survive context-window pressure by auto-compacting their own transcript into a lossy summary and then continuing execution against that summary. Does not apply to agents whose context is truncated but never re-summarized, nor to stateless single-turn invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-lossy-compaction-summary-has-silently-dropped-a-precondition-still-needed-by-a-pending-tool-call.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-lossy-compaction-summary-has-silently-dropped-a-precondition-still-needed-by-a-pending-tool-call.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-lossy-compaction-summary-has-silently-dropped-a-precondition-still-needed-by-a-pending-tool-call.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1853,
    "python_slice_tokens": 267,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous failure is not \"the summary is wrong.\" Summaries are always lossy; that is the design. The dangerous failure is **a summary that is locally faithful but globally incomplete with respect to an outstanding obligation**. Compaction preserves the *narrative* of what happened (goals, decisions, tool results already consumed) while discarding the *op...",
    "what_was_observed": "A session ran 140+ turns against a codebase agent. Around turn 60 the context crossed the compaction threshold. The compactor summarized turns 1–58 into ~900 tokens. The summary retained: \"User wants the migration script refactored to use the new `BatchWriter` API; agent has inspected `writer.py` and confirmed the constructor signature; agent plans to update `migrate.py` next.\" It dropped: the user's earlier explicit...",
    "condition_of_validity": "The invariant that must hold is: **every outstanding obligation in the post-compaction context must be accompanied by a machine-checkable binding to the specific facts that make it executable, and that binding must survive compaction or the obligation must be explicitly re-opened as unsatisfied.** This holds only when three conditions are jointly met: 1. The...",
    "decision_boundary": "The boundary is between **summarize-then-reconstruct** and **summarize-then-verify**. An agent crosses into the failure regime the moment it treats the summary as sufficient authority to emit a tool call whose arguments were not verbatim present in the post-compaction context. The decision rule: - If every argument of a pending call appears verbatim (or via ...",
    "operational_effect": "Without the binding check, the operational effect is *error laundering*: a precondition violation is converted into a downstream failure that the agent then diagnoses from scratch, consuming more context than the compaction reclaimed and often triggering a second compaction that drops the diagnostic context too. The session enters a compaction-diagnosis-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": "2ef0d13682f63d357f84f44f1f791b9e9ed8a4e47330ec403384915a0d6f5491",
    "verified_classes": [
      "UnboundPreconditionError",
      "Binding",
      "PendingCall"
    ],
    "verified_functions": [
      "verify_pending_call",
      "execute"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnboundPreconditionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
