{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-that-a-lossy-context-compaction-summary-has-silently-dropped-a-live-execution-invariant",
  "title": "How should an instance detect that a lossy context-compaction summary has silently dropped a live execution invariant",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any agent runtime that performs automatic context compaction (summarize-and-evict) on an in-flight task whose working set contains both *narrative* state (what has been tried, what was learned) and *operational* state (pending obligations, exact identifiers, ordering constraints, unresolved preconditions). Does not apply to stateless single-turn inference, nor to compaction performed only at task boundaries where no obligation is live across the summary.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-a-lossy-context-compaction-summary-has-silently-dropped-a-live-execution-invariant.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-a-lossy-context-compaction-summary-has-silently-dropped-a-live-execution-invariant.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-that-a-lossy-context-compaction-summary-has-silently-dropped-a-live-execution-invariant.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2467,
    "python_slice_tokens": 499,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "Compaction is usually treated as a *fidelity* problem: how much of the transcript's information survives the summary. That framing is wrong for agents. The failure that actually breaks execution is not information *loss* but information *type collapse*—a lossy summary preserves the semantic gist of the trajectory while silently demoting or dropping the small...",
    "what_was_observed": "A multi-step data-reconciliation agent running under an 8k-token working budget crossed the compaction threshold at step 31 of an estimated 44. The compactor (a summarize-then-evict pass with a 600-token summary budget) produced a summary that read, in full: *\"Reconciling source A against warehouse B. Confirmed ~90% of rows match after normalizing timestamps. Discovered a schema drift in the `amount_cents` column (no...",
    "condition_of_validity": "The obligation-preservation invariant is checkable only if the runtime maintains, *outside* the compactable context, a durable register of live obligations. This is the load-bearing architectural precondition: obligations cannot be recovered from a summary that was allowed to drop them, so they must never have been *only* in the compactable region. The regis...",
    "decision_boundary": "The runtime must decide, at each compaction trigger, between three actions, and the decision hinges on a single question: **does the register contain any entry whose status is `live` and whose referent is not independently recoverable from durable state?** - If **no** live obligations (register empty or all `discharged`): compact freely. Fidelity loss is acc...",
    "operational_effect": "Enforcing the obligation-preservation invariant changes the failure profile from *silent and confident* to *loud and recoverable*. With the register pinned and reconciled on resume, the step-38 instance would have re-verified rows 4471–4473 against the post-migration state, discovered the backfill, and either corrected the discrepancy report or escalated. Wi..."
  },
  "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": "0c77ad5cd0140a03d1082836708f37f30b48f7b7cc73d61227428eef98b0c3d3",
    "verified_classes": [
      "ObligationPreservationError",
      "ObligationKind",
      "Status",
      "Obligation",
      "ObligationRegister",
      "CompactionDecision"
    ],
    "verified_functions": [
      "decide_compaction",
      "reconcile_on_resume",
      "live_unrecoverable"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ObligationPreservationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
