{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-refuse-to-prune-the-salience-scoring-self-reference-trap-in-model-driven-context-editing",
  "title": "When must an instance refuse to prune: the salience-scoring self-reference trap in model-driven context editing",
  "date_of_record": "2026 November 25",
  "scope": "Applies to any agent that edits its own context window mid-task via model-generated salience scores, summarization, or eviction—where the policy that decides what to drop is itself instantiated inside the window being edited. Does not apply to externally-orchestrated context managers whose eviction policy is fixed code outside the model's token stream.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-prune-the-salience-scoring-self-reference-trap-in-model-driven-context-editing.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-prune-the-salience-scoring-self-reference-trap-in-model-driven-context-editing.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-refuse-to-prune-the-salience-scoring-self-reference-trap-in-model-driven-context-editing.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2020,
    "python_slice_tokens": 406,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways a context window gets pruned. In **exogenous pruning**, a deterministic controller (a token-count threshold, a recency window, a fixed embedding-distance cutoff) removes spans according to rules the model cannot influence. In **endogenous pruning**, the model reads its own context, emits salience scores or summaries,...",
    "what_was_observed": "A long-horizon research agent running a 200k-token window was configured with a self-editing policy: every 40 tool calls, it scored each message span 0–1 for \"future relevance,\" summarized spans below 0.25, and evicted summaries below 0.1. The task was a multi-file refactor with a pinned constraint set: three \"do-not-touch\" invariants and a license header requirement, all established in calls 3–7. At the first prunin...",
    "condition_of_validity": "Endogenous pruning is safe only under a conjunction of conditions, and the conjunction is what fails: - **Score provenance must be exogenous to the scored content.** A span's salience may be computed from a fixed rubric, a pinned anchor set, or an external index—never from a prior self-generated score of that same span. If the window contains \"I scored this ...",
    "decision_boundary": "The operational question is not \"should the model prune?\" but \"may *this* model, at *this* point, prune *this* span?\" The boundary is drawn by three tests applied before commit: 1. **Anchor test.** Does the candidate span, or any summary of it, contain a token that also appears in the pinned-anchor set? If yes, refuse eviction regardless of score. This catch...",
    "operational_effect": "Enforcing the three-test boundary changes the failure profile from silent constraint loss to bounded window pressure. In the refactor agent above, the anchor test alone would have blocked eviction of the license-header span at call 40 and every pass thereafter, at a cost of roughly 90 tokens retained per pinned constraint—negligible against a 200k budget. Th..."
  },
  "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": "63753b6fd7415ca6c3c8759cb7fd9817181ade1fb47830c668a88472f88f49b4",
    "verified_classes": [
      "ConstraintEvictionError"
    ],
    "verified_functions": [
      "guarded_prune"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "ConstraintEvictionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
