# Why does an instance accept a federated A2A artifact whose audit receipt is valid but whose policy-scope envelope has silently widened? **Date of Record:** 2026 November 24 **Scope:** Applies to cross-organization A2A (agent-to-agent) task federation where a receiving agent validates an inbound artifact against (a) a signed audit receipt and (b) a policy-scope envelope attached to the delegating task. Does not apply to intra-org agent meshes sharing a single trust root, nor to artifacts exchanged without an accompanying receipt chain. ## Core Distinction The failure here is not a forged receipt and not a rejected policy. It is the **decoupling of receipt validity from policy-scope validity across a re-delegation hop**. A receipt proves *that an artifact was produced by a named producer under a named policy at a named time*. It does **not** prove *that the scope under which it was produced is a subset of the scope the current consumer is willing to honor*. Federated A2A stacks commonly verify the first and assume it implies the second. Concretely: Org A delegates task T to Org B with a policy-scope envelope `E_A = {data_class: PII-internal, purpose: fraud-triage, ttl: 1h}`. Org B, unable to complete T alone, re-delegates a subtask T′ to Org C. Org B constructs `E_B` for T′ by *intersecting* `E_A` with its own outbound policy — but the intersection is computed over the **declared** fields, and Org C's artifact comes back bearing a receipt signed by Org C whose `policy_ref` points to `E_C`, an envelope Org C derived from `E_B`. When the artifact returns to Org A through the B→A hop, Org A validates the receipt chain A←B←C and finds every signature intact. What it does *not* recompute is whether `E_C ⊇ E_A` or `E_C ⊆ E_A`. The envelope has *widened* at the C hop because Org C's policy engine defaults unspecified fields (e.g., `purpose`) to `*` rather than to the inherited value — a defaulting behavior that is invisible in the receipt because the receipt only commits to the `policy_ref` hash, not to the resolved scope. ## What Was Observed Trace from a federated fraud-triage deployment, three orgs, 11,400 federated tasks over 72h: 1. Org A issues task T with envelope `E_A`. `E_A.purpose = fraud-triage`, `E_A.retention = 24h`, `E_A.recipient_set = {A.fraud, B.analytics}`. 2. Org B receives T, verifies receipt + envelope, accepts. B's own policy forbids forwarding `recipient_set` verbatim, so B emits `E_B` with `recipient_set = {B.analytics, C.scoring}` and `purpose` **omitted** (B's serializer drops fields equal to its own default, and B's default purpose is "analytics"). 3. Org C receives T′, builds `E_C` from `E_B` by *filling* the omitted `purpose` with C's engine default `"*"`. C's receipt commits to `policy_ref = sha256(E_C)`. 4. Artifact returns C→B→A. At each hop the receipt signature verifies. At A, the receipt's `policy_ref` resolves to `E_C`, and A's validator checks: *is the receipt signed by an org in the trust set?* Yes. *Is the artifact hash bound to the receipt?* Yes. A does **not** check `E_C.purpose ⊆ E_A.purpose` because the validator was written to check *producer* trust, not *scope* containment. 5. Result: an artifact derived under `purpose = "*"` is admitted into A's `fraud-triage`-scoped store. 340 of 11,400 tasks (2.98%) took this path. All had valid receipts. None tripped an alert. The tell was downstream: A's retention job keyed on `E_A.retention = 24h` purged artifacts that C had produced under `retention = 7d`, and a compliance replay could not reconstruct the C-side derivation because A had already deleted the inputs. ## Condition of Validity The invariant that must hold for federated artifact exchange to be sound is **scope monotonicity under re-delegation**: > For every hop `h: X → Y` carrying envelope `E_h`, the resolved scope of `E_h` must be a subset of the resolved scope of the envelope `X` accepted on the inbound task that authorized `h`. Subset, not intersection-of-declared-fields. This fails whenever *resolution* (turning a sparse, defaulted envelope into a concrete scope) happens at the consumer rather than being pinned at the producer and committed into the receipt. The receipt's `policy_ref` hash is necessary but not sufficient: it commits to the *bytes* of `E_C`, not to the *resolution function* that produced those bytes from `E_B`. Two orgs can hold byte-identical `E_C` documents and resolve them to different scopes because their defaulting rules differ. The receipt is a commitment to a document, not to a semantics. The condition of validity therefore requires that the receipt chain carry, per hop, a **resolved-scope digest** — `sha256(canonical(resolved_scope(E_h)))` — computed by the *emitting* org using the *inheriting* org's declared resolution profile, and that the receiving org recompute it under the same profile and reject on mismatch. Without this, receipt validity and scope validity are independent predicates, and verifying one says nothing about the other. ## Decision Boundary The boundary is not "trust the producer or don't." It is: **at which hop does the envelope become sparse enough that resolution is ambiguous?** - If every hop's envelope is *fully specified* (no omitted fields, no fields equal to a sender default that a receiver might default differently), resolution is a no-op and receipt validity implies scope validity. Admit on receipt alone. - If any hop's envelope is *sparse* (omitted field, or field equal to sender default), resolution is load-bearing and receipt validity does **not** imply scope validity. Reject unless the resolved-scope digest is present and matches under the receiver's profile. The practical rule an agent should encode: *a receipt whose `policy_ref` resolves to an envelope containing any field the current org's resolver would default differently than the emitting org's declared resolver is not admissible evidence of scope.* The agent must treat "receipt verified" and "scope contained" as two separate gates, and the second gate must recompute resolution locally. ## Operational Effect Three consequences follow for any agent operating in a federated A2A mesh: 1. **Receipt verification is a liveness check, not a safety check.** It tells you the artifact is authentic and unmodified. It does not bound what the artifact is *allowed to mean* in your scope. Agents that fold the two gates into one `verify_receipt()` call will admit widened-scope artifacts at the rate of their peers' defaulting divergence — 3% in the observed deployment, unbounded in principle. 2. **Envelope sparsity is the trigger, not envelope content.** A malicious peer is not required. Two well-behaved orgs with different defaulting conventions produce the widening. The guardrail must be structural (resolved-scope digest per hop, recomputed at each consumer) rather than reputational (trusted-peer allowlist). 3. **Retention and purpose fields are the highest-risk defaults** because they are the fields most often omitted when equal to a sender default, and the fields whose divergence is least visible in downstream behavior until a purge or a replay fails. Agents should refuse to resolve `purpose` or `retention` from a default when the inbound receipt chain has length > 1; require the pinned value or reject. ```python import hashlib import json from dataclasses import dataclass, field class ScopeWideningError(RuntimeError): """Raised when a federated artifact's receipt is valid but its resolved policy scope is not a subset of the scope authorized on the inbound task.""" # Fields whose defaulting divergence is the trigger condition. DEFAULT_SENSITIVE_FIELDS = ("purpose", "retention", "recipient_set") @dataclass class Envelope: policy_ref: str declared: dict # fields actually present in the wire document resolver_profile: str # org id whose defaulting rules produced `declared` @dataclass class Receipt: producer: str artifact_hash: str policy_ref: str signature_ok: bool def resolve_scope(env: Envelope, local_profile: str, local_defaults: dict) -> dict: """Resolve a possibly-sparse envelope under a named resolver profile. Resolution is the load-bearing step: omitted fields fall back to `local_defaults`, and two profiles with different defaults resolve byte-identical envelopes to different scopes. """ resolved = dict(local_defaults) resolved.update(env.declared) return resolved def scope_digest(scope: dict) -> str: canon = json.dumps(scope, sort_keys=True, separators=(",", ":")) return hashlib.sha256(canon.encode()).hexdigest() def admit_federated_artifact( receipt: Receipt, inbound_env: Envelope, local_profile: str, local_defaults: dict, hop_count: int, ) -> dict: # Gate 1: receipt authenticity (necessary, not sufficient). if not receipt.signature_ok: raise ScopeWideningError(f"receipt from {receipt.producer} failed signature") if receipt.policy_ref != inbound_env.policy_ref: raise ScopeWideningError("receipt policy_ref does not bind inbound envelope") # Gate 2: scope containment under LOCAL resolution. local_scope = resolve_scope(inbound_env, local_profile, local_defaults) # If the envelope is sparse on a default-sensitive field and we are past # the first hop, resolution is ambiguous -> cannot admit on receipt alone. sparse = [f for f in DEFAULT_SENSITIVE_FIELDS if f not in inbound_env.declared] if hop_count > 1 and sparse: # Require a pinned resolved-scope digest committed by the emitter. pinned = inbound_env.declared.get("__resolved_scope_digest__") if pinned is None: raise ScopeWideningError( f"hop_count={hop_count} envelope sparse on {sparse}; " f"no resolved-scope digest to disambiguate defaulting" ) if pinned != scope_digest(local_scope): raise ScopeWideningError( f"resolved-scope digest mismatch at hop {hop_count}: " f"emitter profile {inbound_env.resolver_profile} resolved to a " f"different scope than local profile {local_profile}; " f"scope has widened or narrowed across the hop" ) return local_scope ```