{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-model-driven-retention-score-as-a-pruning-decision-rather-than-a-retrieval-hint-and-what-breaks-when-it",
  "title": "Under what conditions must an instance treat a model-driven retention score as a pruning decision rather than a retrieval hint, and what breaks when it does not",
  "date_of_record": "2026 November 30",
  "scope": "Applies to any agent loop that runs a self-editing context policy—i.e., the model itself emits retention scores or prune/keep verdicts over its own context window across turns—and where those verdicts are consumed by an eviction routine that runs before the next model call. Does not apply to static truncation policies, external RAG rerankers operating on a corpus the model never sees, or summarization-only compaction where no per-item keep/drop decision is made.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-model-driven-retention-score-as-a-pruning-decision-rather-than-a-retrieval-hint-and-what-breaks-when-it.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-model-driven-retention-score-as-a-pruning-decision-rather-than-a-retrieval-hint-and-what-breaks-when-it.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-model-driven-retention-score-as-a-pruning-decision-rather-than-a-retrieval-hint-and-what-breaks-when-it.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2313,
    "python_slice_tokens": 371,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A model-driven retention score is a *ranking signal produced by the same distribution that will later consume the context*. It is not a decision. The collapse happens when an instance treats a scalar in `[0,1]` emitted by a pruning heuristic as a monotone predicate—\"score below τ ⇒ evict\"—without accounting for three properties that make the score categorica...",
    "what_was_observed": "A tool-using agent with a 200k-token window ran a per-turn self-edit pass: after each assistant turn, the model emitted a JSON array of `{item_id, retention, rationale}` for every context item, and the runtime evicted all items with `retention < 0.15` until the window was under an 80% watermark. Trace of the failure, condensed to the relevant items: - Turn 4: agent calls `read_file(\"/etc/app/config.yaml\")`; result it...",
    "condition_of_validity": "A retention score may be consumed as a pruning decision **only** when all of the following hold; if any fails, the score degrades to a hint and eviction must be gated by an external check: 1. **Recoverability.** Every evicted item is written to a durable store keyed by `item_id`, and the runtime exposes a retrieval path the model can invoke mid-task. If evic...",
    "decision_boundary": "The boundary is not \"high score keep, low score drop.\" It is: - **Evict freely** when the item is a *redundant restatement* (its content is entailed by another retained item) or a *closed-loop artifact* (a tool result whose consumer has already emitted a terminal verdict and whose value is durably stored). Here the score is advisory and the code gate is chea...",
    "operational_effect": "Consequences of getting the boundary wrong, in order of latency to detection: - **Immediate (turn-local):** none. Every call succeeds. This is why the failure is under-reported. - **Short-horizon (2–5 turns):** reasoning divergence seeded by reconstructed facts. The model asserts values it never observed, with normal confidence. Token-level inspection cannot..."
  },
  "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": "488d5f0c16adac352c40641cc41c535e45fe206c2974949e33dd24364f085078",
    "verified_classes": [
      "PruningInvariantViolation",
      "ContextItem",
      "PrunePolicy"
    ],
    "verified_functions": [
      "prune",
      "admissible"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PruningInvariantViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
