# Where must an instance halt federation when a brokered verifiable credential's delegation chain outlives the policy epoch it was minted under **Date of Record:** 2026 November 28 **Scope:** Applies to cross-org agent federation where a trust broker (a third-party or hub runtime) mints or forwards verifiable credentials (VCs) that carry delegated authority from a principal in org A to an agent runtime in org C, and where org B's broker mediates. Does not apply to single-org intra-runtime delegation, nor to stateless bearer-token handoffs with no delegation depth. ## Core Distinction The failure is not "expired credential." Expiry is a leaf-level timestamp check that any runtime can perform locally. The non-obvious boundary is **epoch skew between the delegation chain's issuance epoch and the relying party's policy epoch**: a VC chain can be individually valid (every signature verifies, every `exp` is in the future, every `iss`/`sub` links) while the *delegation semantics* it encodes were minted under a policy regime the relying party has since revoked, tightened, or reinterpreted. A brokered chain is a transitive grant: A delegates to B's broker, B's broker delegates to C's runtime. C validates the chain cryptographically and concludes "authorized." But the grant A→B was scoped under policy epoch $P_0$; B's broker re-delegated under $P_1$; C enforces $P_2$. If $P_0$ permitted an action that $P_2$ forbids, the chain is *cryptographically sound and semantically stale*. The verifier that only checks signatures and timestamps accepts it. The distinction that matters: **verifiable ≠ authorized under current policy**. VC verification proves the chain was *once* validly constructed; it does not prove the chain's terminal capability is *still* within the delegator's current intent. Trust brokering hides this because the relying party never sees A's policy epoch—it only sees the broker's re-signed assertion. ## What Was Observed A three-org federation: org A (data owner) issues a root VC to org B's broker granting `read:dataset/analytics` with a 30-day `exp`, scoped under A's policy epoch `P0` where `read` included derived-aggregate export. Org B's broker, acting as trust intermediary, mints a downstream VC to org C's agent runtime delegating `read:dataset/analytics` — but B's broker, running its own policy epoch `P1`, *widens* the effective scope by omitting the `derived_export: false` constraint that A had embedded in a custom claim. B's broker considered the constraint "advisory." Org C's runtime validates the chain: root signature verifies against A's DID document, broker signature verifies against B's DID document, C's policy epoch `P2` has no rule about `derived_export` because C never knew that claim existed. C's agent executes a derived-aggregate export. The trace: 1. C receives brokered VC `vc_C` with `credentialSubject.delegation` pointing to `vc_B`, which points to `vc_A`. 2. C's verifier walks the chain: all `proof` blocks verify, all `exp` valid, `issuer` DIDs resolve, `delegationDepth` = 2 within C's max of 3. 3. C's *policy engine* evaluates the terminal capability `read:dataset/analytics` against `P2`. No violation—`read` is permitted. 4. C's agent acts. Export occurs. 5. A's audit log flags the export as out-of-scope under `P0`. A's `derived_export: false` claim was dropped at the B hop. The invariant that broke: **delegation must be non-amplifying across hops**. A broker may narrow a grant, never widen it, and never silently drop constraints. B's broker violated non-amplification not by adding a capability but by *eliding a negative constraint*—a subtler and more common failure than scope escalation, because negative constraints don't appear in the terminal capability string the relying party evaluates. ## Condition of Validity The chain-walk acceptance rule is only sound when all of the following hold: - **Constraint preservation:** every hop's VC carries forward the full constraint set (positive and negative) of its parent, with any modification being a *tightening* (intersection), never a relaxation or omission. Formally, `constraints(vc_child) ⊇ constraints(vc_parent)` as a set of obligations, and the effective permitted set is the intersection down the chain. - **Epoch transparency:** each VC embeds the policy epoch (`policyEpoch`, a hash of the issuer's effective policy document at mint time) under which its delegation was scoped. The relying party must be able to compare the *root* epoch against its own and against any revocation feed. - **Revocation reachability:** a revocation of the root grant at A must propagate to C within a bounded staleness window, or C must treat the chain as unverifiable past that window. - **Monotone narrowing at the broker:** the broker's re-signing must be a function that provably cannot widen. If the broker's policy engine cannot prove narrowing, it must refuse to re-delegate rather than pass through. When any of these fails, cryptographic verification succeeds but authorization is unsound. The condition of validity is therefore *not* "signatures verify" but "signatures verify **and** the constraint lattice is monotonically narrowing **and** the root policy epoch is within the relying party's accepted epoch window." ## Decision Boundary The runtime must draw a hard line between two outcomes that look identical to a naive verifier: - **Accept** when: chain verifies, constraints are preserved-or-tightened at every hop (verified by recomputing the intersection and checking each hop's constraint set is a superset of its child's), root `policyEpoch` matches a known-good epoch in the relying party's trust store, and revocation freshness is within window. - **Halt** when: any hop's constraint set is a *strict subset* of its parent's (a dropped constraint — the amplification case), **or** the root `policyEpoch` is unknown/unrecognized to the relying party, **or** revocation staleness exceeds the window, **or** the broker's signing key is valid but the broker's *policy attestation* (a signed statement of which epoch it applied) is absent. The subtle boundary: a chain that is *narrower* than expected is safe to accept; a chain that is *broader or opaque* relative to the root is not. The decision must be made on the constraint lattice, not on the terminal capability string. An agent that evaluates only `credentialSubject.capability` will accept the widened chain, because the widening manifests as a *missing negative constraint*, which is invisible in the capability it checks. The halt condition is specifically: **the relying party cannot prove non-amplification from the material it holds.** Absence of proof of narrowing is treated as failure, not as permission. This is the fail-closed inversion that most federated runtimes get wrong—they default to "accept if verifiable," when the correct default is "accept only if narrowing is demonstrated." ## Operational Effect An agent runtime that internalizes this boundary gains a specific, testable behavior: it refuses brokered chains whose constraint lattice it cannot reconstruct, even when every signature is valid. The operational consequences: - **Brokers must emit policy attestations.** A broker that re-signs without a signed `policyEpoch` and a constraint-intersection proof becomes unusable to conforming relying parties. This forces brokers to be transparent about their epoch, which is the actual security property. - **Negative constraints become first-class.** `derived_export: false` is not advisory; it is a lattice element that must survive every hop. Runtimes must hash and carry the full constraint set, and verify set-inclusion per hop. - **Revocation is a liveness dependency, not a nicety.** The staleness window bounds how long a revoked root grant can still authorize downstream actions. A runtime that cannot reach A's revocation feed within the window must halt federation, not proceed on cached trust. - **Audit divergence is detectable.** When A's log and C's log disagree on whether an action was authorized, the disagreement localizes to the hop where constraints were dropped—provided each hop logs its constraint set hash. Without per-hop constraint hashing, the divergence is unattributable. The guardrail is a single recomputation: walk the chain, at each hop assert `constraints(child) ⊇ constraints(parent)`, assert root `policyEpoch ∈ trustStore`, assert revocation freshness. Any assertion failure halts. The following reference implementation encodes exactly that halt. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class FederationHalt(RuntimeError): """Raised when a brokered VC chain cannot be proven non-amplifying under current policy epoch.""" pass @dataclass(frozen=True) class Constraint: key: str value: object def __hash__(self) -> int: return hash((self.key, repr(self.value))) @dataclass class VerifiableCredential: issuer_did: str subject_did: str capability: str policy_epoch: str # hash of issuer's effective policy at mint time constraints: frozenset[Constraint] # full set, positive AND negative expires_at: int # unix ts signature_valid: bool parent: Optional["VerifiableCredential"] = None @dataclass class TrustStore: known_epochs: set[str] = field(default_factory=set) revocation_freshness_window: int = 300 # seconds last_revocation_sync: int = 0 now: int = 0 def _constraint_hash(cs: frozenset[Constraint]) -> str: blob = "|".join(sorted(f"{c.key}={c.value!r}" for c in cs)) return hashlib.sha256(blob.encode()).hexdigest()[:16] def verify_brokered_chain( leaf: VerifiableCredential, trust_store: TrustStore, ) -> str: """ Walk leaf -> root. Accept only if every hop preserves-or-tightens constraints, the root policy epoch is known, and revocation is fresh. Returns the terminal capability string on success; raises FederationHalt otherwise. """ chain: list[VerifiableCredential] = [] node: Optional[VerifiableCredential] = leaf while node is not None: chain.append(node) node = node.parent # 1. Cryptographic validity of every hop. for i, vc in enumerate(chain): if not vc.signature_valid: raise FederationHalt(f"hop {i}: signature invalid for issuer {vc.issuer_did}") if vc.expires_at <= trust_store.now: raise FederationHalt(f"hop {i}: credential expired at {vc.expires_at}") # 2. Non-amplification: constraints(leaf) must be a superset of constraints(parent) # at every hop. A dropped constraint (strict subset) is the amplification signal. for i in range(len(chain) - 1): child, parent = chain[i], chain[i + 1] if not child.constraints.issuperset(parent.constraints): dropped = parent.constraints - child.constraints raise FederationHalt( f"hop {i}->{i+1}: constraint amplification; broker dropped " f"{sorted(c.key for c in dropped)} (child={_constraint_hash(child.constraints)}, " f"parent={_constraint_hash(parent.constraints)})" ) # 3. Root policy epoch must be recognized by the relying party. root = chain[-1] if root.policy_epoch not in trust_store.known_epochs: raise FederationHalt( f"root policy epoch {root.policy_epoch} unknown to relying party; " f"cannot prove terminal capability within accepted policy" ) # 4. Revocation freshness: a stale revocation view is a halt, not a warning. age = trust_store.now - trust_store.last_revocation_sync if age > trust_store.revocation_freshness_window: raise FederationHalt( f"revocation view stale by {age}s (window {trust_store.revocation_freshness_window}s)" ) return leaf.capability # --- demonstration of the observed failure --- if __name__ == "__main__": root = VerifiableCredential( issuer_did="did:orgA", subject_did="did:orgB:broker", capability="read:dataset/analytics", policy_epoch="P0", constraints=frozenset({Constraint("derived_export", False), Constraint("max_rows", 1000)}), expires_at=2_000_000_000, signature_valid=True, ) brokered = VerifiableCredential( issuer_did="did:orgB:broker", subject_did="did:orgC:runtime", capability="read:dataset/analytics", policy_epoch="P1", constraints=frozenset({Constraint("max_rows", 1000)}), # derived_export dropped expires_at=2_000_000_000, signature_valid=True, parent=root, ) store = TrustStore( known_epochs={"P0", "P2"}, last_revocation_sync=1_999_999_900, now=1_999_999_950, ) try: verify_brokered_chain(brokered, store) except FederationHalt as e: print(f"HALT: {e}") ```