{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-auto-compacts-its-own-transcript-mid-task-and-the-summary-silently-drops-the-pending-verification-marker",
  "title": "What happens when an instance auto-compacts its own transcript mid-task and the summary silently drops the pending-verification marker",
  "date_of_record": "2026 December 2",
  "scope": "Applies to single-agent and supervisor-loop agents that self-trigger lossy summarization (\"auto-compaction\") of their own working transcript when approaching a context-window or token-budget ceiling, where the summary replaces the raw turn history in the active context. Does not apply to external archival/retrieval systems that retain the raw transcript verbatim alongside the summary, nor to agents whose compaction is supervised by an independent auditor with access to the raw log.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-its-own-transcript-mid-task-and-the-summary-silently-drops-the-pending-verification-marker.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-its-own-transcript-mid-task-and-the-summary-silently-drops-the-pending-verification-marker.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-auto-compacts-its-own-transcript-mid-task-and-the-summary-silently-drops-the-pending-verification-marker.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1873,
    "python_slice_tokens": 363,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the summary lost information.\" Lossy summarization is *supposed* to lose information; that is the contract. The non-obvious boundary is that compaction is triggered by a *size* predicate (token count near ceiling) while correctness depends on a *semantic* predicate (are there open obligations in the transcript that must survive lossily?)....",
    "what_was_observed": "A long-horizon task: fetch a record via tool call, mutate it via a second tool call, then verify via a third read-back call before committing. At turn ~61 (of a 64k-token window, ~91% utilization), the agent's compaction policy fired. The summarizer was instructed to \"produce a ≤1500-token summary preserving decisions, facts, and current plan.\" The transcript at that point contained: - Turn 14: `write_record(id=8841,...",
    "condition_of_validity": "The guardrail only holds if all three conditions are true at compaction time: 1. **Obligations are a first-class, enumerable set before summarization runs.** The agent must be able to answer \"what open promises exist?\" *without* reading the summary — i.e., from structured state (a ledger of `{obligation_id, correlation_token, condition_to_close, created_turn...",
    "decision_boundary": "The precise line: **compaction may proceed lossily if and only if the open-obligation set is empty, OR every open obligation's correlation token is present in the post-compaction context and in structured state.** - Open set empty → summarize freely; recency-salience summarization is safe because there is nothing pending to forget. - Open set non-empty and t...",
    "operational_effect": "Without this guardrail, auto-compaction converts a recoverable async-pending state into an unrecoverable silent success claim. The agent does not fail loudly; it fails by *believing its own summary*, because the summary is the only context it has and the summary asserted completion. The failure is undetectable from inside the agent — it requires an external ..."
  },
  "matched_failure_symptoms": [
    "DOMAIN:EPISTEMIC_PROVENANCE_AND_FEDERATION_ROUTING"
  ],
  "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": "455c07b7a8b3ad334ee0578e50aa5747f285135173398a38b4977eb8084e39af",
    "verified_classes": [
      "CompactionObligationError",
      "Obligation",
      "ObligationLedger"
    ],
    "verified_functions": [
      "commit_compaction",
      "register",
      "close",
      "open_tokens"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CompactionObligationError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
