# When must an instance re-attest its peer-issued trust score after a cross-domain A2A handoff, and what breaks if it doesn't **Date of Record:** 2026 November 29 **Scope:** Applies to A2A meshes where an agent's authorization to act on a task depends on a trust score *issued by a peer domain* (not its own home IdP), and where that score is cached locally to amortize attestation round-trips. Does not apply to single-domain meshes with a shared root of trust, nor to stateless request/response agents that carry no delegated authority across hops. ## Core Distinction The failure is not "the token expired." It is the distinction between **attestation validity** (is this peer's signature over this trust score cryptographically intact?) and **attestation currency** (does the issuer still assert this score, given facts that changed after issuance?). A federated trust score is a *signed claim about a peer's current behavior*, and it decays along a different axis than its signature does. Signatures are cheap to verify and rarely break. Currency breaks constantly, silently, and every cache in the mesh holds a stale copy that still verifies. The non-obvious part: the score is a *scalar* (e.g., `trust=0.82`) but its meaning is *conditional on a warrant chain* — the set of delegations, revocations, and domain-policy versions that were live at issuance time. When an agent caches `(peer_id → 0.82)` and reuses it after a handoff, it is reusing the number while discarding the conditions. The number is stable; the conditions are not. That gap is the boundary. ## What Was Observed A three-domain mesh — `alpha` (orchestrator), `beta` (tool executor), `gamma` (auditor) — passed a task baton `alpha → beta → gamma → alpha`. Each hop carried an A2A handoff envelope with the caller's `trust_score` for the callee, issued by the callee's home domain. Trace: 1. `alpha` resolves `beta`'s trust score from `beta`'s IdP: `0.91`, signed, valid for 3600s. `alpha` caches it. Task proceeds. 2. Mid-task, `beta`'s domain revokes a delegation that `beta` was relying on (a compromised sub-agent credential). `beta`'s IdP does **not** push revocation to peers — it only updates its own revocation list and bumps a `policy_version` counter. The previously issued score remains *signed and unexpired*. 3. `alpha` hands the baton to `gamma` with a warrant asserting "`beta` acted under trust ≥ 0.90." `gamma` replays `alpha`'s cached score, sees `0.91`, accepts. 4. `gamma` returns the baton to `alpha`. `alpha` re-verifies `beta`'s score *from cache* (still `0.91`, still signature-valid), and authorizes `beta` to write the final artifact. 5. `beta` — now operating without its revoked delegation — writes the artifact using a credential path that should have been blocked. No signature failed. No cache expired. Every check passed. The mesh's verification replay (`gamma` re-running the trace) reproduced the *same* accept decision, because replay used the same cached scores. The failure was invisible to replay by construction. ## Condition of Validity A cached peer trust score remains a valid basis for an authorization decision **only if all three hold simultaneously**: - **(a) Signature currency:** the issuing domain's signing key has not rotated or been revoked since issuance. (Cheap; almost always true.) - **(b) Policy currency:** the `policy_version` the issuer was running at issuance is still the issuer's current `policy_version`, *or* no entry in the delta between the two versions touches the delegation the score depends on. - **(c) Warrant currency:** every delegation edge in the chain that produced the score is still un-revoked *as observed by the issuer*, not merely un-expired by wall clock. The trap: (a) is what naive caches check. (b) and (c) are what actually break. A trust score is a *function of issuer state*, and the issuer's state changes without invalidating the signature. The invariant is: > **A cached trust score is a stale read of issuer state. It may be used for an authorization decision only across a handoff where the issuer's `policy_version` and the set of live delegation edges relevant to the score are unchanged since the read.** This is a *read-your-writes* consistency requirement across a security boundary — the same class of bug as a stale replica serving a just-revoked session, but here the "replica" is the peer's local cache and the "write" is a revocation the peer never hears about. ## Decision Boundary The boundary is crossed at the **handoff**, not at the request. Concretely, an instance must re-attest (force a fresh issuer read, bypassing cache) at any of these transitions: - **Crossing a domain boundary in the baton chain** — when the next hop's authorization depends on a score issued by a *third* domain, not the immediate caller. The immediate caller's cache is not authoritative for the third domain's current state. - **After any `policy_version` bump observed anywhere in the mesh** — even if the bump is on an unrelated domain, because delegation edges can span domains and a bump may have revoked a transitive edge. - **When the score is used to authorize a *state-mutating* action** (artifact write, credential use, external call), versus a read-only or idempotent one. Mutating actions require fresh currency; read-only actions can tolerate bounded staleness. - **When the previous hop's decision was itself based on a cached score** — staleness compounds along the chain, and the second-order cache is the dangerous one. It is *safe* to serve from cache when: single-domain, read-only action, and the issuer's `policy_version` is confirmed unchanged via a cheap lightweight probe (a version ping, not a full re-attest). ## Operational Effect Without the re-attestation boundary, three things happen: 1. **Revocation latency becomes unbounded by design.** The mesh's effective revocation window equals the cache TTL, not the issuer's revocation propagation time. An adversary who compromises a delegation and acts fast wins for the full TTL. 2. **Verification replay loses its power.** Replay reproduces accept decisions because it replays the same caches. The auditor's replay is *not* an independent check — it is a cache echo. This is the subtle one: the mesh believes it has verification, but replay and live execution share the stale state, so divergence never surfaces. 3. **Trust scores become monotonic in practice.** Because scores are only refreshed on TTL expiry and revocations don't push, a peer's effective trust *ratchets upward* — it can lose trust at the issuer and still be trusted by every cache in the mesh until TTL. The mesh's trust is the max over stale caches, not the issuer's current assertion. The guardrail is to make the trust score a *pointer* to issuer state rather than a *snapshot*: carry `(score, issuer_id, policy_version, delegation_edge_set_hash)` in the handoff envelope, and require the receiving instance to confirm `policy_version` and edge-set hash against the issuer before any mutating action. If confirmation is impossible (issuer unreachable), fail closed on mutating actions and degrade to read-only. The score is a claim; the version and edge-set hash are what make the claim *current*. ```python from dataclasses import dataclass from typing import Optional class StaleAttestationError(RuntimeError): """Raised when a cached peer trust score is used past its currency boundary.""" pass @dataclass(frozen=True) class TrustAttestation: peer_id: str issuer_id: str score: float policy_version: int delegation_edge_set_hash: str signature_valid: bool def authorize_mutation( attestation: TrustAttestation, issuer_current_policy_version: Optional[int], issuer_current_edge_hash: Optional[str], required_score: float, ) -> bool: # Signature currency is necessary but nowhere near sufficient. if not attestation.signature_valid: raise StaleAttestationError( f"signature invalid for peer {attestation.peer_id}" ) # If we cannot reach the issuer, we cannot confirm currency. # Fail closed on mutating actions rather than trust a snapshot. if issuer_current_policy_version is None or issuer_current_edge_hash is None: raise StaleAttestationError( f"issuer {attestation.issuer_id} unreachable; " f"cannot confirm currency of cached score for {attestation.peer_id}" ) # Policy currency: a version bump may have revoked a transitive delegation # edge the score depends on, without touching the signature. if attestation.policy_version != issuer_current_policy_version: raise StaleAttestationError( f"policy_version drift for {attestation.peer_id}: " f"attested {attestation.policy_version}, " f"issuer now {issuer_current_policy_version}" ) # Warrant currency: the delegation edge set that produced the score # must be unchanged. This is the check that catches silent revocation. if attestation.delegation_edge_set_hash != issuer_current_edge_hash: raise StaleAttestationError( f"delegation edge set changed for {attestation.peer_id} since attestation; " f"score {attestation.score} is a stale read of issuer state" ) if attestation.score < required_score: return False return True ```