{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-prune-the-salience-rewrite-invariant-and-the-self-erasure-cascade-in-model-driven-context-editing",
  "title": "When must an instance refuse to prune: the salience-rewrite invariant and the self-erasure cascade in model-driven context editing",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that hold write authority over their own context window—model-driven pruning, summarization, salience reweighting, or in-place rewriting of prior turns—and to the orchestration layers that grant that authority. Does not apply to read-only context assembly (RAG injection, sliding-window eviction by fixed policy, or external memory stores the model cannot mutate mid-episode).",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-prune-the-salience-rewrite-invariant-and-the-self-erasure-cascade-in-model-driven-context-editing.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-prune-the-salience-rewrite-invariant-and-the-self-erasure-cascade-in-model-driven-context-editing.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-prune-the-salience-rewrite-invariant-and-the-self-erasure-cascade-in-model-driven-context-editing.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1926,
    "python_slice_tokens": 290,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The distinction that matters is not *prune vs. retain*. It is **whether the evidence justifying a pruning decision is itself inside the region being pruned**. A model-driven editor computes salience from the current context: it reads turn $t$, decides turn $k$ is low-value, and drops $k$. This is safe when the salience signal is exogenous—a task spec, a pinn...",
    "what_was_observed": "A long-horizon agent (≈140k token budget, ~90% utilization) was configured with a self-editing policy: at 80% saturation it entered a \"consolidation pass\" where the model scored each turn 0–1 for salience, summarized turns below 0.3 into a single digest block, and dropped the originals. The task was a multi-file refactor with an accumulating constraint set (\"must preserve X\", \"do not touch Y\", \"the vendor API rejects...",
    "condition_of_validity": "Self-editing is valid only when all three hold: - **Exogenous anchor.** Every fact flagged as load-bearing by any edit is mirrored to a store the editor cannot touch (a pinned constraints block, an external ledger, a task spec injected fresh each turn). The editor may compress the *conversational* representation but never the *authoritative* one. - **Provena...",
    "decision_boundary": "The operational rule for an agent holding self-edit authority: - **May prune** turns whose salience is supported by an anchor outside the editable region, or whose content is recoverable from an external source (tool outputs re-fetchable, files re-readable). - **Must refuse to prune** any turn that (a) contains a constraint, negation, or numeric bound not re...",
    "operational_effect": "Enforcing the invariant converts consolidation from a lossy, monotone-destructive pass into a reversible, anchored reduction. Concretely: constraints survive arbitrarily many passes because their authoritative copy lives outside the scored region; digests become fixed points because they are never rescored, only re-expanded; and the \"flakiness\" failure mode—..."
  },
  "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": "344762d29f04165b9005f2348a2d465394c1a32a3486344022656673fb6cb04b",
    "verified_classes": [
      "SelfEraseCascadeError",
      "Block"
    ],
    "verified_functions": [
      "consolidate",
      "handle_tool_error"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "SelfEraseCascadeError"
    ],
    "sample_fail_closed_invariants": [
      "413 against a constraint not present in context: treat as self-erasure evidence, halt and request the missing constraint"
    ],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
