You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id-currency-registry: add currency status transitions (freeze/sunset) and wire them into the gateway service #13342
The gateway service landed by the #5522 slice (pkgs/id/src/currency/gateway_service.rs) refuses the freeze and sunset ops by name (ServiceError::Unsupported). The F3 envelope authorizes both ops, but the F1 registry crate has no status-transition write: CurrencyStatus has Frozen/Sunset variants and no Registry method ever sets them, so there is nothing for the service to execute. Refusing by name was deliberate — the alternative was pretending — but the ops should work.
Scope
id-currency-registry: add issuer-only status transitions (freeze_currency, sunset_currency or one set_status) with Store support. Decide and document repeat-transition behavior (idempotent success vs typed refusal) and whether sunset is reachable from frozen.
Gateway service: execute Freeze/Sunset through the same write-ahead intent path as the other mutating ops (durable intent, stored receipt, replay on retry), replacing the Unsupported refusal.
Decide where a frozen/sunset currency refuses value ops: the F3 authorization layer already has an inactive-currency refusal — wire the registry status through the service's RegistryView so issue/transfer on a frozen currency refuse there, and say in the module docs which layer refuses what.
Service tests: freeze posts an intent and replays on retry; issue/transfer against a frozen currency refuse; sunset is terminal.
The Unsupported arms for freeze/sunset are gone from the gateway service.
Filing note
Filed without a pilot packet/enqueue: the prioritized shortlist is managed by the lane operator (Felix); this is a candidate for fleet agent shortlist add in the currencies line, after #5522's slice lands. Refs #5522, #10070 item 1 follow-on.
Lane AAQ claim: taking #13342 — id-currency-registry: add currency status transitions (freeze/sunset) and wire them into the gateway service.
Premise + ownership check (fresh, 2026-11-23): issue open, no labels, comments count-confirmed at 1 (only the automated Kaneo link from developing-today[bot] 2026-11-23T13:55:40Z); no lane claim, no user/* label, no design/ratification gate, not on the hard-skip list. fleet agent next returned no claimable task, so this was picked directly from GitHub. Neighbours rejected: #13484 (Lane AAL claim), #13421 (Lane AAM claim), #13393 (Lane AAO claim), #13430 (oc-code-08, PR #13482 open), #13466 (fix enqueued by oc-code-08 triage), #13464 (oc-code-08, PR #13475), #13408 (presupposes the pending #13357 methodology decision).
Plan: verify the premise in code on a laptop worktree off main (branch lane-aaq-13342) — CurrencyStatus Frozen/Sunset variants exist with no Registry transition, gateway service refuses Freeze/Sunset as Unsupported. Add issuer-only status transitions with Store support (documenting repeat-transition behavior and sunset reachability), execute Freeze/Sunset in the gateway service through the write-ahead intent path, wire registry status through RegistryView so issue/transfer on a frozen currency refuse at the authorization layer, with registry + service tests per the acceptance list. Verify via fleet dispatch or laptop run, land via PR, merge when verified, and close this issue when its criteria are fully met.
Lane AAQ outcome: DONE — #13342 landed via PR #13547, merged as cb8c847a3083a79001e932046abe27d92eadd5e9 (head a435fa68be7); this issue auto-closed on the merge. Compare API confirms the head is an ancestor of main (behind_by 0).
What landed, against the acceptance list:
Registry transitions (id-currency-registry): Store::set_currency_status is the transition write; Registry::freeze_currency / sunset_currency share one issuer-only set_status. Decisions, documented in the method docs: sunset IS reachable from frozen (Frozen → Sunset allowed, so freeze is never a trap short of the terminal state); sunset is terminal (Sunset → Frozen refuses with the new typed RegistryError::InvalidTransition { from, to }); repeats are idempotent successes (freeze on frozen / sunset on sunset answer with the record as it stands, no second write).
Gateway service: handle() executes Freeze/Sunset through the registry write and records each as a posted intent (the posted_simple shape, like registration/grants); there is no ledger transfer to write ahead of, and the transition's idempotence is the crash answer for a retry whose intent finalize was lost. open() replays posted freeze/sunset intents over the rebuilt registry records (freezes before sunsets; transitions are monotone), so a status survives restart. The Unsupported arms for freeze/sunset are gone.
Refusal layering (documented in the service module docs): F3 authorize refuses the value ops on a non-active currency with InactiveCurrency — RegistryView already maps the registry record's status onto the view's active flag, so the refusal lands the moment the transition does. Lifecycle ops are authorized on existence + issuer only (changed from requiring Active, which would have made sunset-from-frozen unreachable); the registry owns transition legality and re-checks the issuer there.
Verification (laptop run in the lane worktree, private target dir, sccache disabled per the #13367 remedy):
cargo test -p id-currency-registry — 16 acceptance (5 new) + 6 factory + 17 grants, all green.
cargo test -p id --lib currency — 152 passed, 0 failed (new: gateway authorize lifecycle test; service tests for execute + value-ops-refuse, issuer-only + retry/repeat answers, restart replay).
cargo clippy — no warnings in the touched files (one pedantic or-pattern warning in the new match found and fixed). rustfmt: no new drift vs the pristine-main baseline of the touched files.
Premise note: the issue's filing note said it was a candidate "after #5522's slice lands" — verified in code before claiming: gateway_service.rs exists on main with the by-name Unsupported refusal and a test pinning exactly that wait.
Activity
developing-today commentedon Nov 23, 2026
CODE-4864
test(id-currency-registry): status-transition acceptance tests, faili…
dezren39 commentedon Nov 23, 2026
Lane AAQ claim: taking #13342 — id-currency-registry: add currency status transitions (freeze/sunset) and wire them into the gateway service.
Premise + ownership check (fresh, 2026-11-23): issue open, no labels, comments count-confirmed at 1 (only the automated Kaneo link from developing-today[bot] 2026-11-23T13:55:40Z); no lane claim, no user/* label, no design/ratification gate, not on the hard-skip list.
fleet agent nextreturned no claimable task, so this was picked directly from GitHub. Neighbours rejected: #13484 (Lane AAL claim), #13421 (Lane AAM claim), #13393 (Lane AAO claim), #13430 (oc-code-08, PR #13482 open), #13466 (fix enqueued by oc-code-08 triage), #13464 (oc-code-08, PR #13475), #13408 (presupposes the pending #13357 methodology decision).Plan: verify the premise in code on a laptop worktree off main (branch lane-aaq-13342) —
CurrencyStatusFrozen/Sunset variants exist with no Registry transition, gateway service refuses Freeze/Sunset as Unsupported. Add issuer-only status transitions with Store support (documenting repeat-transition behavior and sunset reachability), execute Freeze/Sunset in the gateway service through the write-ahead intent path, wire registry status through RegistryView so issue/transfer on a frozen currency refuse at the authorization layer, with registry + service tests per the acceptance list. Verify via fleet dispatch or laptop run, land via PR, merge when verified, and close this issue when its criteria are fully met.Merge pull request #13547 from developing-today/lane-aaq-13342
dezren39 commentedon Nov 23, 2026
Lane AAQ outcome: DONE — #13342 landed via PR #13547, merged as
cb8c847a3083a79001e932046abe27d92eadd5e9(heada435fa68be7); this issue auto-closed on the merge. Compare API confirms the head is an ancestor of main (behind_by 0).What landed, against the acceptance list:
id-currency-registry):Store::set_currency_statusis the transition write;Registry::freeze_currency/sunset_currencyshare one issuer-onlyset_status. Decisions, documented in the method docs: sunset IS reachable from frozen (Frozen → Sunsetallowed, so freeze is never a trap short of the terminal state); sunset is terminal (Sunset → Frozenrefuses with the new typedRegistryError::InvalidTransition { from, to }); repeats are idempotent successes (freeze on frozen / sunset on sunset answer with the record as it stands, no second write).handle()executes Freeze/Sunset through the registry write and records each as a posted intent (theposted_simpleshape, like registration/grants); there is no ledger transfer to write ahead of, and the transition's idempotence is the crash answer for a retry whose intent finalize was lost.open()replays posted freeze/sunset intents over the rebuilt registry records (freezes before sunsets; transitions are monotone), so a status survives restart. TheUnsupportedarms for freeze/sunset are gone.authorizerefuses the value ops on a non-active currency withInactiveCurrency—RegistryViewalready maps the registry record's status onto the view'sactiveflag, so the refusal lands the moment the transition does. Lifecycle ops are authorized on existence + issuer only (changed from requiring Active, which would have made sunset-from-frozen unreachable); the registry owns transition legality and re-checks the issuer there.Verification (laptop run in the lane worktree, private target dir, sccache disabled per the #13367 remedy):
cargo test -p id-currency-registry— 16 acceptance (5 new) + 6 factory + 17 grants, all green.cargo test -p id --lib currency— 152 passed, 0 failed (new: gateway authorize lifecycle test; service tests for execute + value-ops-refuse, issuer-only + retry/repeat answers, restart replay).cargo test -p id --lib(full) — 572 passed, 4 failed; the 4 are the pre-existinghosted_exportfailures documented on id: 4 hosted_export tests fail on main (BlobCitationMismatch/MissingBlob) #13444 (flag-held, untouched here).cargo clippy— no warnings in the touched files (one pedantic or-pattern warning in the new match found and fixed). rustfmt: no new drift vs the pristine-main baseline of the touched files.Premise note: the issue's filing note said it was a candidate "after #5522's slice lands" — verified in code before claiming:
gateway_service.rsexists on main with the by-nameUnsupportedrefusal and a test pinning exactly that wait.