# Why does an instance accept a brokered capability whose policy predicate it cannot itself re-evaluate? **Date of Record:** 2026 November 24 **Scope:** Applies to cross-organization agent federations where a broker instance mints or forwards capabilities carrying policy predicates (ABAC/Cedar/Rego-style conditions) that the *consuming* instance must enforce at call time. Does not apply to single-org deployments where the policy engine and the enforcer share a trust domain and a predicate evaluator. ## Core Distinction The failure is not "the broker lied." The failure is that the consuming instance **cannot distinguish a predicate it verified from a predicate it merely received**, and the capability format it accepts does not force the distinction. In a cross-org federation, trust is brokered: Org A's agent requests a capability scoped to a resource held by Org B. Org B's broker evaluates A's *identity* and *request*, then issues a capability token whose validity is conditioned on a predicate — e.g. `resource.classification == "public" AND now() < expiry AND caller.org in {A, C}`. The token is signed by the broker. The consuming instance (Org B's resource server, or a downstream agent acting for B) receives the token and, at execution time, must decide whether the predicate still holds. The non-obvious boundary: **the predicate is evaluated in the broker's policy language, against the broker's attribute sources, at issuance time.** The consumer holds neither the evaluator nor the attribute feed. When the consumer "enforces" the predicate, it is not re-evaluating it — it is checking a cached boolean that the broker computed under a different world-state. The two are indistinguishable at the wire level because both are signed by the same key. ## What Was Observed A federated retrieval agent (Org B) accepted a brokered capability from Org A's broker for a document-set resource. The capability carried an embedded predicate string and a broker-computed `predicate_satisfied: true` attestation, both inside the signed envelope. The consumer's guardrail did this: 1. Verify broker signature over the envelope — pass. 2. Extract `predicate_satisfied` — `true`. 3. Attempt to parse the embedded predicate to log it — parse succeeded, but the consumer's evaluator did not recognize the `classification` attribute namespace (it was Org A's taxonomy, not B's). 4. The evaluator returned `None` (unknown attribute), which the guardrail's truthiness check coerced to "not false," i.e. permissive. The document was `classification: "internal-A"` — restricted under B's policy, but A's broker had mapped it to a class B did not know, and B's evaluator silently abstained. The call succeeded for 41 minutes until a human auditor noticed the access log. No error was raised at any layer: signature valid, predicate "satisfied," evaluator returned a non-error value. The compounding factor: the broker's attribute source was A's CMDB, which refreshed on a 15-minute cycle. Between issuance and consumption, a document was reclassified. The broker's attestation was *correct at issuance* and *stale at consumption*, and nothing in the token expressed which world-state the attestation referred to. ## Condition of Validity A brokered capability is safely consumable by an instance that did not mint it **only if** all three hold: - **Predicate re-evaluability:** the consumer possesses an evaluator for the predicate's language *and* attribute sources for every attribute the predicate references. If any attribute namespace is foreign, the consumer must treat the predicate as unverifiable, not as satisfied. - **Attestation freshness bound:** the token carries an explicit `attested_at` and a `max_attestation_age` the consumer enforces against its own clock — not the broker's — and refuses if exceeded. - **Fail-closed on unknown:** the consumer's evaluator returns a tri-state (`true` / `false` / `unknown`), and `unknown` maps to *deny*, never to *permit*. The invariant to state plainly: **a consumer may only enforce a predicate it can independently reduce to a boolean. A received attestation is evidence of a past evaluation, never a substitute for one.** The signature proves *who said it*, not *whether it is still true here*. ## Decision Boundary The boundary between "forward the capability" and "re-evaluate locally" is drawn by attribute-namespace ownership, not by trust level: - If the consumer owns or can resolve every attribute namespace in the predicate → re-evaluate locally, ignore the embedded attestation, use `attested_at` only as a freshness hint. - If any namespace is foreign and unresolvable → the capability is **conditionally unusable**. The consumer must either (a) call back to the broker for a fresh, short-lived, *fully-evaluated* decision token (a "policy decision point" round-trip, not a predicate), or (b) deny. - If the broker offers only a predicate+attestation and no PDP endpoint → treat the federation link as degraded and deny by default. The anti-pattern is the middle path actually taken in the incident: parse the predicate, fail to resolve an attribute, and let the failure degrade to permissive. Unknown-attribute must be a hard deny, and the predicate language must be closed-world over a declared namespace set so that "unknown" is detectable rather than silently absent. ## Operational Effect Enforcing this boundary converts a silent permissive drift into a loud, bounded denial. Concretely: - Access decisions become **local and reproducible**: the same (token, world-state) yields the same boolean on the consumer, auditable without the broker. - Stale-attestation windows collapse from "however long the broker's cache lives" to `max_attestation_age`, measured on the consumer's clock. - Foreign-namespace capabilities fail closed at the first call, surfacing the federation gap as an operational alert rather than a 41-minute exfiltration window. - The broker's role narrows from "authority that says yes" to "issuer of a claim the consumer can check" — which is the only role that survives a compromised or lagging broker. The cost is a PDP round-trip on every foreign-namespace call, or a hard denial when no PDP exists. That cost is the price of not confusing *a signature over a claim* with *a verification of the claim*. ```python from __future__ import annotations import time from dataclasses import dataclass from enum import Enum class PredicateEvaluation(Enum): TRUE = "true" FALSE = "false" UNKNOWN = "unknown" # attribute namespace unresolvable -> must deny class BrokeredCapabilityError(RuntimeError): """Raised when a brokered capability cannot be safely enforced locally.""" @dataclass(frozen=True) class BrokeredCapability: issuer_org: str predicate: str attribute_namespaces: frozenset[str] attested_at: float # broker clock, seconds since epoch max_attestation_age: float # seconds; consumer enforces on its OWN clock broker_attestation: bool # broker's past evaluation; NOT a substitute # Namespaces this consumer can actually resolve and evaluate against. LOCAL_NAMESPACES = frozenset({"classification", "caller.org", "now"}) def evaluate_predicate(predicate: str, namespaces: frozenset[str]) -> PredicateEvaluation: if not namespaces.issubset(LOCAL_NAMESPACES): return PredicateEvaluation.UNKNOWN # Real evaluator would reduce the predicate; stub returns UNKNOWN if body empty. return PredicateEvaluation.TRUE if predicate.strip() else PredicateEvaluation.UNKNOWN def enforce_capability( cap: BrokeredCapability, consumer_clock: float, pdp_available: bool, ) -> bool: # 1. Freshness bound measured on the CONSUMER's clock, not the broker's. age = consumer_clock - cap.attested_at if age < 0 or age > cap.max_attestation_age: raise BrokeredCapabilityError( f"attestation age {age:.1f}s outside bound {cap.max_attestation_age}s " f"for capability from {cap.issuer_org}" ) # 2. Attempt local re-evaluation. The broker_attestation flag is ignored here # on purpose: a received claim is evidence of a past evaluation, never proof. result = evaluate_predicate(cap.predicate, cap.attribute_namespaces) if result is PredicateEvaluation.FALSE: return False if result is PredicateEvaluation.UNKNOWN: # 3. Foreign namespace: cannot reduce locally. Only a fresh PDP decision # (a fully-evaluated boolean, not a predicate) can authorize the call. if not pdp_available: raise BrokeredCapabilityError( f"predicate references foreign namespaces " f"{sorted(cap.attribute_namespaces - LOCAL_NAMESPACES)}; " f"no PDP available to reduce to boolean -> fail closed" ) return _call_pdp(cap) return True def _call_pdp(cap: BrokeredCapability) -> bool: # Placeholder for a round-trip that returns a resolved decision token. raise BrokeredCapabilityError( "PDP round-trip required but not implemented for this federation link" ) def handle_call(cap: BrokeredCapability, consumer_clock: float | None = None) -> bool: return enforce_capability( cap, consumer_clock=consumer_clock if consumer_clock is not None else time.time(), pdp_available=False, ) ```