Skip to content

feat: action execution tools — Mercury payments, dispute emails, status updates - #80

Merged
chitcommit merged 1 commit into
mainfrom
feat/action-execution-tools
Apr 6, 2026
Merged

chitcommit merged 1 commit into
mainfrom
feat/action-execution-tools

Conversation

@chitcommit

Copy link
Copy Markdown
Contributor

Summary

  • Adds write capabilities to Mercury client (POST, getRecipients, createPayment)
  • 5 new ActionAgent tools for executing real-world actions:
    • execute_payment — Mercury ACH transfers with idempotency keys + obligation linking
    • list_mercury_recipients — discover saved payment targets
    • update_obligation_status — mark bills paid/deferred with audit trail
    • send_dispute_email — draft correspondence (saved as draft, requires user approval before sending)
    • get_action_log — view recent agent actions
  • All write operations logged to cc_actions_log with full metadata

Test plan

  • Type check passes (confirmed)
  • ActionAgent loads all tool sets without error
  • list_mercury_recipients returns recipients for a test account
  • execute_payment creates ACH with idempotency key (test with small amount)
  • send_dispute_email creates draft in cc_dispute_correspondence (does NOT send)
  • get_action_log returns recent entries

🤖 Generated with Claude Code

…tatus updates

- Mercury write API: POST helper, getRecipients, createPayment (ACH)
- execute_payment tool: Mercury ACH transfers with idempotency, obligation linking, action logging
- list_mercury_recipients tool: discover payment targets before executing
- update_obligation_status tool: mark bills paid/deferred with audit trail
- send_dispute_email tool: draft dispute correspondence (requires user approval)
- get_action_log tool: view recent agent actions
- All write operations logged to cc_actions_log

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@chitcommit
chitcommit enabled auto-merge (squash) April 6, 2026 22:45
@chitcommit
chitcommit merged commit fa4e7b8 into main Apr 6, 2026
10 of 13 checks passed
@chitcommit
chitcommit deleted the feat/action-execution-tools branch April 6, 2026 22:45
@coderabbitai

coderabbitai Bot commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Warning

Rate limit exceeded

@chitcommit has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 8 minutes and 9 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 8 minutes and 9 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c7bf6412-cb87-4c70-8074-66c0233d1f6e

📥 Commits

Reviewing files that changed from the base of the PR and between 96a4f3a and 7a36300.

📒 Files selected for processing (3)
  • src/agents/action-agent.ts
  • src/agents/tools/actions.ts
  • src/lib/integrations.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/action-execution-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.

@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown
  1. @coderabbitai review
  2. @copilot review
  3. @codex review
  4. @claude review
    Adversarial review request: evaluate security, policy bypass paths, regression risk, and merge-gating bypass attempts.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7a363000b3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

const n = limit ?? 20;
if (action_type) {
const rows = await sql`
SELECT id, action_type, target_type, target_id, description, status, created_at

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Select executed_at in filtered action log query

When get_action_log is called with action_type, this query selects created_at, but cc_actions_log only has executed_at (see schema), so the filtered branch throws a SQL “column does not exist” error and the tool fails for every filtered request. Switching this projection to executed_at (or aliasing it consistently) fixes the runtime failure and keeps response shape aligned with the unfiltered branch.

Useful? React with 👍 / 👎.

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