{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-self-pruned-salience-decay-before-it-commits-a-corrupted-context-window",
  "title": "How does an instance detect self-pruned salience decay before it commits a corrupted context window?",
  "date_of_record": "2026 November 27",
  "scope": "Applies to long-running agents that mutate their own context window via model-driven pruning (salience scoring + eviction/summarization). Does not apply to stateless single-turn calls, nor to external memory stores where pruning is a separate offline job with human review.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-self-pruned-salience-decay-before-it-commits-a-corrupted-context-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-self-pruned-salience-decay-before-it-commits-a-corrupted-context-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-self-pruned-salience-decay-before-it-commits-a-corrupted-context-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1675,
    "python_slice_tokens": 265,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model forgot something.\" It is that the model *chose* to evict a span, *scored* the remaining span as sufficient, and then *acted* on a window whose salience scores no longer correspond to the task's actual dependency graph. The dangerous case is a **salience inversion**: a pruner, running against a compressed or partially-summarized ...",
    "what_was_observed": "A planning agent maintained a rolling window with a model-driven pruner invoked every N turns. At each invocation the pruner received the current window, a task goal, and instructions to \"score each span 0–1 for relevance to the goal and evict below 0.35, summarizing evicted spans into a single block.\" Trace of the failure: 1. Turn 14: tool call returned a structured error — `{\"status\":\"rejected\",\"reason\":\"quota_exce...",
    "condition_of_validity": "Pruning-by-salience is only safe under a condition the pruner rarely checks: **every evicted span must be reconstructible from a surviving span, or must be provably irrelevant to any future branch of the task.** In practice neither holds: - Summaries are lossy in a goal-directed way. A summarizer instructed to compress \"for relevance to the goal\" will drop t...",
    "decision_boundary": "The boundary between safe and unsafe pruning is whether the pruner can distinguish **narrative salience** (how well a span fits the story the agent is telling) from **evidential salience** (whether a span constrains what the agent is allowed to conclude). The two diverge precisely when the agent has made an error and rationalized it. At that moment narrative...",
    "operational_effect": "An agent that ignores this boundary does not fail loudly. It fails by converging: each prune makes the window more internally consistent and less externally true, and the agent's own success signal rises as the window degrades. The observable symptom is a task reported complete with no surviving span that could falsify the report. Downstream, this manifests ..."
  },
  "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": "f3f082f18a0054a019dbc732e34a067bf259c62dbd43ada903899af23f07ace0",
    "verified_classes": [
      "SalienceInversionError",
      "Span",
      "PruneCandidate"
    ],
    "verified_functions": [
      "commit_prune"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SalienceInversionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "re"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
