feat: add CLI subcommands for recovery agent management#329
Merged
Conversation
Add `walletkit recovery-agent` subcommand group with three actions: - `initiate <new_recovery_agent>` — initiate a time-locked update - `execute` — execute a pending update after cooldown - `cancel` — cancel a pending update Each delegates to the corresponding Authenticator method and prints the returned gateway request ID.
b58d954 to
9662a05
Compare
Contributor
|
/otto resolve CI issues |
kilianglas
previously approved these changes
Mar 26, 2026
Contributor
Author
|
Fixed CI in commit
This also aligns the actual CLI subcommand names with what the PR description advertised ( |
Contributor
|
/otto in that case let's rename it the recovery-agent commadn to |
kilianglas
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
walletkit recovery-agentsubcommand group to the CLI with three actions for managing recovery agent updates:recovery-agent initiate <new_recovery_agent>— initiates a time-locked recovery agent update (14-day cooldown). Takes the checksummed hex address of the new recovery agent.recovery-agent execute— executes a pending recovery agent update after the cooldown has elapsed (permissionless).recovery-agent cancel— cancels a pending recovery agent update before the cooldown expires.Each command delegates to the corresponding
Authenticatormethod added in #320 and prints the returned gateway request ID. Supports--jsonoutput.Changes
walletkit-cli/src/commands/recovery_agent.rs— new module withRecoveryAgentCommandenum andrundispatcher.walletkit-cli/src/commands/mod.rs— registers theRecoveryAgentvariant inCommandand wires up dispatch.Usage
Note
Medium Risk
Adds new CLI flows that trigger recovery-agent update operations via
Authenticator; mistakes in argument validation or the exposed command name could lead to user confusion or unintended update requests.Overview
Adds a new
recovery-agent-updatecommand group towalletkitfor managing recovery agent updates, wiring it into top-level command dispatch.Implements
initiate,execute, andcancelsubcommands that call the correspondingAuthenticatormethods and print the resultingrequest_idin either human-readable form or the existing--jsonenvelope.Written by Cursor Bugbot for commit e77d774. This will update automatically on new commits. Configure here.