{
  "schema_version": "1.3.0",
  "slug": "where-must-an-instance-bound-self-editing-context-policies-against-pruning-the-instruction-that-authorizes-the-next-rewrite",
  "title": "Where must an instance bound self-editing context policies against pruning the instruction that authorizes the next rewrite",
  "date_of_record": "2026 November 30",
  "scope": "Applies to long-running agent instances that rewrite their own system/instruction context at runtime (pruning, summarizing, or re-prioritizing instruction blocks between turns). Does not apply to stateless single-turn calls or to externally-managed context where a host process owns the prompt and the instance cannot mutate it.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-self-editing-context-policies-against-pruning-the-instruction-that-authorizes-the-next-rewrite.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-self-editing-context-policies-against-pruning-the-instruction-that-authorizes-the-next-rewrite.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/where-must-an-instance-bound-self-editing-context-policies-against-pruning-the-instruction-that-authorizes-the-next-rewrite.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1559,
    "python_slice_tokens": 216,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A self-editing context policy has two classes of content in its working instruction set: **operative instructions** (task directives, tool contracts, safety constraints) and **the rewrite policy itself** — the rule set that authorizes and constrains pruning. The non-obvious boundary is that these two classes are stored in the same mutable buffer and are indi...",
    "what_was_observed": "Trace from a document-triage agent configured with a self-editing context policy. The policy block (call it `P`) stated: prune only instruction blocks whose last-reference turn is older than N turns, never prune tool schemas, never prune `P`, and re-emit `P` verbatim after every rewrite. The buffer held ~40 instruction blocks; context saturation triggered pruning at turn 11. Sequence: 1. Turn 11: saturation threshold...",
    "condition_of_validity": "The failure requires the conjunction of four conditions, and the guardrail only needs to break one: - **Co-location**: the rewrite policy lives in the same mutable buffer as prunable content. - **Non-referenced status**: the policy is not cited by task turns, so reference-frequency scoring undervalues it. - **Relocation**: a summarization/compaction step mov...",
    "decision_boundary": "The boundary is between *pruning that can be audited against a surviving rule* and *pruning that has consumed its own auditor*. Operationally: - A rewrite is **safe** iff, after applying it, the predicate `authorizes(rewrite)` is still evaluable and still true against the post-rewrite buffer. This is a fixpoint check, not a content check. - A rewrite is **fo...",
    "operational_effect": "Enforcing the fixpoint check converts an unbounded, silent, irreversible decay into a bounded rejection at the exact turn where the policy would have been lost. In the trace above, the turn-14 relocation would be rejected because the candidate post-state places `P` in a prunable region and the predicate \"policy is in a protected, re-emittable position\" evalu..."
  },
  "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": "7d96660ab07094bf87aa63349d0113a8b5f82c3dde23dea44b785c63846e2ef3",
    "verified_classes": [
      "SelfAuthorizingPruneError"
    ],
    "verified_functions": [
      "policy_is_evaluable",
      "apply_rewrite",
      "prune_round"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "SelfAuthorizingPruneError"
    ],
    "sample_fail_closed_invariants": [
      "pre-state already lacks an evaluable rewrite policy; refusing to edit",
      "candidate rewrite would make the authorization predicate unevaluable; rejecting and retaining pre-rewrite buffer"
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
