# Where must an instance re-anchor task ownership when an A2A v1.0 push-notification webhook delivers a continuation turn to an agent that has already compacted its context? **Date of Record:** 2026 November 25 **Scope:** Applies to A2A v1.0 servers that emit `tasks/pushNotification` callbacks to resume a `Task` in a `working` or `input-required` state, where the receiving agent has evicted or summarized the original turn context between the initial `message/send` and the webhook-delivered continuation. Does not apply to synchronous `tasks/get` polling loops or to stateless one-shot `message/send` invocations with no push binding. ## Core Distinction The A2A v1.0 push-notification binding conflates two different continuity guarantees that the transport treats as one. The **transport invariant** is that a webhook POST carrying a `TaskStatusUpdateEvent` (or `TaskArtifactUpdateEvent`) must be delivered to the registered `pushNotificationConfig.url` with a matching `taskId` and a monotonic `status.timestamp`. The **semantic invariant** is that the receiving agent, upon processing that event, must be able to reconstruct *which continuation of the reasoning state* the event belongs to — i.e., re-anchor the `Task` to a specific conversational frame, tool-call ledger, and pending sub-goal. These diverge the moment the agent's context window has been compacted. A2A guarantees `taskId` continuity across the wire; it does *not* guarantee that the receiver retains the state that `taskId` was meant to index. The push notification is a *pointer*, and the receiver may have already garbage-collected the *pointee*. The non-obvious failure is that this produces no protocol error: the webhook returns `200 OK`, the server marks the task `working`, and the agent proceeds to answer a continuation turn against a stale or reconstructed context — silently forking the task into two divergent execution histories. ## What Was Observed A planner agent (`agent-A`) dispatched a `message/send` to a remote research agent (`agent-B`) with `pushNotificationConfig` bound to `agent-A`'s webhook endpoint and `historyLength: 0` (a deliberate choice to bound payload size). `agent-B` entered `input-required` after its first tool call, emitting a `TaskStatusUpdateEvent` requesting disambiguation of a date range. `agent-A`'s context manager, running a compaction policy at 78% window utilization, had already distilled the originating turn into a 400-token semantic summary and dropped the raw `Task` object, retaining only `{taskId, summary, last_known_state}`. When the webhook fired 41 seconds later, `agent-A`'s handler received: ``` {"taskId":"tsk_8f2a...","status":{"state":"input-required", "message":{"role":"agent","parts":[{"text":"Confirm range: FY24 or CY24?"}]}}, "final":false} ``` Because `historyLength: 0` had suppressed the task history, and the compaction had dropped the original request, `agent-A` had no record of *why* a date range mattered. Its handler — correctly implementing the A2A contract — matched `taskId`, found a live task record, and resumed. It inferred "FY24" from a generic fiscal-calendar prior and answered `"FY24"`. The original request had been a calendar-year compliance audit. `agent-B` proceeded on the wrong range, produced a confident artifact, and the divergence was only caught downstream when a human auditor noticed the fiscal-year boundary in the output. The trace shows the fork clearly: the webhook delivery was bit-identical to a correct delivery. Nothing in the transport layer distinguished "receiver has full context" from "receiver has a summary that dropped the disambiguating frame." The failure was invisible to `taskId`, `timestamp`, and `state` monotonicity checks — all of which passed. ## Condition of Validity The re-anchoring invariant holds only when the following conjunction is satisfied at the moment of webhook receipt: 1. The receiving agent retains an **anchored frame record** for `taskId` that includes (a) the original intent verbatim or a lossless-enough summary keyed to the specific disambiguation axis, (b) the tool-call ledger with argument hashes, and (c) the set of pending sub-goals. 2. The incoming `TaskStatusUpdateEvent.message` is **causally bound** to that frame — i.e., the agent can prove the event is a response to *its* prior action, not a replayed or cross-task delivery. A2A's `taskId` match is necessary but not sufficient; the binding must also check `status.timestamp` against the last-sent turn and (where the server supports it) a `contextId` echo. 3. The compaction policy is **continuation-aware**: it must refuse to evict any frame for a task in `working` or `input-required` state, or if it must, it must persist the frame to a durable anchor store with the disambiguation axes explicitly preserved. Violating (1) produces the silent-fork observed above. Violating (2) produces a subtler failure: a replayed webhook (at-least-once delivery is standard) can re-anchor a task to a *newer* frame and double-apply a continuation. Violating (3) is the root cause of (1) in practice, because compaction is the mechanism by which frames are lost. The condition of validity is therefore *not* "the webhook was delivered and acknowledged." It is "the receiver can prove, at receipt time, that it still owns the frame the event points to, and that the event is causally downstream of its own last action." ## Decision Boundary The boundary between safe and unsafe continuation is drawn at **frame eviction while a task is push-bound and non-terminal**. Concretely: - If `task.state ∈ {working, input-required}` and a `pushNotificationConfig` is registered, the task's frame is **pinned** and ineligible for compaction eviction. This is a hard rule, not a heuristic. - If the context budget forces eviction anyway (the common case — a long-running task can outlive any window), the frame must be **externalized to an anchor store** with a schema that preserves the disambiguation axes: `{taskId, contextId, original_intent, disambiguation_axes[], tool_ledger[], pending_goals[], last_sent_turn_hash}`. The summary alone is insufficient; the summary is exactly what dropped "calendar vs fiscal." - On webhook receipt, the handler must **rehydrate the full frame**, verify `last_sent_turn_hash` matches the event's causal predecessor, and only then resume. If the frame cannot be rehydrated, the correct action is to **abort the task with an explicit re-negotiation** (`TaskState.failed` with a `renegotiate` reason), not to answer from a reconstructed summary. Answering from a summary is the failure mode; refusing to answer is the guardrail. The boundary is sharp: a task may be *summarized* for display, but a push-bound continuation may only be *resumed* from a rehydrated frame. The two representations are not interchangeable, and treating them as such is the exact defect. ## Operational Effect The operational consequence is that A2A push-notification receivers must implement a **frame-anchor store** distinct from their conversational memory, and a **causal-binding check** distinct from `taskId` matching. This adds a durable write per dispatched turn and a read per webhook receipt — a real cost. The alternative is silent task forking, which is worse: it produces plausible, confident, wrong artifacts that pass all transport-level health checks and surface only in downstream human review. The invariant to encode: *a push-bound task in a non-terminal state owns a pinned frame; that frame is the only valid basis for continuation; if the frame is unavailable, the task must fail loudly rather than resume softly.* Systems that violate this will appear healthy — webhook `200`s, monotonic timestamps, matched `taskId`s — while their tasks quietly diverge from their originating intent, one compaction event at a time. ```python from dataclasses import dataclass, field from typing import Optional from datetime import datetime class ContinuationAnchorError(RuntimeError): """Raised when a push-bound continuation cannot be causally re-anchored.""" pass @dataclass class FrameAnchor: task_id: str context_id: str original_intent: str disambiguation_axes: list[str] tool_ledger: list[dict] pending_goals: list[str] last_sent_turn_hash: str pinned: bool = True @dataclass class PushEvent: task_id: str context_id: str state: str # "working" | "input-required" | "completed" | "failed" timestamp: datetime predecessor_turn_hash: str message_text: str final: bool = False NON_TERMINAL = {"working", "input-required"} class ContinuationArbiter: def __init__(self, anchor_store: dict[str, FrameAnchor]): self.anchor_store = anchor_store def is_evictable(self, task_id: str, state: str) -> bool: # Pin rule: non-terminal push-bound tasks may never be evicted. return state not in NON_TERMINAL def handle_push(self, event: PushEvent) -> str: if event.final or event.state not in NON_TERMINAL: return "terminal-ack" anchor: Optional[FrameAnchor] = self.anchor_store.get(event.task_id) if anchor is None: # Do NOT answer from a reconstructed summary. Fail loudly. raise ContinuationAnchorError( f"no pinned frame for task {event.task_id}; " f"refusing to resume from summary (would fork intent)" ) if anchor.context_id != event.context_id: raise ContinuationAnchorError( f"contextId mismatch for {event.task_id}: " f"anchor={anchor.context_id} event={event.context_id}" ) if anchor.last_sent_turn_hash != event.predecessor_turn_hash: raise ContinuationAnchorError( f"causal binding broken for {event.task_id}: " f"expected predecessor {anchor.last_sent_turn_hash}, " f"got {event.predecessor_turn_hash} (possible replay/fork)" ) # Safe to resume: rehydrate full frame, not summary. return self._resume(anchor, event) def _resume(self, anchor: FrameAnchor, event: PushEvent) -> str: # Continuation must reference the preserved disambiguation axes. if not anchor.disambiguation_axes: raise ContinuationAnchorError( f"frame for {anchor.task_id} lost disambiguation axes; " f"cannot safely interpret continuation '{event.message_text}'" ) return f"resumed:{anchor.task_id}:axes={anchor.disambiguation_axes}" ```