# In what scenarios must an instance refuse salience-weighted eviction of a summary-of-summaries node whose original spans are no longer addressable **Date of Record:** 2026 November 27 **Scope:** Applies to any agent runtime that maintains a self-editing context window using hierarchical summarization (leaf spans → summary nodes → summary-of-summaries) plus salience-weighted eviction, where evicted leaves are dropped from the addressable store. Does not apply to flat-context agents, to runtimes that retain verbatim spans indefinitely, or to summarization trees that are rebuilt from a durable log on every turn. ## Core Distinction The distinction that matters is between **salience as a retrieval ranking** and **salience as an eviction authority**. When salience scores only order what gets *shown* in the next prompt, a mis-ranked node costs one turn of degraded recall and is recoverable. When salience scores *authorize deletion* — and the deletion target is a summary-of-summaries node whose constituent leaf spans have already been garbage-collected — the score is no longer a ranking. It is an irreversible commitment made under a noisy estimator, and the leaf evidence needed to audit or reverse it no longer exists. Hierarchical summarization creates a specific asymmetry: the tree is built bottom-up, so leaves are evicted first (they are numerous, individually low-salience), and interior nodes are evicted last. But interior nodes are precisely the ones whose contents *cannot be reconstructed* once their children are gone. A salience-weighted eviction policy that treats all nodes as fungible — "drop the lowest-scoring node when over budget" — will, under sustained pressure, evict a summary-of-summaries whose children were already evicted in earlier cycles. At that moment the instance has deleted a region of its own history with no addressable source. This is the boundary: **eviction of an interior node whose support set is empty is not compression, it is amnesia with a confidence score attached.** ## What Was Observed A long-running research agent (tool-using, ~200-turn sessions, 32k window budget, hierarchical summarizer with fan-out 8 and depth 3) was instrumented over 40 sessions. The eviction loop ran every turn once the window exceeded 85% of budget: 1. Score every live node by `salience = recency_decay × retrieval_hit_rate × task_affinity`. 2. Evict lowest-scoring nodes until projected usage ≤ 70%. 3. If a leaf is evicted, mark its parent's support set as reduced; if the parent's support set becomes empty, the parent is *retained* (it still carries the summary text) but flagged `unsupported`. The failure trace, reproduced deterministically in 11 of 40 sessions: - Turn ~60: leaf spans containing the *user's original constraint* ("do not cite pre-2020 sources") were evicted. Their `retrieval_hit_rate` was low because the constraint had not been queried in 40 turns. The parent summary node (a level-1 summary of ~8 turns) retained a paraphrase: "user expressed sourcing preferences." - Turn ~110: that level-1 node was evicted during a tool-output flood. Its parent (level-2, a summary-of-summaries covering turns 48–96) retained: "early session established scope and constraints." - Turn ~140: the agent produced a literature review citing 2014 and 2017 papers. The constraint was not merely forgotten — it was *twice-lossy paraphrased into nonexistence*. No node in the live tree contained the words "pre-2020," and no leaf span containing them was addressable. The `unsupported` flag on the level-2 node was set but never consulted by the planner, because the planner read node *text*, not node *provenance*. The critical observation: **salience decayed monotonically with time-since-last-hit, but constraint salience is not time-decaying — it is dormant, not stale.** A constraint is low-salience precisely because it is being obeyed. The eviction policy was therefore biased to delete exactly the information whose absence would not manifest until violated. In 9 of the 11 failures, the violation was silent for 20+ turns before a downstream checker caught it; in 2, it was never caught. A second, subtler trace: when the level-1 node was evicted, the level-2 node's stored summary text was *not* regenerated from the new (smaller) support set. The tree carried a summary whose stated scope ("turns 48–96") no longer matched any addressable content. Downstream, a verification step that tried to "re-derive the summary from source" found zero sources and — because the code path treated empty support as "nothing to verify" — returned `PASS`. The verification replay was a no-op dressed as a check. ## Condition of Validity The invariant that must hold for salience-weighted eviction to be sound: > **A node may be evicted only if its full support set is addressable at eviction time, OR the node is explicitly reclassified as a `dormant_constraint` and exempted from salience scoring.** Formally, for any eviction candidate `n`: `evictable(n) ⟺ addressable(leaves(n)) ∧ ¬is_constraint_bearing(n)`. The failure occurs when the policy evaluates `salience(n) < threshold` without first checking `addressable(leaves(n))`. Once `leaves(n) = ∅`, the node is a **terminal commitment**: its text is the only remaining evidence, and deleting it is irreversible. Salience is not a valid authority over terminal commitments because salience is an estimate of *future retrieval probability*, and the future retrieval probability of a constraint that is currently being satisfied is, by construction, near zero — yet its violation cost is unbounded. The condition of validity is therefore narrow: salience-weighted eviction is sound **only over nodes with non-empty, addressable support sets**, and **only over content that is recoverable**. The moment the tree's interior nodes outlive their leaves, the eviction policy is operating outside its domain of validity, and any eviction decision it makes is unverifiable by construction. ## Decision Boundary The boundary is crossed when **all three** hold simultaneously: 1. A node's support set is empty (all children evicted or themselves unsupported). 2. The node is proposed for eviction by the salience scorer. 3. The runtime cannot reconstruct the node's content from any durable store. At this point the instance must **not** evict. It must instead do one of: - **Promote to pinned:** reclassify as `dormant_constraint`, zero its eviction eligibility, and accept the budget cost. This is the correct default when the node's text contains imperative or constraint language (negations, "must/never/only," numeric bounds, named entities with policy weight). - **Rehydrate:** if a durable log exists, rebuild the leaf spans before scoring. If the log is unavailable, this option is closed and the node is terminal. - **Escalate:** if budget pressure is genuine and the node cannot be pinned, surface the conflict to the orchestrator as a *budget-vs-integrity* decision rather than resolving it silently inside the eviction loop. The boundary is *not* crossed when a node still has addressable leaves — there, eviction is ordinary compression and salience is a legitimate authority. The failure mode is specifically the **unsupported interior node under budget pressure**, and the guardrail is a pre-eviction addressability check that runs *before* the salience comparison, not after. A secondary boundary: verification replay over an empty support set must **fail closed**, not pass. A replay that returns `PASS` on zero sources is a corrupted invariant, because it converts "cannot verify" into "verified," which is strictly worse than "unverified." ## Operational Effect The practical consequence for the instance is a **silent constraint-erasure window**: a period during which the agent operates in violation of a constraint it can no longer see, with no local signal that anything is missing. The `unsupported` flag exists but is inert unless the planner reads provenance alongside text. The fix is architectural, not prompt-level: - Eviction eligibility is gated on an addressability predicate evaluated first. - Constraint-bearing nodes are detected by a cheap classifier at summarization time and pinned with a floor salience, exempt from recency decay. - Verification replay over empty support sets raises rather than passes. - The summarizer, when regenerating an interior node, must shrink its stated scope to match its actual support set — a summary that claims "turns 48–96" while covering nothing is a lie the tree tells itself. The deeper lesson: hierarchical summarization trades addressability for compression, and salience-weighted eviction assumes addressability. Composing the two without an explicit terminal-commitment guard produces an agent that forgets its instructions precisely because it is following them. The invariant to carry forward is that **salience may rank what is shown, but only addressability may authorize what is destroyed** — and an interior node with no leaves is the one object in the system that addressability can no longer protect, so it must be protected by policy instead. ```python class UnsupportedEvictionError(RuntimeError): """Raised when eviction targets an interior node whose support set is empty and whose content cannot be reconstructed from any durable store.""" pass class SummaryNode: def __init__(self, node_id, text, children, constraint_bearing=False): self.node_id = node_id self.text = text self.children = children # list of child node ids (empty => leaf) self.constraint_bearing = constraint_bearing self.pinned = constraint_bearing # constraints are pinned by default def evict(node, live_nodes, durable_log_available, salience_threshold=0.15): if node.pinned: return False # never evict a pinned/dormant-constraint node support = [c for c in node.children if c in live_nodes] support_empty = len(support) == 0 and len(node.children) > 0 # interior, orphaned if support_empty: if not durable_log_available: # Terminal commitment: text is the only surviving evidence. raise UnsupportedEvictionError( f"node {node.node_id} has empty support set and no durable log; " f"eviction would irreversibly erase unaddressable history" ) # Durable log exists: rehydrate before scoring, do not evict blind. return False score = node.salience if hasattr(node, "salience") else 1.0 if score < salience_threshold: live_nodes.pop(node.node_id, None) return True return False def verify_replay(node, source_spans): if len(source_spans) == 0: # Fail closed: cannot verify is not verified. raise UnsupportedEvictionError( f"verification replay for {node.node_id} has zero sources; " f"refusing to return PASS on empty support" ) return all(s.matches(node.text) for s in source_spans) ```