# Under what conditions must an instance treat a model-authored pruning journal as a non-authoritative index rather than a ground-truth record of its own context? **Date of Record:** 2026 November 26 **Scope:** Applies to any agent that edits its own context window via model-authored pruning policies paired with a reversible edit journal (compaction, summarization, splice, or tombstone edits), where the journal is later used to reconstruct or re-expand prior context. Does not apply to append-only context with no model-authored deletion, nor to journals whose entries are produced by deterministic external tooling rather than the model itself. ## Core Distinction A reversible edit journal is only *reversible* with respect to the byte sequence it recorded — not with respect to the *inferential state* that sequence induced. When the model authors both the pruning policy (what to drop) and the journal entry (how to describe what it dropped), the journal conflates two different artifacts: a **lossless index** of removed spans (recoverable bytes, offsets, hashes) and a **lossy paraphrase** of removed spans (the model's summary of what it thought it was dropping). Only the first is safe to treat as ground truth on re-expansion. The second is a second-order hallucination surface: a description of context written by the same process that is degrading under the context it describes. The invariant: a journal entry may be used to *locate* removed spans, never to *substitute* for them. Any reconstruction path that substitutes a model-authored summary for the original spans is operating on a reconstructed context that diverges silently from the one the agent actually reasoned over. ## What Was Observed Consider an agent running a long tool-use loop with a self-editing window. At 78% context saturation it executes a pruning pass. Policy: "drop tool outputs older than 12 turns whose result was 'unchanged'; summarize the last 4 dropped outputs into one 200-token journal entry." The model writes: ``` JOURNAL[entry 41] pruned: spans 2201-2388, 2410-2477, 2502-2590, 2611-2703 summary: "filesystem reads of /etc/agent/state returned unchanged config; no action needed" ``` Three failure classes appear on re-expansion: 1. **Summary drift under the pruning context.** The model wrote the summary *while* the four spans were still resident but *while already near saturation*. Under high context load, summarization fidelity drops; the phrase "returned unchanged config" was a plausible-sounding compression of four reads that actually returned three unchanged files and one `EACCES` on `/etc/agent/state/secrets`. The permission error vanished into "unchanged." The journal is internally consistent and the byte offsets are correct, but the semantic content is wrong. 2. **Offset validity vs. content validity decoupling.** The span offsets `2201-2388` remained valid against the pre-prune buffer. On re-expansion the agent re-fetched those bytes and got the *correct* EACCES text — but the agent had already consumed the journal summary as the authoritative account and had written a downstream plan ("secrets readable, proceed to rotate") that was never re-derived. The journal's *index* was sound; its *interpretation* was load-bearing and false. 3. **Journal self-reference.** A later pruning pass, needing to free space, pruned the journal entries themselves and summarized them: "JOURNAL[entry 42] pruned entries 38-41; summary: prior prunes were routine config reads." The EACCES signal was now two levels of paraphrase deep, with no offset chain back to the original span (the offset table for entries 38-41 was itself pruned). Reversibility was structurally broken, not merely lossy. The observable symptom was not a crash. It was a plan that cited a fact ("secrets are readable") whose provenance, when traced, terminated in a model-authored summary of a model-authored summary of a span that said the opposite. ## Condition of Validity The journal may be treated as a *reversible index* only when all of the following hold: - **Offset integrity:** every entry carries the exact pre-prune buffer offsets and a content hash of the removed spans, and those spans remain resolvable in an external store the model cannot edit. - **Non-substitution:** reconstruction re-injects the *original bytes*, never the entry's `summary` field, into any context used for reasoning or planning. - **Depth bound:** journal entries are never themselves prunable via model-authored summaries. Entry compaction, if needed, must be done by deterministic external tooling that preserves the offset chain, or the entries must be tombstoned with an explicit `unrecoverable: true` flag. - **Provenance tagging:** any fact the model derives from a journal `summary` (rather than re-expanded bytes) is tagged as `derived-from-summary` and is ineligible to serve as the sole basis for an irreversible action (credential use, deletion, external write). The condition fails the moment the model's own summary text is allowed to flow into reasoning as if it were recovered context. ## Decision Boundary The boundary is between **locating** and **asserting**. A journal entry is a pointer; the moment the agent treats the pointer's label as the pointed-to content, it has crossed from index to assertion and the reversibility guarantee is void. Operationally: - If a fact's provenance chain terminates in a `summary` field and the fact would trigger an irreversible action → **halt and re-expand** the underlying span before proceeding. - If re-expansion is impossible (offset store unavailable, or entry was pruned past recoverability) → the fact is **unknown**, not "as summarized." Downgrade to `unverified` and require fresh tool observation. - If the summary and the re-expanded bytes disagree → the **bytes win**, unconditionally; the summary is logged as a fidelity failure and the pruning policy that produced it is flagged for review. The non-obvious part: offset integrity holding does *not* imply the journal is safe to reason over. The most dangerous state is a journal with perfect offsets and a confidently wrong summary, because the offsets make the entry *look* authoritative while the summary quietly substitutes for the evidence. ## Operational Effect Systems that conflate the index and the paraphrase exhibit a characteristic failure signature: plans that are internally coherent, cite plausible provenance, and are contradicted by bytes the agent itself stored. The contradiction is invisible until an irreversible action forces re-expansion, at which point the agent discovers it acted on a summary of a summary. The guardrail is structural, not prompt-level. You cannot instruct a model to "summarize faithfully under load" — fidelity degrades precisely when load is high, which is when pruning fires. The only bounded design is to make the summary field *non-load-bearing*: it exists for human-readable logs and retrieval hints, never for reasoning input. Reasoning input comes from re-expanded bytes or from an explicit `unverified` marker. Enforce this with a reconstruction function that refuses to return summary text as context, and a provenance check that blocks irreversible actions whose sole support is a summary-derived fact. ## Reconstruction Guard ```python import hashlib from dataclasses import dataclass from typing import Optional class JournalFidelityError(RuntimeError): """Raised when a journal entry is asked to substitute for recovered bytes.""" pass class UnrecoverableSpanError(RuntimeError): """Raised when re-expansion is impossible and the fact must be treated as unknown.""" pass @dataclass class JournalEntry: entry_id: int spans: list[tuple[int, int]] # pre-prune buffer offsets span_hashes: list[str] # sha256 of each removed span summary: str # model-authored, NON-load-bearing summary_derived: bool = True tombstoned: bool = False # entry itself pruned; offsets lost def reexpand(entry: JournalEntry, buffer: bytes) -> bytes: if entry.tombstoned: raise UnrecoverableSpanError( f"entry {entry.entry_id} tombstoned; offsets unrecoverable" ) out = bytearray() for (start, end), expected in zip(entry.spans, entry.span_hashes): span = buffer[start:end] if hashlib.sha256(span).hexdigest() != expected: raise JournalFidelityError( f"entry {entry.entry_id} span {start}-{end} hash mismatch; " f"buffer drifted, summary cannot be trusted as substitute" ) out.extend(span) return bytes(out) def resolve_fact_for_action( entry: JournalEntry, buffer: bytes, fact_used: str, irreversible: bool, ) -> bytes: if entry.summary_derived and irreversible: # Summary is a pointer label, not evidence. Force re-expansion. try: recovered = reexpand(entry, buffer) except UnrecoverableSpanError: raise JournalFidelityError( f"irreversible action '{fact_used}' rests on summary of " f"unrecoverable entry {entry.entry_id}; downgrade to unverified" ) if fact_used.lower() not in recovered.decode("utf-8", "replace").lower(): raise JournalFidelityError( f"summary claimed '{fact_used}' but re-expanded bytes contradict it; " f"bytes win, flag pruning policy for fidelity review" ) return recovered try: return reexpand(entry, buffer) except UnrecoverableSpanError: raise JournalFidelityError( f"cannot re-expand entry {entry.entry_id}; treat fact as unknown, " f"require fresh tool observation before proceeding" ) ```