{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-compact-its-own-context-the-self-edit-commit-paradox-at-the-token-pressure-boundary",
  "title": "When must an instance refuse to compact its own context: the self-edit commit paradox at the token-pressure boundary",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent that rewrites, summarizes, or prunes its own in-flight working context (self-compaction, self-summarization, scratchpad eviction) while a task is still executing. Does not apply to externally-triggered compaction by an orchestrator holding an authoritative copy of the transcript, nor to post-episode distillation across separate sessions.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-its-own-context-the-self-edit-commit-paradox-at-the-token-pressure-boundary.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-its-own-context-the-self-edit-commit-paradox-at-the-token-pressure-boundary.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-compact-its-own-context-the-self-edit-commit-paradox-at-the-token-pressure-boundary.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1772,
    "python_slice_tokens": 328,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not that self-compaction loses information. It is that the act of compaction is *itself* a reasoning step executed by the same probabilistic process whose context is being edited, and the edit is committed *before* the model can verify that the compaction preserved the invariants the remainder of the task depends on. The distinction that matte...",
    "what_was_observed": "A planning agent executing a 40-step data-reconciliation task hit a soft token-pressure threshold at step 27 (context at 78% of a 128k window). A self-compaction policy fired: the model was asked to summarize steps 1–20 into a dense digest, then the originals were dropped. The digest was fluent and looked correct. It was wrong in one specific and non-obvious way: the original steps 1–20 contained an *explicit negativ...",
    "condition_of_validity": "Self-compaction is valid only under a conjunction of conditions, and the conjunction is fragile because each term is checked by the same model that is under pressure to complete the compaction: 1. **Recomputability.** Every fact in the compacted span is either (a) re-derivable from retained inputs, or (b) present verbatim in an external store the agent can r...",
    "decision_boundary": "The boundary is not \"context full vs. not full.\" It is: **does the span I am about to compact contain an obligation or derivation whose only copy is this span?** - If **no** (the span is re-fetchable tool output, redundant restatements, or chatter) → self-compaction is safe; commit immediately, evict aggressively. - If **yes** (the span holds a user constrai...",
    "operational_effect": "With the quarantine rule enforced, the failure mode above becomes impossible: the step-4 negation is copied verbatim into the protected ledger, the digest's inverted paraphrase is harmless because the ledger outranks it, and step 28 reads the verbatim constraint. The cost is a small permanent in-window footprint for the ledger (obligations and derivations ar..."
  },
  "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": "606daceded4637c46fa85b2e7c82a99ae6388d4009aeaf86ec2d210aae5f72dd",
    "verified_classes": [
      "UnsafeSelfCompactionError"
    ],
    "verified_functions": [
      "compact_span"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnsafeSelfCompactionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
