Skip to content

v1.21.0 ERC-4337 Session Keys — tools (the user-facing half of #78)#79

Merged
ceoguy merged 4 commits into
mainfrom
feat/erc4337-tools
Jun 11, 2026
Merged

v1.21.0 ERC-4337 Session Keys — tools (the user-facing half of #78)#79
ceoguy merged 4 commits into
mainfrom
feat/erc4337-tools

Conversation

@ceoguy

@ceoguy ceoguy commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Why a second PR

#78 squash-merged only its first two commits (the libs + policy gate — "PR A"). The user-facing tools + SECURITY.md + version bump were pushed to that branch afterward and never reached main. This PR carries exactly those outstanding commits, cherry-picked clean onto main.

What lands here (135 → 140 tools, v1.21.0)

  • chaingpt_aa_session_build_grant / _build_revoke — unsigned grant/revoke payloads; owner signs externally; unbounded grants refused by construction.
  • chaingpt_aa_session_status — chain-authoritative session state.
  • chaingpt_aa_submit_userop — custody-free eth_sendUserOperation (refuses empty signatures).
  • chaingpt_agent_wallet_4337_sign_and_send — local gates (erc4337 who/where + per-tx/velocity on the inner call) THEN the chain enforces the granted caps. Bundler cap-rejections surface as chain-side refusals.
  • PreToolUse guard on both new signing/submitting tools; agent-wallet + aa skill docs; SECURITY.md; CHANGELOG + version 1.21.0.

Verification

8/8 local layers, 428 vitest, 140 tools at boot. Surface is opt-in fail-closed (erc4337.enabled absent/false everywhere) so it's inert until an admin enables it.

Tag gate unchanged: v1.21.0 tags only after the live Base Sepolia loop (TESTING.md) — the unrestricted-local-vs-chain-refusal proof. Safe to merge ahead of it.

🤖 Generated with Claude Code

Klow and others added 2 commits June 10, 2026 16:08
…allet_4337_sign_and_send — both fences (local gates + chain caps), hook coverage, docs, v1.21.0

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…money-handling plugin

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@ceoguy, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 22 minutes and 16 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bfc145a4-b955-4009-b0f5-38efcbaec8c2

📥 Commits

Reviewing files that changed from the base of the PR and between 082b1c2 and 5773e67.

⛔ Files ignored due to path filters (1)
  • docs/demo/agent-wallet-refusal.gif is excluded by !**/*.gif
📒 Files selected for processing (20)
  • .claude-plugin/marketplace.json
  • .claude-plugin/plugin.json
  • CHANGELOG.md
  • README.md
  • SECURITY.md
  • TESTING.md
  • VERSION
  • docs/demo/agent-wallet-refusal.tape
  • docs/demo/demo-driver.mjs
  • hooks/mainnet-guard.js
  • mcp-server/package.json
  • mcp-server/src/__tests__/aa.test.ts
  • mcp-server/src/__tests__/aa_sessions_tools.test.ts
  • mcp-server/src/index.ts
  • mcp-server/src/lib/smart-sessions.ts
  • mcp-server/src/tools/aa.ts
  • mcp-server/src/tools/aa_sessions.ts
  • mcp-server/src/tools/agent_wallet_4337.ts
  • skills/aa/SKILL.md
  • skills/agent-wallet/SKILL.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/erc4337-tools

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Klow and others added 2 commits June 10, 2026 16:13
…*.tape) + README hero

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… pinned module addresses

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ceoguy ceoguy merged commit 38c1add into main Jun 11, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant