# Roadmap

> Every page of this site: /visado/llms.txt

The North Star is a vendor-neutral, conformance-tested reference implementation of the WIMSE AIMS composition at the enforcement point, in a neutral home (CNCF Sandbox). Each phase has a gate that must be green before the next one starts. Re-check every **Status** line against the code whenever this file is reviewed.

Dates target IETF 128 (Kuala Lumpur, 2027-03-06 to 03-12; hackathon dates not yet confirmed) and KubeCon + CloudNativeCon Europe (Barcelona, 2027-03-15 to 03-18).

## Phase 0: Foundation

- Cargo workspace, Apache-2.0, governance files, CI (fmt, clippy `-D warnings`, test, cargo-deny, DCO), OpenSSF Scorecard, `SPEC-MAP.md` with pinned draft revisions.
- **Gate:** CI green; every hygiene file in place.
- **Status:** met.

## Phase 1: Transaction Tokens (`txn-token`)

- Mint, verify and replace Txn-Tokens per draft-ietf-oauth-transaction-tokens-11. Conformance vectors with negative cases.
- **Gate:** vectors pass, and replacement rules (`txn`/`sub`/`aud` fixed, scope never widens, expired tokens refused) fail closed.
- **Status:** met. `visado-txn-token` with 7 valid and 27 negative vectors in `conformance/txn-token/`.

## Phase 2: ext_authz and caller authentication

- `tonic` ext_authz server. Credential verifiers for WIT+WPT, WIT+HTTP-sig and mTLS (via `wimsey`), JWT-SVID, and OAuth access tokens (RS256/ES256, DPoP).
- **Gate:** Envoy integration test admits valid callers, rejects each negative case with its reason code, and injects a Txn-Token.
- **Status:** met. The ext_authz service and caller authentication by WIT+WPT, WIT+HTTP signature, mTLS with an X.509-SVID, JWT-SVID and OAuth access tokens (RS256, PS256, ES256 and EdDSA), bearer or DPoP-bound (RFC 9449, with optional resource server nonces), are in, with tests against the gate and the gRPC handler. `deploy/lab` runs them behind a real Envoy in CI: it admits a caller of every method (WIT+WPT, WIT+HTTP signature, mTLS and JWT-SVIDs issued by SPIRE, a bearer access token, and a DPoP-bound one after the `use_dpop_nonce` retry), checks visado's reason code on every denial visado decides, and checks that the upstream receives the minted Txn-Token, which the next hop forwards.

## Phase 3: Delegation chains

- `NormalizedChain`, the invariant engine and the authority algebra. AAT-02 decoder, then asor-03, then the RFC 8693 `act` adapter.
- **Gate:** all 229 published AAT vectors and the 36 asor-03 vectors pass.
- **Status:** met. `visado-chain` (the normalized model, the format-neutral invariant engine and the `AuthorityAlgebra` registry), `visado-chain-aat` (§8 verification, 229/229 AAT vectors at the expected step), `visado-chain-asor` (§6 verification with DPoP and Token Status Lists, 36/36 asor-03 vectors with the expected outcome and 27 own status list vectors) and `visado-chain-act` (the RFC 8693 `act` claim of a verified access token, with the current actor bound to the caller; 20 own vectors) are in, each format crate with the authority algebra of its type. The ext_authz gate enforces all three formats and runs every chain through the engine after the format's checks; the engine agrees with every AAT, asor and act vector and has 39 own vectors in `conformance/chain-invariants/`.

## Phase 4: AuthZEN

- AuthZEN 1.0 client, the agent-and-principal profile, discovery, fail-closed handling.
- **Gate:** end to end against OPA with the AuthZEN plugin and one other PDP.
- **Status:** met. The client and the agent profile run end to end in `deploy/lab` against OPA with the AuthZEN plugin and against Cerbos, which serves AuthZEN 1.0 itself; CI runs the lab's checks against both. Cerbos does not pass `context` to the policy, so the Cerbos lab sets `[pdp] context_in_subject`.

## Phase 5: Lab, visibility and demos

