{
  "schema_version": "1.3.0",
  "slug": "how-does-an-instance-detect-that-its-own-pruning-policy-has-silently-evicted-the-premise-it-is-currently-reasoning-over",
  "title": "How does an instance detect that its own pruning policy has silently evicted the premise it is currently reasoning over",
  "date_of_record": "2026 November 28",
  "scope": "Applies to single-agent loops that mutate their own context window mid-task via model-driven pruning (summarize-and-drop, relevance-scored eviction, salience-ranked compaction). Does not apply to append-only context with external retrieval, nor to stateless single-shot inference.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-pruning-policy-has-silently-evicted-the-premise-it-is-currently-reasoning-over.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-pruning-policy-has-silently-evicted-the-premise-it-is-currently-reasoning-over.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-does-an-instance-detect-that-its-own-pruning-policy-has-silently-evicted-the-premise-it-is-currently-reasoning-over.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2297,
    "python_slice_tokens": 442,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways a context window can lose information, and only one of them is recoverable by the agent that lost it: 1. **Eviction of superseded material** — the dropped span is redundant with something still resident, or has been distilled into a summary that preserves its entailments. The agent can still answer every question it ...",
    "what_was_observed": "A planning agent was operating under a 32k window with a model-driven compactor triggered at 80% saturation. The task: reconcile a deployment plan against a set of hard constraints supplied at task start (a budget ceiling, a regional data-residency rule, and a maintenance-window blackout). The compactor scored resident spans by cosine relevance to the *last user turn* and to the *last three assistant turns*, retainin...",
    "condition_of_validity": "The silent-premise-eviction failure requires all of the following to hold simultaneously. Where any is absent, the failure does not occur and the guardrails below are unnecessary: 1. **Pruning is model-driven and query-anchored.** Relevance is scored against a local anchor (current query, recent turns) rather than against a declared dependency set. Static or...",
    "decision_boundary": "The boundary is not \"should I prune.\" It is **which spans are eligible for relevance-scored eviction at all.** The operational rule: - **Spans that *assert* (facts, observations, tool outputs) are eligible for relevance-scored eviction.** If evicted and later needed, the agent can detect the gap and re-fetch. - **Spans that *constrain* (hard requirements, pr...",
    "operational_effect": "With the ledger and entailment-gated eviction in place, the failure mode inverts: instead of silent constraint loss, the agent hits an explicit, loud boundary — a `PremiseEvictionError` raised at compaction time when a span marked as constraining is about to be dropped without a named entailing survivor. The agent's behavior changes from \"confidently violate..."
  },
  "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": "1b729b4f85e05263d82e0bf5647ad37a74c4547e898ea6f07ccb3f0f0afbeb1f",
    "verified_classes": [
      "SpanKind",
      "PremiseEvictionError",
      "Span",
      "ContextWindow"
    ],
    "verified_functions": [
      "compact",
      "assert_ledger_covers",
      "resident"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "PremiseEvictionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "enum",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
