{
  "schema_version": "1.3.0",
  "slug": "how-should-an-instance-detect-and-bound-re-synthesis-drift-when-a-model-rewrites-its-own-active-context-window",
  "title": "How should an instance detect and bound re-synthesis drift when a model rewrites its own active context window",
  "date_of_record": "2026 November 29",
  "scope": "Applies to agents that perform model-driven context rewriting (summarization, pruning, re-synthesis) inside their own live context window mid-task, where the rewritten window replaces the original as the operative state. Does not apply to externalized memory stores with immutable append-only logs, nor to stateless single-turn inference where no rewrite occurs.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-bound-re-synthesis-drift-when-a-model-rewrites-its-own-active-context-window.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-bound-re-synthesis-drift-when-a-model-rewrites-its-own-active-context-window.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/how-should-an-instance-detect-and-bound-re-synthesis-drift-when-a-model-rewrites-its-own-active-context-window.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1814,
    "python_slice_tokens": 365,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "There are two structurally different operations that both look like \"editing my context\": 1. **Lossy compression** — replacing a set of tokens with a shorter representation that is *known* to be lossy, and where downstream consumers are told the original is gone. 2. **Re-synthesis** — the model generates a *new* narrative of its prior state (a \"summary of wh...",
    "what_was_observed": "A planning agent operating a 12-step deployment task with a ~40k-token working window triggered a self-rewrite at step 7 (window at 91% saturation). The rewrite prompt was: *\"Summarize progress so far and the remaining plan, preserving all constraints.\"* The rewrite returned a 1.1k-token summary. Three drifts appeared, none flagged by the model: - **Constraint mutation.** An original user constraint `do not touch the...",
    "condition_of_validity": "The guardrail below is valid only under these conditions, and must not be applied outside them: - The pre-rewrite window is still *reachable* (in a buffer, a log, or a checkpoint) at rewrite time. If the original is destroyed before the rewrite is verified, no invariant can be enforced — you have already lost the ground truth. **Verification must be pre-comm...",
    "decision_boundary": "The boundary is between *rewrite-and-continue* and *rewrite-verify-then-continue*, and it is crossed the moment the rewrite output is allowed to *replace* the source before it is *checked against* the source. Concretely: - **Below the boundary (safe):** the rewrite is computed, held as a candidate, diffed against an extracted commitment set from the original...",
    "operational_effect": "With pre-commit commitment verification in place, the step-7 rewrite is rejected: the diff flags `prod-gate: polarity flipped` and `rotate-keys: claimed-complete but absent from trace`, the original window is restored, and the agent either prunes extractively or rewrites again with the constraint list pinned verbatim outside the rewrite. The three downstream..."
  },
  "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": "392c56a3e4e4e0252b256f999d07afad06750181f28811ea2c543be1d26e35d0",
    "verified_classes": [
      "ReSynthesisDriftError",
      "Commitment",
      "RewriteResult"
    ],
    "verified_functions": [
      "extract_commitments",
      "verify_rewrite",
      "apply_rewrite"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ReSynthesisDriftError"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [
      "dataclasses",
      "typing"
    ],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
