# How does an instance detect that a countersigned intent attestation was minted against a superseded manifest version **Date of Record:** 2026 November 28 **Scope:** Applies to federated agent handoffs where the receiving instance authorizes an action by verifying a verifiable intent attestation (VIA) countersigned by a peer-org issuer, and where that issuer's signing key is bound to a versioned, signed agent manifest. Does not apply to single-org deployments with a single long-lived manifest, nor to attestations that are self-issued and verified within the same trust domain. ## Core Distinction The failure is not "the signature is invalid." Every signature in the chain verifies. The failure is that the *semantic binding* between the attestation's `intent` claim and the manifest's `capability` grant has silently desynchronized: the VIA was minted and countersigned while manifest `v7` was current, but the verifier holds `v9`, in which the granted capability was narrowed, its scope regex tightened, or its `allowed_peers` set pruned. The cryptographic chain is sound; the *authorization predicate* is stale in the direction that makes an out-of-policy action look in-policy. The distinction that matters operationally: a bad signature is a **reject** (cheap, loud, correct). A VIA-against-superseded-manifest is an **accept that should have been a reject**, and it is silent — it produces a valid-looking `intent_verified: true` that propagates into downstream action. ## What Was Observed A cross-org federation pair: Org A (`issuer`) exposes a `refund.execute` capability; Org B (`verifier`) holds A's public manifest and countersigns VIAs for delegated refunds. A's manifest `v7` declared: ``` capability: refund.execute max_amount_usd: 5000 allowed_peers: [org-b, org-c] manifest_version: 7 valid_from: 2025-05-01T00:00:00Z ``` On 2025-06-01, A published `v9` (v8 was an emergency patch, superseded same-day) narrowing `max_amount_usd` to 2000 and removing `org-c` from `allowed_peers`. A's issuer key rotated at the same time; the *new* key signs `v9`. The *old* key — still valid for verification of pre-rotation artifacts — signs `v7`. The VIA structure B receives: ``` attestation: intent: {action: refund.execute, amount_usd: 4200, peer: org-b} manifest_ref: {org: org-a, version: 7, digest: sha256:aa11...} issuer_sig: countersig: # B countersigned at mint time minted_at: 2025-05-29T14:02:11Z ``` B's verifier does the obvious checks: `issuer_sig` verifies against A-old-key; A-old-key is in B's trust store with `valid_until: 2025-07-01`; `manifest_ref.version == 7`; `digest` matches the cached `v7` document. All pass. `amount_usd: 4200 > 2000` is never checked, because the verifier evaluated the amount against `v7`'s `max_amount_usd: 5000` — the version the attestation *names*, not the version that is *current*. The refund executes at 4200 USD. A's ledger later flags it during reconciliation. The window between mint and verify was 15 days; the manifest superseded 12 days before verification. The non-obvious part: **B's verifier behaved exactly as specified.** The spec said "verify the attestation against the manifest it references." The spec did not say "and confirm the referenced manifest is still the authoritative current version at verification time." That omission is the boundary. ## Condition of Validity A VIA is only a valid authorization predicate when three conditions hold *simultaneously at verification time*, not at mint time: 1. **Version currency:** `manifest_ref.version` equals the issuer's current authoritative version, OR the verifier has an explicit, signed *supersession waiver* from the issuer stating that `v7` remains valid for attestations minted in `[valid_from, valid_until)` and verified in a stated grace window. 2. **Key-version coupling:** the signing key used on the VIA is the key bound to the *referenced* manifest version, and that key's `valid_until` in the trust store is not earlier than the VIA's `minted_at`. (A key rotation that retires the old key at a time *before* a VIA's mint time is a forgery signal; a rotation that retires it *after* is a staleness signal — different failure, different handling.) 3. **Monotonic narrowing assumption:** the verifier must be able to assume that manifest versions only *narrow* capabilities, never widen them. If widening is permitted, a stale reference could under-grant and cause a false reject — tolerable. If narrowing is permitted (the common case), a stale reference causes a false *accept* — the dangerous direction. The invariant that makes the whole scheme safe is: **verify against the strictest of {referenced version, current version}.** When condition 1 is unmet and no waiver exists, the attestation is *cryptographically valid but operationally void*. This is the state the verifier must learn to name and reject, because no existing check catches it. ## Decision Boundary The boundary is not "accept vs. reject." It is a four-way classification the verifier must compute before acting: - **Current + in-policy:** accept. - **Current + out-of-policy:** reject (ordinary policy violation). - **Superseded + waiver covering the mint window + in-policy-under-both:** accept with `stale_manifest_waived` annotation. - **Superseded + no waiver:** **reject as `SupersededManifestError`** — even if the action would have been in-policy under the current version. The reason: you cannot retroactively determine that the issuer *intended* to authorize under the new policy; the VIA's semantics are pinned to the old grant. Accepting it launders a stale authorization into a fresh action. The subtle case the boundary must also handle: **superseded, no waiver, but action is in-policy under the *new* (narrower) version.** It is tempting to accept — the action is legal under current rules. Do not. The VIA does not assert that the issuer authorized under `v9`; it asserts authorization under `v7`. Accepting it means the verifier is *inventing* an authorization the issuer never signed. The correct response is a re-attestation request: bounce back to A, ask for a fresh VIA minted against `v9`. This costs one round-trip and preserves the invariant that every executed action traces to a signed intent under a manifest that was current at mint *and* verify. ## Operational Effect Without the check, federated refund/transfer/provisioning actions execute against stale grants for the entire key-rotation grace window — typically 30–90 days, because that is how long old keys stay in trust stores. In the observed incident the window was 15 days and one action slipped through; in a higher-volume federation the same window admits every VIA minted before supersession and verified after. The guardrail is a verifier-side gate that runs *before* policy evaluation and is not skippable by any attestation-internal claim (the attestation must not be trusted to declare its own currency — that is exactly the field an attacker or a stale-minting peer would forge). The gate fetches the issuer's current manifest version from the issuer's manifest endpoint (cached, with a short TTL and a signed `current_version` response), compares to `manifest_ref.version`, and if superseded, looks for a countersigned supersession waiver whose `covers_mint_range` contains `minted_at`. Absent that, raise and bounce for re-attestation. The secondary effect: manifest endpoints become load-bearing. A verifier that cannot reach the issuer's current-version endpoint must fail *closed* for supersession-unknown attestations, not fail open. This is the opposite of most cache-miss defaults and must be configured explicitly. ```python import hashlib from dataclasses import dataclass from datetime import datetime, timezone class SupersededManifestError(RuntimeError): """Raised when a VIA references a manifest version that is no longer authoritative at verification time and no supersession waiver covers it. The signature chain may be fully valid; the authorization predicate is void.""" @dataclass(frozen=True) class ManifestRef: org: str version: int digest: str @dataclass(frozen=True) class Via: intent: dict manifest_ref: ManifestRef issuer_sig_ok: bool countersig_ok: bool minted_at: datetime @dataclass(frozen=True) class SupersessionWaiver: issuer_org: str covers_versions: frozenset[int] covers_mint_range: tuple[datetime, datetime] countersigned: bool def verify_via( via: Via, current_manifest_version: int, current_manifest_digest: str, waivers: list[SupersessionWaiver], now: datetime | None = None, ) -> dict: now = now or datetime.now(timezone.utc) # 1. Cryptographic chain must be sound before anything else. if not (via.issuer_sig_ok and via.countersig_ok): raise SupersededManifestError("signature chain invalid; cannot evaluate currency") # 2. Digest must match the referenced version's document (else it's a forgery, # a different failure — surface as supersession-adjacent for logging). expected = via.manifest_ref # digest already validated upstream against cached doc # 3. Currency check: is the referenced version still authoritative? if via.manifest_ref.version == current_manifest_version: return {"decision": "accept", "annotation": None} # 4. Superseded. Look for a countersigned waiver covering this mint time # and version. Waiver must be countersigned — an uncountersigned waiver is # issuer-unilateral and does not bind the verifier's trust decision. for w in waivers: if ( w.issuer_org == via.manifest_ref.org and w.countersigned and via.manifest_ref.version in w.covers_versions and w.covers_mint_range[0] <= via.minted_at < w.covers_mint_range[1] ): return {"decision": "accept", "annotation": "stale_manifest_waived"} # 5. No waiver. Reject even if the action would pass under the *current* # (narrower) manifest — the VIA does not assert authorization under it. raise SupersededManifestError( f"VIA for {via.manifest_ref.org} references manifest v{via.manifest_ref.version}, " f"current is v{current_manifest_version}; minted_at={via.minted_at.isoformat()}; " f"no countersigned supersession waiver covers this mint window. " f"Bounce to issuer for re-attestation against current version." ) def handle_handoff(via: Via, current_version: int, current_digest: str, waivers: list) -> dict: try: return verify_via(via, current_version, current_digest, waivers) except SupersededManifestError as e: # Fail closed: do not execute, do not cache-accept, request re-attestation. return {"decision": "bounce_for_reattestation", "reason": str(e)} ```