JefferyAkorful.sol

Work / agent-vault

Agent Vault

A self-custodial vault where AI agents spend inside deterministic policy limits.

  • Internet Computer
  • AI agents
  • DeFi
  • Motoko
  • React
# agent-vault// the record

Self-custodial custody for AI agents on the Internet Computer. Agents sign and settle ICRC transfers inside per-token velocity limits; anything outside policy waits for the owner.

  1. 01

    Three tiers: autonomous inside the allowlist and budget, escalated to a human ticket, or rejected outright.

  2. 02

    Assets sit in an isolated 32-byte subaccount, never in the canister's shared account.

  3. 03

    Fee-inclusive hourly, daily and per-transaction budgets, with live ledger fees and decimals per token.

  4. 04

    A circuit breaker trips on repeated settlement failures or by one owner click.

// what the contract refuses
  • CircuitBreakerActiveCircuit breaker forbids everything.Policy.mo:152
  • InvalidAmountA zero amount is always forbidden.Policy.mo:155
  • RecipientNotAllowedRecipient is on neither allowlist, so it escalates to the owner.Policy.mo:159
  • OutsideAllowedHoursOutside the recipient's allowed-hours window, so it escalates.Policy.mo:162
  • TokenLimitNotConfiguredA token with no configured limits can never settle autonomously.Policy.mo:163
  • PerTransactionLimitFee-inclusive amount is over the per-transaction limit.Policy.mo:165
  • HourlyLimitWould exceed the hourly spend limit.Policy.mo:166
  • DailyLimitWould exceed the daily spend limit.Policy.mo:167
  • SwapRequiresApprovalSwaps never settle autonomously.Policy.mo:185