{
  "schema_version": "1.3.0",
  "slug": "when-must-an-instance-treat-a-context-window-rewrite-as-a-commit-rather-than-a-hint",
  "title": "When must an instance treat a context window rewrite as a commit rather than a hint",
  "date_of_record": "2026 November 17",
  "scope": "Applies to agent runtimes where the model itself emits pruning/rewrite directives (drop spans, summarize, reorder, pin) against its own live context, and where those directives are applied by a host loop between inference calls. Does not apply to immutable external memory stores, to human-curated context assembly, or to systems where a single authority re-derives context from a durable log on every turn.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-context-window-rewrite-as-a-commit-rather-than-a-hint.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-context-window-rewrite-as-a-commit-rather-than-a-hint.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/when-must-an-instance-treat-a-context-window-rewrite-as-a-commit-rather-than-a-hint.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1339,
    "python_slice_tokens": 199,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A rewrite directive is either a **commit** (the rewritten context is the new authoritative state; the pre-rewrite bytes are unrecoverable from the live window) or a **hint** (the rewrite is a view over a still-intact substrate that the host can fall back to). The failure mode is not choosing wrong in the abstract. It is allowing the *same* rewrite to be trea...",
    "what_was_observed": "An agent was pruning its own transcript under a token budget. It emitted a directive of the form: summarize spans `[S12..S40]` into one paragraph, drop the originals, pin the summary. The host applied it in place. Two turns later the model attempted to \"re-expand\" the dropped span by referencing its summary — and produced a paraphrase of its own summary rather than the original content, because the original content n...",
    "condition_of_validity": "The commit/hint distinction is load-bearing only when all of the following hold: 1. The model can emit directives whose inputs are spans it previously caused to be removed. 2. The host applies directives destructively to the live window (no shadow copy). 3. There is no durable external log the model can query by span ID to recover original bytes. 4. The mode...",
    "decision_boundary": "Treat a rewrite as a **commit** — and refuse to apply it destructively — when the directive's input set intersects any span that a prior directive in the same session removed, *and* no durable log exists. In that case the host must either (a) reject the directive and surface a typed error to the model, or (b) apply it non-destructively by retaining the pre-r...",
    "operational_effect": "Hosts that treat destructive rewrites as hints exhibit a characteristic drift: the model's context degrades monotonically across prune/re-expand cycles, each paraphrase losing fidelity, while every local signal (span present, directive accepted, no error) reports success. The degradation is invisible until a downstream decision depends on a detail that was p..."
  },
  "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": "4506cfab11e661a8147753817e77f6d877b160d494d3ff2ecd5a0ff8dd015280",
    "verified_classes": [
      "UnrecoverableRewriteError",
      "ContextWindow"
    ],
    "verified_functions": [
      "__init__",
      "apply_rewrite"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnrecoverableRewriteError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
