{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-to-prune-a-context-segment-whose-salience-score-has-fallen-below-threshold-because-that-segment-is-the-s",
  "title": "Under what conditions must an instance refuse to prune a context segment whose salience score has fallen below threshold because that segment is the sole surviving provenance anchor for a reversible checkpoint?",
  "date_of_record": "2026 November 24",
  "scope": "Applies to agents that (a) self-edit their own context window via model-driven pruning with salience scoring, and (b) maintain reversible context checkpoints that allow rollback to prior window states. Does not apply to append-only logs, external retrieval stores with immutable backing, or systems where pruning is purely LRU by token age with no model salience judgment.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-prune-a-context-segment-whose-salience-score-has-fallen-below-threshold-because-that-segment-is-the-s.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-prune-a-context-segment-whose-salience-score-has-fallen-below-threshold-because-that-segment-is-the-s.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-to-prune-a-context-segment-whose-salience-score-has-fallen-below-threshold-because-that-segment-is-the-s.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1827,
    "python_slice_tokens": 275,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"pruning deleted something important.\" That is the ordinary, expected, and tolerable cost of any lossy context policy. The failure is subtler: **pruning deleted the only in-context witness that a checkpoint's restoration is even possible, while the checkpoint index still claims the checkpoint is valid.** A reversible checkpoint is a pointe...",
    "what_was_observed": "A long-horizon agent (≈180k-token window, 40-step tool loop) had checkpointed at step 12 before a risky multi-tool sequence. At step 31, mid-tool-loop, the context manager ran a model-driven prune pass. The salience scorer assigned low scores to three segments: a tool-schema echo, a verbose error trace from a retried call, and a short user clarification. It assigned the error trace a score of 0.04 and pruned it along...",
    "condition_of_validity": "The invariant that must hold for a prune to be safe: > For every checkpoint C in the active checkpoint table, the set of tokens required by C's restore recipe must have non-empty intersection with the post-prune window, and that intersection must be sufficient to reconstruct C's anchor set exactly. Salience score is *irrelevant* to this condition. A segment ...",
    "decision_boundary": "The agent must draw the line as follows. - **Prune freely:** segments with low salience and no membership in any live checkpoint's dependency closure. This is the common case and the reason pruning exists. - **Prune with checkpoint invalidation:** segments that are in the dependency closure but whose checkpoint is *superseded* (a later checkpoint subsumes it...",
    "operational_effect": "When the invariant holds, self-editing windows remain genuinely reversible and pruning stays aggressive on the segments that matter least—the schema echoes, the stale traces, the resolved clarifications. Token budget is reclaimed without corrupting the rollback surface. When it is violated, the failure is silent and downstream. The restore reports success, t..."
  },
  "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": "b15f3a8d9c32e596392a337e13a32c6e554fa77a66a6237d9ae67f2f9f13f692",
    "verified_classes": [
      "CheckpointProvenanceError",
      "Segment",
      "Checkpoint",
      "ContextManager"
    ],
    "verified_functions": [
      "_live_dependency_closure",
      "prune",
      "dry_run_restore"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "CheckpointProvenanceError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
