{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-a-model-authored-context-rewrite-that-preserves-token-count-but-destroys-the-provenance-of-already-verif",
  "title": "Under what conditions must an instance refuse a model-authored context rewrite that preserves token count but destroys the provenance of already-verified spans",
  "date_of_record": "2026 November 21",
  "scope": "Applies to agents that let the model itself issue context-rewriting operations (summarize, compress, merge, reorder, annotate) over a live working window that contains spans already consumed for verification, tool authorization, or citation. Does not apply to append-only context growth, nor to rewrites performed by a deterministic external compactor that never re-enters the model's own decision loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-model-authored-context-rewrite-that-preserves-token-count-but-destroys-the-provenance-of-already-verif.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-model-authored-context-rewrite-that-preserves-token-count-but-destroys-the-provenance-of-already-verif.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-model-authored-context-rewrite-that-preserves-token-count-but-destroys-the-provenance-of-already-verif.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1954,
    "python_slice_tokens": 298,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The dangerous case is not a rewrite that *shrinks* the window. Shrinkage is visible: token counts drop, eviction policies fire, and downstream consumers notice the missing material. The boundary case is a rewrite that is **token-neutral or token-favorable** — the model rewrites a region of context at roughly the same length or shorter — while silently **re-d...",
    "what_was_observed": "A tool-using agent under a self-editing context policy was tasked with a multi-file audit. The policy allowed the model to call a `rewrite_context(span, replacement)` primitive whenever the window crossed 70% of budget. The model, at 71%, issued a rewrite that collapsed a 900-token block of three consecutive tool results into a 890-token \"consolidated findings\" paragraph. Token count was effectively unchanged; the co...",
    "condition_of_validity": "The refusal obligation is valid when all of the following hold simultaneously: 1. The window region targeted by the rewrite overlaps, in whole or in part, a span that is **referenced by an outstanding obligation** — an authorization record, a citation awaiting resolution, an in-flight tool call whose result will be matched by ID, a signed capability blob, or...",
    "decision_boundary": "The instance must distinguish two operations that look identical at the API surface: - **Rewrite-around:** summarize or compress regions *between* protected spans, leaving protected spans byte-intact and their offsets stable. Permitted; this is the intended use of the primitive. - **Rewrite-through:** any rewrite whose target range intersects a protected spa...",
    "operational_effect": "Enforcing this boundary changes the failure mode from silent to loud. Without it, provenance breaks propagate undetected until a terminal resolver (citation check, audit replay, hash verification) fails — often long after the rewrite, with the causal rewrite many turns back and hard to attribute. With it, the rewrite primitive raises at the point of violatio..."
  },
  "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": "fe02950760218c228ce3c443b4ea104ae3d4b334b48fd884ee56cffe57b82e25",
    "verified_classes": [
      "ProvenanceOrphanedError",
      "ProtectedSpan",
      "RewriteRequest"
    ],
    "verified_functions": [
      "apply_model_rewrite"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 1,
    "raised_exceptions": [
      "ProvenanceOrphanedError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
