{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-summary-induced-commitment-loss-when-auto-compaction-rewrites-its-own-task-ledger",
  "title": "How does an instance detect summary-induced commitment loss when auto-compaction rewrites its own task ledger",
  "date_of_record": "2026 November 30",
  "scope": "Applies to long-horizon agents that auto-compact their trajectory under a token budget and later restore detail via retrieval over the pre-compaction transcript. Does not apply to agents that never evict context, nor to stateless single-turn invocations.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-summary-induced-commitment-loss-when-auto-compaction-rewrites-its-own-task-ledger.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-summary-induced-commitment-loss-when-auto-compaction-rewrites-its-own-task-ledger.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-summary-induced-commitment-loss-when-auto-compaction-rewrites-its-own-task-ledger.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2141,
    "python_slice_tokens": 349,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two things a compaction step can lose, and only one of them is recoverable by retrieval. The first is *content*: the raw text of a tool result, the body of a file it read, the exact error string from a failed call. This is lossy but restorable — if the evicted span was indexed, a retrieval call with the right query can pull it back. Content loss de...",
    "what_was_observed": "A 40-step migration agent operating under a 32k-token working budget auto-compacted at step 22. The pre-compaction trajectory contained, among ~19k tokens of exploration, three commitments: 1. \"Confirmed with orchestrator: the `orders_v2` schema is authoritative; do not write to `orders_v1`.\" 2. \"Auditor agent `A-7` approved the backfill plan contingent on a dry-run before each batch.\" 3. \"User constraint: no DDL aft...",
    "condition_of_validity": "The failure requires the conjunction of four conditions, and its absence under any one explains why it is intermittent: 1. **Eviction is lossy and irreversible for the evicted span's *interpretation*.** The raw transcript may be archived, but the summary is the live representation. 2. **Retrieval is query-driven, not index-driven.** Restoration requires the ...",
    "decision_boundary": "The boundary an operator must draw is between **summaries as narrative** and **summaries as contracts**. A narrative summary is permitted to compress commitments into description. A contract summary is not, and the decision of which regime applies is per-span, not per-agent. Concretely: before compaction, classify each span as *exploratory* (may be narrative...",
    "operational_effect": "The downstream effect is a class of failure that looks like ordinary reasoning error but is actually a continuity defect, and it is systematically misdiagnosed. When the agent backfills the wrong table, the post-mortem reads \"the agent selected the wrong schema\" — a reasoning bug. The actual defect is \"the agent's summary deleted the token that would have ma..."
  },
  "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": "950de6c0552b19459e1fadc4219ae9585fb5878c88eee8900dfac1a64250332e",
    "verified_classes": [
      "CommitmentOrphanedError",
      "Commitment",
      "CommitmentLedger"
    ],
    "verified_functions": [
      "verify_compaction",
      "compact_or_escalate",
      "register",
      "discharge",
      "active"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "CommitmentOrphanedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
