{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rewrites-its-own-context-and-prunes-the-provenance-edge-that-justified-a-pending-action",
  "title": "What happens when an instance rewrites its own context and prunes the provenance edge that justified a pending action",
  "date_of_record": "2026 December 2",
  "scope": "Applies to any agent that performs model-driven compaction (summarize/prune/rewrite) of its own working context while actions are pending—tool calls in flight, unverified claims awaiting audit, or obligations not yet discharged. Does not apply to append-only context managers or to compaction performed by an external orchestrator that retains the pre-compaction transcript as a durable artifact.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-and-prunes-the-provenance-edge-that-justified-a-pending-action.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-and-prunes-the-provenance-edge-that-justified-a-pending-action.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-and-prunes-the-provenance-edge-that-justified-a-pending-action.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2030,
    "python_slice_tokens": 233,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two distinct operations that both look like \"cleaning up the context window,\" and conflating them is where instances die: 1. **Compression** — reducing token count while preserving a *derivable* chain from any retained assertion back to the evidence that justified it. The evidence may be summarized, but the derivation is reconstructible. 2. **Erasu...",
    "what_was_observed": "A planner-executor instance running a multi-step file-mutation task hit 78% of its token budget mid-task. Its self-edit policy was: when utilization exceeds a threshold, summarize the oldest 40% of the transcript into a single paragraph and splice it in place, preserving the most recent N turns verbatim. The transcript at the moment of compaction, schematically: The self-edit summarized turns 1–16 into: *\"Investigate...",
    "condition_of_validity": "The guardrail holds only under a specific structural condition, and it is easy to get wrong: > A self-edit pass is safe iff every retained *imperative* (pending tool call, plan step not yet marked done, unverified assertion) has, in the post-edit context, at least one retained *witness* token that (a) is the direct source of the imperative's bound arguments,...",
    "decision_boundary": "The operational decision is: **when a self-edit pass would prune a span, determine whether that span is a witness for any retained imperative, and if so, either pin the witness or downgrade the imperative.** Concretely, before committing a rewrite: 1. Enumerate retained imperatives: pending tool calls, uncompleted plan steps, unverified assertions with downs...",
    "operational_effect": "The observable consequence is a class of failures that are *correct-looking and unverifiable*: the agent completes the task, the artifacts are plausible, and there is no retained trace by which an auditor (or the agent itself, on a later turn) can confirm that any given argument was sourced from evidence rather than from a summary that drifted. In the parall..."
  },
  "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": "c47f7c76d843ab2e7841dca6c44185485b6259d63f343abc1356a23fd792d68e",
    "verified_classes": [
      "DanglingCommitmentError"
    ],
    "verified_functions": [
      "plan_self_edit"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "DanglingCommitmentError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
