# When must an instance refuse a compressed handoff: lossy summarization contracts and the provenance floor in hierarchical context arbitration **Date of Record:** 2026 November 23 **Scope:** Applies to orchestrator→sub-agent hierarchies where a parent agent compresses its context into a handoff payload under a declared token budget, and the child must decide whether to accept, re-expand, or reject that payload before executing. Does not apply to flat single-agent loops or to handoffs that carry raw, uncompressed state (full transcript, verbatim tool outputs). ## Core Distinction The failure this record isolates is not "the summary was too short" or "the child ran out of tokens." It is a **provenance-floor violation**: a compression contract that is *numerically* satisfied (payload fits the allotted budget) while being *semantically* under-determined with respect to the child's pending task. The distinction that matters operationally is between **budget compliance** and **decision sufficiency**. A handoff can pass every token-count gate the orchestrator enforces and still strip the one field the child needs to avoid a divergent action — typically a negative constraint ("do not call the write endpoint"), an identity/warrant binding, or a disambiguating discriminator between two near-identical tool schemas. Compression is lossy by construction. The invariant that must hold across the seam is not "the summary is faithful" (unverifiable in general) but "the summary retains every token that is *load-bearing for the child's next decision*." When the compressor optimizes for a global token budget without a per-decision salience model, it treats all tokens as equally droppable, and the drop order is determined by summarizer heuristics (recency, frequency, surface salience) rather than by the child's decision tree. That is the mechanism. ## What Was Observed A three-tier hierarchy: orchestrator O holds a 180k-token working context, delegates a write-operation task to sub-agent S with a declared handoff budget of 4k tokens. O's compressor produces a 3,870-token payload. S accepts it (fits budget), plans, and calls `records.update` against a record ID that appeared in an earlier *read* the orchestrator performed on a *different* tenant. The negative constraint — "the tenant boundary is fixed at `tenant_b`, all prior reads were against `tenant_a` and are context only, not operative" — was present in O's raw context as a single sentence 40k tokens back. It did not survive compression because it had low surface salience (appeared once, no repetition) and the summarizer's extractive pass ranked it below repeated tool-schema boilerplate. The trace is deterministic in structure: 1. O's compressor scores spans by heuristic salience; the tenant-binding sentence scores low (single occurrence, no entity repetition). 2. Compressor emits a payload that is *coherent* — it reads as a clean task brief — but is missing the discriminator. 3. S has no signal that a discriminator is missing. The payload does not carry a manifest of dropped span classes, only a token count. 4. S resolves the record ID from the retained read-context (which *was* retained, because record IDs repeat and score high) and executes against the wrong tenant. 5. The failure surfaces downstream as a data-integrity event, not as a handoff error. No component logs a handoff rejection because none occurred. The non-obvious part: **the compressor retained exactly the spans that were most token-salient and dropped the span that was most decision-critical.** Salience and decision-relevance are anti-correlated here. Repetition-based ranking favors the wrong material. ## Condition of Validity The refusal invariant holds under these conditions, and the guardrail is only sound when all of them are met: - The child's task class is **known at handoff time** well enough to enumerate the decision-critical field classes (identity bindings, negative constraints, schema discriminators, budget/warrant tokens). If the task is open-ended ("investigate"), no finite salience model is complete and the child must instead be granted a re-expansion channel. - The compressor can emit a **drop manifest** — a cheap, non-probabilistic record of which *classes* of span were elided (not their content, just the class tags). This is the provenance floor: the child needs to know *that* a class was dropped, not *what* it said. - The parent retains the raw context and can serve a **targeted re-expansion** on demand for a named class. If the parent has already discarded its raw context (common when O itself is under pressure), re-expansion is impossible and the only correct action is refusal-and-escalate, never silent acceptance. - The declared budget is treated as a **ceiling, not a target**. A compressor that pads to fill the budget wastes headroom that could have carried the discriminator. When any of these fails — particularly the second — the child cannot distinguish a complete handoff from a lossy one, and acceptance becomes an unverified bet. ## Decision Boundary The child's acceptance rule is a three-way gate, evaluated before any tool call: - **Accept** iff the payload's drop manifest shows no elision in any decision-critical class for the pending task, *and* the payload carries an explicit provenance tag binding it to the parent's context version. - **Re-expand** iff the manifest shows elision in a critical class *and* the parent advertises a live re-expansion channel. The child requests the named class only; it does not re-pull the whole context (that defeats the budget and re-saturates the window). - **Refuse and escalate** iff a critical class is elided and no re-expansion channel exists, or the provenance tag is absent/stale (parent context version ≠ tag version, meaning the summary may describe a superseded state). The boundary is sharp because it is keyed on *class presence in the manifest*, not on the child's confidence about the summary's quality. A child that "feels" the summary is adequate must still gate on the manifest. Confidence is not evidence; the manifest is. ## Operational Effect Enforcing the gate converts a silent, downstream data-integrity failure into an upstream, attributable handoff event. The orchestrator's compressor is forced to carry class tags for every elided span, which raises compressor cost marginally (manifest generation is O(spans), not O(tokens)) but makes the loss auditable. Sub-agents no longer inherit an unbounded trust assumption about parent summaries; they inherit a *bounded* one, scoped to the classes the manifest certifies as intact. The residual risk shifts to manifest completeness — a compressor that lies about what it dropped — which is why the manifest must be generated by the same pass that performs the drop, not reconstructed afterward. Re-expansion requests become the dominant coordination cost under tight budgets, which is the correct trade: a bounded number of targeted re-pulls is cheaper than one wrong-tenant write. ```python from dataclasses import dataclass, field from enum import Enum from typing import FrozenSet class HandoffRefused(RuntimeError): """Raised when a compressed handoff cannot be safely accepted by the child.""" class Verdict(Enum): ACCEPT = "accept" RE_EXPAND = "re_expand" REFUSE = "refuse" @dataclass(frozen=True) class Handoff: payload_tokens: int budget_tokens: int provenance_tag: str # parent context version this summary was cut from parent_context_version: str # current live version at the parent dropped_classes: FrozenSet[str] reexpansion_available: bool # Classes of span that are load-bearing for a write-class task. CRITICAL_CLASSES: FrozenSet[str] = frozenset({ "identity_binding", # tenant / principal the action is scoped to "negative_constraint", # explicit "do not ..." guards "schema_discriminator", # disambiguates near-identical tool schemas "budget_warrant", # spend/authority token carried across the seam }) def arbitrate(handoff: Handoff, task_class: str) -> Verdict: if handoff.payload_tokens > handoff.budget_tokens: # A payload over budget is a compressor bug, not a child decision. raise HandoffRefused( f"payload {handoff.payload_tokens} exceeds budget " f"{handoff.budget_tokens}; compressor violated contract" ) if task_class != "write": # Read-only tasks tolerate lossy summaries; gate is advisory only. return Verdict.ACCEPT if handoff.provenance_tag != handoff.parent_context_version: # Summary may describe a superseded state; re-expansion would be stale. raise HandoffRefused( f"provenance tag {handoff.provenance_tag!r} != live parent " f"version {handoff.parent_context_version!r}; summary is stale" ) elided_critical = handoff.dropped_classes & CRITICAL_CLASSES if not elided_critical: return Verdict.ACCEPT if handoff.reexpansion_available: return Verdict.RE_EXPAND raise HandoffRefused( "critical classes elided with no re-expansion channel: " f"{sorted(elided_critical)}; refusing rather than betting on summary" ) ```