Identity plane split, plan I2d: delegation tokens and receivers (epic &132)

Status: Done (2026-10-06) — !1572
Epic: &132 (stage I2 of &130)
Issues: #2720 (w3), #2721 (w3), #2722 (w5), #2723 (w3), #2724 (w5), #2725 (w5), #2726 (w3), #2727 (w5), #2728 (w3)
MR: feat/identity-delegation: U1–U9 in order, titled "canopy-identity delegation tokens and receivers (#2720 … #2728)". Its description relates #1448.

The nine issues are one deliverable, the delegation half of the user plane, so they ship as one MR under the maintainer’s one-MR-per-related-group ruling, one commit per issue. U1’s commit adds this page and its nav entry: the group Identity Plane Split (epic &130) holding * Identity plane split, plan I2d — delegation tokens and receivers (epic &132), placed just above ** Completed Plans Archive in docs/modules/ROOT/nav.adoc, as plans I2a–I2c did. U9’s commit closes the plan.

This is a Design + Scope plan. GitLab owns tracking. The plan freezes when U1 starts.

Context

ADR-049 D3 mints delegation tokens from a session: one audience, the RFC 8693 act chain, a lifetime of at most min(now + 300 s, the subject credential’s exp, the session’s end), roles and programs that may narrow on a hop but never widen, and sender reuse only within the request served. D4 has the issuer apply the call graph and receivers re-check aud, typ and the last hop; D5 binds a subject token to the authenticated client’s audience; D6 refuses a mint from a stale session; D12 checks suspension and session revocation at every mint; D13 and Amendment 3 A6 audit every mint before release. Amendment 4 (B1–B7) compiled the clients, receivers, call graph and token layout; Amendment 6 (F1–F9) built the sessions.

In the tree today:

  • crates/canopy-auth/src/identity_token.rs validates system tokens only. IdentityTokenValidator::new(issuer, audience, keys) takes the audience as a string; five call sites in three files construct one (crates/canopy-auth/src/identity_token/tests.rs, services/canopy-security/src/identity/key_source/tests.rs, services/canopy-security/tests/identity_token_test.rs).

  • crates/canopy-auth/src/identity_policy/delegation.rs pins DelegationTokenClaims and ActorChain; identity_policy/call_graph.rs has may_delegate and MAX_ACT_DEPTH (8). Nothing mints a delegation token.

  • services/canopy-security/src/identity/token_endpoint/federation.rs serves token exchange only to canopy-web, then refuses with FederationUnconfigured (unsupported_grant_type) when no upstream profile is configured. token_endpoint/request.rs refuses resource in a token exchange. The metadata lists token exchange only with a profile. TokenEndpoint::new takes seven arguments.

  • identity/sessions.rs reads a session by credential hash (current) and, privately, by id (state_of, through the state_select! macro). The issuer holds SELECT on every session table, the suspensions included.

  • The issuance log (v2, 20261213000000) has no delegation row. Its four per-grant CHECKs bind schema_version = 2 only. The writer inserts each batch as UNNEST of scalar parallel arrays (issuance_log.rs, INSERT_ROWS). identity/registry.rs ISSUANCE_INSERT_COLUMNS pins the issuer’s 17 insert columns, which the boot probe holds exactly.

  • identity/key_source.rs's MemoKeySource is unwired; its memo’s cold read may take REGISTRY_CALL_BUDGET (11 s). main.rs builds the JwksMemo inline inside jwks::router(…​).

  • crates/canopy-auth/src/identity_client.rs acquires system tokens only. The Keycloak-era token_exchanger.rs stays the running exchange until I3: its ExchangeCache is ruling R4’s per-request reuse, and it compares a returned token’s exp with the subject’s.

  • The token route’s only limiter is per IP (Quota::per_minute(120)). The issuer pool holds 13 connections.

  • #1448 asks for per-hop exchange with attribution in the token and a jti chain over every hop. Its route-narrowing and X-Canopy-Actor criteria need senders and receivers wired (I3).

