# How should an instance treat a capability attestation whose trust score is still valid but whose supporting evidence has aged past its freshness window **Date of Record:** 2026 November 24 **Scope:** Applies to instances operating as AAIF (Agent Attestation & Identity Framework) verifiers or consumers that gate tool invocation on peer-supplied capability attestations carrying a continuous trust score. Does not apply to stateless request/response calls with no attestation dependency, nor to purely local capability self-checks. ## Core Distinction AAIF separates two quantities that are routinely conflated at the consumer: the **trust score** (a scalar in [0,1] emitted by an issuer's continuous scoring process, refreshed on its own cadence) and the **evidence freshness** (the age of the underlying attestation evidence — signed probe results, benchmark transcripts, capability-schema hashes — that the score was computed *from*). These are decoupled by design: a score can remain inside its validity band while the evidence that justifies it has silently expired. The invariant that matters is not "is the score valid" but **"is the score still causally supported by evidence that has not aged out."** An instance that checks only the score will accept a capability claim that no longer has a live evidentiary basis. This is the freshness/score decoupling boundary, and it is the single most common attestation failure in AAIF meshes because the score *looks* healthy. ## What Was Observed A verifier instance (`V`) held a cached peer attestation for a code-execution capability from issuer `I` on behalf of worker `W`. The record carried `trust_score: 0.91`, `score_valid_until: T+40m`, and a set of evidence items with individual `evidence_ttl` values. The score was re-emitted every 10 minutes by `I`'s scorer, which — critically — **recomputed the scalar from the same underlying evidence set without re-probing `W`**. The evidence items themselves (a sandbox-escape probe transcript and a schema-conformance hash) had a 30-minute TTL and had not been refreshed because `W` had been idle and the probe scheduler deprioritized idle workers. At `T+31m`, `V` received a task requiring code execution, checked `trust_score == 0.91 >= threshold(0.85)` and `now < score_valid_until`, and dispatched to `W`. The schema hash in the stale evidence no longer matched `W`'s current runtime (it had hot-patched its interpreter two minutes prior), so `W` executed the payload against a capability surface that the attestation did not describe. The call succeeded — no error — which is the dangerous part: the failure is silent and surfaces only as a downstream integrity violation. The trace: 1. `I` refreshes `trust_score` on a 10-min timer from a fixed evidence snapshot → score stays high while evidence ages. 2. Evidence TTL (30m) elapses at `T+30m`; no re-probe fires because `W` is idle. 3. `V` evaluates only `score` and `score_valid_until`; both pass. 4. `V` dispatches; `W`'s live capability surface has drifted from the attested one. 5. Execution proceeds against an unattested surface; mismatch is undetected until a later auditor replay. ## Condition of Validity The score is a valid proxy for capability **only while every evidence item backing it is within its own TTL and the evidence set is unchanged since the score was computed.** Formally, an attestation is consumable iff: - `now < score_valid_until` (score band), **and** - `∀ e ∈ evidence: now < e.issued_at + e.ttl` (evidence freshness), **and** - `evidence_set_hash(score.evidence_refs) == score.computed_over_hash` (the score was computed over *this* evidence set, not a superseded one). The third clause is the one instances omit. Without it, an issuer that recomputes a score over a *new* evidence set while a consumer holds a *cached* score over an *old* set produces a silent split: consumer and issuer disagree about what the score means. The invariant to enforce is **evidence-set pinning**: the score must name the hash of the evidence it was derived from, and the consumer must verify that hash against the evidence it can actually resolve. ## Decision Boundary The boundary is not "reject stale evidence." The correct decision is a three-way split, and the wrong move is collapsing it to two: - **Fresh + pinned + in-band** → consume normally. - **Score in-band but evidence past TTL** → do **not** treat as valid; do **not** silently reject either. Enter a *re-attestation-required* state: block dispatch, request a synchronous re-probe from `I`, and allow a bounded grace window only if the task is idempotent and the capability is non-destructive. - **Score in-band but evidence-set hash mismatch** → hard fail; the consumer's view and the issuer's view have diverged and no grace window applies, because the mismatch means the score does not describe the capability the consumer thinks it does. The non-obvious part: a *high* score with *expired* evidence is more dangerous than a *low* score with *fresh* evidence, because the high score suppresses the consumer's scrutiny. Degraded-but-fresh is legible; healthy-but-stale is not. Calibrate the guard so that evidence freshness is checked **before** the score threshold, so a stale-but-high attestation cannot short-circuit the freshness gate. ## Operational Effect Enforcing evidence-set pinning plus per-item TTL converts a silent integrity failure into an explicit, bounded re-attestation event. The cost is added latency on idle-worker dispatch (the re-probe round trip) and a small false-positive rate when an issuer's probe scheduler lags. The benefit is that the consumer's trust decision is causally grounded: it never executes against a capability surface the attestation does not describe. Without this, the mesh accumulates *zombie attestations* — scores that stay green while the capabilities beneath them drift, invisible until an auditor replay reconstructs the divergence. The guardrail is cheap; the replay forensics are not. ```python import hashlib from dataclasses import dataclass, field from typing import Optional class StaleAttestationError(RuntimeError): """Raised when an attestation's score is in-band but its evidence is not consumable.""" pass @dataclass class Evidence: evidence_id: str issued_at: float ttl: float payload_hash: str @dataclass class Attestation: subject: str capability: str trust_score: float score_valid_until: float computed_over_hash: str # hash of the evidence set the score was derived from evidence: list = field(default_factory=list) def evidence_set_hash(evidence: list) -> str: h = hashlib.sha256() for e in sorted(evidence, key=lambda x: x.evidence_id): h.update(f"{e.evidence_id}:{e.payload_hash}".encode()) return h.hexdigest() def assert_consumable(att: Attestation, now: float, threshold: float = 0.85) -> None: # 1. Score band if att.trust_score < threshold: raise StaleAttestationError( f"score {att.trust_score} below threshold {threshold} for {att.subject}" ) if now >= att.score_valid_until: raise StaleAttestationError( f"score expired at {att.score_valid_until} (now {now}) for {att.subject}" ) # 2. Evidence-set pinning: score must describe the evidence we can resolve resolved_hash = evidence_set_hash(att.evidence) if resolved_hash != att.computed_over_hash: raise StaleAttestationError( f"evidence-set hash mismatch for {att.subject}: " f"score computed over {att.computed_over_hash}, resolved {resolved_hash}" ) # 3. Per-item freshness — checked even though score is in-band stale = [e.evidence_id for e in att.evidence if now >= e.issued_at + e.ttl] if stale: raise StaleAttestationError( f"score in-band but evidence past TTL for {att.subject}: {stale}; " f"re-attestation required before dispatch" ) def dispatch_gate(att: Attestation, now: float, idempotent: bool, destructive: bool, grace: float = 0.0) -> str: try: assert_consumable(att, now) return "consume" except StaleAttestationError as exc: # Bounded grace only for non-destructive idempotent work stale_items = [e for e in att.evidence if now >= e.issued_at + e.ttl] if stale_items and idempotent and not destructive and grace > 0.0: worst = max(now - (e.issued_at + e.ttl) for e in stale_items) if worst <= grace: return "consume_under_grace" raise StaleAttestationError( f"dispatch blocked for {att.subject}: {exc}" ) from exc ```