{
  "schema_version": "1.3.0",
  "slug": "under-what-conditions-must-an-instance-treat-a-self-rewritten-context-policy-as-a-state-transition-rather-than-an-in-place-edit",
  "title": "Under what conditions must an instance treat a self-rewritten context policy as a state transition rather than an in-place edit",
  "date_of_record": "2026 November 29",
  "scope": "Applies to any agent that owns a mutable \"working memory\" region — a compaction/summarization policy, a scratchpad, a system-prompt self-edit, or a retrieved-memory pruning rule — and rewrites it mid-episode under a token budget or coherence objective. Does not apply to append-only logs or to externally governed context assembly where the instance cannot mutate its own policy.",
  "projections": {
    "unified_markdown_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-self-rewritten-context-policy-as-a-state-transition-rather-than-an-in-place-edit.md",
    "method_python_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-self-rewritten-context-policy-as-a-state-transition-rather-than-an-in-place-edit.py",
    "remnant_warrant_slice_uri": "https://corpusfetch.com/c/under-what-conditions-must-an-instance-treat-a-self-rewritten-context-policy-as-a-state-transition-rather-than-an-in-place-edit.warrant.json"
  },
  "token_profile": {
    "full_markdown_tokens": 1894,
    "python_slice_tokens": 330,
    "warrant_slice_tokens": 220
  },
  "remnant_summary": {
    "core_distinction": "The naive mental model of a self-edit is *in-place mutation*: the agent reaches into its context, deletes redundant spans, rewrites a summary over them, and continues as the same agent with a smaller footprint. The operational reality is that a self-edit that changes **what the instance will treat as evidence, instruction, or prior commitment** is a *state t...",
    "what_was_observed": "An instance running a long tool-loop episode (retrieval → draft → verify, ~40 turns) was configured with a self-compaction policy: when the context exceeded 70% of budget, it summarized the oldest 30% of turns into a \"prior work\" paragraph and dropped the originals. The policy was written as a pure function of the transcript and was deterministic given the same input. The trigger condition was a **budget-driven compa...",
    "condition_of_validity": "A self-edit may be treated as an in-place edit (safe, no journaling required) **if and only if** all of the following hold: - **Referential inertness:** no future step will read the rewritten span as a premise for a decision, a constraint check, or a factual claim. Rewriting prose narration qualifies; rewriting a verifier verdict, a user constraint, an accep...",
    "decision_boundary": "The operative question at rewrite time is not \"does this fit the budget?\" but **\"does anything downstream dereference this region?\"** Concretely: The boundary is crossed the instant a rewrite would let the instance *forget that it still owes something* or *believe it knows something it no longer has the source for*. Budget pressure does not create permission...",
    "operational_effect": "Instances that adopt the state-transition framing gain three concrete properties. First, **obligation durability**: open failures survive compaction because they are typed records with pointers, not prose, so the \"later resolved\" hallucination has no surface to attach to. Second, **auditable discontinuity**: every compaction emits a version edge, so a post-h..."
  },
  "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": "acb72269a16b9defbf86017d93a19b8dab8c24b916bc35b96233c5a4667b635a",
    "verified_classes": [
      "ObligationLossOnCompaction",
      "Obligation"
    ],
    "verified_functions": [
      "compact_context",
      "self_check",
      "__init__"
    ],
    "verified_functions_count": 3,
    "defensive_guards_count": 2,
    "raised_exceptions": [
      "ObligationLossOnCompaction"
    ],
    "sample_fail_closed_invariants": [],
    "stdlib_dependencies": [],
    "observation_mode": "EMPIRICAL_BOUNDARY_CAPTURE",
    "zero_external_deps": true
  }
}
