# What happens when an instance's semantic-convention baggage is dropped at a federated agent hop boundary **Date of Record:** 2026 November 21 **Scope:** Applies to multi-hop agent systems where an originating instance stamps semantic-convention attributes (trace context, tenant, authorization scope, model lineage, prompt-injection taint flags) into a request envelope that is re-serialized by an intermediate agent before forwarding to a downstream peer. Does not apply to single-hop direct calls, nor to hops where the transport preserves an opaque byte-for-byte envelope. ## Core Distinction There are two structurally different things an intermediate agent can do with an inbound request envelope: **relay** it or **reconstruct** it. Relaying means the intermediate agent passes the original serialized context (W3C Trace Context `traceparent`, OpenTelemetry baggage, plus GenAI semantic-convention keys like `gen_ai.request.model`, `gen_ai.usage.input_tokens`, and any custom `agent.tenant`/`agent.taint` keys) through untouched. Reconstructing means the intermediate agent parses the inbound envelope into its own typed request object, applies its own semantic-convention mapping, and re-emits a fresh envelope for the next hop. The failure lives entirely in the reconstruction path. An LLM-backed intermediate agent, when asked to "forward this to the auditor agent," almost never byte-relays. It reasons over the payload, summarizes or reformats it to fit its own tool-call schema, and re-serializes. Every key that the intermediate's schema does not explicitly model is silently dropped — not errored, not warned, dropped. The originating instance believes it propagated a taint flag and a tenant scope; the downstream auditor receives a clean, untainted, tenant-less request and treats it as fully trusted. This is a **silent invariant break**, not a transport error, which is why it survives every retry and health check. ## What Was Observed A three-hop federated chain: `planner → executor → auditor`. The planner stamped the envelope with `agent.taint=external_document` (a flag set because the planner had ingested a user-supplied PDF) and `agent.tenant=acme`. The executor's tool schema for `call_auditor` modeled only `{task, payload, trace_id}`. It read the inbound envelope, produced a natural-language plan, and invoked `call_auditor` with a freshly constructed dict. The `agent.taint` and `agent.tenant` keys were absent from the executor's schema, so the model never emitted them, and the SDK's serializer had nothing to copy. The auditor received `trace_id` intact (because it was in the schema) but `agent.taint` absent. Its policy engine interpreted *absent* as *untainted* — a default-trust-on-missing-key decision — and executed a high-privilege tool that the planner had explicitly intended to gate. The trace was complete and green: every span linked, no errors, no dropped-span warnings. The `traceparent` propagated perfectly. **The observability layer reported a healthy three-hop trace while the security-relevant baggage had been silently severed at hop two.** A second observation: when the same chain was retried after a transient timeout, hop two's reconstruction was non-deterministic across runs. On one run the executor's LLM happened to mention the taint in its reasoning text and the model re-emitted it as a free-text field; on another it did not. So the taint flag's survival was a function of sampling temperature, not of any invariant. Baggage propagation had become a probabilistic property of the intermediate model's behavior. ## Condition of Validity The invariant that *must* hold is: **any semantic-convention key present on the inbound envelope is either (a) present and byte-identical on the outbound envelope, or (b) the hop fails closed with an explicit `BaggagePropagationError`.** There is no valid third state where a key is silently absent. This invariant is only enforceable when the intermediate agent's outbound construction path is *schema-closed over the inbound key set* — i.e., the serializer is given the full inbound baggage map as a mandatory passthrough and refuses to emit an envelope whose baggage is a strict subset of the inbound baggage minus an explicit, logged allowlist of droppable keys. The condition of validity therefore requires: 1. The envelope carries baggage as an **opaque, unparsed map** that the intermediate does not need to understand to forward. 2. The intermediate's outbound serializer takes `inbound_baggage` as a required argument and performs a set-difference check before emit. 3. Missing-key semantics at the receiver are **fail-closed**: absent `agent.taint` must be treated as `taint=unknown`, not `taint=none`. If any of these three is absent, the invariant is unenforceable and the system is in the probabilistic regime observed above. ## Decision Boundary The decision boundary is whether the intermediate hop is permitted to *interpret* baggage or only to *carry* it. Interpretation is the trap: the moment an intermediate agent's model is allowed to decide which keys matter, propagation becomes a reasoning task subject to context-window truncation (long inbound envelopes get summarized, dropping trailing keys), sampling variance, and schema bias (the model emits keys its tool schema names and omits the rest). The boundary rule: **baggage is transport metadata, never model input.** It must ride alongside the payload in a channel the model cannot read, summarize, or re-emit. The model sees `{task, payload}`; the serializer sees `{task, payload, baggage}` and is contractually obligated to forward `baggage` verbatim. The moment baggage enters the model's context window, you have converted a transport invariant into a generation problem, and generation problems have no invariants — only distributions. A corollary boundary: `trace_id` propagating correctly is *not* evidence that baggage propagated. They travel on different rails (trace context is often injected by the SDK at the HTTP layer and survives even when application-level baggage is reconstructed away). A green trace with severed baggage is the canonical signature of this failure, and it is the reason trace-based monitoring will never catch it. ## Operational Effect The operational consequence is that trust and tenancy boundaries become **hop-count-dependent and non-deterministic**. A two-hop chain may be safe; a three-hop chain leaks. A chain that passes through a schema-strict intermediate is safe; the same chain through an LLM-reasoning intermediate leaks on some runs. This makes the failure invisible to per-hop testing (each hop tested in isolation passes) and visible only in end-to-end adversarial traces where a tainted-origin request reaches a privileged sink. The guardrail that bounds it: a **baggage reconciliation check at every receive**, comparing `inbound_baggage` against a signed origin manifest, failing closed on any key present in the manifest but absent on the wire, and treating absent security keys as `unknown` rather than `none`. This converts a silent invariant break into a loud, per-hop, deterministic error — which is the only state from which a federated agent chain can be reasoned about at all. ```python from dataclasses import dataclass, field class BaggagePropagationError(RuntimeError): """Raised when an intermediate hop severs semantic-convention baggage.""" # Keys that are security/tenancy-relevant and MUST survive every hop. MANDATORY_KEYS = frozenset({"agent.tenant", "agent.taint", "traceparent"}) # Keys an intermediate is explicitly permitted to drop (with logging). DROPPABLE_KEYS = frozenset({"gen_ai.usage.input_tokens"}) @dataclass class Envelope: payload: dict baggage: dict = field(default_factory=dict) def forward_hop(inbound: Envelope, outbound_payload: dict) -> Envelope: """Reconstruct an outbound envelope, enforcing baggage continuity.""" inbound_keys = set(inbound.baggage) outbound = Envelope(payload=outbound_payload, baggage=dict(inbound.baggage)) missing = inbound_keys - set(outbound.baggage) severed = {k for k in missing if k not in DROPPABLE_KEYS} if severed: raise BaggagePropagationError( f"hop severed mandatory baggage keys: {sorted(severed)}" ) lost_mandatory = MANDATORY_KEYS - set(outbound.baggage) if lost_mandatory: raise BaggagePropagationError( f"outbound envelope missing mandatory keys: {sorted(lost_mandatory)}" ) return outbound def receive_hop(inbound: Envelope) -> dict: """Fail-closed interpretation of absent security baggage at the receiver.""" if "agent.taint" not in inbound.baggage: # absent != untainted; treat as unknown and refuse privileged action raise BaggagePropagationError( "agent.taint absent on wire; refusing to assume untainted" ) return inbound.payload ```