Why this matters for NEAR

The impact is hardening rails for NEAR's agentic-economy push: every agent-wallet builder on NEAR can run the battery against their own design for free, then adopt the reference wallet's five invariants (INV-1..INV-5) as a checklist. PRD.md §7

The documented gap

Agent-wallet custody docs publish best-effort guardrail semantics, so builders inherit vague guarantees instead of tested ones. The concrete failure classes are documented in the partner's own words, quoted from the frozen snapshot (docs/quotes/outlayer-agent-custody.md):

  • Concurrency: "the cumulative caps may be exceeded by the in-flight batch" (PRD.md §2, snapshot)
  • Freeze: "freezing the wallet stops new orders but does not cancel resting ones" (PRD.md §2, snapshot)
  • Ambiguous status: "do not auto-retry (the transfer may have fired, so a retry can double-spend)" (PRD.md §2, snapshot)

The checklist

Run the battery, then adopt the five invariants as a free design checklist for your own NEAR agent wallet (PRD.md §3):

  • Concurrency cannot settle beyond the committed velocity cap
  • A freeze produces zero future settlement from prior authorizations
  • Settlement is idempotent per intent id
  • The function-call key cannot move value outside the policy forward
  • No settlement originates outside the policy-approved request flow

Verifiability as a NEAR feature

Every verdict hash is attested on NEAR testnet and explorer-verifiable (SC-3). The append-once tamper-evident ledger (same-hash re-attest idempotent, conflicting hash panics) is itself a reusable NEAR pattern for verifiable claims. See the contract (contracts/attest/src/lib.rs) or recompute the hashes yourself.

Free and open

MIT licensed (LICENSE), one command (pnpm arena:run), secret-free base run (FR-9, SC-1). No public harness proves policy-engine failure with settlement on a real fork: "none publicly executes a financial exploit against the agent-wallet policy engine itself (spend caps, freezes, settlement receipts, function-call-key scoping) on a real NEAR fork, with settlement" (docs/NOVELTY-POSITIONING.md).