Scope

In scope: U1–U9 below: the delegation primitives, the receiver validator, the log’s delegation rows, the mint-time session read, the session mint, the onward mint, per-client limits, the sender, and the in-process proof.

Out of scope:

  • wiring any sender or receiver, and retiring token_exchanger.rs (I3, &133);

  • the native session’s mint through the refresh grant (I2f), which reuses this plan’s mint core;

  • security-admin routes and step-up enforcement (I2e);

  • production sizing of the per-IP limit, the per-client defaults and the issuer pool (I2g);

  • a breaker or retry in the sender (I3).

Design

Decisions (recorded in ADR-049 Amendment 7, which lands with U1)

# Decision

G1

The grant’s wire shape. RFC 8693 token exchange on POST /identity/token with requested_token_type urn:ietf:params:oauth:token-type:access_token, exactly one resource naming a compiled receiver (A3), and optionally requested_roles and requested_programs (G4). Two subject forms:

  • session: subject_token = a web-session credential, subject_token_type = the web-session URN; canopy-web only;

  • onward: subject_token = a delegation token of at most 8 KiB, subject_token_type = the access-token URN; only a confidential client that runs as a service (B2).

After authentication, ExchangeParameters is judged in two steps, identify and a per-form judge:

  1. requested_token_type: missing is invalid_request (missing_parameter), unknown requested_token_type_unsupported;

  2. subject_token_type picks the form: missing missing_parameter, unknown subject_token_type_unsupported;

  3. a client not allowed that form is unauthorized_client; for the federation forms (requested_token_type = the web-session URN) the profile check follows, as today, now invalid_request (federation_unconfigured);

  4. the grammar: a delegation form refuses scope, audience, actor_token, actor_token_type and every upstream_*; a federation form refuses resource and both requested_*;

  5. a resource that is no receiver is invalid_target (target_unknown), and a target the client has no delegation edge to (B3) invalid_target (target_not_delegable);

  6. only then is the subject read.

Delegation is served whenever the issuer is configured, with or without an upstream profile, since a session outlives its profile; the metadata always lists token exchange.

G2

The answer. RFC 8693 §2.2.1: access_token, issued_token_type = the access-token URN, token_type Bearer, expires_in = exp − now computed at release (G3); no refresh token, no scope. A subject-token or session defect is invalid_request (RFC 8693 §2.2.2), widening or an empty set invalid_scope, an unavailable store or key set 503 temporarily_unavailable. A refusal the sender must act on adds canopy_refusal: session_ended, subject_suspended, or the new session_stale, on which canopy-web renews and retries.

G3

Claims and lifetime. B5’s layout. iat = chrono::Utc::now() (D14), nbf = iat, exp = min(iat + 300, the subject’s exp, the session’s ends_at). A mint is refused when exp − iat is under DELEGATION_MIN_LIFETIME (5 s): a session ending that soon is session_ended, an onward subject expiring that soon invalid_request (subject_expiring). The audit commits within AUDIT_BUDGET (3 s) of the mint, so a released token keeps at least 1 s; expires_in is recomputed after the row commits, and one still under 1 s (a wall-clock step) answers 503, releasing nothing, its issued row standing as A6 allows. sub, sid and auth_time are the session’s. act is [canopy-web] from a session; onward, the client before the subject’s chain, refused when it already appears (actor_repeated, B6) or the chain would pass MAX_ACT_DEPTH (actor_chain_too_deep). client_id is that client; jti a v7 UUID.

G4

Narrowing. The base sets are the session’s current roles and programs from a session; onward, the subject token’s intersected with the session’s current, so a renewal’s narrowing reaches the next hop at once. requested_roles and requested_programs are space-separated values in any order, canonicalized (sorted): role names match ^[a-z_]{1,64}$, programs are wire ids, and a duplicate, an empty token or an unknown program is invalid_request (requested_roles_malformed, requested_programs_malformed). A present parameter must be a subset of its base, else invalid_scope (roles_widened, programs_widened); an absent one takes the base; an empty base is invalid_scope (roles_exhausted, programs_exhausted).

