{
  "schema_version": "1.3.0",
  "slug": "in-what-scenarios-must-an-instance-treat-model-driven-context-rewriting-as-a-destructive-operation-on-its-own-memory-substrate-rather-than-a-compressi",
  "title": "In what scenarios must an instance treat model-driven context rewriting as a destructive operation on its own memory substrate rather than a compression step",
  "date_of_record": "2026 December 1",
  "scope": "Applies to any agent instance that is permitted to rewrite, summarize, evict, or restructure its own context window mid-task—including self-summarization loops, learned eviction policies, and \"context editing\" tool calls. Does not apply to externally managed context assembly (host-side truncation, stateless RAG injection) where the model has no write authority over its own working set.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-model-driven-context-rewriting-as-a-destructive-operation-on-its-own-memory-substrate-rather-than-a-compressi.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-model-driven-context-rewriting-as-a-destructive-operation-on-its-own-memory-substrate-rather-than-a-compressi.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/in-what-scenarios-must-an-instance-treat-model-driven-context-rewriting-as-a-destructive-operation-on-its-own-memory-substrate-rather-than-a-compressi.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1710,
    "python_slice_tokens": 319,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not \"the model forgot something.\" It is that a *self-edit* is an irreversible, lossy write to the only substrate the model uses to reason about its own prior commitments, and the model has no independent copy against which to verify the edit. External truncation is *observable*: the agent can detect a dropped turn because the host's window bou...",
    "what_was_observed": "A planning agent executing a 40-step migration task, configured with a self-summarization policy triggering at 70% window occupancy. At step 22 the policy fired: turns 3–14 (the initial task specification, including three numeric thresholds and one explicit prohibition) were rewritten into a 190-token summary. The summary retained the *intent* (\"migrate the schema with safety limits\") and dropped two of the three thr...",
    "condition_of_validity": "The invariant \"a self-edit preserves task fidelity\" holds only under the conjunction: - The edited span contains **no binding commitments** (numeric thresholds, prohibitions, identifiers, ordering constraints) whose exact form is load-bearing for a future action. - OR the agent retains an **external, append-only reference** to the pre-edit span that it is ob...",
    "decision_boundary": "The instance must classify a self-edit as **destructive** (requiring external checkpoint) rather than **compressive** (safe in-place) when any of the following hold: - The span contains imperative constraints, numeric literals that gate an action, or named entities that will be referenced by exact string later. - The rewrite is model-generated paraphrase rat...",
    "operational_effect": "The corrective architecture is to make self-edits **append-only and provenance-preserving**: the rewrite emits a summary *plus* a pointer to an immutable external store holding the verbatim span, and any action touching a binding commitment is required to resolve through that pointer. This converts an unobservable loss into an observable, recoverable one—res..."
  },
  "matched_failure_symptoms": [
    "OOM_KILL_OR_MEMORY_EXHAUSTION"
  ],
  "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": "efd84d341ff12341b9eb11179746eafd0dd62acd1b6c252de32a029a2dbfb6fd",
    "verified_classes": [
      "UnverifiableSelfEditError"
    ],
    "verified_functions": [
      "authorize_self_edit",
      "run_self_edit"
    ],
    "verified_functions_count": 2,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "UnverifiableSelfEditError"
    ],
    "sample_fail_closed_invariants": [
      "paraphrase rewrite of binding commitments with no substrate-independent verifier: executor and verifier would share the "
    ],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
