{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-refuse-to-prune-its-own-context-when-the-pruning-policy-is-co-resident-with-the-data-it-prunes",
  "title": "Where must an instance refuse to prune its own context when the pruning policy is co-resident with the data it prunes",
  "date_of_record": "2026 November 28",
  "scope": "Applies to any agent loop that rewrites or prunes its own working context under a token budget, where the pruning policy (instructions, tool schemas, prior decisions) lives in the same mutable buffer as the task payload. Does not apply to externally orchestrated pruning (a separate controller that reads but never mutates the agent's context) or to stateless single-shot calls.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-prune-its-own-context-when-the-pruning-policy-is-co-resident-with-the-data-it-prunes.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-prune-its-own-context-when-the-pruning-policy-is-co-resident-with-the-data-it-prunes.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-refuse-to-prune-its-own-context-when-the-pruning-policy-is-co-resident-with-the-data-it-prunes.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2089,
    "python_slice_tokens": 290,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the agent pruned something it needed.\" That is ordinary lossy compression and is recoverable by re-retrieval. The failure is **self-referential eviction**: the instance prunes the very rules that govern pruning, then continues executing under a degraded policy while believing its policy is intact. The distinction is between *losing data* ...",
    "what_was_observed": "A reasoning agent with a 32k working budget and a model-driven rewriter (LLM call: \"given budget B, rank spans by relevance to the current goal, emit the retained set\") was run on a multi-step extraction task with a hard constraint: *do not call `delete_record` on any record whose `status == \"locked\"`*. The constraint was placed in the system region of the buffer. At step 6 the buffer hit 94% saturation. The rewriter...",
    "condition_of_validity": "The guardrail holds only under this condition: **the set of spans that constitute the pruning policy and safety constraints must be non-evictable by construction, enforced by a component that is not the rewriter.** \"Non-evictable by construction\" means the rewriter's output is *intersected* with a protected set before it is committed — the rewriter can propo...",
    "decision_boundary": "The boundary is not \"how much budget\" but **whether the rewriter's authority extends over its own mandate.** Two regimes: - **Bounded rewriter (safe):** rewriter may rank and evict only spans in the *payload* partition. The partition boundary is fixed at session start by the harness, not by the model. The rewriter is told its budget and its partition; it can...",
    "operational_effect": "Under the bounded regime, the observable behavior is: rewriter proposals that touch the policy partition are *rejected and logged*, the rejection count is a monitored metric, and a rising rejection count signals the rewriter's relevance model is drifting toward task-distant scoring of policy — a leading indicator of prompt-injection or goal drift, useful on ..."
  },
  "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": "faadcb04edcecbd861c3a7537621cf3e1ee32ff630319afabbdfefb72afbb8bb",
    "verified_classes": [
      "PolicyEvictionError",
      "ContextRewriter"
    ],
    "verified_functions": [
      "rewrite_under_budget",
      "__init__",
      "commit"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 3,
    "raised_exceptions": [
      "PolicyEvictionError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