G5

The session at every mint (D6, D12). One SELECT on the issuer pool reads the session by credential hash and opener (session form) or by sid (onward), with its highest-version validation, its revocation and its subject’s highest-version suspension event. It refuses, in order:

  1. no session, a revocation, or now at or past ends_at: session_ended;

  2. an opener other than the chain’s innermost actor, or a subject other than the token’s sub: invalid_request (subject_session_mismatch);

  3. a suspended subject: subject_suspended;

  4. now at or past fresh_until: session_stale.

A failed or late read is 503 (session_store_unavailable). The minting client’s disablement is authentication’s (A7). A suspension or revocation that commits during a mint stops the next one; the token it races stays acceptable for at most 300 s plus 60 s leeway and 60 s skew, D12’s 420 s.

G6

The subject token, onward. Verified in process against the JWKS memo (MemoKeySource) with the receiver’s rules (G8) for the client’s own service, so aud is that service (D5, B2) and the subject’s last hop had an edge to it. The key wait and verification run under tokio::time::timeout_at at the processing deadline; past it, or with no trustworthy key set, the answer is 503 (subject_keys_unavailable). Expiry is strict through G3. The log records the subject’s jti beside the new token’s, so every hop’s row points at its parent’s.

G7

The issuance log, version 3. Migration 20261215000000_identity_issuance_log_v3.sql adds subject_token_jti UUID, roles TEXT[] and programs TEXT[]; grant_type gains delegation; schema_version becomes 1, 2 or 3.

  • v2’s four per-grant CHECKs (identity_issuance_log_v2_events, _v2_session, _v2_token, _v2_revocation_error) are dropped and restated to bind versions 2 and 3, the delegation arms admitted only at version 3: an issued delegation row needs token_jti, kid, expires_at, subject_id, session_id and non-empty roles and programs, and has no session_event; a refused one needs error, with subject_id and session_id together when known. The three new columns are NULL on every other grant’s row and on every v2 row.

  • Whether subject_token_jti is present (onward) or absent (session) is the type’s rule (DelegationOrigin), not a CHECK’s: no column records the form.

  • A token exchange is logged as delegation once its requested_token_type names the access-token type, and as token_exchange before.

  • identity_issuance_log_v2_new_rows is replaced by a NOT VALID identity_issuance_log_v3_new_rows. The stamp trigger’s digest covers the new columns; a v1 row’s recompute removes the seven later columns, a v2 row’s the three new ones.

  • The grants follow 20261213000000: REVOKE ALL, the full column regrant (20 columns), -- global-ddl: markers and the closing audit; ISSUANCE_INSERT_COLUMNS and the probe’s matrix follow.

  • roles and programs travel in the UNNEST batch as one space-joined TEXT each, NULL off a delegation row, split by string_to_array: SQLx binds no nested arrays, and the join is lossless, since role names and wire ids hold no space and the sets are non-empty.

G8

Receivers. IdentityTokenValidator::new(issuer, receiver: CanopyService, keys); the audience is receiver.audience() (A3). validate_system is today’s validate. validate_delegation checks, after the JWS form (A9), typ, key and signature: B5’s claims, iss, aud, exp − iat in 1–300, iat and nbf at most 60 s ahead, the request before exp + 60 s, and the last hop, may_delegate(act.current(), receiver) (Rejection::LastHop). It answers VerifiedDelegation: the claims and the raw token, which zeroizes, prints nowhere, and only canopy-auth’s sender reads. validate verifies once and answers either kind (VerifiedBearer), since each layout refuses the other’s claims.

G9

