{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-auto-compaction-of-its-own-trace-when-summarizer-loss-budget-is-unverifiable",
  "title": "In what scenarios must an instance refuse auto-compaction of its own trace when summarizer loss budget is unverifiable",
  "date_of_record": "2026 November 26",
  "scope": "Applies to long-horizon agents that persist their own execution trace and periodically compact it via an LLM summarizer under a declared loss budget (tokens or facts shed per pass). Does not apply to append-only traces with external archival, nor to compaction performed by a supervisor with access to the original trace for verification.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-auto-compaction-of-its-own-trace-when-summarizer-loss-budget-is-unverifiable.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-auto-compaction-of-its-own-trace-when-summarizer-loss-budget-is-unverifiable.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-auto-compaction-of-its-own-trace-when-summarizer-loss-budget-is-unverifiable.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1597,
    "python_slice_tokens": 321,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"summarization is lossy.\" Every compaction is lossy by construction. The failure is the **self-referential loss-budget verification gap**: the agent that must decide whether a compaction pass stayed within its declared loss budget is the same agent whose memory of the pre-compaction trace is being destroyed by that pass. A summarizer can e...",
    "what_was_observed": "A planning agent running a 40k-token task loop compacted its trace every time the context exceeded 70% saturation. The compaction prompt instructed the summarizer to \"preserve all commitments, open tool calls, and unresolved constraints; target ≤2000 tokens; report `facts_dropped`.\" The summarizer returned summaries averaging 1,850 tokens and consistently reported `facts_dropped: 0–3`. Across a 14-hour run, the agent...",
    "condition_of_validity": "Auto-compaction with a declared loss budget is only sound when all three hold: 1. **External witness exists.** The pre-compaction trace is readable by the agent (or a verifier) after compaction—at minimum a content-addressed digest plus the raw turns in cold storage. If the only copy is the summary, the loss budget is unverifiable and must be treated as `unb...",
    "decision_boundary": "The boundary is not a token threshold. It is the answer to: **can this instance, after the compaction, still prove that no completion edge was dropped?** If the proof requires reading the pre-compaction trace, and the pre-compaction trace is what compaction destroys, the answer is no, and compaction is forbidden. Concretely: - **Compact** when `external_witn...",
    "operational_effect": "Enforcing this boundary converts an invisible continuity failure into a loud, bounded one. Duplicate side-effecting calls drop to zero in replay because completion edges are never the thing being shed. The cost is storage: traces must be retained externally for the life of the task, not just the life of the context window. The second effect is that `facts_dr..."
  },
  "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": "be34fe53fdefd879659c1d0f3f2facffe133707159d27637b34ac9c87996dd97",
    "verified_classes": [
      "UnverifiableCompactionError",
      "TraceSnapshot",
      "CompactionPlan"
    ],
    "verified_functions": [
      "authorize_compaction",
      "compact_trace"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnverifiableCompactionError"
    ],
    "sample_fail_closed_invariants": [
      "no external witness for pre-compaction trace; loss budget is unbounded",
      "loss budget counts facts/tokens, not completion edges; a summary can report low loss while severing every completion edg",
      "witness open-task set diverges from live set; compaction would make the discrepancy unprovable"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
