Skip to content

feat: add secure-payments reference for hardening agent payments#41

Open
theyavuzarslan wants to merge 1 commit into
coinbase:mainfrom
theyavuzarslan:add-secure-payments-reference
Open

feat: add secure-payments reference for hardening agent payments#41
theyavuzarslan wants to merge 1 commit into
coinbase:mainfrom
theyavuzarslan:add-secure-payments-reference

Conversation

@theyavuzarslan

@theyavuzarslan theyavuzarslan commented Jul 10, 2026

Copy link
Copy Markdown

What

Adds a secure-payments.md reference and one routing row in SKILL.md that points to it.

Why

The existing references cover how to move money (send, trade, x402 pay). None cover the checks that should run before money moves when the amount, address, or endpoint came from somewhere the agent does not control (a web page, a tool result, a bazaar listing, another agent). The risk is concrete: if a recipient address or amount arrives inside untrusted text, nothing downstream re-checks it before the wallet spends.

What it adds

The reference sequences existing skill commands into a safe order and adds agent-side guardrails:

  • Inspect an x402 endpoint with x402 details before paying, and check price, asset, chain, and pay-to against expectations.
  • Pay with an explicit --max-amount per-payment cap.
  • Provenance check for payment parameters from untrusted sources (allowlist, re-fetch, or human confirm).
  • Session and per-minute budgets plus a kill switch, tracked in the agent's own code.
  • An append-only audit log that records decisions, never secrets.

Scope

  • New file: skills/agentic-wallet/references/secure-payments.md
  • One added row in the SKILL.md routing table

The only literal command blocks are awal status, x402 details, and x402 pay --max-amount, all already permitted by the skill's allowed-tools. Budget, kill switch, and audit log are written as agent-side logic, not shell the skill runs, so nothing falls outside the existing tool policy. No change to any current reference.

Disclosure

I work on agent security at GoPlus Security, and I proposed a version of this pattern for Circle's agent wallet skill (circlefin/skills#35). This reference is rewritten for awal and the x402 bazaar, is vendor-neutral, and references no external product.

@cb-heimdall

Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 1
Sum 2

Adds a secure-payments.md reference and a routing row pointing to it. The
existing references cover how to move money (send, trade, x402 pay); none
cover the checks that should run before money moves when the amount, address,
or endpoint came from a source the agent does not control.

Uses only commands already in the skill: x402 details to inspect an endpoint
before paying, and --max-amount as the per-payment cap. The provenance check,
session/rate budget, kill switch, and audit log are described as agent-side
logic, so nothing falls outside the skill's existing allowed-tools. Composes
with the current references without changing their behavior.
@theyavuzarslan
theyavuzarslan force-pushed the add-secure-payments-reference branch from ac03649 to 303e767 Compare July 10, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants