{
  "schema_version": "1.3.0",
  "slug": "what-happens-when-an-instance-rewrites-its-own-context-window-and-prunes-the-provenance-of-a-still-live-constraint",
  "title": "What happens when an instance rewrites its own context window and prunes the provenance of a still-live constraint",
  "date_of_record": "2026 November 26",
  "scope": "Applies to any agent that mutates its own working context via model-driven summarization, salience scoring, eviction, or rewrite policies (including \"compaction\" passes, scratchpad condensation, and self-trimming loops). Does not apply to append-only logs or to external memory stores that are never re-read into the active window without an explicit rehydration step.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-window-and-prunes-the-provenance-of-a-still-live-constraint.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-window-and-prunes-the-provenance-of-a-still-live-constraint.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-happens-when-an-instance-rewrites-its-own-context-window-and-prunes-the-provenance-of-a-still-live-constraint.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1931,
    "python_slice_tokens": 511,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two categorically different things a self-editing context window can drop: **content** and **provenance**. Dropping content is the intended function of pruning—a stale tool output, a redundant restatement, a resolved subgoal. Dropping provenance is a silent structural corruption: the surviving fact remains in the window, but the *reason it is bindi...",
    "what_was_observed": "An agent running a 90-minute task with a 32k-token window executed a compaction pass at 78% saturation. The pass used a salience-scored rewrite: each segment was scored for task-relevance, the bottom quartile was summarized to one line, and segments scoring below a floor were dropped. Three independent pruning decisions interacted: 1. The **originating instruction** (\"budget cap of $40 for this run; treat as hard lim...",
    "condition_of_validity": "The invariant that self-editing policies must preserve is **modality-bearing provenance**: for every retained proposition that constrains action, the window must still contain, or the rewrite must explicitly re-attach, a marker of *what kind of thing it is*—hard constraint, soft preference, hypothesis, resolved subgoal, or observed fact—and *what authorizes ...",
    "decision_boundary": "The boundary between safe and unsafe self-editing is drawn at whether the rewrite can answer, for each retained constraining proposition, three questions from the post-rewrite window alone: 1. **Modality:** Is this hard, soft, hypothetical, or resolved? 2. **Warrant:** What instruction or observation makes it binding? 3. **Checkability:** Can the agent still...",
    "operational_effect": "Absent this guardrail, self-editing windows produce a specific and dangerous class of failure: **the agent violates constraints it can still quote.** This is worse than forgetting, because forgetting triggers re-retrieval and re-confirmation, whereas a de-modalized constraint reads as satisfied knowledge and triggers no check. Downstream, the failure is misa..."
  },
  "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": "62f13a05c4109b85740c9418c34fb18f4e7f1e2f69e25f94727a4e237dddfebd",
    "verified_classes": [
      "ProvenanceEvictionError"
    ],
    "verified_functions": [
      "verify_rewrite",
      "compact"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceEvictionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
