-
Notifications
You must be signed in to change notification settings - Fork 4
PRD-41: ElizaOS Plugin — Drop-in Threshold Signing for AI Agents #20
Copy link
Copy link
Open
Labels
P0Production blocker priorityProduction blocker priorityphase-0Novel differentiatorsNovel differentiatorsprdProduct requirement documentProduct requirement document
Description
ElizaOS plugin (@agentokratia/plugin-guardian) that replaces raw EVM_PRIVATE_KEY in .env with threshold signing credentials. Drop-in replacement — change 3 env vars and swap the plugin name in the character file.
Acceptance Criteria
-
@agentokratia/plugin-guardianpackage builds and exports valid ElizaOS plugin - 7 actions registered and functional:
SEND_ETH,SEND_TOKEN,CALL_CONTRACT,SIGN_MESSAGE,SIGN_TYPED_DATA,CHECK_BALANCE,SWAP_TOKEN -
GuardianWalletServicemanagesThresholdSignerlifecycle, callsdestroy()on agent shutdown -
guardianWalletProviderinjects address + balance context into agent memory -
guardianTransactionProviderinjects recent audit log context -
guardianPolicyEvaluatorruns pre-flight policy simulation before signing - Core invariant holds — full private key never exists
- Migration from
plugin-evmrequires only 3 env var changes + plugin swap - Compatible alongside
plugin-solana,plugin-tee,plugin-safe -
SEND_TOKENauto-reads decimals + symbol on-chain -
SIGN_TYPED_DATAhandles EIP-712 domains (x402, Permit2) - Natural language triggers work (e.g. "send 0.1 ETH to 0x...")
-
pnpm buildsucceeds across all packages
Tasks
- Scaffold
packages/elizaos-plugin/withpackage.json, peer dep on@elizaos/core ^1.0.0 - Implement
GuardianWalletService— ThresholdSigner lifecycle + cleanup - Implement
guardianWalletProvider— address + balance context - Implement
guardianTransactionProvider— recent audit log context - Implement
guardianPolicyEvaluator— pre-flight policy simulation - Implement
SEND_ETHaction - Implement
SEND_TOKENaction with auto decimal handling - Implement
CALL_CONTRACTaction - Implement
SIGN_MESSAGEaction (EIP-191) - Implement
SIGN_TYPED_DATAaction (EIP-712) - Implement
CHECK_BALANCEaction - Implement
SWAP_TOKENaction (approval + swap) - Write unit tests for all actions
- Write integration tests with mock ElizaOS runtime
- Add migration guide in README
- Submit to ElizaOS plugin registry
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P0Production blocker priorityProduction blocker priorityphase-0Novel differentiatorsNovel differentiatorsprdProduct requirement documentProduct requirement document