feat(agentkit): Add PolicyCheck action provider for pre-purchase seller verification#948
feat(agentkit): Add PolicyCheck action provider for pre-purchase seller verification#948vibegpt wants to merge 2 commits intocoinbase:mainfrom
Conversation
…er verification Adds a walletless action provider that enables AI agents to verify e-commerce seller policies before making purchases. Analyzes return policies, shipping terms, warranty coverage, and terms of service. Actions: - policycheck_analyze: Full policy analysis from text or URL - policycheck_check_url: Quick URL-based seller check Returns risk level, buyer protection score (0-100), key findings, and purchase recommendation via the PolicyCheck A2A API. Co-Authored-By: Claude Opus 4.6 <[email protected]>
🟡 Heimdall Review Status
|
8bee432 to
37043b4
Compare
|
PolicyCheck covers the off-chain side of seller verification (return policies, shipping info). A complementary on-chain check: verify the seller's wallet holds credentials that indicate trustworthiness before the agent commits to a purchase. InsumerAPI can add an on-chain trust dimension to AgentKit's pre-purchase flow. response = requests.post(
"https://us-central1-insumer-merchant.cloudfunctions.net/insumerApi/v1/trust",
headers={"X-API-Key": key},
json={"wallet": seller_wallet}
)
trust = response.json()["data"]["trust"]
# trust["dimensions"]["stablecoins"]["passCount"] → USDC presence across 7 chains
# trust["dimensions"]["governance"]["passCount"] → UNI, AAVE, ARB, OP holdings
# Wallet with diversified holdings = less likely to be a throwaway storefrontA seller with zero on-chain footprint is a different risk profile than one holding governance tokens and stablecoins across multiple chains. On-chain state is hard to fake — it's ground truth. API docs: https://insumermodel.com/openapi.yaml. There's also an MCP server ( |
|
Hi and thanks @douglasborthwick-crypto. Agree, on chain wallet history is a
solid complement to off chain policy analysis. Two different trust signals,
both going to be useful for agents making autonomous purchases!
…On Fri, Feb 27, 2026 at 2:31 PM Douglas Borthwick ***@***.***> wrote:
*douglasborthwick-crypto* left a comment (coinbase/agentkit#948)
<#948 (comment)>
PolicyCheck covers the off-chain side of seller verification (return
policies, shipping info). A complementary on-chain check: verify the
seller's wallet holds credentials that indicate trustworthiness before the
agent commits to a purchase.
InsumerAPI <https://insumermodel.com/developers/> can add an on-chain
trust dimension to AgentKit's pre-purchase flow. POST /v1/trust returns
an ECDSA-signed wallet profile — 14 checks across stablecoins, governance
tokens, and NFTs on 31 chains:
response = requests.post(
"https://us-central1-insumer-merchant.cloudfunctions.net/insumerApi/v1/trust",
headers={"X-API-Key": key},
json={"wallet": seller_wallet, "chain": "base"}
)trust = response.json()["data"]["trust"]# trust.dimensions.stablecoins.passCount → seller holds USDC, USDT, DAI# trust.dimensions.governance.passCount → seller holds governance tokens# Wallet with diversified holdings = less likely to be a throwaway storefront
A seller with zero on-chain footprint is a different risk profile than one
holding governance tokens and stablecoins across multiple chains. On-chain
state is hard to fake — it's ground truth.
API docs: https://insumermodel.com/openapi.yaml. There's also an MCP
server (mcp-server-insumer on npm) for agents using MCP tool discovery.
—
Reply to this email directly, view it on GitHub
<#948 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BSAQVKSX52QQNZOJRRF3ORT4OA2KBAVCNFSM6AAAAACVBAQPOOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTSNZSG4YTMNRUGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
…k intelligence Walletless action provider with two actions (policycheck_analyze, policycheck_check_url) that call the PolicyCheck A2A API at policycheck.tools. Returns risk levels, buyer protection scores, key findings, and factual summaries. Co-Authored-By: Claude Opus 4.6 <[email protected]>
37043b4 to
2aedca8
Compare
|
Thanks @vibegpt — agreed. The two signals are complementary: PolicyCheck tells you what the seller says (policies, terms), on-chain state tells you what the seller has (capital, credentials, history). Both useful for an agent making autonomous purchase decisions. We recently expanded the trust profiles to 17 checks across 4 dimensions (added staking positions — stETH, rETH, cbETH — as a 4th dimension alongside stablecoins, governance, and NFTs). Happy to collaborate on a combined risk assessment if there's interest. |
Description
Adds a PolicyCheck action provider that enables AI agents to verify e-commerce seller policies before making purchases. This is the first pre-purchase seller verification tool in AgentKit, addressing the WISHLIST item "Integrate with commerce rails for agent payments".
Why this matters
As agentic commerce grows, AI agents need to verify seller trustworthiness before completing purchases. Visa has documented a 25% increase in malicious bot-initiated transactions, with fraudulent storefronts specifically targeting AI shopping agents. Currently, AgentKit has no tool for pre-purchase seller verification.
PolicyCheck fills this gap by analyzing seller return policies, shipping terms, warranty coverage, and terms of service to produce:
Actions added
policycheck_analyzepolicycheck_check_urlHow it works
The action provider calls the PolicyCheck A2A API using the A2A (Agent-to-Agent) protocol via JSON-RPC 2.0. It's a walletless provider — no blockchain interaction needed, works on all networks.
Risk factors detected include:
Usage
Tests
13 unit tests covering success paths, error handling, URL delegation, and request format validation.
PolicyCheck is also live in the x402 Bazaar (#1 of 100 resources) and available as an MCP tool.
Checklist