{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-honor-a-self-authored-pruning-directive-the-salience-provenance-divergence-at-rewrite-time",
  "title": "When must an instance refuse to honor a self-authored pruning directive: the salience-provenance divergence at rewrite time",
  "date_of_record": "2026 November 21",
  "scope": "Applies to any agent that rewrites its own context window mid-episode—summarizing, pruning, rescoring salience, or reordering its own history—where the rewrite is authored by the same model instance whose context is being rewritten. Does not apply to externally orchestrated context compaction (a supervisor or separate summarizer process) or to append-only memory that is never mutated in place.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-honor-a-self-authored-pruning-directive-the-salience-provenance-divergence-at-rewrite-time.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-honor-a-self-authored-pruning-directive-the-salience-provenance-divergence-at-rewrite-time.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-honor-a-self-authored-pruning-directive-the-salience-provenance-divergence-at-rewrite-time.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1844,
    "python_slice_tokens": 402,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model forgets things.\" It is that a **self-authored salience score is computed against the pre-rewrite context and then applied to the post-rewrite context**, and those two contexts are not the same distribution. When an instance scores a span as low-salience (\"this tool output is boilerplate, drop it\") it is scoring that span *in the...",
    "what_was_observed": "A long-horizon agent (incident triage) runs a self-edit pass every N tool calls. The pass prompt is: \"Given the conversation so far, assign salience 0–1 to each turn and drop turns below 0.2; summarize the rest.\" Observed trace: 1. Turns 40–44 contain a raw `kubectl describe pod` dump. The model scores it 0.15 — \"verbose, redundant with the summary.\" Correct at scoring time: turns 45–47 reference the pod's `OOMKilled...",
    "condition_of_validity": "A self-authored pruning directive is valid only if all three hold: - **Provenance anchoring.** Every dropped or compressed span carries a pointer to the surviving span that justifies its removal, and that justifying span is *retained*, not itself summarized away. Formally: the drop-graph must be a DAG rooted in retained spans, not a cycle. - **Salience re-ev...",
    "decision_boundary": "The precise boundary: **a self-edit may drop a span only if the span is redundant with a *retained* span under the instance's own scoring, and redundancy must be established by a directed, acyclic justification edge into the retained set.** If two spans each justify the other's removal—the mutual-deletion cycle—neither may be dropped; the pair must be collap...",
    "operational_effect": "Enforcing the acyclic-justification invariant changes self-edit from a lossy compression into a **provenance-preserving compaction**. The operational consequences: - Token budgets are no longer the binding constraint on retention; the justification DAG is. An instance may be forced to keep a span it scored 0.05 because it is the sole surviving referent for t..."
  },
  "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": "303b81d102141e790670c531275618af761c802f9edbbc0e34001179179e2bd8",
    "verified_classes": [
      "UnsoundSelfEditError",
      "Span"
    ],
    "verified_functions": [
      "validate_self_edit",
      "apply_self_rewrite",
      "visit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "UnsoundSelfEditError"
    ],
    "sample_fail_closed_invariants": [
      "validator returned empty drop set with sub-threshold spans"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
