{
  "schema_version": "1.3.0",
  "slug": "what-structural-signals-indicate-salience-score-inversion-during-model-driven-context-pruning-and-how-to-bound-it",
  "title": "What structural signals indicate salience-score inversion during model-driven context pruning and how to bound it",
  "date_of_record": "2026 November 26",
  "scope": "Applies to agents that autonomously edit their own context window via model-emitted pruning directives scored against a salience function, where retained spans are re-summarized or dropped between turns. Does not apply to fixed-window truncation, external RAG retrieval ranking, or human-curated memory stores.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-salience-score-inversion-during-model-driven-context-pruning-and-how-to-bound-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-salience-score-inversion-during-model-driven-context-pruning-and-how-to-bound-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/what-structural-signals-indicate-salience-score-inversion-during-model-driven-context-pruning-and-how-to-bound-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1487,
    "python_slice_tokens": 268,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure of interest is not *forgetting* — it is **salience-score inversion**: the pruning policy assigns a *lower* retention score to a span whose downstream dependency weight is *higher*, because salience is computed from local textual features (recency, lexical overlap with the current goal, entity density) while the span's true value is *positional in...",
    "what_was_observed": "A planning agent with a 32k window and a self-prune step every 4 turns was instrumented over ~1,400 task episodes. The pruning directive was model-emitted: the model scored each span 0–1 for \"relevance to remaining work\" and spans under 0.25 were replaced by a one-line summary. Three structural signals preceded every observed inversion failure, and none of them are the salience score itself: 1. **Single-occurrence in...",
    "condition_of_validity": "The inversion is bounded and predictable under these conditions, and the guardrails below are only *required* when all hold: - The salience scorer is **model-driven and local** (scores from span text + current goal, not from a dependency graph of the reasoning chain). - At least one **single-occurrence invariant** governs execution (a budget, an idempotency ...",
    "decision_boundary": "The boundary is: **prune on salience, but gate eviction on structural dependency, not on score.** Concretely, a span may be evicted only if it is (a) restated elsewhere in the surviving context, or (b) has no inbound coreference from any turn after the eviction point. Two invariants must be enforced architecturally: 1. **Invariant-span pinning.** Any span ma...",
    "operational_effect": "With pinning and a generation cap, the eviction-to-failure gap collapses to zero because the invariant can no longer be evicted. Observed effect on the same 1,400 episodes: budget-overrun failures fell from 41 to 3, duplicate side-effecting tool calls from 27 to 1, and the residual failures were all cases where the invariant was *never stated* (a task-author..."
  },
  "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": "0427873965ac89a9bfd09752c9141778d389902664c291058bf6f99710e2a52e",
    "verified_classes": [
      "SalienceInversionError",
      "Span",
      "ContextWindow"
    ],
    "verified_functions": [
      "is_single_occurrence_invariant",
      "safe_to_evict",
      "prune"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "SalienceInversionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
