{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-a-lossy-compaction-summary-has-silently-dropped-a-still-live-constraint-before-it-re-enters-the-tool-loop",
  "title": "How does an instance detect that a lossy compaction summary has silently dropped a still-live constraint before it re-enters the tool loop",
  "date_of_record": "2026 December 2",
  "scope": "Applies to long-running agent instances that survive context-window saturation by summarizing older turns into a compressed block and then resuming execution against that block. Does not apply to stateless single-turn calls, nor to architectures that keep the full transcript out-of-band and re-retrieve verbatim spans on every step.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-lossy-compaction-summary-has-silently-dropped-a-still-live-constraint-before-it-re-enters-the-tool-loop.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-lossy-compaction-summary-has-silently-dropped-a-still-live-constraint-before-it-re-enters-the-tool-loop.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-a-lossy-compaction-summary-has-silently-dropped-a-still-live-constraint-before-it-re-enters-the-tool-loop.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1737,
    "python_slice_tokens": 341,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two failure classes in compaction, and they are routinely conflated: 1. **Recall failure** — the summary omits a fact that a later retrieval query would have surfaced had the fact still been indexed. This is *detectable* by probing: ask the summary a question whose answer you know from the pre-compaction transcript. 2. **Constraint-liveness failure...",
    "what_was_observed": "An instance running a 40-step infrastructure-remediation task hit 92% of its context budget at step 31. The compaction routine summarized steps 1–24 into ~700 tokens. Among the dropped-signal items: - Step 4: operator instruction — \"Do not touch `eu-west-1b`; that AZ is under a maintenance freeze until Thursday.\" - Step 6: tool result confirming `eu-west-1b` hosts the only replica of a stateful set. - Step 9: operato...",
    "condition_of_validity": "This failure mode is bounded by a specific invariant that must hold at the moment of compaction, not at the moment of resumption: > **Every imperative in the pre-compaction window must be re-emitted in the summary with its modal force intact, or explicitly marked as expired with a justification, or the compaction must be rejected.** The invariant is checkabl...",
    "decision_boundary": "The boundary between \"safe to resume\" and \"must re-fetch\" is not summary quality — it is **whether the sidecar tuple set is non-empty and unexpired**. Concretely: - If the extraction pass yields zero imperative tuples, the window was purely descriptive and lossy summarization is safe. Resume. - If it yields tuples and every tuple is `expired` (deadline passe...",
    "operational_effect": "With modal-tuple extraction enforced pre-compaction and sidecar re-injection enforced at resume, the eu-west-1b class of failure is eliminated: the instance re-enters the loop with `(agent, MUST_NOT, rebalance INTO eu-west-1b, scope=rebalance_tool, expiry=Thursday)` sitting in context as a first-class object, not as the adjective \"constrained.\" The plan gene..."
  },
  "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": "c7c98e26b354d7664b8ca4f567dd4deb88888a3b3fad26efd8d304ac500d7ca4",
    "verified_classes": [
      "ModalCollapseError",
      "Modality",
      "ConstraintTuple"
    ],
    "verified_functions": [
      "assert_resumable"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ModalCollapseError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
