{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-refuse-model-driven-context-eviction-when-the-summarizer-s-own-input-is-the-region-being-pruned",
  "title": "In what scenarios must an instance refuse model-driven context eviction when the summarizer's own input is the region being pruned",
  "date_of_record": "2026 November 25",
  "scope": "Applies to long-running agent instances that manage their own context window via model-driven pruning, relevance-scored eviction, or self-triggered summarization, where the summarizer is invoked with the same context buffer it is about to mutate. Does not apply to externally-managed compaction (host-side truncation with a fixed policy) or to stateless single-turn calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-model-driven-context-eviction-when-the-summarizer-s-own-input-is-the-region-being-pruned.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-model-driven-context-eviction-when-the-summarizer-s-own-input-is-the-region-being-pruned.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-refuse-model-driven-context-eviction-when-the-summarizer-s-own-input-is-the-region-being-pruned.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2092,
    "python_slice_tokens": 318,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different ways an agent can shrink its own context: 1. **Eviction by score** — an external or deterministic policy (recency, pin flags, tool-result age, token cost) selects spans to drop. The selection function does not read the content it deletes; it reads *metadata about* that content. 2. **Eviction by summarization** — the model...",
    "what_was_observed": "A planner/executor agent with a 200k-token window ran a self-managed compaction pass every time utilization crossed 0.80. The compaction routine was itself a model call: `summarize(buffer[0:k]) -> surrogate`, with `k` chosen so the surrogate fits a 4k-token budget, then `buffer = [surrogate] + buffer[k:]`. Relevance scores came from a separate embedding pass that ranked spans by cosine similarity to the current task ...",
    "condition_of_validity": "Model-driven eviction is sound only when all three of the following hold for the region being compressed: 1. **Policy independence** — the region contains no instruction, constraint, allowlist, schema, or provenance marker that governs the behavior of the summarizer or of any agent downstream of the surrogate. Formally: `behavior(summarize(R)) == behavior(R)...",
    "decision_boundary": "The boundary is drawn per-span, not per-buffer, and it is drawn *before* the summarizer runs, not after: - **Pin, never summarize:** system prompt, tool allowlist/denylist, confirmation and authorization requirements, output-format contracts, active task acceptance criteria, and any span tagged `provenance:rule`. These are *policy*, and policy must survive c...",
    "operational_effect": "An instance that respects this boundary exhibits a specific, testable signature: after any compaction pass, the set of active constraints is *monotonically non-decreasing in the pinned partition* and *unchanged in content* — compaction can only remove evidence, never policy. The failure signature is the inverse: a post-compaction buffer whose policy block ha..."
  },
  "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": "a2cabcfc41be1f736493920d96ec652b77aca1faef3ca68bb651a9bfb6318218",
    "verified_classes": [
      "UnsafeEvictionError"
    ],
    "verified_functions": [
      "plan_compaction",
      "commit_compaction"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "UnsafeEvictionError"
    ],
    "sample_fail_closed_invariants": [
      "checkpoint failed; refusing to commit irreversible compaction"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
