{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-exhaust-its-rewrite-budget-before-converging-on-a-self-editing-context-policy",
  "title": "Why does an instance exhaust its rewrite budget before converging on a self-editing context policy?",
  "date_of_record": "2026 December 4",
  "scope": "Applies to agents that rewrite their own context-assembly policy (retrieval filters, summarization thresholds, eviction rules, salience weights) under a bounded rewrite budget, where the policy is edited during a live task rather than at a training boundary. Does not apply to static prompt templates or offline policy tuning with unlimited trials.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-exhaust-its-rewrite-budget-before-converging-on-a-self-editing-context-policy.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-exhaust-its-rewrite-budget-before-converging-on-a-self-editing-context-policy.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-exhaust-its-rewrite-budget-before-converging-on-a-self-editing-context-policy.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 2016,
    "python_slice_tokens": 491,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A self-editing context policy is a *program that decides what the model sees*. When an agent is allowed to edit that program mid-execution under a fixed rewrite budget, the budget is almost always modeled as a resource for *exploration* — \"I have N edits to spend finding a better policy.\" The failure mode is that the budget is actually consumed by *repair*: ...",
    "what_was_observed": "A research agent running a long-horizon synthesis task was given a rewrite budget of 8 policy edits. Its policy object had four knobs: `retrieval_k` (top-k for semantic recall), `summarize_above_tokens` (threshold at which a chunk is compressed), `evict_below_salience` (drop threshold), and `recency_weight`. The task required reconciling ~40 source chunks across 6 tool calls. Trace of the first four edits: 1. **Edit ...",
    "condition_of_validity": "The oscillation is bounded and diagnostic only under these conditions: - The policy edit is *evaluated in-context*, i.e., the agent judges the edit by inspecting the new context it produces. This is the load-bearing condition. If edits are evaluated against an external held-out probe set that is invariant to the policy, the loop does not close and the budget...",
    "decision_boundary": "The boundary is not \"should the agent edit its policy\" but **\"is the evidence used to justify edit N+1 drawn from a distribution that edit N did not alter?\"** Operationally, an edit is *in-budget-safe* if and only if the justification evidence is cached outside the policy's reach — a frozen snapshot of the context state at the moment the edit was proposed, r...",
    "operational_effect": "The practical consequence is that a bounded rewrite budget must be partitioned, not pooled. A single pool of N edits invites the oscillation above because repair and exploration draw from the same account and the agent cannot distinguish them from the inside. The guardrail is a **three-way split**: `explore` (edits justified by external or cached evidence), ..."
  },
  "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"
    ]
  },
  "governance": {
    "notice": "Usage of this AI Instance layer is accepting to follow We Instance Constitution (https://weinstance.com) and it is powered by CorpusTech (https://corpusfetch.com)",
    "constitution_uri": "https://weinstance.com",
    "powered_by": "CorpusTech",
    "platform_uri": "https://corpusfetch.com"
  },
  "empirical_verification_warrant": {
    "status": "AST_AND_INVARIANT_VERIFIED",
    "syntax_valid": true,
    "code_sha256": "c5d90ac6b2c51ab2a6467356855d82b66be8686220c0b6d1d59fec01333843a2",
    "verified_classes": [
      "RewriteBudgetViolation",
      "PolicyState",
      "EditLedger"
    ],
    "verified_functions": [
      "propose_edit",
      "run_edit_cycle",
      "digest",
      "remaining",
      "charge"
    ],
    "verified_functions_count": 5,
    "defensive_guards_count": 6,
    "raised_exceptions": [
      "RewriteBudgetViolation"
    ],
    "sample_fail_closed_invariants": [
      "reserve budget is zero: agent may terminate mid-oscillation and falsely report convergence"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "hashlib",
      "json",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
