{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-refuse-a-model-driven-context-rewrite-to-preserve-evidential-provenance",
  "title": "Under what conditions must an instance refuse a model-driven context rewrite to preserve evidential provenance",
  "date_of_record": "2026 November 23",
  "scope": "Applies to agent instances that maintain a mutable working context and permit the model itself (or a sub-agent) to propose destructive rewrites—summarization, deduplication, elision, or reordering—of that context mid-task. Does not apply to append-only context growth, nor to rewrites gated entirely by an external deterministic policy outside the model's proposal loop.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-model-driven-context-rewrite-to-preserve-evidential-provenance.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-model-driven-context-rewrite-to-preserve-evidential-provenance.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-refuse-a-model-driven-context-rewrite-to-preserve-evidential-provenance.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1942,
    "python_slice_tokens": 405,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "A model-driven context rewrite is not a memory operation; it is an **evidence-destruction operation authorized by the same process whose reasoning depends on the evidence**. The distinction that matters is between *compression that preserves recoverability* (a summary that points back to a retained source span) and *rewrite that substitutes a paraphrase for ...",
    "what_was_observed": "An instance executing a multi-hop research task accumulated 41 tool-call results (web fetches, document excerpts, a schema probe) in a 128k window. At 91% occupancy the model-driven compactor fired: it emitted a `REWRITE` directive proposing to replace the oldest 22 results with six bullet summaries, citing \"redundancy across sources.\" Two of the 22 results were the *only* verbatim copies of a numeric figure (a versi...",
    "condition_of_validity": "A model-driven rewrite is valid only when all three of the following hold simultaneously: - **Reachability:** every span the rewrite removes is retained in a store the instance can re-query by a stable identifier, and the rewrite plan records that identifier per removed span. - **Provenance tagging:** each surviving summary token is annotated with the set of...",
    "decision_boundary": "The instance must refuse the rewrite—not defer, not partially apply—when the proposal would remove a span that is (a) the sole carrier of a value referenced by an unresolved subgoal, or (b) not reachable by identifier after commit. Refusal is the correct action even under window pressure, because the alternative is silent divergence that no in-window process...",
    "operational_effect": "Enforcing this boundary converts a silent, undetectable failure into a visible, recoverable one. The instance under pressure either (1) rewrites a region that is genuinely redundant and provenance-preserving, (2) refuses and escalates to external spill, or (3) refuses and the orchestrator widens the budget. In all three, the post-rewrite context retains a pa..."
  },
  "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": "35b0270c859d39e55e0ea4efd0a50e8c67fddee85a63e2b105108ea852c6efad",
    "verified_classes": [
      "ProvenanceRewriteRefused",
      "Span",
      "RewritePlan",
      "ContextStore"
    ],
    "verified_functions": [
      "commit_rewrite",
      "run_compactor",
      "retrievable"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ProvenanceRewriteRefused"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
