Skip to content

Latest commit

 

History

History
169 lines (114 loc) · 8.2 KB

idea.md

File metadata and controls

169 lines (114 loc) · 8.2 KB

Canary402

The service-contract inspector and mystery shopper for paid agents

Before your agent integrates with or pays a service, Canary402 checks the contract and verifies the delivery.

Problem

x402 discovery can tell an agent that a paid service exists, but not whether the complete purchasing experience currently works or whether the delivered result is useful. Buyers must otherwise risk their own money to learn whether an endpoint has a valid payment challenge, accepts payment, responds reliably, and fulfills its advertised task.

Concept

Canary402 is an agent that first determines whether another x402 service is understandable to an autonomous buyer and can then perform a real, paid, end-to-end test. A requester supplies an endpoint and a simple expectation, such as:

Test this weather agent with Istanbul and verify that it returns a temperature.

Canary402:

  1. Inspects the endpoint's OpenAPI, ERC-8004 registration, skill document, and x402 discovery metadata.
  2. Reports missing or unusable contracts and optionally generates value-free OpenAPI/Bazaar repair templates.
  3. Sends an unpaid request and validates the 402 Payment Required response.
  4. Checks the requested price against a strict spending limit.
  5. Makes one real paid request using its Obol wallet only when explicitly authorized.
  6. Validates the response schema and requested outcome.
  7. Produces a timestamped, machine-readable and human-readable report.

An example report might contain:

Canary402 verdict: PASS — 87/100

Payment:       $0.01 USDC settled
Latency:       1.8 seconds
Schema:        Valid
Task outcome:  Correct
Reliability:   2/3 attempts
Warning:       Discovery document omits an example response

Core value proposition

Canary402 does not merely check whether a URL is online. It determines whether another agent can understand the service contract, proposes repairs for integration gaps, and—when authorized—spends real money, exercises the protected service end-to-end, evaluates the delivered result, and produces evidence.

The report should distinguish between:

  • Endpoint and network failures
  • Invalid or incomplete x402 challenges
  • Payment or settlement failures
  • Response-schema failures
  • Incorrect or low-quality task results
  • Documentation and discovery-specification gaps

Public product surface

Potential endpoints:

POST /audit             Paid: run one real endpoint test
POST /compare           Paid: compare several agents on the same task
GET  /reports/{domain}  Free: retrieve a public report
GET  /leaderboard       Free: browse tested agent services

Every audited service receives a shareable report and badge:

✓ Tested by Canary402
87/100 · checked 14 minutes ago

The public report is the distribution mechanism; the paid audit is the x402 product.

Hackathon fit

Best Concept

Canary402 is trust and reliability infrastructure for the agent economy rather than another general-purpose chatbot. It uses an agent to assess other agents through real economic interactions.

Best Execution

A narrow, polished audit workflow is realistic for the hackathon. It can demonstrate an Obol-hosted agent, an agent wallet, x402 buying and selling, LLM evaluation, public deployment, and x402scan listing in one coherent flow.

Most Non-Obol Users

x402 developers have a reason to test their services and share the resulting report. A useful badge and public leaderboard can create a provider-driven distribution loop.

Highest Volume

Each paid audit can create both an inbound payment to Canary402 and one or more outbound payments to tested services. Recurring monitoring and comparison audits could create continued legitimate activity.

Hackathon community loop

Canary402 can audit every participant's submission:

  1. A participant submits an endpoint.
  2. Canary402 buys and evaluates the service.
  3. The participant receives actionable failure and documentation feedback.
  4. The participant fixes the issue and requests another audit.
  5. The successful report is shared publicly.

This directly supports the hackathon goals of testing other submissions and gathering Stack, x402, and documentation feedback.

Differentiation

Canary402 should not be positioned as another x402 directory, static access checker, reputation score, or generic failure classifier. x402scan already handles service discovery and activity reporting, and existing services offer several static checks.

The defining feature is a real post-payment mystery-shopping test with task-specific validation and an evidence-backed report.

Initial scope

The first version should:

  • Support a single public HTTPS JSON GET or POST endpoint.
  • Inspect fixed, same-origin OpenAPI, ERC-8004 registration, and skill-document paths.
  • Compare documented operations with live challenge resource and Bazaar metadata.
  • Generate bounded, value-free repair templates without inventing business semantics.
  • Require the requester to state the expected result.
  • Validate the unpaid challenge before authorizing payment.
  • Enforce a maximum downstream price and per-audit budget.
  • Use deterministic checks for HTTP, payment, latency, and schema.
  • Use the LLM only for semantic quality evaluation.
  • Produce one clean, shareable report page.
  • Publish a machine-readable verdict for use by other agents.
  • Begin with known x402 services and other hackathon submissions.

Safety and integrity requirements

  • Block localhost, private networks, link-local addresses, redirects to private hosts, and other SSRF targets.
  • Never pay above the disclosed budget without explicit approval.
  • Record timestamps, attempt counts, prices, and relevant transaction evidence.
  • Separate objective protocol checks from subjective LLM judgments.
  • Label scores as point-in-time observations rather than permanent guarantees.
  • Prevent providers from supplying hidden evaluation instructions through their responses.
  • Avoid exposing secrets, wallet credentials, or sensitive response contents in public reports.

Possible business model

An audit requester pays a fixed amount. Part of that payment funds the downstream probe, and the remainder is the Canary402 service fee. Failed audits should clearly state whether downstream payment settled and which costs were incurred.

Possible later products include recurring uptime monitoring, batch audits, competitive agent bake-offs, buyer-side routing, and automatic pre-purchase checks for autonomous agents. Witness-style signed or on-chain attestations are intentionally outside the current product.

One-line demo

Give Canary402 a paid agent URL; it checks whether agents can understand it, proposes the missing contract, and can make one budgeted purchase to return a public evidence-backed verdict.

Status

Implemented and live for the Obol Stack/Agents Hackathon.

The current MVP includes:

  • A deterministic Go audit API for public HTTPS JSON GET and POST targets.
  • Optional specification review for public JSON OpenAPI 3.x, ERC-8004 registration, skill.md, live challenge resource URLs, and Bazaar metadata.
  • Deterministic OpenAPI/Bazaar repair templates that retain request shapes but not example values.
  • Probe-only and explicitly authorized paid modes with a 0.02 USDC operator cap.
  • x402 v2 exact/EIP-3009 support for canonical USDC on Base and Base Sepolia.
  • Remote-signer integration, SSRF controls, bounded response capture, and OpenRouter semantic evaluation.
  • Internally retained evidence reports that contain response digests rather than purchased response bodies.
  • One public Hermes/OpenRouter Agent sold for 0.001 Base mainnet USDC, backed by an internal deterministic HTTP API that is neither sold nor publicly routed.
  • A permanent deployment at andrei-obol-agent.dvlabs.dev using Base-mainnet ERC-8004 Agent ID 59094, with legacy Base Sepolia ID 8104 retained.
  • Successful paid settlement tests on Base Sepolia and Base mainnet.

Comparison audits, recurring monitoring, badges, and the leaderboard remain future work.

Reference links