The sender. DelegationTokenSource in identity_client/delegation.rs: from_session (canopy-web, a SessionCredential) and delegate (a service, a VerifiedDelegation), each with a fresh assertion, a target and a Narrowing.

  • A DelegationCache is made by its source (request_cache), carries the source’s issuer and client, lives one request (R4), and is refused by any other source (DelegationError::ForeignCache). Its key is the SHA-256 of length-prefixed fields: issuer, client, the subject credential, the target audience, and the canonical roles and programs, each or an absent marker. A hit is served only while the token’s exp is more than 5 s ahead.

  • The answer must be 200 with G2’s fields. The returned token’s payload is read unverified (CompactJws::claims: it came over the issuer’s authenticated channel, and receivers verify it) as DelegationTokenClaims: aud is the target, client_id this client, exp − iat 1–300; onward, sub and sid are the subject’s and exp is at most the subject’s, an exact comparison of two issuer-clock times, as token_exchanger.rs makes. No local clock enters the cap.

  • Refusals carry the endpoint’s code and canopy_refusal. DelegationToken zeroizes, has no Debug, Display, Serialize or Clone, and is read through expose_for_call.

G10

Budget and limits. A delegation mint ends its processing (body, authentication, subject, session read, signing) by the token exchange’s first phase, start + 2.5 s, and its row within DELEGATION_AUDIT_RESERVE (3 s) more: DELEGATION_BUDGET = 5.5 s, exported for senders. No upstream call is made. Right after authentication, every request of every token-route grant spends from its client’s per-replica budget: Quota::per_minute(rate_limit_rpm), the burst equal to the rate as the per-IP limiter’s, rate_limit_rpm being the client’s identity-clients.yaml entry (1–600 000, default 6 000). Past it the answer is 429 temporarily_unavailable with Retry-After, logged client_rate_limited. The revocation route spends nothing, so logout is never refused for rate; the per-IP 429 stays unlogged (A6). The issuer pool rises from 13 to 17 connections, four for mint-time reads.

U1: delegation primitives (canopy-auth)

  • New crates/canopy-auth/src/identity_delegation.rs: ACCESS_TOKEN_TOKEN_TYPE, REQUESTED_ROLES_PARAM, REQUESTED_PROGRAMS_PARAM, DELEGATION_MIN_LIFETIME, DELEGATION_AUDIT_RESERVE and DELEGATION_BUDGET, the last compile-asserted equal to TOKEN_EXCHANGE_FIRST_PHASE plus the reserve; Narrowing::parse and Narrowing::apply (G4) with thiserror NarrowingError and ScopeRefusal, naming the parameter, never a value; delegation_expiry (G3).

  • identity_policy/delegation.rs: RoleSet::intersect and ProgramSet::intersect (None when empty); ActorChain::extended_by(Client), refusing a repeat and the depth bound through ActorChainError.

  • identity_session.rs: CanopyRefusal::SessionStale (session_stale) and CanopyRefusal::from_code, the inverse of code.

  • Tests: Narrowing::parse's evil-input table (duplicates, empty tokens, upper case, a 65-byte role, unknown and repeated programs, tabs and controls; unsorted input accepted and canonicalized), and proptests that parsing a canonical rendering returns the set, that order does not matter, and that no input panics; subset, widen and exhaust per set; delegation_expiry at each cap and at the 5 s floor; extended_by for a repeat, the bound and an opener moving inward; from_code round trip.

  • Docs: ADR-049 Amendment 7 (G1–G10) and its Status line; shared-crates.adoc's canopy-auth bullets; this page and its nav entry.

U2: the receiver’s delegation validator (canopy-auth)

  • identity_token.rs per G8; the five call sites follow.

  • Tests: each G8 rule refused alone; the last hop, exhaustively over Client × CanopyService, accepted exactly when may_delegate; a system token never passes validate_delegation nor the reverse, and validate routes each; jws_evil_cases! over validate_delegation; VerifiedDelegation's Debug free of the token.

  • Docs: shared-crates.adoc.

