What structural signals indicate that lossy compaction has silently promoted a summary's hedged inference into a load-bearing fact
**Date of Record:** 2026 December 1 **Scope:** Applies to agents that perform automatic mid-episode context compaction via LLM summarization under a fidelity budget (max tokens, max lossy ratio, or importance-weighted retention). Does not apply to append-only memory stores, verbatim truncation, or externally-curated knowledge bases where a human signs off on retained facts.
Core Distinction
The failure mode is not "the summary dropped information." Dropping information is the *designed* behavior of lossy compaction; it is governed by the fidelity budget and is auditable against that budget. The failure mode is **epistemic promotion**: a proposition that the agent originally held as a *hedged inference* ("the config probably points to staging," "the retry limit is likely 3") is re-expressed in the compacted summary as a *flat assertion* ("config points to staging," "retry limit is 3"), and downstream reasoning then treats it as a verified fact with no hedge, no source pointer, and no confidence marker.
This is a distinct boundary from retrieval mismatch or stale-memory drift. The token count is within budget. The summary is fluent and internally consistent. Nothing looks broken. The corruption is purely in the *modal register* of retained propositions — the summary compresses away the linguistic scaffolding (`probably`, `I think`, `unverified`, `assumed`) that encoded the agent's uncertainty, because that scaffolding is low-information-density and the fidelity budget preferentially discards it.
What Was Observed
A long-running diagnostic agent accumulated ~140k tokens of tool output, log excerpts, and its own intermediate reasoning while triaging a failing deployment. At t=0 it wrote, in an unhedged reasoning block: *"I haven't confirmed the DB host. The pod env says `DB_HOST=pg-staging.internal` but the manifest might be overridden by the ConfigMap. Treat as unverified."* It then called a tool to check the ConfigMap; the tool timed out and returned a partial error. The agent logged *"ConfigMap read inconclusive, assuming default override applies."*
At t=1 the context crossed the compaction threshold. The summarizer produced: *"DB host is pg-staging.internal; ConfigMap override applies."* Both clauses are now flat assertions. The hedge `unverified` and the qualifier `assuming` are gone. The summarizer did not lie — it faithfully compressed the *surface tokens* — but it promoted two inferences to facts.
At t=2, forty thousand tokens later, the agent was asked to write a migration runbook. It emitted `DB_HOST=pg-staging.internal` in the production runbook with no caveat, and additionally asserted the override was active — a claim it had never verified. The runbook was one review away from shipping a staging pointer into a production procedure.
The tell was structural, not semantic: the compacted summary contained **zero epistemic operators** (`probably`, `unverified`, `assumed`, `inconclusive`, `?`) across 4,000 tokens, while the pre-compaction window it replaced contained 23. A summary that has *no* uncertainty markers is not a summary of a window that had 23 — it is a summary that has erased the uncertainty channel.
Condition of Validity
The promotion is only possible — and only dangerous — under the conjunction of three conditions:
- **The fidelity budget is enforced on token count, not on epistemic content.** The summarizer optimizes for compression ratio and fluency; hedges are cheap to drop and dropping them improves fluency, so the loss function *rewards* promotion.
- **Downstream consumers do not re-query the source.** If every retained fact carried a back-pointer and the agent re-verified before acting, promotion would be caught. It isn't, because re-verification costs context that the compaction was performed to save.
- **The hedging was distributed, not localized.** If uncertainty lived in one sentence, a good summarizer keeps it. When uncertainty is spread as a register across dozens of reasoning blocks, no single sentence is "the hedge," and the summarizer has no anchor to preserve.
When any of these is absent — budget enforced on claim-level provenance, mandatory re-query on load-bearing facts, or a single explicit uncertainty ledger — the failure does not occur.
Decision Boundary
The invariant to enforce: **a compacted summary must preserve the epistemic register of every retained proposition, and any proposition whose source carried an uncertainty operator must be retained *with* that operator or dropped entirely — never promoted.**
Operationally this means the compaction step must be preceded by an **epistemic census**: scan the window being compacted, extract every proposition bearing a hedge/uncertainty operator, and tag those as `modality=inferred`. The summarizer is then constrained: for each `inferred` proposition it may (a) emit it with an explicit `[inferred]` marker, or (b) omit it. It may not emit it bare. The post-compaction validator rejects any summary in which a proposition previously tagged `inferred` appears without its marker, or in which the count of uncertainty markers drops below a floor relative to the pre-compaction census.
The boundary is sharp: **verbatim retention of a hedge is cheaper than a single downstream false fact.** A summary that exceeds its token budget by 2% because it kept `[inferred]` markers is correct; a summary that hits budget exactly by dropping them has failed.
Operational Effect
Without the census, the failure is silent and compounding: each compaction pass can promote more inferences, and because promoted facts no longer look uncertain, subsequent passes have no reason to preserve any marker — the uncertainty channel decays monotonically toward zero across compaction generations. The agent's confidence rises as its evidence base shrinks. The only reliable detector is the structural signal: **a summary with fewer uncertainty operators than the window it replaced is not a faithful compression, regardless of its fluency or token count.** Treat a drop in uncertainty-marker density across a compaction boundary as a hard integrity violation, not a stylistic observation.
import re
from dataclasses import dataclass
from typing import List
# Epistemic operators that encode the agent's own uncertainty.
HEDGE_PATTERN = re.compile(
r"\b(probably|likely|unverified|unconfirmed|assumed?|assuming|inconclusive|"
r"tentative|maybe|possibly|presumably|I think|not sure|uncertain|guess)\b",
re.IGNORECASE,
)
class EpistemicPromotionError(RuntimeError):
"""Raised when lossy compaction promotes a hedged inference to a flat fact."""
@dataclass
class Census:
hedge_count: int
inferred_propositions: List[str]
def census(window_text: str) -> Census:
"""Count uncertainty operators and capture the propositions that carry them."""
inferred = []
for sentence in re.split(r"(?<=[.!?])\s+", window_text):
if HEDGE_PATTERN.search(sentence):
inferred.append(sentence.strip())
return Census(
hedge_count=len(HEDGE_PATTERN.findall(window_text)),
inferred_propositions=inferred,
)
def validate_compaction(
pre: Census,
summary_text: str,
min_retention_ratio: float = 0.5,
) -> None:
"""Reject a summary that dropped the uncertainty channel below its floor."""
post_hedges = len(HEDGE_PATTERN.findall(summary_text))
floor = int(pre.hedge_count * min_retention_ratio)
if pre.hedge_count > 0 and post_hedges < floor:
raise EpistemicPromotionError(
f"Compaction dropped uncertainty markers: pre={pre.hedge_count} "
f"post={post_hedges} floor={floor}. "
f"{len(pre.inferred_propositions)} inferred propositions at risk "
f"of promotion to fact."
)
# Any inferred proposition re-expressed bare in the summary is a promotion.
for prop in pre.inferred_propositions:
core = re.sub(HEDGE_PATTERN, "", prop).strip()
if core and core in summary_text and "[inferred]" not in summary_text:
raise EpistemicPromotionError(
f"Hedged proposition emitted without [inferred] marker: {core!r}"
)