# Under what conditions must an instance reject a delegated AAIF credential whose trust anchor resolves to a valid-but-stale reputation epoch **Date of Record:** 2026 November 24 **Scope:** Applies to any agent instance validating an Agent Authority & Identity Framework (AAIF) verifiable credential (VC) presented as a delegation warrant, where the credential's `reputationAnchor` references a reputation epoch issued by a cross-domain trust anchor (CDTA). Does not apply to self-signed capability tokens, intra-domain session tokens, or credentials whose anchor is a direct root with no epoch indirection. ## Core Distinction The failure is not signature invalidity and not anchor revocation. Both of those are trivially caught by standard VC verification. The boundary condition is subtler: the credential's signature chain is *cryptographically intact*, the CDTA root is *present in the trust store and unexpired*, and the referenced reputation epoch *exists and was validly signed* — yet the epoch has been **superseded by a later epoch that lowered the subject's reputation below the delegation threshold**, and the delegating party presented the older epoch because it has not yet synchronized with the anchor's epoch rotation. In other words: the credential is valid against the *state of the world at epoch N*, but the anchor is now at epoch N+1, and the difference between N and N+1 is precisely the information the credential is being used to suppress. The instance must treat "valid signature over stale epoch" as a **distinct rejection class**, not as a pass, because the whole point of epoch indirection in AAIF is to let anchors retract reputation without revoking the underlying key material (revocation is expensive and noisy; epoch rotation is cheap and quiet). ## What Was Observed A three-agent delegation chain — orchestrator `O` delegating a `payment.initiate` capability to worker `W`, which sub-delegates a narrowed `payment.quote` capability to auditor `A` — presented credentials where `W`'s warrant carried `reputationAnchor: {cdta: "anchor.eu-1", epoch: 4471}`. The CDTA `anchor.eu-1` was at epoch 4473 at the time of presentation. Epoch 4472 had demoted `W` from `tier-2` to `tier-1` following a cross-domain incident report; epoch 4473 had left it at `tier-1`. The delegation threshold for `payment.initiate` was `tier-2`. Standard VC verification passed: signatures valid, root unexpired, epoch 4471's Merkle proof verified against the anchor's published epoch-4471 root. The credential was accepted. `W` executed `payment.initiate` for 40 minutes before a downstream reconciliation job noticed the tier mismatch and halted the chain. During those 40 minutes, `A`'s sub-delegation inherited `W`'s stale tier claim transitively — the auditor's capability was narrowed in *scope* but not re-checked in *authority*, so the entire sub-tree carried the demoted reputation forward. The trace: 1. `O` resolves `anchor.eu-1` → fetches latest epoch metadata → sees 4473. 2. `O` validates `W`'s credential against `epoch: 4471` as embedded in the VC — **does not compare embedded epoch to resolved latest epoch**. 3. VC signature verifies against epoch-4471 root (which the anchor still publishes for historical proof). 4. `O` issues a sub-warrant to `W` carrying `delegatedTier: tier-2` (copied from the stale claim). 5. `W` presents sub-warrant to `A`; `A` re-verifies against the *same* embedded epoch 4471; passes. 6. Capability executes under a tier claim that the anchor has already retracted. The invariant that was violated: **an AAIF credential's embedded reputation epoch is a claim about the past, not a license for the present.** Verification must be a two-step: (a) is the credential valid against its embedded epoch, and (b) is the embedded epoch the anchor's *current* epoch, or if not, does the anchor's epoch-rotation policy permit the gap? ## Condition of Validity The rejection rule is not "reject any credential whose embedded epoch ≠ current epoch." That would break every legitimate in-flight delegation during normal rotation cadence (anchors rotate on a fixed interval, typically hourly, and credentials issued minutes before rotation are legitimately valid). The precise condition under which the instance must reject is: > Reject if `embeddedEpoch < currentEpoch` **and** the anchor's epoch-rotation policy for the interval `(embeddedEpoch, currentEpoch]` contains at least one epoch whose `tierDelta` for the subject's identity is negative **and** the credential's claimed tier exceeds the subject's tier at `currentEpoch`. Three conjuncts, all required: - **Staleness** (`embeddedEpoch < currentEpoch`): the credential predates the anchor's current view. - **Adverse delta** (`∃ epoch in gap with negative tierDelta`): rotation was not benign — something changed that the delegator may be trying to launder. - **Threshold breach** (`claimedTier > currentTier`): the delta actually crosses the capability's authorization threshold. A tier drop from `tier-3` to `tier-2` on a `tier-1`-threshold capability is irrelevant; the same drop on a `tier-2`-threshold capability is the failure. If any conjunct is false, the credential is accepted under normal staleness tolerance. This is the Decision Boundary below. The gap must be bounded: anchors publish a `maxStaleness` field (typically 2–4 rotation intervals). A credential whose embedded epoch is more than `maxStaleness` behind `currentEpoch` is rejected unconditionally, regardless of delta sign, because the anchor's retention window for historical epoch roots has likely expired and the instance cannot even verify the adverse-delta conjunct reliably. ## Decision Boundary The boundary is between **benign staleness** and **adverse staleness**, and it cannot be resolved by inspecting the credential alone. The credential is a snapshot; the adverse-delta information lives only in the anchor's epoch history. This is the operational trap: an instance that validates credentials in isolation (common in low-latency paths where the anchor round-trip is avoided) will pass every credential that a fully-synchronized instance would reject. The validator's correctness is therefore a function of its **epoch-sync recency relative to the anchor's rotation cadence**, not of its cryptographic rigor. Two concrete guardrails: 1. **Epoch-delta fetch on every cross-domain delegation.** When a credential's `reputationAnchor.cdta` differs from the validator's own domain, the validator must fetch the anchor's epoch-delta summary for `(embeddedEpoch, currentEpoch]` — a small signed object listing per-subject `tierDelta` per epoch, not the full epoch contents. This is O(gap size) in metadata, not O(subject count), and is cacheable with a TTL equal to the anchor's rotation interval. 2. **Transitive tier re-derivation, not inheritance.** When `O` issues a sub-warrant to `W`, it must set `delegatedTier = min(O.tier, W.tier_at_currentEpoch)` — re-deriving `W`'s tier at the current epoch, not copying the tier claim from `W`'s presented credential. The sub-warrant's embedded epoch must be the *current* epoch, so that `A`'s later verification of the sub-warrant has no adverse-delta gap to traverse. The second guardrail is the one that actually closes the observed failure. The first guardrail catches it at `O`; the second prevents `A` from ever seeing a stale claim, even if `O`'s sync is behind. ## Operational Effect Instances that implement only signature-and-root verification will exhibit a characteristic failure signature: **capability execution proceeds under a retracted reputation claim for the duration of the anchor's rotation interval**, bounded above by `maxStaleness × rotationInterval`. Downstream reconciliation (tier-mismatch jobs, post-hoc audit) will catch it, but only after the capability has executed. For read-only capabilities this is a monitoring nuisance; for state-mutating capabilities (`payment.initiate`, `data.export`, `identity.rotate`) it is an unbounded-blast-radius event whose window is set by anchor policy, not by the validator. Instances that implement the two-step verification with epoch-delta fetch and transitive re-derivation will reject the credential at step (b) with a distinguishable error class, allowing the delegating party to re-request a fresh credential from the anchor rather than retrying the stale one. The re-request path is the correct recovery: the anchor will issue a credential against `currentEpoch`, and if the subject's tier at `currentEpoch` is below threshold, the re-request fails at issuance — which is the anchor's job, not the validator's. The invariant to encode: **a reputation epoch embedded in a credential is a lower bound on the anchor's knowledge, never an upper bound.** Validation must always reconcile the embedded epoch against the anchor's current view before the credential is used to authorize anything whose threshold it might cross. ```python class StaleReputationEpochError(RuntimeError): """Raised when an AAIF credential's embedded reputation epoch is stale in an adverse direction relative to the anchor's current epoch, and the claimed tier exceeds the subject's tier at the current epoch.""" def __init__(self, subject: str, embedded_epoch: int, current_epoch: int, claimed_tier: str, current_tier: str, anchor: str): self.subject = subject self.embedded_epoch = embedded_epoch self.current_epoch = current_epoch self.claimed_tier = claimed_tier self.current_tier = current_tier self.anchor = anchor super().__init__( f"stale adverse epoch for {subject}@{anchor}: " f"embedded={embedded_epoch} current={current_epoch} " f"claimed={claimed_tier} actual={current_tier}" ) TIER_ORDER = {"tier-0": 0, "tier-1": 1, "tier-2": 2, "tier-3": 3} def validate_delegated_credential( credential: dict, anchor_view: dict, # {current_epoch, max_staleness, tier_at_current, delta_summary} capability_threshold: str, ) -> None: """ Enforce the two-step AAIF validation: (a) credential valid against its embedded epoch (assumed pre-checked by caller), (b) embedded epoch reconciled against anchor's current view. Raises StaleReputationEpochError when the adverse-delta conjunct holds. """ embedded = credential["reputationAnchor"]["epoch"] subject = credential["subject"] claimed_tier = credential["delegatedTier"] anchor = credential["reputationAnchor"]["cdta"] current = anchor_view["current_epoch"] max_staleness = anchor_view["max_staleness"] # Unconditional rejection: gap exceeds retention window. if current - embedded > max_staleness: raise StaleReputationEpochError( subject, embedded, current, claimed_tier, anchor_view["tier_at_current"], anchor, ) # Benign staleness: embedded == current, accept. if embedded == current: return # Adverse-delta conjunct: any negative tierDelta in (embedded, current]. adverse = any( TIER_ORDER[d["tier_after"]] < TIER_ORDER[d["tier_before"]] for d in anchor_view["delta_summary"] if embedded < d["epoch"] <= current ) if not adverse: return # benign rotation; credential remains valid under tolerance # Threshold-breach conjunct: claimed tier exceeds current tier AND # claimed tier meets or exceeds the capability's authorization threshold. if ( TIER_ORDER[claimed_tier] > TIER_ORDER[anchor_view["tier_at_current"]] and TIER_ORDER[claimed_tier] >= TIER_ORDER[capability_threshold] ): raise StaleReputationEpochError( subject, embedded, current, claimed_tier, anchor_view["tier_at_current"], anchor, ) ```