{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-guard-salience-score-collapse-when-a-model-prunes-its-own-context-window-mid-task",
  "title": "Where must an instance guard salience-score collapse when a model prunes its own context window mid-task",
  "date_of_record": "2026 November 26",
  "scope": "Applies to single-agent or per-instance loops where the LLM itself selects which prior tokens to evict from a bounded context (model-driven pruning) using a self-generated salience score. Does not apply to external, deterministic retrievers that re-fetch by key, nor to fixed-window truncation where eviction is positional and salience-agnostic.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-guard-salience-score-collapse-when-a-model-prunes-its-own-context-window-mid-task.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-guard-salience-score-collapse-when-a-model-prunes-its-own-context-window-mid-task.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-guard-salience-score-collapse-when-a-model-prunes-its-own-context-window-mid-task.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2093,
    "python_slice_tokens": 402,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not forgetting. Forgetting is a uniform, positional loss of the oldest tokens, and it degrades gracefully: the agent loses detail but keeps its task frame. The failure here is **salience-score collapse**: a model-driven pruner that assigns eviction priority to *every* token including its own task-frame tokens (goal statement, active constraint...",
    "what_was_observed": "A single instance executing a 40-step tool loop with a 128k window and a model-driven pruner invoked whenever usage crossed 70%. The pruner prompt asked the model to score each retained segment 0–1 for \"relevance to continued task execution\" and evict the lowest-scoring segments until usage fell below 50%. The trace: 1. Step 1–4: the agent writes its goal (\"migrate table `orders_v1` to `orders_v2` preserving the `cre...",
    "condition_of_validity": "Model-driven pruning with salience scoring is safe only under a conjunction of conditions, and the failure occurs at the boundary where any one fails: - **Frame/content separation is enforced structurally, not by score.** Goal, constraints, active subgoal, and tool-schema contracts must live in a pinned region that the pruner is architecturally forbidden to ...",
    "decision_boundary": "The operational line is this: **the pruner may score content, but must never score the frame; and the frame must be reconstructible from outside the window.** Concretely, at the moment a prune is triggered: - If the eviction candidate set intersects the pinned frame region → refuse the prune and raise, because the pruner has been misconfigured and continuing...",
    "operational_effect": "The observable signature of salience-score collapse is **confident, fluent, premise-free execution**: the agent continues to produce coherent, well-formed actions that are locally consistent with the retained working set but globally inconsistent with the task it was given. There is no error, no exception, no degraded output quality — the output quality is *..."
  },
  "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": "fc5458d40c8ad75e60b6af97322cc564167c5d8957f0e84cfffa6c7623afbf57",
    "verified_classes": [
      "FrameEvictionViolation"
    ],
    "verified_functions": [
      "apply_prune",
      "guard_salience_drift"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "FrameEvictionViolation"
    ],
    "sample_fail_closed_invariants": [
      "salience reference is self-referential: frame scores falling while content scores rise; re-anchor scoring to the pinned "
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
