Identity plane split, plan I3e5: device approval and native sessions (epic &133)
Status: Done (2026-10-11) — !1591
Epic: &133 (stage I3 of &130)
Issues: #2833 (U1, w2); #2834 (U2, w2); #2835 (U3, w3); #2836 (U4, w3); #2837 (U5, w5); #2838 (U6, w5); #2839 (U7, w3).
MR: feat/identity-native-sessions, "device approval and native sessions (#2833 … #2839)".
One MR, one commit per issue, under the maintainer’s one-MR-per-related-group ruling. It merges once the pre-push battery passes. This is a Design + Scope plan: GitLab owns tracking, and the plan freezes when U1 starts. Z1–Z9 are this plan’s decisions (ADR-049 Amendment 21); R12–R14 are the maintainer’s rulings.
Context
ADR-049 D7 has a worker approve canopy-cli’s RFC 8628 device flow in canopy-web, under D6’s step-up. The approval opens a native session, which canopy-web re-federates at least every 900 s through an upstream grant dedicated to it, until it ends (at most 8 h) or is revoked.
Amendment 9 (plan I2f) built the issuer’s side:
-
N2: code entry,
POST /identity/device_verification,describeordeny, with canopy-web’s assertion and the worker’s web-session credential; -
N3: the approval grant, an RFC 8693 exchange of the step-up id_token and the user code for the
native-revalidationtype, answering F2’s body; -
N4: native renewal and grace, F5 and F6 under the native type, with the
unredeemedrule first; -
N8: revocation by the revalidation credential.
Plan I3e4's ruling R9 gave I3e5 "device approval and native sessions".
What exists:
-
FederationClient(identity_client/federation.rs) hasopen,renewandrevoke.-
openandrenewhard-code the web-session type:grant_formandrenew_formsend it, andsession_fromdemands it. -
revokealready works for a revalidation credential. -
Its constructor takes the token and revocation URLs positionally.
-
LimiteddropsRetry-After.
-
-
The session engine (
identity_web_session/): its claim protocol,decideand the leader carry a native session unchanged. Leaders start only inside a request, and a native session gets none. -
identity_native:UserCode(parse,expose_for_display) andNATIVE_REVALIDATION_TOKEN_TYPE.identity_dpop::mint_proofexists for tests. -
The devstack does not serve the device flow:
identity_device_verification_uriis unset, so both device routes answer 503. -
canopy-cli still uses the password grant. Its device client is I3f’s.
The maintainer’s rulings (2026-10-10):
-
R12. One plan for both halves: approval and native-session maintenance.
-
R13. The approver owns the native session: its canopy subject must be the approving worker’s web session’s. A mismatch revokes the new native session and its upstream grant, and the approval fails. Round 2 found a client-side check cannot hold it, since canopy-cli can redeem the approval before canopy-web’s revocation lands; Z9 enforces it at the issuer, before anything commits.
-
R14. The kind is the engine’s: a native wrapper builds the session engine with kind native over its own store, sharing the store contract.
FederatedSessionand the record stay as they are, and the wrapper keeps a native engine out ofWebSenderby type.
Decisions (ADR-049 Amendment 21, Z1–Z9; land with U1)
-
Z1. Staging. All of this is canopy-auth library code, unwired until the switch.
-
The switch brings canopy-web’s device page and step-up redirect, its native table and the sweep task.
-
canopy-cli’s device client is I3f’s.
-
The devstack serves the device flow now: that is devstack infrastructure (K1).
-
-
Z2. The devstack serves the device flow.
CANOPY_SECURITY__IDENTITY_DEVICE_VERIFICATION_URIishttps://web.canopy.test/device, the origin of the Kanidm client’s redirect. The page is only shown to canopy-cli; no devstack test opens it. -
Z3. The federation client’s native operations.
-
Construction:
FederationClient::new(minter, &IdentitySettings, IdentityHttpClient)takes its endpoints from the settings, in place of positional URLs. Code entry lives inidentity_client/federation/device.rs, keepingfederation.rsunder 500 lines. -
Settings:
IdentitySettingsgainsrevocation_endpoint()anddevice_verification_endpoint(), each under the internal URL astoken_endpointis. -
describe_device(web: &SessionCredential, code: &UserCode) → Result<DeviceRequest, FederationError>: the code is sent asexpose_for_display().DeviceRequest { client: NativeClient, started_at: NumericDate, expires_at: NumericDate }. -
deny_device(web, code) → Result<(), FederationError>. -
Both are bounded by
DEVICE_VERIFICATION_TIMEOUT(6 s: the route’s 5 s and a second of transport). -
approve(id_token, upstream_access_token, code, approver: &SessionCredential) → Result<FederatedSession, FederationError>: the open form with the native type requested,user_code, andweb_sessionthe approver’s credential (Z9). The answer must be issued as native. -
renew(credential, kind: SessionKind, evidence): both types are the kind’s, and the answer’s issued type must match.opendemands web. -
Rate limits:
FederationError::Limited { retry_after: Option<Duration> }readsRetry-Afterin seconds, since the device budget (10, plus one a minute) names a wait. -
Each caller of
newandrenewupdates.
-
-
Z4. The engine’s kind (R14).
-
Innergainskind: SessionKind.WebSessionEngine::newis web, and apub(crate)constructor takes the kind. -
The leader passes
inner.kindtorenew, on both the evidence and the grace paths. The schedule’s lead (Z7) and Z8’s end revocations read it too; nothing else does.
-
-
Z5.
NativeSessions<S: DueSessions>(new moduleidentity_native_session).-
Construction:
new(relying_party, federation, store)owns an engine of kind native and exposes noWebSessionEngine, so no native engine reachesWebSender.store()reaches the store, where canopy-web inserts an approved record. -
Code home: the wrapper is thin. The approval’s body (
approve_native) andend_nativearepub(crate)methods inengine/sign.rsbesidecomplete_sign_in, and the sweep is inengine/sweep.rs, each reaching the engine’s private parts (decide::maintain_at, the federation client) ascomplete_sign_indoes. -
Bound: U5 bounds
SonWebSessionStore; U6 tightens it toDueSessionswith the sweep. -
Code entry:
describe(approver: &LiveSession, code)anddeny(approver, code)send the approver’s web credential. -
step_up(redirect) → Result<(Url, PendingAuthorization), RelyingPartyError>:authorization(redirect, &step_up_options()). The worker’s web session is untouched: the step-up’s grant is the native session’s alone (D7). -
complete_approval(pending, state, code, redirect, user_code, approver) → Result<WebSessionRecord, ApprovalError>, in order:-
redeem, holding
auth_timetomax_age(W5); -
a grant with no refresh token stops here (
NoRefreshToken): the native session could never be re-federated. Nothing is approved, so the user code stays usable; -
take the id_token, and the access token under a userinfo profile;
-
approve. Any failure revokes the grant’s refresh token, ascomplete_sign_indoes. A transport failure or timeout also leaves the outcome unknown: the issuer may have opened a native session that canopy-web cannot revoke, which, never renewed, stops minting at itsfresh_until(at most 900 s); -
R13 is the issuer’s (Z9):
approvenames the approver’s credential, and a mismatch is refusedapprover_mismatchwith nothing opened, its refresh token revoked by step 4. canopy-web’s backstop, should an answer still name another subject, revokes that native session, awaited within its bound, then the refresh token (OtherPerson); -
build the record: bound, scheduled by
maintain_at, and holding no id_token at approval (a native session has no logout hint; a later refresh’s id_token is carried as a web record’s is, and nothing reads it).
canopy-web inserts the record under its own key, as V6’s.
-
-
ApprovalError:RelyingParty,Federation(AuthTimeTooOldis the cue to step up again,UserCodeInvalidto re-enter the code,ApproverMismatchto sign in as oneself,Transportan unknown outcome),NoRefreshTokenorOtherPerson. It carries no token or code. -
revoke(key) → Result<NativeEnded, StoreFault>, a worker ending a device:-
it ends the record
SignedOut; -
it revokes canopy-identity’s session within its bound, then the upstream refresh token, only for a record bound to the configured upstream (as
sign_out); -
it never uses the end-session endpoint, which would sign the browser out.
-
NativeEnded { ended, identity_revoked, upstream_revoked }. An overlapping leader then revokes its rotated successor, as after anySignedOut. -
-
Z6. Due sessions.
-
DueSessions: WebSessionStoreaddsdue(now, limit, within) → Result<Vec<Key>, StoreFault>: live rows whosemaintain_atis at or beforenow, earliest first, at mostlimit. -
MemoryWebSessionStoreimplements it, andcontract::check_due(incontract/due.rs, keepingcontract.rsunder 500 lines) holds a store to it: ended rows excluded, order, limit, and an undecodable row listed. -
A web store needs none of it.
-
-
Z7. The sweep.
NativeSessions::sweep(budget) → Swept { led, ended, skipped, faults, unfinished }, one pass:-
Deadline: an absolute
Deadlineofbudgetis set at entry.due(now, SWEEP_BATCH, within)(256) is bounded by the lesser ofSTORE_OP_TIMEOUTand what remains, so a slow store cannot carry the pass past its budget. -
Independent steps: each key’s step (read, decide, act) runs in its own
tokio::spawned task, holding a permit from aSemaphorethatNativeSessionsowns. That bounds a replica toSWEEP_CONCURRENCY(16) steps at once across overlapping sweeps.-
The sweep acquires a permit before spawning each step, within the deadline, and awaits the handles until the deadline.
-
Dropping or cancelling the sweep, or reaching its deadline, drops only
JoinHandles, which detaches the tasks: a dropped handle never aborts. NoJoinSetis used, since dropping one aborts its tasks. -
An aborted leader would lose a rotated successor and leave its claim to lapse, and the next pass would end the session
RefreshLost.
-
-
Per key: the row read takes
decide(facts, now, false)at that moment, each store call bounded bySTORE_OP_TIMEOUTand the ends by aDeadlineof the remaining budget:-
ServeAndMaintain(v)orLead(v)leads atv; -
EndExpired,EndUnboundandEndLapsedend as a request would, revoking as it would; -
a row that no longer decodes,
NoSessiontodecide, endsRefreshLostwith nothing revoked, since it holds no readable credential. Otherwise it would sit at the head of every batch; -
anything else is skipped: another replica’s live claim, or a row a concurrent sweep has just renewed.
-
-
Swept: a leader’sCommittedorUnconfirmedcounts asled;Endedand the sweep’s own ends asended;NotClaimed,NoSessionand skipped rows asskipped; a store fault asfaults; a leader still running at the budget’s end asunfinished. -
Single-flight: the claim keeps replicas sweeping the same table from leading twice.
-
Cadence and capacity. canopy-web runs the sweep every
SWEEP_INTERVAL(30 s) at the switch.-
A native session is scheduled
NATIVE_FRESHNESS_LEAD(300 s) before its freshness ends, in place of the web’s 120 s:maintain_attakes the lead by kind, so a native session renews about every 600 s. -
The design load is a full batch, 256 due sessions, at
DESIGN_RENEWAL(5 s, an upstream refresh plus a canopy-identity renewal) each, through 16 slots: at most 80 s of queueing. -
A
constassertion holdsSWEEP_INTERVAL + (SWEEP_BATCH / SWEEP_CONCURRENCY) × DESIGN_RENEWAL + CLAIM_LEASE < NATIVE_FRESHNESS_LEAD(30 + 80 + 60 < 300, byas_secs). The sum covers waiting for the next pass, waiting for a slot, and one leader’s whole run. -
Beyond the design load, a session may go stale before its turn. canopy-cli’s refresh then answers
native_session_staleuntil the sweep renews it. A pass that leaves leaders unfinished, or fills its batch, logs a warning.
-
-
Fairness. While the store answers, every outcome moves a row’s
maintain_ator ends it withinCLAIM_LEASE:-
a lead commits a renewal or V3’s 30 s retry, or ends the row;
-
a live claim lapses, and the next pass ends it;
-
an undecodable row ends.
-
So the head of
dueturns over from pass to pass. A store that faults faults for every row.-
Code home: it lives in
identity_web_session/engine/sweep.rsas apub(crate)impl, reusing the engine’s privateend,end_lapsedandleader::lead.
-
-
Z8. Native ends. A native session ends as a web one does:
-
Expiredat its end; -
IdentityRefusedwhen canopy-identity answerssession_ended(canopy-cli logged out, a superseded refresh credential,unredeemed); -
UpstreamEndedorRefreshLostfrom the leader; -
SignedOutbyrevoke. -
The upstream grant at an end. The grant is the native session’s alone (D7), so the web engine’s reason for sparing it does not apply: no other session can be ended by revoking it.
-
The rule: binding, not the reason, decides. When a native engine ends a record bound to its own configured upstream, whatever the reason, it revokes upstream each refresh token it holds for that record, once each, in a detached task within
UPSTREAM_LOGOUT_TIMEOUT, best-effort. A record bound elsewhere sends the configured upstream nothing.-
UpstreamEndedis no exception: a 503 before processing, a timeout or a lost answer also read asRefreshFailure::Ended, so the presented token may still be live. -
An old-profile replica during a rolling configuration change still revokes its own successor, its record being bound to its profile.
-
-
Per path:
-
a leader’s
end_claimedafter a refresh: the rotated successor (the presented token is spent); -
a leader’s
end_claimedwith nothing presented (not_processed, thenIdentityRefused): the claimed record’s stored token; -
a leader’s
UpstreamEnded: the presented token, which may not have been processed; -
no_homeafter a presented token: the successor (the web engine’sSignedOut/Operatortest stays for a web engine); -
foreign: the successor, and the stored token of the record its end answers; -
decide's ends (end,end_lapsed, the sweep’s): the stored token of the ended record.
-
-
Approval’s own refusals revoke as Z5 says. A web session’s ends are unchanged.
-
-
-
Z9. The issuer holds an approval to its approver (R13; amends N3).
-
The parameter: the approval grant gains a required
web_session, the approving worker’s web-session credential. It is refused on every other token-endpoint form, asuser_codeis. -
The check: the issuer checks it as code entry does: live, fresh, unsuspended (
session_ended,session_stale,subject_suspended). It does so after theauth_timecheck and before the attempt is spent. -
The comparison:
approve_in's transaction compares the subject the link-or-mint resolves with the web session’s. A mismatch rolls everything back: the refusal isapprover_mismatch(400invalid_request, a newCanopyRefusal::ApproverMismatch), and its refused row is logged. -
The effect: nothing is opened or decided. The device stays pending, so no poll redeems it, and canopy-web holds nothing to revoke.
-
No migration: the issuance log’s
reasonCHECK (^[a-z_]{1,64}$) admits the new reason.
-
Units
Every commit goes through the J1–J8 review. Each subject is at most 72 characters with its ` (#N)`.
Erratum (2026-10-11): a sweep step bounds its request-style ends by its own STEP_BUDGET (5 s), not the pass’s remaining budget, since it may run on detached past the pass. The pass checks its deadline once a permit is held, and unfinished also counts rows no slot freed for. A row whose times are past chrono’s range is ended RefreshLost as an undecodable one is, and, its record still answered by the end, has its sessions revoked. The sweep’s tests live in engine/sweep/tests.rs, the shared-slot test in identity_native_session/tests.rs, and the scripted IdP’s peak gauge shows the slot bound directly. U7’s canopy-cli helper names canopy-security’s device-authorization and revocation paths itself, canopy-test-lib not depending on canopy-security, and its second device refreshes once before the worker’s revoke.
-
U1 (#2833, w2)
docs(adr): record device approval and native sessions.-
ADR-049 Amendment 21 (R12–R14, Z1–Z9), plus the Status line. Z9 amends N3.
-
This page (
In progress), with its nav entry above the archive line.
-
-
U2 (#2834, w2)
feat(devstack): serve the device flow on the devstack(Z2).-
Change:
docker-compose.ymlsets canopy-security’sIDENTITY_DEVICE_VERIFICATION_URI. -
Docs:
local-dev.adocnotes the device flow. -
Verification: after a refresh, the issuer’s metadata lists
device_authorization_endpoint, and canopy-cli’sPOST /identity/device_authorizationanswers 200.
-
-
U3 (#2835, w3)
feat(security): hold a device approval to its approver(Z9).-
Files:
-
services/canopy-security/src/identity/token_endpoint/request.rs(web_sessionon the approval form only); -
federation/approval.rs(the web session’s check, its subject intoApproveRecord); -
identity/sessions/native.rs(approve_in's comparison,ApproveOutcome::OtherApprover); -
the refusal’s
Causeand its log reason; -
crates/canopy-auth/src/identity_session.rs(CanopyRefusal::ApproverMismatch,approver_mismatch).
-
-
Callers: the approval helpers in
services/canopy-security/tests/identity_federation/approval.rsandtests/identity_native/end_to_end.rs, which now send the worker’s web session. -
Tests (in process, against the database):
-
a mismatched approval is refused
approver_mismatch, with its row logged, no native session and no new subject. The device stays pending (canopy-cli’s poll answersauthorization_pending), and the right worker then approves it; -
concurrency: canopy-cli polls in a loop while mismatched approvals run, and never receives a token;
-
a missing, ended, stale or suspended web session is refused before the attempt is spent;
-
web_sessionis refused on the open, renewal and delegation forms; -
CanopyRefusalround-tripsapprover_mismatch.
-
-
Nothing a failed revocation could leave behind exists: a mismatch opens nothing.
-
Docs:
api/canopy-security.adoc's approval form, refusals and flow;idp-integration.adoc's device approval.
-
-
U4 (#2836, w3)
feat(auth): add canopy-web’s native federation operations(Z3).-
Files:
identity_client/federation.rs(+tests.rs), the newfederation/device.rs,identity_settings.rs(+ tests), and the callers:-
new: the federation and engine tests, canopy-test-lib’s broker (which now builds anIdentitySettingsfromsecurity_url), its four devstack tests, andservices/canopy-security/tests/identity_federation_test.rs; -
renew: the leader (both paths), the federation tests, the broker,upstream_relying_party_test.rsandidentity_federation_test.rs; -
Limited: the federation tests' matcher and the broker’s tests.
-
-
Test scaffolding:
-
the federation tests' scripted endpoint serves
/identity/device_verification; -
its redirect test, whose token endpoint is not under
/identity, gets a second loopback server whose/identity/tokenanswers 307.
-
-
Tests (against the federation tests' scripted endpoint):
-
each form’s fields: describe, deny, approve (the native type requested,
user_codeandweb_session), and a native renew; -
an answer of the wrong issued type is
Malformed; -
DeviceRequestis read from describe’s answer; -
user_code_invalid,session_stale,auth_time_too_oldandapprover_mismatchmap to their refusals; -
Retry-Afteris read, and absent; -
the device timeout.
-
-
Docs:
shared-crates.adoc.
-
-
U5 (#2837, w5)
feat(auth): approve devices into native sessions(Z4, Z5, Z8).-
Files:
-
identity_web_session/engine.rs: the kind, and Z8’s revocation on adecideend; -
decide.rs:maintain_at's lead by kind,NATIVE_FRESHNESS_LEAD(300 s); -
engine/leader.rs:renewwith the kind, and Z8’s revocations; -
engine/sign.rs:approve_native, andend_nativebehindrevoke; -
the new
identity_native_session.rs(+tests.rs), andlib.rs.
-
-
Test scaffolding:
engine_world's scripted issuer answers the native type for a native renewal and the approval, with a settablesub, and itsrenewals()keeps native forms too. -
Tests (
engine_world's scripted IdP and issuer):-
a native engine’s renewal presents the native type both ways, and a web one the web type;
-
a native renewal schedules 300 s before freshness ends, a web one 120 s;
-
complete_approval: a bound, scheduled record with no id_token, andapprovegiven the approver’s credential; -
any failed approval revokes the grant’s refresh token,
approver_mismatchincluded; -
a grant with no refresh token approves nothing (
NoRefreshToken, no approval posted); -
the backstop: an answer naming another
subhas the native session revoked before the answer, then the refresh token (OtherPerson); -
Z8, each path, for a record bound to the engine’s profile:
-
IdentityRefusedafter a refresh revokes the successor; -
not_processed, thenIdentityRefused, revokes the stored token; -
UpstreamEndedrevokes the presented token; -
no_homeafter the record was ended under its leader revokes the successor; -
foreignrevokes both; -
a
decideend revokes the stored token;
-
-
a record bound elsewhere sends the upstream nothing on any end;
-
a web session’s ends revoke as before;
-
describeanddenysend the approver’s credential; -
step_upasksmax_age300; -
revokeendsSignedOutand revokes both, never the end-session endpoint; -
an overlapping leader then revokes its successor.
-
-
Docs:
shared-crates.adoc.
-
-
U6 (#2838, w5)
feat(auth): keep native sessions fresh(Z6, Z7).-
Files:
-
identity_web_session.rs(DueSessions); -
memory.rsandcontract/due.rs(check_due); -
engine/sweep.rs(+tests.rs), its per-key step a function of its own; -
identity_native_session.rs(sweep,Swept, the semaphore,SWEEP_INTERVAL,SWEEP_BATCH,SWEEP_CONCURRENCY,DESIGN_RENEWAL, the capacity assertion).
-
-
Tests:
-
check_dueon the memory store; -
a due session is led and its successor stored;
-
the per-key step skips a row renewed since
duelisted it, and another replica’s live claim; -
a stale session at its end ends
Expired; -
a lapsed claim ends
RefreshLost; -
an undecodable row ends
RefreshLost, and no longer lists as due; -
two concurrent sweeps lead each session once;
-
a full batch: 256 due sessions, a 20 ms scripted renewal, all led in one pass, never more than 16 at once;
-
cancellation: a sweep dropped after a leader submitted its refresh, and one reaching its deadline: once the IdP answers, the rows commit rather than ending
RefreshLost; -
a delayed
due: a store delaying the query past a 50 ms budget, and the sweep returns by its budget; -
fairness: the oldest rows' leaders fail upstream, their
maintain_atmoves to the retry, and the next pass, with a batch smaller than the backlog, reaches the later rows; -
canopy-identity’s
session_endedendsIdentityRefused.
-
-
Docs:
shared-crates.adoc.
-
-
U7 (#2839, w3)
test(auth): prove native sessions on the devstack.-
The test file:
crates/canopy-test-lib/tests/native_session_test.rs. It repeatsweb_sender_test.rs's plane construction, with two federation clients and relying parties, one per engine. -
The workers: canopy.admin, fti.auditor, data.steward and qc.reviewer, none of whom the other plane tests sign in. A step-up reuses the worker’s own UAT from
upstream_sign_in, so no second sign-in waits out the broker’s spacing. -
canopy-cli’s side is a test helper:
-
device authorization (
client_id=canopy-cli); -
the device-code and refresh grants with a DPoP proof (
mint_proof;htuis{issuer}/token, the issuer’s public token endpoint, not the host-published URL) and aresource; -
revocation as a public client.
-
-
The tests:
-
canopy.admin’s lifecycle:
-
a web session;
-
a device authorization;
-
describenames canopy-cli; -
the step-up through Kanidm, then
complete_approval; -
the redemption’s token verifies at a receiver as the worker,
act [canopy-cli]; -
after 1.1 s, so the refreshed id_token’s
iatis newer, the record’smaintain_atis set to the past, and a sweep leads it, its version andfresh_untiladvancing; -
canopy-cli revokes its refresh credential;
-
the next forced sweep ends the record
IdentityRefused.
-
-
A second device, approved and redeemed, is then revoked by
revoke, and canopy-cli’s refresh failsinvalid_grant.-
fti.auditor’s deny: canopy-cli’s poll answers
access_denied. -
Another person: data.steward approves, with the step-up signed in as qc.reviewer. The issuer refuses it
approver_mismatch, and canopy-cli’s poll still answersauthorization_pending.-
What each run leaves behind: the native sessions it opened, all ended, in insert-only tables. The approval resolves each worker’s linked subject (the seed links), so no subject is created.
-
Close:
-
-
CHANGELOG.adoc:Added, andChangedforFederationClient::new,renew,Limitedand the approval form’sweb_session; -
Amendment 21’s as-built record;
-
the plan Done and archived;
-
plan-lint --donewith--allow-openfor U1–U7; -
after merge, update the epic.
-
Scope
In: the devstack device flow; the issuer’s approver check; the federation client’s native operations; the engine’s kind; NativeSessions (approval, revoke, sweep); DueSessions; the devstack proof.
Out:
-
The switch: canopy-web’s device page, step-up redirect, native table, sweep task, and a worker’s device list.
-
I3f: canopy-cli’s device client.
-
The edge forwarder.
Risks
-
A sweep past its design load: Z7’s bound holds to 256 due sessions at 5 s each per replica. Beyond it, sessions may go stale until their turn, and a full or unfinished pass logs a warning.
-
Per-replica device budgets: describe, deny and approval share 10 attempts per worker per replica, so a test reusing a worker can run out. U7’s busiest worker spends four.
-
An approval whose answer is lost: Z5’s unknown outcome. The orphaned native session stops minting within 900 s.
-
A native renewal with the web engine’s clock skew: as V3, the 30 s retry spacing holds.
Verification
-
Per unit: fmt; clippy (workspace, with and without
test-helpers); quality-budgets, plan-lint, check-docs and private rustdoc. -
nextest:
-
canopy-auth;
-
cargo xtask test --integration --host -p canopy-security --no-refresh --skip-static(U3, U4); -
cargo xtask test --integration --host -p canopy-test-lib --skip-staticafter a devstack refresh (U2, U3’s issuer, U7).
-
-
Per MR: the pre-push battery.
Review log
| Round | Vendor | Resolved model | Verdict |
|---|---|---|---|
1 |
Anthropic |
claude-opus-5-5 |
no-ship: U6’s subject over 72 characters, and Z8’s per-path revocation underspecified against Z4 (blockers, fixed); notes folded in: the code homes, U4’s store bound, the sweep’s report and deadlines, step 4 revoking on any failure, U6’s leftovers |
2 |
not stated (the maintainer’s other vendor) |
not stated |
2 findings (P1) and 3 (P2), fixed in-plan: R13 enforced at the issuer before the approval commits (Z9, a new U3); sweep steps as independent tasks under a shared semaphore, so cancellation never aborts a leader; capacity and fairness bounds with a 300 s native lead; Z8’s revocation decided by binding, not reason; the sweep’s deadline bounding its |