- `deploy/aims-lab`: Dex (ID-JAG), Keycloak (Resource AS), SPIRE (WIT-SVID), Envoy and agentgateway, two agents and an MCP server.
- Chain view UI, OpenTelemetry spans, and the audit record.
- Four attack demos: three that visado stops and one that it does not.
- **Gate:** `docker compose up` reproduces every demo from a clean checkout.
- **Status:** met. `deploy/lab` (Envoy with a plain and an mTLS listener, agentgateway, visado, OPA with the AuthZEN plugin or Cerbos as the PDP, Keycloak 26.8.2 as the resource authorization server issuing bearer and DPoP-bound access tokens, redeeming ID-JAGs from Casdoor v4.26.0 and issuing RFC 8693 `act` tokens for agent-a acting for a user, an echo upstream, SPIRE issuing WIT-SVIDs, X.509-SVIDs and JWT-SVIDs, Jaeger for the OpenTelemetry spans) runs ninety-nine checks in CI, once with each PDP. agentgateway v1.7.0 is a second front proxy that calls visado over ext_authz gRPC; a subset of the scenarios runs through it. The chain view (`[chain_view]`, `/chain`) shows recent decisions and their delegation chains; the lab serves it on the host's loopback address. Not yet: Dex issuing ID-JAGs, which is on Dex's `master` ([dexidp/dex#4611](https://github.com/dexidp/dex/pull/4611)) but in no release up to v2.46.1, so Casdoor issues the lab's ID-JAGs.
- **Done in this phase:**
  - agentgateway's MCP backend in front of a real MCP server (`deploy/lab/mcp`): tool calls are checked against the AAT chain, one allowed and one denied in CI.
  - The audit record: one per decision with the AIMS §11 minimum, hash-chained ([docs/audit.md](https://dyokto.github.io/visado/concepts/audit/)); `demo.sh` checks its members and the chain in visado's log.
  - The four attack demos ([deploy/lab/attacks](https://github.com/dyokto/visado/blob/main/deploy/lab/attacks/README.md)): a widened delegation, a stolen chain, a recruited admin agent (stopped), and exfiltration within granted scope (not stopped).
  - The gate: `docker compose up -d --build` and `docker compose run --rm --no-deps demo` reproduce every demo with only Docker on the host, as CI does.

## Phase 6: Interop and launch

- Interop at the IETF 128 hackathon (Transaction Tokens, delegation chains).
- Implementation Status entries in the drafts visado implements.
- Research write-up, then the release announcement.
- **Gate:** at least one cross-implementation interop result published.
- **Status:** in progress; the gate is met. [docs/interop.md](https://dyokto.github.io/visado/interop/) publishes runs against independent implementations, reproducible from [interop/](https://github.com/dyokto/visado/tree/main/interop): AAT with tenuo (229/229 vectors, and visado-minted chains 9/9 in tenuo's verifier), asor with attenu-guard (both directions), Transaction Tokens with authgent, atlas-go and kontxt (both directions with kontxt, over RS256), and WIMSE credentials with wit-wpt-go, go-spiffe and the Cofide PoC. The research write-up is [docs/research/08-findings.md](https://dyokto.github.io/visado/research/findings/). Remaining: the IETF 128 hackathon, Implementation Status entries (each needs the draft's authors), reporting the divergences in docs/interop.md upstream, and the release announcement.

## Revocation signals (outside the phases)

- Receive OpenID Shared Signals (SSF 1.0, CAEP 1.0, RISC 1.0) and deny a token whose subject was revoked after it was issued.
- **Status:** in progress. `visado-ssf` verifies SETs and applies CAEP `session-revoked` and `credential-change` and RISC `account-disabled`, `account-purged` and `sessions-revoked`, with 51 own vectors in `conformance/ssf/`; the server receives streams by push (RFC 8935) and poll (RFC 8936) and the gate denies with `ssf.*` codes. Not yet: a run against a real Transmitter, stream management (SSF §8.1.1 to §8.1.3), and a store shared across replicas.

## Phase 7: CNCF Sandbox

- A maintainer from a second organization, adopters listed, OpenSSF Best Practices badge, Security Insights file. Then apply.
- **Gate:** CLOMonitor checks pass, and the maintainer list spans more than one organization.
- **Status:** started. The OpenSSF Best Practices badge (project 16930), `SECURITY-INSIGHTS.yml`, `.clomonitor.yml` and `ADOPTERS.md` are in. Not yet: a maintainer from a second organization, any adopter, and the application.
