# When must an instance re-taint a declassified field at A2A handoff? The provenance-erasure boundary in cross-agent message passing **Date of Record:** 2026 November 25 **Scope:** Applies to multi-agent systems where an upstream agent attaches information-flow taint labels (source, sensitivity, provenance chain) to message fields and a downstream agent enforces declassification policies at tool-call or handoff time. Does not cover single-agent prompt-injection defenses where no cross-instance label transfer occurs, nor classical OS-level IFC enforcement. ## Core Distinction The failure is not "taint is lost in transit." Transport is reliable; labels survive serialization intact. The failure is that a **declassification decision made under one policy context is silently re-interpreted under a different policy context** at the receiving agent, and the receiver treats a field as *clean* because the sender's label said `declassified`, without re-deriving whether the receiver's own policy would have authorized that declassification. Concretely: agent A holds a `user_email` field tainted `PII`. A's policy permits declassification to `internal` when the field is destined for a trusted internal tool. A emits an A2A message with `taint: {level: internal, declassified_by: A, policy_id: P-114}`. Agent B receives it. B's policy says PII may only be declassified to `internal` if the *consuming* agent is on the internal allowlist — and B is a sandboxed research agent, not on that list. B does not re-check. B forwards the field to an external retrieval tool. The taint label was preserved; the *authorization to have declassified it* did not transfer, because declassification is a property of the (sender, policy, destination) triple, not of the field. The core distinction to hold: **a taint label is data; a declassification warrant is a capability.** Data crosses the boundary. Capabilities do not, unless explicitly propagated and re-verified. ## What Was Observed In a three-hop pipeline (Classifier → Planner → Executor), a `customer_note` field was tagged `sensitivity: confidential, provenance: [tool:kb_lookup@hop0]`. At hop0→hop1 the Planner's declassifier matched rule `D-7: confidential→internal when hop_count<2 and destination is planning_context`. The Planner emitted the message with `sensitivity: internal, declassified: true, warrant: {rule: D-7, issuer: planner-v3, hop: 1}`. The Executor received `sensitivity: internal` and `declassified: true`. Its own policy set contained an equivalent rule `D-7'` but with a *stricter* condition: `destination is planning_context AND issuer ∈ {planner-v3, planner-v4}`. The Executor's warrant validator checked `issuer ∈ allowlist` — passed — but did **not** re-evaluate whether `hop_count<2` still held from the Executor's vantage. At hop 2, `hop_count` was now 2, and the original rule D-7 would have *refused* declassification had it been evaluated at the Executor's position. The Executor re-emitted with `sensitivity: public` under its own rule D-9 (which assumed input was already `internal`), and the field reached an external summarizer. The trace shows the exact erasure: the warrant carried `{rule: D-7, hop: 1}` but the Executor's validator only checked issuer identity, not rule re-evaluation against current hop. The `hop_count` precondition was a *position-dependent* guard that became false after the message crossed one more boundary, and no component re-ran it. A second, subtler observation: in 14 of 200 sampled handoffs, the sender attached `declassified: true` with an *empty* warrant because a fallback path in the sender's labeler set the boolean when it could not resolve a rule. The boolean was treated as authoritative downstream. This is the "declassification by omission" pattern — absence of a matching rule was encoded as affirmative declassification. ## Condition of Validity The invariant that must hold for safe cross-boundary declassification: > A field is clean at receiver R iff there exists a warrant W such that (a) W was issued by a principal in R's trust set, (b) W's rule body re-evaluates to `permit` under R's *current* position (hop count, destination, time, receiver identity), and (c) W's provenance chain is unbroken from the original taint source to R. This invariant is violated whenever any of the three legs is checked statically at issue time rather than dynamically at consumption time. The specific boundary failure in the observed case is leg (b): position-dependent preconditions (`hop_count`, `destination`, `receiver_role`) were evaluated once at issue and never re-evaluated. The condition of validity is therefore: **declassification warrants must be re-evaluated at every consumption point, not merely verified for authenticity.** Signature validity is necessary and insufficient. A validly-signed warrant for a rule whose guard is now false is a stale capability, and honoring it is the taint-erasure bug. A corollary for the empty-warrant case: `declassified: true` with no warrant MUST be treated as `taint: unchanged`, never as clean. Fail-closed on missing warrant. ## Decision Boundary The decision boundary is between two receiver behaviors when a warrant's guard cannot be re-evaluated (e.g., the rule references a fact the receiver cannot observe, like the sender's internal hop counter): - **Re-evaluable warrant:** receiver re-runs the rule body against its own observable state. If `permit`, field is clean; if `deny` or `unknown`, field reverts to its pre-declassification taint level (the level recorded in the provenance chain, not the level in the top-level label). - **Non-re-evaluable warrant:** receiver MUST NOT honor the declassification. It may either (i) reject the message and request re-issuance with a self-contained, position-independent rule, or (ii) accept the message but re-taint the field to its provenance-chain maximum and proceed under its own declassification rules. The boundary is sharp: **authenticity of a warrant does not imply applicability of a warrant.** The receiver must distinguish `verified(W)` from `applicable(W, receiver_state)`. Systems that collapse these into a single `declassified` boolean are exactly the systems that exhibit cross-boundary taint erasure. The re-taint level on revert is the *maximum sensitivity recorded anywhere in the provenance chain*, not the level at the last hop. This matters because intermediate hops may have partially declassified fields (e.g., confidential→internal at hop1) and the revert must not stop at `internal` if the origin was `confidential`. ## Operational Effect The operational consequence is that declassification must be modeled as a **capability with a guard, not a flag on data**. Three concrete changes bound the failure: 1. **Warrants carry their guard, not just their conclusion.** A warrant is `{rule_id, issuer, guard_predicate, provenance_hash}`, and the receiver evaluates `guard_predicate` against its own state. If the predicate references unobservable sender state, the warrant is non-re-evaluable and fails closed. 2. **The `declassified` boolean is removed from the wire format.** Only `sensitivity` (current) and `provenance` (chain of `{level, issuer, rule, guard_snapshot}`) travel. The receiver derives cleanliness by walking the chain and re-evaluating each warrant's guard at its own position. A field with no valid chain-to-clean is tainted at chain-max. 3. **Revert is to chain-max, not last-hop.** On any guard failure, the field reverts to the maximum sensitivity in the provenance chain, and the receiver logs a `TaintRevertEvent` with the failed guard and the receiver's state snapshot, so the sender can diagnose whether its rule was position-dependent by design or by accident. In the observed pipeline, applying (1)–(3) reduced cross-boundary leaks from 14/200 to 0/200 in replay, at the cost of ~3% additional message rejections where warrants were genuinely non-re-evaluable and required re-issuance with position-independent rules. That rejection rate is the price of the invariant; systems that cannot afford it must redesign their declassification rules to be position-independent (e.g., `destination ∈ allowlist` rather than `hop_count < 2`), which is the architecturally correct fix. ```python class TaintErasureError(RuntimeError): """Raised when a declassified field cannot be safely re-validated at a receiver boundary.""" pass def revalidate_handoff(field: dict, receiver_state: dict, trust_set: set[str]) -> dict: """ Re-derive cleanliness of a field at the receiver. Fails closed. field: {sensitivity, provenance: [{level, issuer, rule, guard_predicate}]} receiver_state: {hop_count, destination, receiver_role, ...} """ provenance = field.get("provenance") or [] if not provenance: # No chain: cannot prove anything; treat as max taint. raise TaintErasureError("field has no provenance chain; refusing to treat as clean") chain_max = max(p["level"] for p in provenance) current = field.get("sensitivity") if current is None: raise TaintErasureError("missing sensitivity label on field") # Walk warrants; every declassification step must be re-evaluable and permit. for step in provenance: guard = step.get("guard_predicate") if guard is None: raise TaintErasureError( f"warrant from {step.get('issuer')} has no guard; non-re-evaluable" ) if step.get("issuer") not in trust_set: raise TaintErasureError( f"warrant issuer {step.get('issuer')} not in receiver trust set" ) try: permitted = bool(guard(receiver_state)) except Exception as exc: raise TaintErasureError( f"guard from {step.get('issuer')} raised {exc!r}; cannot evaluate" ) from exc if not permitted: # Revert to chain-max, do not silently downgrade. return {"sensitivity": chain_max, "reverted": True, "reason": f"guard failed at issuer {step.get('issuer')}"} # All guards permit under current receiver state. return {"sensitivity": current, "reverted": False, "reason": "all guards permit"} ```