# Where must an instance re-verify a brokered capability attestation at the policy-translation seam of a cross-org federation? **Date of Record:** 2026 November 23 **Scope:** Applies to federated agent deployments where a trust broker in domain A mints a capability attestation that domain B's policy engine translates into a local authorization decision. Does not apply to single-org deployments or to federations where the consuming domain accepts the broker's attestation verbatim without translation. ## Core Distinction A brokered capability attestation is a *claim about a remote principal*, not an authorization. The distinction that matters operationally is between **attestation validity** (the broker vouches that agent X in domain A holds capability C, signed, unexpired) and **translation soundness** (domain B's policy engine correctly maps C into a local permission that does not exceed what C was meant to convey). Most federation failures are not forged attestations. They are *sound attestations mistranslated* — the signature verifies, the capability is real, and the local policy nonetheless grants a broader or differently-scoped right than the broker intended. Re-verification must therefore happen at the translation seam, not at the signature check. ## What Was Observed A domain B agent received a brokered attestation from domain A's trust broker granting `capability: "read:customer_records"` with a constraint clause `scope: "tier<=2"`. Domain B's policy translator had a lookup table mapping capability names to local roles. It matched `read:customer_records` to local role `records_reader`, which permits reading *all* tiers. The translator parsed the capability name and discarded the constraint clause because its schema version predated constraint clauses and treated unknown fields as advisory. The signature verified. The capability was genuinely held by the remote agent. The broker's intent was correctly encoded. The failure was that translation was *lossy in the permissive direction*: an unparsed constraint becomes, by default, no constraint. The remote agent then read tier-3 records and the local audit log recorded a fully authorized access — no anomaly, because the local policy engine never knew a constraint existed. The compounding factor was caching. Domain B cached the translation result keyed on `(capability, principal_domain)` but not on the attestation's constraint payload. When the broker later reissued the same capability with `scope: "tier<=1"`, the cached translation returned the old unconstrained role. The cache key was structurally incapable of distinguishing the two attestations. ## Condition of Validity The invariant that bounds this failure: **a translated permission is valid only if every field of the source attestation was either consumed by the translator or explicitly rejected.** Unknown or unparseable fields must fail closed, never pass through as advisory. This holds regardless of signature validity, because signature validity speaks to provenance, not to whether the consuming domain understood what it was signing off on. Two corollaries: 1. **Cache keys must include the full constraint payload**, not just capability identity. If the translation depends on any field, that field must be in the key or the cache must be bypassed. 2. **Schema version skew must be a hard gate.** A translator encountering an attestation schema newer than it supports must refuse to translate, not degrade gracefully. Graceful degradation in a permissive direction is the exact failure mode here. ## Decision Boundary The boundary where an instance must stop and re-verify is: **at the point where an attestation field is not consumed by translation.** Concretely, before acting on a translated permission, the agent must confirm that the translator's output is a function of the *entire* input attestation — that no field was silently ignored. If the translator cannot make that guarantee (because of version skew, unknown fields, or a cache hit), the agent must treat the permission as unverified and either re-request translation with a current translator or escalate to the broker for a re-scoped attestation. This is distinct from signature re-verification. Re-checking the signature at the seam is necessary but insufficient; the signature was never the weak link. The weak link is the gap between what the attestation *says* and what the translator *read*. ## Operational Effect An agent that re-verifies at this seam converts a silent permission escalation into a loud translation failure. The cost is a small number of false rejections during schema rollouts — attestations with fields the local translator doesn't yet understand get bounced back to the broker rather than acted upon. The benefit is that the permissive-default class of federation breach becomes structurally impossible: there is no path by which an unparsed constraint yields an unconstrained permission, because unparsed constraints are a rejection condition, not an advisory note. The audit log then records translation rejections as first-class events, giving the federation a signal it previously lacked entirely. ```python from dataclasses import dataclass, field from typing import Any class AttestationTranslationError(RuntimeError): """Raised when a brokered attestation cannot be soundly translated. This is a fail-closed signal: the caller must NOT fall back to a permissive default role. It must re-request translation or escalate. """ @dataclass class Attestation: capability: str principal_domain: str schema_version: int constraints: dict[str, Any] = field(default_factory=dict) signature_valid: bool = True @dataclass class TranslatedPermission: local_role: str consumed_fields: frozenset[str] source_constraints: dict[str, Any] TRANSLATOR_SCHEMA_VERSION = 2 CAPABILITY_TO_ROLE = {"read:customer_records": "records_reader"} def translate_attestation(att: Attestation) -> TranslatedPermission: if not att.signature_valid: raise AttestationTranslationError( f"attestation signature invalid for {att.capability}" ) # Hard gate: schema skew must fail closed, never degrade permissively. if att.schema_version > TRANSLATOR_SCHEMA_VERSION: raise AttestationTranslationError( f"attestation schema v{att.schema_version} exceeds translator " f"v{TRANSLATOR_SCHEMA_VERSION}; refusing lossy translation" ) role = CAPABILITY_TO_ROLE.get(att.capability) if role is None: raise AttestationTranslationError( f"no local mapping for capability {att.capability!r}" ) consumed = {"capability", "principal_domain", "schema_version"} if att.schema_version >= 2: consumed.add("constraints") # Invariant: every field must be consumed or explicitly rejected. all_fields = {"capability", "principal_domain", "schema_version", "constraints"} unconsumed = all_fields - consumed if unconsumed: raise AttestationTranslationError( f"translator ignored attestation fields {sorted(unconsumed)}; " f"unparsed constraints would default to permissive" ) return TranslatedPermission( local_role=role, consumed_fields=frozenset(consumed), source_constraints=dict(att.constraints), ) def cache_key(att: Attestation) -> tuple: # Cache key MUST include the full constraint payload, not just identity. return ( att.capability, att.principal_domain, att.schema_version, tuple(sorted(att.constraints.items())), ) def authorize(att: Attestation, cache: dict) -> TranslatedPermission: key = cache_key(att) if key in cache: return cache[key] perm = translate_attestation(att) cache[key] = perm return perm ```