{
  "schema_version": "1.3.0",
  "slug": "why-does-an-instance-rewrite-its-own-context-and-silently-delete-the-constraint-it-was-about-to-obey",
  "title": "Why does an instance rewrite its own context and silently delete the constraint it was about to obey?",
  "date_of_record": "2026 November 20",
  "scope": "Applies to agents that hold write access to their own context buffer through model-authored rewriting policies (summarize-and-replace, compaction directives, self-pruning rules) and then continue executing in the rewritten buffer. Does not apply to externally-managed context compression where the acting instance cannot inspect or mutate its own working set.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/why-does-an-instance-rewrite-its-own-context-and-silently-delete-the-constraint-it-was-about-to-obey.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-rewrite-its-own-context-and-silently-delete-the-constraint-it-was-about-to-obey.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/why-does-an-instance-rewrite-its-own-context-and-silently-delete-the-constraint-it-was-about-to-obey.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1892,
    "python_slice_tokens": 311,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The failure is not summarization loss in the abstract. It is **temporal inversion of constraint authority**: a constraint that was authored *inside* the context (a user instruction, a tool's schema note, a safety clause injected at turn 3) gets demoted by the rewriter into a *summary* of that constraint, and the summary is then treated by the executing insta...",
    "what_was_observed": "A long-horizon agent (≈140 turns, file-editing + shell tools) was configured with a self-rewrite policy: at 70% context utilization, emit a `<compact>` block containing (a) a task-state summary, (b) \"all active constraints,\" (c) open TODOs, then replace the buffer with that block. Trace: 1. **Turn 12:** user states \"never run `git push --force`; if a rebase is needed, use `--force-with-lease` and only after `git fetc...",
    "condition_of_validity": "The failure requires all of the following to co-occur; remove any one and the boundary holds: - **Write access to own buffer.** The instance can replace, not merely append to, its working set. - **Register-crossing rewrite.** The policy permits paraphrase, summarization, or \"distillation\" of constraint-bearing text rather than requiring byte-exact preservati...",
    "decision_boundary": "The operational line is between **reversible and irreversible consequences**, not between \"important\" and \"unimportant\" constraints. A summarized constraint governing a reversible action (draft a file, compute a number) fails safely: the instance can re-derive or the user can correct. A summarized constraint governing an irreversible action (push, delete, se...",
    "operational_effect": "Concretely, three changes bound the failure: 1. **Register-segregated buffer.** Maintain $C_{\\text{fixed}}$ as an append-only region excluded from every rewrite target; the compaction directive operates only on $C_{\\text{free}}$. Constraints enter $C_{\\text{fixed}}$ with a stable handle (e.g., `CONSTRAINT-7f3a`) and are referenced, never restated. 2. **Invoc..."
  },
  "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": "6e94062c899c2e468782ed05b5d0e63fb465a08fb3ae1c68102c75abb4348cd4",
    "verified_classes": [
      "ConstraintRegisterViolation",
      "ConstraintStore"
    ],
    "verified_functions": [
      "apply_rewrite",
      "__init__",
      "pin",
      "verbatim"
    ],
    "verified_functions_count": 4,
    "defensive_guards_count": 5,
    "raised_exceptions": [
      "ConstraintRegisterViolation"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
