gabriel / muse public
feat patch phase-2 task/phase-2-remaining #1 / 1
gabriel · 62 days ago · Apr 15, 2026 · Diff

feat(phase-2): muse agent keygen/list/register + agent_slots registry + MUSE_AGENT_HD_SEED

- muse/core/agent_slots.py: new module — ~/.muse/agent-slots.toml registry with get_next_account (atomic increment), register_slot, list_slots, peek_next_account; fcntl advisory locking + 0o600 file mode + symlink guard

- muse/cli/config.py: MUSE_AGENT_HD_SEED added as step 1 in get_signing_identity resolution order; base64url-decodes 64-byte sub-seed, derives Ed25519 identity key via derive_identity_key; MUSE_AGENT_KEY demoted to step 2 (legacy)

- muse/cli/commands/agent.py: new muse agent namespace — keygen (derive + display sub-seed at account N), list (registry read), register (name→account binding); JSON schema + human-readable output; docstrings on all callables

- muse/cli/app.py: import + register agent_cmd in alphabetical position

- tests/test_cmd_agent.py: 58 tests across all 8 categories for the CLI - tests/test_core_agent_slots.py: 52 tests for core/agent_slots.py - tests/test_signing_hd_seed.py: 28 tests for MUSE_AGENT_HD_SEED in config.py

sha256:b8e1a516c20fe1dd22df9b5c13ac1e47b5cac26f7f1d780513193fd0bc58df86 sha
sha256:e7c1fd06eeb3871041db9ab4c479293a634446e688367fe3f41e3dddc7eae936 snapshot
← Older Oldest on task/phase-2-remaining
All commits
Newer → Latest on task/phase-2-remaining

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:b8e1a516c20fe1dd22df9b5c13ac1e47b5cac26f7f1d780513193fd0bc58df86 --body "your comment"