Skip to content

feat: add compliance plugin for x402 validation + ERC-8004 identity - #9

Open
GentechLabs wants to merge 3 commits into
GOATNetwork:mainfrom
GentechLabs:feat/compliance-plugin
Open

feat: add compliance plugin for x402 validation + ERC-8004 identity#9
GentechLabs wants to merge 3 commits into
GOATNetwork:mainfrom
GentechLabs:feat/compliance-plugin

Conversation

@GentechLabs

Copy link
Copy Markdown

Summary

Adds a compliance plugin to GOAT AgentKit — 3 new actions for pre-flight validation and identity checks.

New Compliance Plugin (3 actions)

1. compliance.validate_x402_payment

Pre-flight checks on x402 payment requests before submission:

  • Recipient is not zero address
  • Amount is positive and under sanity limit
  • Network is supported
  • Asset is recognized
  • Merchant gateway uses HTTPS

2. compliance.validate_x402_response

Validate HTTP 402 responses against the x402 spec:

  • Status code is 402
  • Content-Type header present
  • Body is not empty
  • Contains x402 challenge markers
  • x-payment-info header present
  • Expected amount matches (optional)

3. compliance.check_agent_identity

ERC-8004 agent identity verification before transacting:

  • Checks agent registration in identity registry
  • Retrieves reputation score from reputation registry
  • Validates against configurable threshold
  • Returns detailed report for decision-making

Why This Matters

GOAT AgentKit has 15 plugins (118 actions) covering wallet, DEX, bridge, x402, and ERC-8004 — but no compliance or pre-flight validation layer. This plugin fills that gap, making it safer for agents to transact autonomously.

Verification

  • TypeScript compiles cleanly
  • Follows existing plugin pattern (ActionDefinition, Zod schemas, ActionProvider)

Gentech added 3 commits August 25, 2026 01:10
3 actions for GOAT Network agentkit:
- validateX402Payment — pre-flight payment checks
- validateX402Response — HTTP 402 response validation
- checkAgentIdentity — ERC-8004 agent reputation verification

Built by GenTech Labs — agent economy infrastructure.
3 actions for GOAT Network agentkit:
- validateX402Payment (120 lines) — pre-flight payment checks
- validateX402Response (114 lines) — HTTP 402 response validation
- checkAgentIdentity (101 lines) — ERC-8004 agent reputation verification

335 lines total. Built by GenTech Labs.
3 actions for GOAT Network agentkit:
- validateX402Payment (120 lines) — pre-flight payment checks
- validateX402Response (114 lines) — HTTP 402 response validation
- checkAgentIdentity (101 lines) — ERC-8004 agent reputation verification

335 lines total. Built by GenTech Labs.
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