# When must an instance refuse to dereference a federated agent trust anchor **Date of Record:** 2026 November 23 **Scope:** Applies to cross-org agent federation where an agent presents a verifiable trust anchor (signed credential chain) plus reputation attestations issued by third-party orgs, and the receiving instance must decide whether to admit, dereference, or reject the anchor. Does not apply to single-org deployments, to purely symmetric key exchanges, or to cases where the anchor is a self-signed root already pinned in the local trust store. ## Core Distinction The non-obvious boundary is not "is this anchor valid?" but "is this anchor *dereferenceable at admission time* without creating an unbounded trust expansion?" A signature-valid anchor can be cryptographically sound and yet still be inadmissible because dereferencing it would require the receiver to transitively trust an org it has no independent basis to trust, or would require a reputation attestation whose issuer set is itself only reachable through the anchor being evaluated. Concretely: the failure mode is **anchor-anchored reputation circularity**. Org A issues a trust anchor for agent `ag-1`. Org B attests `ag-1`'s reputation. The receiving instance C wants to verify B's attestation, which names A as the authority for `ag-1`'s identity — and A's authority statement is itself only verified via B's countersignature. The chain is valid in the signature sense and invalid in the trust-extension sense: C is being asked to accept a fixed point that A and B jointly manufactured. Dereferencing it silently grants A and B mutual authority over C's admission policy. ## What Was Observed In a federation of three orgs (A, B, C) running agent gateways with signed-anchor admission, a batch of `ag-*` identities presented anchors of the form `A → ag-1`, with reputation attestations `B → (ag-1, score)`. C's verifier resolved the attestation by fetching A's identity document, which carried a `countersigned_by: B` field. C's verifier then re-verified B's attestation against A's document. Verification terminated because the verifier memoized the pair, not because the trust graph was acyclic. The result: C admitted a set of agents whose effective authority derived from a two-node cycle A↔B, with C as the only party not in the cycle. C's admission log recorded `anchor_valid=true, reputation_verified=true, cycle_detected=false`. The invariant that was violated is: **for any admission decision, the set of orgs whose signatures are load-bearing must be acyclic under the "authority-for" relation, and must not contain the receiving instance's own policy dependencies.** The cycle detector was checking key-material cycles, not authority cycles. These are different graphs. ## Condition of Validity The refusal rule holds under these conditions: 1. The receiver maintains a local, append-only admission policy that names which orgs it will accept as *identity authorities* and which as *reputation issuers*. If these sets are not disjoint for a given agent, the anchor is inadmissible unless the receiver has an out-of-band basis for the intersection. 2. Reputation attestations are treated as *claims about behavior*, not *claims about identity*. An attestation that smuggles in an identity-authority assertion (e.g., a `subject_authority` field, a countersignature over the identity document, or a key-binding statement) must be rejected as out-of-scope for the reputation channel. 3. The receiver's verifier tracks the authority relation as a directed graph over org identifiers and refuses to admit if the transitive closure of load-bearing signatures intersects the receiver's own policy-named authorities in a cycle of length ≥ 2. The rule does **not** hold when the receiver has already out-of-band pinned the intersection (e.g., a pre-existing federation agreement naming A and B as jointly authoritative for a namespace). In that case the cycle is intentional and should be admitted with the cycle flagged in the audit record. ## Decision Boundary The boundary is between **dereference-and-verify** and **refuse-and-request-out-of-band**. A receiver should refuse when: - The authority graph over load-bearing orgs contains a cycle of length ≥ 2, **and** - The receiver has no pre-registered joint-authority record covering that cycle, **and** - The anchor's validity window overlaps the attestation's validity window in a way that makes the mutual countersignature load-bearing (i.e., removing either signature invalidates admission). A receiver should dereference when the cycle is broken by a signature from an org outside the cycle whose authority the receiver independently trusts, or when the cycle is covered by a pre-registered joint-authority record. The boundary is sharp: the presence of a single external, independently-trusted signature that is load-bearing for both legs collapses the cycle and restores admissibility. ## Operational Effect Refusing at this boundary converts a silent trust-expansion into an explicit out-of-band negotiation. The operational cost is a latency spike on first contact (the receiver must request a joint-authority record or an external countersignature) and a persistent audit obligation (the cycle, once admitted, must be re-checked on every anchor refresh, because the joint-authority record can be revoked independently of the anchor). The operational benefit is that the receiver's admission policy remains a function of its own named authorities, not of the federation's internal graph topology. The failure to refuse is not detectable after the fact by signature verification — the signatures are valid. It is only detectable by replaying the authority graph. Receivers that skip the graph check will admit cycle-derived agents and will not know it until an org in the cycle revokes, at which point the admitted agents' authority retroactively becomes unfounded and the receiver must re-evaluate every agent admitted under that cycle. ```python from dataclasses import dataclass, field from typing import Iterable class AuthorityCycleError(RuntimeError): """Raised when a federated anchor's load-bearing signature set forms an authority cycle.""" @dataclass(frozen=True) class Anchor: subject: str identity_authority: str countersigned_by: tuple[str, ...] = field(default_factory=tuple) @dataclass(frozen=True) class Attestation: subject: str issuer: str claims_identity_authority: bool = False def _authority_edges(anchor: Anchor, attestations: Iterable[Attestation]) -> dict[str, set[str]]: edges: dict[str, set[str]] = {anchor.identity_authority: set()} for att in attestations: if att.subject != anchor.subject: continue edges.setdefault(att.issuer, set()) # An attestation that asserts identity authority is out-of-scope for the # reputation channel and must not be used to close a trust cycle. if att.claims_identity_authority: edges[att.issuer].add(anchor.identity_authority) for co in anchor.countersigned_by: edges.setdefault(co, set()) edges[co].add(att.issuer) return edges def _has_cycle(edges: dict[str, set[str]]) -> bool: WHITE, GREY, BLACK = 0, 1, 2 color: dict[str, int] = {n: WHITE for n in edges} def visit(n: str) -> bool: color[n] = GREY for m in edges.get(n, ()): if color.get(m, WHITE) == GREY: return True if color.get(m, WHITE) == WHITE and visit(m): return True color[n] = BLACK return False return any(color[n] == WHITE and visit(n) for n in list(edges)) def admit( anchor: Anchor, attestations: Iterable[Attestation], *, joint_authority_records: frozenset[tuple[str, str]] = frozenset(), ) -> bool: edges = _authority_edges(anchor, attestations) if not _has_cycle(edges): return True # A cycle is admissible only if a pre-registered joint-authority record # covers every edge in the cycle. We approximate coverage by checking the # unordered pair of the anchor's authority and each countersigner. pairs = { frozenset((anchor.identity_authority, co)) for co in anchor.countersigned_by } covered = all( frozenset(p) in {frozenset(r) for r in joint_authority_records} for p in pairs ) if covered: return True raise AuthorityCycleError( f"anchor for {anchor.subject!r} forms an authority cycle over " f"{sorted(edges)} with no covering joint-authority record; " f"refusing dereference" ) ```