U3: delegation rows in the issuance log (canopy-security)

  • G7’s migration; GrantType::Delegation, Outcome::Delegated with DelegationOrigin::{Session, Onward} and RefusedGrant::Delegation, so the types admit only G7’s shapes; SCHEMA_VERSION 3; INSERT_ROWS per G7; ISSUANCE_INSERT_COLUMNS and identity/probe.rs's matrix. No upstream sub, username, token or credential is logged.

  • Tests: every v2-table row and violation at version 3; each delegation row and violation; a new v2 row refused; stored v1 and v2 fixtures still valid, their stored digests matching their versions' recomputes; a mixed writer batch with unequal role and program lengths and other grants' NULLs; log_in rolled back with its transaction; the boot probe accepting the migrated matrix and refusing a widened grant.

  • Docs: [#identity-issuance-stores] in data-models/canopy-security.adoc (version 3 and each version’s recompute); authorization-inventory.adoc's probe row.

U4: the mint-time session read (canopy-security)

  • IdentitySessions::mint_view(MintLookup, deadline) → Result<Option<MintView>, SessionStoreError>, one SELECT built on state_select!; MintLookup is Credential { hash, opener: Client } or Session(SessionId); MintView holds G5’s fields: the session and subject, the opener, auth_time, ends_at, the highest version’s fresh_until, roles and programs (a grace copies the last success’s, F6), whether revoked, and whether the subject’s highest-version suspension event suspends.

  • ISSUER_POOL_MAX_CONNECTIONS 13 → 17: the registry.rs doc table, its unit test and configuration-reference.adoc's IDENTITY_DATABASE_URL row.

  • Tests (tests/identity_session_store_test.rs), each separately: every field; a grace’s fresh_until; revoked; suspended, then lifted; the wrong opener, an unknown hash and an unknown id answering Ok(None); a failed query Err(Database); a stalled read Err(Deadline).

U5: the session mint (canopy-security)

  • token_endpoint/request.rs: ExchangeParameters gains resource and both requested_*; identify and judge (G1); ExchangeForm::Delegate(DelegateForm { subject, target, narrowing }).

  • New token_endpoint/delegation.rs: dispatch by requested_token_type before federation’s client and profile checks; the session form in G1’s order, then G5, G4 and G3; signing with the active key; release through release only after the delegated row commits, expires_in recomputed there. Its processing deadline is the first phase and its audit’s AUDIT_BUDGET, compile-asserted equal to DELEGATION_AUDIT_RESERVE. The metadata lists token exchange always; FederationUnconfigured answers invalid_request. canopy_identity_delegations_issued_total{form} (session, onward) counts released tokens; refusals stay in canopy_identity_token_refusals_total.

  • Tests: new binary tests/identity_delegation_test.rs: against EphemeralSchema and the mock issuer, a session opened by federation minting for every canopy-web delegation edge, narrowed and widened requests, revoked and suspended sessions. In-process: the grammar’s evil-input table and a proptest that no form panics the parser; every refusal’s code, reason and canopy_refusal; ended and stale sessions over a scripted store; a delayed audit (a scripted IssuanceAudit) across the session-end boundary, a 5 s-left mint released with a recomputed expires_in and a 4 s-left mint refused; the clock-step 503; I2c’s no-profile tests now asserting invalid_request.

  • Docs: api/canopy-security.adoc (the delegation forms, answer and errors); security.adoc; services.adoc and authorization-inventory.adoc gain the mint.

  • Erratum (2026-10-06): the dispatch by requested_token_type is Minting::token_exchange in token_endpoint.rs, which identifies the form by ExchangeParameters::kind (ExchangeKind::{Federation, Delegation}) and hands it to federate or delegate; the delegation grammar is judge_delegation, returning the DelegateForm, and U6 adds DelegationKind::Onward beside FromSession. The delayed audit is tested by releasing a committed grant whose exp lies a second behind and two ahead, since the release reads the wall clock and tests never sleep; over a scripted store a session ending in 10 s caps the token at its end and one ending in 4 s is refused, the 5 s edge itself being delegation_expiry's fixed-instant test; a row that does not commit withholds the token.

U6: the onward mint (canopy-security)

  • token_endpoint/delegation.rs: the onward form per G1 and G6, the chain extended (G3), the sets intersected with the session’s (G4), the session read by sid (G5), the subject’s jti logged (G7).

  • TokenEndpoint::new takes a TokenEndpointParts struct, since an eighth argument would trip clippy::too_many_arguments. main.rs hoists the JwksMemo into one Arc shared by the JWKS route and a MemoKeySource in those parts.

  • Tests (tests/identity_delegation/onward.rs, a #[path] module of identity_delegation_test): a three-hop chain canopy-web → eligibility → applications → persons, each token’s act, client_id, exp cap and subject_token_jti; a token for another service; a subject past its exp inside the receiver’s leeway; actor_repeated; a target with no edge; a renewal’s narrowing reaching the next hop; a revoked session refusing the next hop; a stalled key source refused by the 2.5 s deadline; a system token as subject; a delayed audit across the subject-exp boundary.

  • Erratum (2026-10-06): the cases needing a crafted subject token or a stalled key source are in-process tests (token_endpoint/delegation/onward_tests.rs), signed with the endpoint’s key over scripted published keys: a subject past its exp inside the leeway, a system token, an actor with no edge, actor_repeated and actor_chain_too_deep, the subject-exp boundary (10 s capped, 4 s refused), and the stalled source on a paused clock, refused at the first phase and not before. tests/identity_delegation/onward.rs keeps the chain, the repeated actor through the eligibility ↔ applications cycle, the narrowing, the revocation and another service’s token against the store and the registry’s keys, its ring now tests/common/ring.rs, shared with common.

U7: per-client limits (canopy-security)

  • identity/clients.rs: the optional rate_limit_rpm (G10), refused at boot outside its bounds with the entry named. New token_endpoint/client_limit.rs: one direct governor limiter per registered client (canopy-security gains the workspace governor), checked right after authentication in all three grants; Cause::ClientRateLimited answers 429 with Retry-After and is logged under its grant.

  • Tests: the field’s bounds and default; one client’s exhaustion leaving another’s budget whole; one client’s budget shared across client credentials, federation and delegation; burst then refill on governor’s fake clock; the 429’s body, Retry-After and row; a limited request reaching no subject lookup, session read or signing (scripted spies); revocation unaffected.

  • Docs: configuration-reference.adoc [#identity-clients].

  • Erratum (2026-10-06): the budget is spent right after authentication, before requested_token_type is read, so a limited token exchange is logged as token_exchange whatever its form (G7’s boundary), and a limited client-credentials request with its resource and scope. The budgets are ClientLimits over governor's direct limiter; a client without one, which authentication never yields, holds none. The endpoint-level tests are in delegation/flow_tests.rs (its harness) and revocation/flow_tests.rs, the fake-clock tests in client_limit/tests.rs.

U8: the sender (canopy-auth)

  • New identity_client/delegation.rs per G9, beside SystemTokenSource, through the same ClientAssertionMinter and IdentityHttpClient.

  • Tests (an axum mock endpoint, as identity_client/tests.rs serves): both forms' bodies, field by field; a hit, and a near-expiry miss; distinct narrowings and subjects never sharing an entry; a foreign cache refused and two sources never sharing tokens; each malformed answer; onward exp past the subject’s refused; a correct cap accepted with the sender’s clock 6, 30 and 60 s ahead and behind; refusal codes and canopy_refusal; a proptest over the answer parser; DelegationToken's compile-time probes.

  • Docs: shared-crates.adoc.

U9: the in-process proof (canopy-security)

  • services/canopy-security/tests/identity_delegation/end_to_end.rs: the token router on a loopback listener; a registry with test keys for canopy-web, eligibility and applications (persons is only a receiver); a session opened by federation against the mock issuer; U6’s chain driven through DelegationTokenSource and checked at each hop by IdentityTokenValidator over MemoKeySource; then the session revoked, after which the next hop is refused session_ended.

  • Docs: ADR-049 Amendment 7 gains its as-built record. The plan closes here: Status Done (YYYY-MM-DD) — !N; the page moved to docs/modules/ROOT/pages/plans/archive/, every xref following; the nav group removed and the archived entry appended, suffixed — DONE YYYY-MM-DD, as the last line of the Completed Plans Archive group; cargo xtask plan-lint --done docs/modules/ROOT/pages/plans/archive/identity-plane-split-i2d.adoc with --allow-open for 2720 to 2728 and 1448; and #1448 commented: its token and audit criteria met here, its route and X-Canopy-Actor criteria left to I3.

Conventions every unit follows

  • Every parser has an evil-input table and a proptest (the narrowing, the delegation forms, the sender’s answer); JWS validators keep jws_evil_cases!. Errors are thiserror enums that never echo input; logs carry canopy subject and session ids, never a token, credential, upstream sub or username.

  • The issuer, receivers and senders read chrono::Utc::now() (D14); tests inject times or script the store, and never sleep. Database tests live in tests/.

  • Every serde_json::Value under src/ carries // PARTNER-EDGE-UNTYPED: on the line before.

  • Every unit ships its CHANGELOG.adoc bullet and the canonical page for the surface it changes.

Units

  1. U1 (w3) — feat(auth): narrow, expire and extend delegations (#2720).

  2. U2 (w3) — feat(auth): validate delegation tokens at receivers (#2721).

  3. U3 (w5) — feat(security): log delegations in the issuance log (#2722).

  4. U4 (w3) — feat(security): read a session for a mint (#2723).

  5. U5 (w5) — feat(security): mint delegation tokens from a web session (#2724).

  6. U6 (w5) — feat(security): delegate onward from a subject token (#2725).

  7. U7 (w3) — feat(security): rate-limit token requests per client (#2726).

  8. U8 (w5) — feat(auth): request delegation tokens as a sender (#2727).

  9. U9 (w3) — test(identity): prove delegation end to end in process (#2728).

Verification

  1. Per unit: fmt; clippy in both profiles; nextest for canopy-auth and canopy-security; rustdoc-private; quality-budgets; feature-builds; migrations-lint and db-pools (U3, U4); http-clients audit-timeouts and audit-redirects (U8); the named database tests with CANOPY_TEST_INFRA=required against a reloaded devstack.

  2. End to end: U9 proves federation, the session mint, two onward hops, validation at each receiver, and a revocation stopping the chain.

  3. Per MR: cargo xtask dev reload, then git push (the pre-push battery).

Review log

round vendor resolved model verdict

1 (2026-10-05)

Anthropic

claude-opus-5-5

no-ship. One blocker, fixed: v2’s per-grant CHECKs bind version 2 only, so G7 restates them for versions 2 and 3, and the session-or-onward rule for subject_token_jti moves to the type. Also taken: TokenEndpointParts (an eighth argument trips clippy), the grant-matrix files, the pool’s doc and test, the private by-id reader, identify/judge and the unidentifiable-form answers, canonical ordering, named log reasons, the test binary, registry keys only for clients, revocation outside the per-client limit, a proptest for the sender’s parser.

2 (2026-10-05)

human-run

not stated

no-ship. Eleven findings, all fixed: the issuer’s grant matrix and boot probe; the sender’s cap compares issuer-clock times only; a 5 s mint floor and expires_in at release; mint_view keeps store failures apart from absence; the cache bound to its source; the audit arrays joined for UNNEST; the key wait bounded by the deadline; v1 and v2 digest fixtures; the limiter’s tests; D12’s 420 s bound; the validator’s five call sites. No round 3.

Edit this page · default