feat(agentkit): Add PolicyCheck action provider for pre-purchase seller verification#948
Open
vibegpt wants to merge 2 commits intocoinbase:mainfrom
Open
feat(agentkit): Add PolicyCheck action provider for pre-purchase seller verification#948vibegpt wants to merge 2 commits intocoinbase:mainfrom
vibegpt 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 <noreply@anthropic.com>
🟡 Heimdall Review Status
|
…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 <noreply@anthropic.com>
8bee432 to
37043b4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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