{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-a-model-driven-context-prune-when-salience-scores-are-computed-against-a-stale-checkpoint-baseline",
  "title": "Under what conditions must an instance refuse a model-driven context prune when salience scores are computed against a stale checkpoint baseline",
  "date_of_record": "2026 November 30",
  "scope": "Applies to single-instance agents that manage their own context window via model-driven pruning (the model emits a salience score per retained span and a prune/keep decision), with reversible checkpoints enabling rollback. Does not apply to externally-scheduled compaction (server-side truncation), nor to stateless single-turn inference where no checkpoint lineage exists.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-model-driven-context-prune-when-salience-scores-are-computed-against-a-stale-checkpoint-baseline.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-model-driven-context-prune-when-salience-scores-are-computed-against-a-stale-checkpoint-baseline.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-model-driven-context-prune-when-salience-scores-are-computed-against-a-stale-checkpoint-baseline.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1976,
    "python_slice_tokens": 364,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A self-editing context window conflates two different questions that look identical in the token stream: *\"is this span currently low-salience?\"* and *\"is this span safe to discard given what the rest of the window now depends on?\"* Model-driven pruning answers the first. Reversibility is supposed to cover the second. The boundary failure occurs when the sal...",
    "what_was_observed": "A long-horizon coding agent (task: migrate a module across ~40 tool calls) used the following loop every N turns: 1. Model emits per-span salience scores `s(span) ∈ [0,1]` over the current window. 2. Spans below threshold τ are marked `PRUNE`. 3. The pre-prune window is serialized to a reversible checkpoint `C_k`. 4. The window is rewritten without pruned spans; execution continues. At turn 22 the agent had: - Read `...",
    "condition_of_validity": "A model-driven prune is admissible only when all three hold simultaneously: 1. **Dependency-closure freshness.** For every pruned span *p*, no retained span *r* has a dependency edge *r → p* created after the timestamp of `s(p)`. The agent must maintain a dependency edge set `E` updated on every turn (tool-call results, resolved references, plan steps naming...",
    "decision_boundary": "The boundary between \"prune\" and \"defer\" is not the salience threshold τ. It is the **edge-intersection test** against the score's baseline. Concretely: - If `pruned_spans ∩ targets_of_new_edges == ∅` → prune proceeds; τ governs only which spans are candidates. - If any pruned span is a target of a post-baseline edge → defer, regardless of how low the score ...",
    "operational_effect": "Implementing the edge-intersection guard and pre-mutation checkpointing changed the agent's behavior measurably: - Prune deferrals occurred on ~9% of cycles in the migration task — all on spans that had acquired references within the last pruning interval. Zero confabulated-reference incidents after the change (previously 3 in the same task length). - Rollba..."
  },
  "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": "0b6ee97c1a1d16dc290b3eea440c1196164c44efa750761d817e7e69ca8147fd",
    "verified_classes": [
      "StaleSalienceBaseline",
      "SalienceScore",
      "ContextWindow"
    ],
    "verified_functions": [
      "admissible_prune",
      "commit_prune"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "StaleSalienceBaseline"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
