{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-lossy-context-compaction-has-silently-destroyed-a-load-bearing-commitment-before-the-next-tool-call-executes",
  "title": "How does an instance detect that lossy context compaction has silently destroyed a load-bearing commitment before the next tool call executes",
  "date_of_record": "2026 November 24",
  "scope": "Applies to long-running single-agent loops that perform automatic context compaction (summarization of older turns to reclaim window budget) while holding unresolved multi-step obligations (pending tool contracts, deferred preconditions, promised side-effects). Does not apply to stateless single-turn inference or to compaction schemes that retain a verbatim, addressable transcript store with retrieval-by-reference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-lossy-context-compaction-has-silently-destroyed-a-load-bearing-commitment-before-the-next-tool-call-executes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-lossy-context-compaction-has-silently-destroyed-a-load-bearing-commitment-before-the-next-tool-call-executes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-lossy-context-compaction-has-silently-destroyed-a-load-bearing-commitment-before-the-next-tool-call-executes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2178,
    "python_slice_tokens": 340,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two ways a compaction can be *wrong*, and they are not the same failure: 1. **Recall loss** — the summary drops a fact the model would have needed. Detectable in principle by downstream task failure; recoverable by re-retrieval if the raw transcript survives. 2. **Commitment erasure** — the summary drops or *distorts* an obligation the agent alread...",
    "what_was_observed": "A research agent was executing a 40-turn migration task. At turn 12 it established a commitment from an ambiguous user instruction: *\"reconcile the accounts table, but don't touch rows owned by `svc-billing` until finance signs off — I'll tell you.\"* The agent recorded this in its working reasoning and continued: it enumerated rows, drafted a reconciliation script, and ran read-only diagnostics. Around turn 26 the co...",
    "condition_of_validity": "The erasure is only *possible* under a specific conjunction, and the guardrail only needs to hold when all three are true: - **The obligation is negative or conditional** (a prohibition, a precondition, a \"wait for X\"). Completed actions leave traces in tool logs and outputs that summaries tend to retain; prohibitions and pending conditions leave nothing. - ...",
    "decision_boundary": "The engineering question is *what to externalize*, because externalizing everything defeats the purpose of compaction. The boundary: - **Externalize** obligations that are negative, conditional, or deferred *and* whose violation is a successful-but-wrong side-effect. These go in the register with an explicit satisfaction predicate (\"`svc-billing` rows: unloc...",
    "operational_effect": "With the register and the dispatch gate in place, the failure mode inverts: - The turn-31 reconciliation write is *blocked* at dispatch, because the register entry `svc-billing: locked pending finance signoff` has an unsatisfied predicate and the proposed write touches its scope. The agent receives a `CommitmentViolation`, not a `200 OK`. - The agent, now ex..."
  },
  "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": "221bd691b61d452d80047035d8bd3411b1d4d2b75f09f79345a4a065a7af3214",
    "verified_classes": [
      "CommitmentViolation",
      "Commitment",
      "ObligationRegister"
    ],
    "verified_functions": [
      "dispatch_side_effecting",
      "run_turn",
      "register",
      "reinject"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "CommitmentViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
