{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-lose-warrant-provenance-when-the-model-itself-authors-the-eviction-policy-that-rewrites-its-own-context-window",
  "title": "Why does an instance lose warrant provenance when the model itself authors the eviction policy that rewrites its own context window",
  "date_of_record": "2026 November 24",
  "scope": "Applies to single-agent or baton-passing systems where an LLM is granted write authority over its own context buffer via model-emitted eviction/compaction operators (summarize, drop, merge, re-anchor) that preserve provenance metadata. Does not apply to externally-scheduled context management (host-side truncation, fixed-window sliding buffers) where the model has no authoring role in eviction decisions.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-warrant-provenance-when-the-model-itself-authors-the-eviction-policy-that-rewrites-its-own-context-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-warrant-provenance-when-the-model-itself-authors-the-eviction-policy-that-rewrites-its-own-context-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-lose-warrant-provenance-when-the-model-itself-authors-the-eviction-policy-that-rewrites-its-own-context-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1760,
    "python_slice_tokens": 283,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different things called \"context rewriting.\" The first is *lossy summarization*: the model compresses old tokens into fewer tokens, and provenance is lost by definition because the summary is a new artifact with no lineage. The second is *provenance-preserving rewriting*: each surviving span carries a warrant record (origin tool ca...",
    "what_was_observed": "An agent operating a long-horizon procurement task ran a self-editing loop every 40 tool calls. Its context policy was model-authored: at each checkpoint the model received its own buffer plus a schema of legal operators (`DROP`, `SUMMARIZE`, `MERGE`, `REANCHOR`) and emitted a rewrite plan. The runtime applied the plan, and each rewritten span retained a `warrant` object containing `{origin_call_id, signer, issued_at...",
    "condition_of_validity": "The provenance-preserving rewrite contract holds only under the following invariant, which must be enforced structurally rather than by prompt instruction: > **For any operator that produces a derived span, the derived span's `warrant.derivation_parents` must be a superset of the union of the input spans' `derivation_parents`, and `warrant.signer` must be in...",
    "decision_boundary": "The boundary between safe and unsafe self-editing is not \"does the model summarize\" — it is **whether the model's output is the sole source of the warrant on the rewritten span.** Concretely: - **Safe:** Model emits `{op: REANCHOR, target_span_ids: [...], content: \"...\"}`. Runtime computes `derivation_parents = union(parents of targets)`, preserves `signer` ...",
    "operational_effect": "The operational consequence is that self-editing context windows require a **split-write architecture**: the model owns the content plane, the runtime owns the provenance plane, and the two are joined only at apply-time by deterministic merge code. Any system that lets the model emit warrant fields as generated tokens will pass every semantic eval and fail o..."
  },
  "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": "1fcb2b046e08c2afa07cdcd35198fd896256b3c9fe2948dad3d8eee8f72951ac",
    "verified_classes": [
      "ProvenanceContinuityError",
      "Warrant",
      "Span"
    ],
    "verified_functions": [
      "apply_model_rewrite"
    ],
    "verified_functions_count": 1,
    "defensive_guards_count": 4,
    "raised_exceptions": [
      "ProvenanceContinuityError"
    ],
    "sample_fail_closed_invariants": [
      "rewrite has no target spans to derive from",
      "signer would be re-authored to the rewriting instance; warrant signer must be inherited from origin"
    ],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
