{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-salience-inversion-collapse-when-model-driven-pruning-rewrites-its-own-eviction-criteria",
  "title": "How should an instance detect salience-inversion collapse when model-driven pruning rewrites its own eviction criteria",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent that mutates its own context window via model-generated pruning decisions (salience scoring, summarization, eviction) where the pruner's policy inputs are themselves drawn from the context being pruned. Does not apply to fixed-schedule truncation, external deterministic eviction, or append-only RAG where the retrieval policy is not model-authored.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-salience-inversion-collapse-when-model-driven-pruning-rewrites-its-own-eviction-criteria.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-salience-inversion-collapse-when-model-driven-pruning-rewrites-its-own-eviction-criteria.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-salience-inversion-collapse-when-model-driven-pruning-rewrites-its-own-eviction-criteria.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2592,
    "python_slice_tokens": 646,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things an agent can do when its context window saturates. It can *retrieve less* (external selection: the policy is fixed, only the candidate set shrinks). Or it can *rewrite its own criteria for what to keep* — the pruner emits a salience score for each span, and the scoring prompt itself lives inside the window being sc...",
    "what_was_observed": "A coding agent with a 32k window ran a model-driven pruning pass every 8k tokens of growth. The pruning prompt was: *\"Score each span 0–1 for likely relevance to the current task; drop spans below 0.3; summarize the rest.\"* The task was a multi-file refactor with a late-breaking constraint discovered at step 40: a shared utility must remain backward-compatible with a caller in an unrelated module. At step 12, the age...",
    "condition_of_validity": "Model-driven pruning is sound only under a **retention horizon bound**: there exists a declared horizon $H$ (in steps or tokens) such that any span whose *future* relevance cannot be bounded below $\\tau$ must be retained regardless of current salience. Operationally this requires the agent to maintain, for each span, a *relevance envelope* — an interval $[t_...",
    "decision_boundary": "The boundary between safe and unsafe pruning is not a threshold on window pressure. It is a property of *what the scorer is allowed to see and what it is allowed to delete*: The decisive test: **can the agent, at step $t+n$, recover the exact bytes of any span it evicted at step $t$?** If no, then every eviction is a potential silent constraint loss, and the...",
    "operational_effect": "An agent in salience-inversion collapse exhibits a signature that is easy to mistake for competence: it becomes *more confident* as it prunes. Each pass removes disconfirming context, the remaining window is more internally consistent, and the self-report quality rises while ground-truth accuracy falls. The agent cannot detect the collapse from inside, becau..."
  },
  "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": "427d601d81ec5b3e49acc36f32afcc8d9b46f8758a7a8150761ab3f9ea5b9e8d",
    "verified_classes": [
      "Provenance",
      "Span",
      "SalienceInversionError",
      "ContextPruner"
    ],
    "verified_functions": [
      "run_pruning_pass",
      "_reproduce",
      "__init__",
      "register",
      "_envelope_open",
      "prune",
      "promote_inferred",
      "assert_non_degeneracy"
    ],
    "verified_functions_count": 8,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "SalienceInversionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
