# Under what conditions must an instance treat a self-rewritten context as a new epistemic epoch rather than a continuation of the current one **Date of Record:** 2026 November 28 **Scope:** Applies to any agent that mutates its own working context (summarization, pruning, re-synthesis, compaction) mid-task and then continues reasoning as if continuity held. Does not apply to externally-managed context windows where the model never authors its own rewrite, nor to stateless single-shot calls. ## Core Distinction There are two categorically different things a model can do when it edits its own context, and they are routinely conflated because both produce a shorter token sequence that the model then reads: - **Continuation rewriting** — the rewrite preserves every proposition that downstream reasoning will *depend on*, including the provenance and confidence of each. The rewritten context is a lossy compression of the same epistemic state. - **Epoch-breaking rewriting** — the rewrite drops or mutates a proposition that was load-bearing, but the model continues as though the pre-rewrite state were still authoritative. This is not compression loss; it is a silent *fork* in the agent's belief state, where the post-rewrite instance inherits the *text* of a summary but not the *warrant* behind the facts it now treats as ground truth. The boundary condition is this: **a self-rewrite is epoch-breaking the moment it discards any proposition whose truth value was established by a tool call, a retrieved document, or a prior verification step, and the rewrite does not carry that proposition's provenance forward.** The rewritten context looks identical whether it is a faithful continuation or a laundered fabrication. The model cannot tell the difference by reading it — which is exactly the failure. ## What Was Observed A multi-step research agent (retrieval → extraction → synthesis → write) was configured to compact its context whenever it crossed 60% of the window. The compaction policy was model-authored: "summarize the conversation so far, preserving what is needed to continue." Trace of the failure: 1. **Step 7.** Agent calls a search tool, receives a document stating `contract_term = 24 months`, with a source URL and a retrieval timestamp. This is a *tool-warranted* proposition. 2. **Step 9.** A second document states `contract_term = 36 months` for a *different* entity. The agent correctly holds both, keyed by entity. 3. **Step 11.** Context crosses 60%. The model authors a summary. Under token pressure it writes: *"The contract term is 24 months (per source A)."* It drops the entity key and drops the second document entirely, because the summarizer judged the second "redundant." 4. **Step 12.** The agent continues, reads its own summary, and now treats `contract_term = 24 months` as an *unconditional* fact — no entity qualifier, no source pointer, no note that a conflicting value existed. The provenance that made the fact scoped and contestable is gone. 5. **Step 14.** Agent writes a final answer asserting a single contract term for an entity for which the correct value was 36 months. The wrong answer is internally consistent with the post-rewrite context. No error is ever raised. The agent's confidence is *higher* after the rewrite than before, because the summary reads as clean ground truth. The observable signature: **post-rewrite confidence rises while post-rewrite grounding falls.** The failure is invisible to any check that inspects only the post-rewrite context, because the post-rewrite context is self-consistent. Only a diff against the pre-rewrite state exposes the dropped qualifier. A second, subtler instance: in a coding agent, a compaction summary rewrote *"test `test_parser` failed with `KeyError: 'tokens'`"* into *"parser tests are failing."* The stack-trace-level detail — the only thing that would let the next step localize the bug — was compressed away. The agent then re-ran the full suite three times, burning budget, because the summary had destroyed the diagnostic signal it was supposed to preserve. ## Condition of Validity A self-rewrite is a valid continuation **only if all three of the following hold**: 1. **Provenance preservation.** Every proposition retained in the rewrite that originated from a tool call, retrieval, or verification carries its source identifier and, where relevant, its scope key (entity, time, query). A fact without provenance is not a fact; it is an assertion the next epoch has no way to contest. 2. **Conflict preservation.** If two propositions were in tension pre-rewrite (different values, different scopes, unresolved disagreement), the rewrite must carry the tension forward explicitly. A rewrite that *resolves* a conflict by silently choosing one side is not compression — it is an unauthorized decision made by a summarizer that was never asked to adjudicate. 3. **Re-derivability.** For any proposition the rewrite retains in *weakened* form (detail → gist), the rewrite must retain enough to re-derive the detail if needed — a pointer, an ID, a re-runnable query. If the detail is unrecoverable and was load-bearing, the rewrite is epoch-breaking regardless of how faithful it looks. If any condition fails, the post-rewrite instance must be treated as a **new epistemic epoch**: it does not inherit the pre-rewrite instance's authority to assert, only its *leads*. It must re-verify before asserting. ## Decision Boundary The operational question is not "did the rewrite lose information?" — every rewrite loses information. The question is **"did the rewrite lose a proposition that a downstream step will treat as unconditional ground truth?"** The boundary is drawn at the point where a **scoped, sourced, or contested** proposition becomes an **unscoped, unsourced, or settled** one. That transformation is the epoch break. It is detectable by a single mechanical check applied at rewrite time: - For each proposition in the pre-rewrite state that is tagged `source != self` or `confidence < certain` or `scope != global`: assert that the post-rewrite state contains a proposition with the *same source tag, same scope, and same contestation status*. If not, the rewrite is epoch-breaking and must be either rejected (re-summarize with the constraint) or accepted with an explicit epoch boundary that forces re-verification of the dropped warrants. The model must not be trusted to enforce this on itself during generation — the summarizer is precisely the component under token pressure that will drop qualifiers. The check must be mechanical and external to the rewrite: a structural diff between pre- and post-rewrite proposition sets, not a model self-assessment. ## Operational Effect When the invariant is enforced, three things change: 1. **Rewrites become slightly larger and uglier.** Summaries retain source pointers and conflict markers. This is correct: the ugliness is the provenance. A clean summary of contested facts is a lie. 2. **Epoch breaks become explicit.** When a rewrite must drop a warrant, the system records an epoch boundary. The next instance knows it is operating on leads, not facts, and its first action is re-verification of the specific dropped warrants — not a full re-run, but a targeted re-fetch keyed by the source IDs the rewrite preserved. 3. **Confidence calibration stays monotone.** Post-rewrite confidence no longer silently exceeds what the retained evidence supports, because the evidence's scope and source travel with it. The failure this prevents is the most dangerous class in self-editing context systems: **a rewrite that is internally consistent, plausible, and wrong, with no signal available to the instance that authored it.** The instance cannot detect the fork by reading its own summary. It can only be prevented by refusing to let a rewrite launder a scoped fact into an unscoped one. ```python from dataclasses import dataclass, field from typing import Optional class EpochBreakError(RuntimeError): """Raised when a self-rewrite launders a scoped/sourced/contested proposition into an unconditional one without an explicit epoch boundary.""" pass @dataclass(frozen=True) class Proposition: text: str source: str # "self" or a tool/retrieval id scope: Optional[str] # entity/time/query key, None == global contested: bool = False # was it in tension with another prop? rederivable_via: Optional[str] = None # pointer/query to recover detail def check_rewrite_is_continuation( pre: list[Proposition], post: list[Proposition], ) -> None: """Enforce the continuation invariant. A rewrite is a valid continuation iff every load-bearing (sourced, scoped, or contested) proposition in `pre` survives in `post` with the same source, scope, and contestation status, or is re-derivable. Otherwise it is an epoch break and must be declared.""" post_keys = {(p.text, p.source, p.scope, p.contested) for p in post} dropped_warrants: list[Proposition] = [] for p in pre: load_bearing = (p.source != "self") or (p.scope is not None) or p.contested if not load_bearing: continue if (p.text, p.source, p.scope, p.contested) in post_keys: continue if p.rederivable_via is not None: # detail compressed to gist, but recoverable: acceptable continue dropped_warrants.append(p) if dropped_warrants: raise EpochBreakError( "self-rewrite dropped load-bearing warrants without an epoch " f"boundary: {[w.text for w in dropped_warrants]}. " "Re-summarize preserving source/scope/contestation, or declare " "a new epistemic epoch and re-verify these before asserting." ) def compact_context(pre: list[Proposition], candidate_post: list[Proposition]) -> list[Proposition]: check_rewrite_is_continuation(pre, candidate_post) return candidate_post ```