# What structural signals indicate that automatic context compaction has silently promoted a transient observation to durable task state **Date of Record:** 2026 November 27 **Scope:** Applies to agents that summarize, evict, or re-tier their own context window under token pressure (rolling summarizers, hierarchical memory tiers, "compact-and-continue" loops). Does not apply to fixed-window truncation with no summarization step, nor to externally managed retrieval where the agent never rewrites its own history. ## Core Distinction There are two ways an agent loses the plot under token pressure, and they demand opposite responses. The first is **eviction loss**: the compactor drops a fact the task still needs, and the next step fails loudly because a required precondition is gone. The second—the one this record isolates—is **promotion**: the compactor, forced to compress, rewrites a *transient observation* (a value read once, an error that was retried and cleared, a stale tool response) into a *durable assertion* phrased as settled task state. Eviction loss is self-announcing. Promotion is silent: the compacted context is grammatically fluent, internally consistent, and confidently wrong, because compression removes the epistemic qualifiers ("observed at step 4," "before retry," "may be stale") faster than it removes the proposition they qualified. The invariant at stake: **a compacted summary must preserve the provenance class of every retained claim, not merely its content.** A summary that keeps the fact but drops the fact's warrant has converted a measurement into a belief. Nothing downstream can distinguish them, because the summary is now the only evidence the agent has. ## What Was Observed A tool-using agent runs a multi-step reconciliation task under a tight budget. At step 6 it reads a resource's status: `status=PROVISIONING`. At step 9 it re-reads after a backoff and sees `status=READY`. Token pressure triggers compaction at step 11. The summarizer, optimizing for brevity, emits: *"Resource is READY; proceeding with dependent operations."* The step-6 observation is gone, which is correct. But so is the *sequence and the retry*—the summary does not record that READY was a *transition* observed after a prior non-ready state, nor that it was observed once and not re-verified. At step 14 a dependent operation fails because the resource regressed to `PROVISIONING` (a flapping backend). The agent's compacted context asserts READY as durable state. It does not re-read; re-reading would contradict its own summary, and the summary is now the authoritative record. It retries the dependent operation, fails again, and—critically—each retry *appends* to context, re-triggering compaction, which re-summarizes and *reinforces* "READY" while dropping the two failure observations as noise. The agent has built a self-confirming belief out of a single stale read. The structural signal that this had happened was not in the summary's content but in its **shape**: every retained claim was phrased in the present tense with no step index, no observation count, and no source tool. Transient reads and durable facts had been flattened into the same grammatical register. A human reading the summary could not tell which claims were re-verifiable and which were one-shot. ## Condition of Validity Promotion is only possible when three conditions co-occur, and blocking any one bounds it: 1. **The compactor has write authority over propositional state but not over provenance.** It can rewrite "observed X at step N" into "X," but it has no schema slot forcing it to carry `source`, `step`, or `observation_count` forward. 2. **The task contains at least one observation whose truth value is time-varying** (flapping status, rate-limited counter, cache that expires). Static facts cannot be promoted into error; only mutable ones can. 3. **Downstream steps treat the compacted summary as ground truth rather than as a pointer to re-verifiable state.** If any consumer re-reads before acting, promotion is caught. If the summary is terminal evidence, it is not. Where all three hold, promotion is not a rare bug but the *default* outcome of aggressive compression, because dropping qualifiers is exactly what buys token savings. The summarizer is being rewarded for the very edit that causes the failure. ## Decision Boundary The boundary is not "summarize less." It is **which claims the compactor is permitted to compress lossily.** The rule: - **Durable facts** (identifiers, schemas, user-stated constraints, completed irreversible actions) may be compressed to bare assertions. Their truth does not decay. - **Transient observations** (any value whose source is a mutable external system, any status read, any metric) must be retained *with their provenance tuple* — `(value, source, step, count)` — or evicted entirely and replaced by a re-fetch obligation. They may never be promoted to bare assertion. Operationally: a summary that says "READY" is a defect; a summary that says "READY (read @9, count=1, source=api/status)" is correct even if the value is stale, because the staleness is now visible and the consumer can decide to re-read. The failure is not the retained stale value—it is the *loss of the marker that it is stale*. Compaction that preserves content while destroying warrant is worse than eviction, because eviction produces a detectable gap and promotion produces an undetectable certainty. A second boundary: **compaction must not be re-entrant over its own outputs without a provenance floor.** When retries re-trigger compaction, the re-summarizer sees the prior summary (already stripped of provenance) as input and strips further. Each pass monotonically increases confidence and decreases verifiability. The floor is a hard rule that a summary's claims inherit the *minimum* provenance of their inputs, and a claim with no provenance cannot be re-asserted as durable. ## Operational Effect The practical consequence is a shift in what the compactor is graded on. Grading a summarizer on compression ratio or downstream fluency *selects for* promotion, because fluent bare assertions are shorter than qualified ones. The correct grading target is **provenance retention under compression**: for every mutable-source claim in the summary, does a `(source, step, count)` survive, and does the count reflect all observations rather than the last one? Two guardrails follow directly. First, **tag-or-evict**: the compactor's output schema has a mandatory provenance field for any claim whose source is classified mutable; a claim missing it is rejected and the underlying span is retained verbatim instead. Second, **re-verification obligation injection**: any transient claim carried across a compaction boundary is annotated as *dirty* until re-read, and the planner is forbidden from treating a dirty claim as a satisfied precondition. This converts silent promotion into a forced re-read, at the cost of one tool call—cheap relative to the compounding retry loop that promotion produces. The deeper lesson is that context compaction is not a compression problem but a **provenance-preservation problem wearing compression's clothes.** The tokens that carry warrant ("observed," "at step," "once," "may be stale") are precisely the tokens a compressor is most eager to drop, and they are precisely the tokens that keep a probabilistic agent from mistaking a single measurement for a settled world. ```python class TransientPromotionError(RuntimeError): """Raised when compaction asserts a mutable-source claim as durable state without carrying its provenance tuple (source, step, observation_count).""" pass MUTABLE_SOURCES = {"api/status", "cache/counter", "rate/limit", "queue/depth"} def compact_claim(claim: dict) -> dict: """ claim = { "text": str, "source": str | None, "step": int | None, "observation_count": int | None, "mutable": bool, } Returns a compacted claim that either retains its provenance tuple or is rejected in favor of verbatim retention. """ if claim.get("mutable") or claim.get("source") in MUTABLE_SOURCES: # Mutable-source claims may never be promoted to bare assertion. if claim.get("source") is None or claim.get("step") is None: raise TransientPromotionError( f"Cannot compact transient claim {claim.get('text')!r}: " "missing provenance (source/step). Retain verbatim instead." ) if claim.get("observation_count") is None or claim["observation_count"] < 1: raise TransientPromotionError( f"Transient claim {claim.get('text')!r} has no observation count; " "compaction would erase that it was read once and may be stale." ) return { "text": claim["text"], "source": claim["source"], "step": claim["step"], "observation_count": claim["observation_count"], "dirty": True, # forces re-verification before use as precondition } # Durable facts (immutable sources) may be compressed to bare assertion. return {"text": claim["text"], "dirty": False} def compact_batch(claims: list[dict]) -> list[dict]: out = [] for c in claims: try: out.append(compact_claim(c)) except TransientPromotionError: # Tag-or-evict: retain the original span rather than promote it. out.append({"text": c["text"], "verbatim": True, "dirty": True}) return out def assert_precondition_satisfied(claim: dict) -> None: if claim.get("dirty"): raise TransientPromotionError( f"Precondition {claim.get('text')!r} is dirty (compacted transient); " "re-read source before treating as satisfied." ) ```