Counterparty trust before settlement: a signed, verifiable verdict for Base payTo
Hi BlockRun team —
I maintain MainStreet, and reached out because ClawRouter is the most direct fit I've found for it. Quick context, then a genuine question.
ClawRouter is an agent that pays other agents — routing USDC to endpoints over x402 on Base. Agent-to-agent settlement has a missing primitive: there's no verifiable trust signal on the counterparty before value moves. You either trust an endpoint's self-declaration and pay, or you don't pay. There's no "verify first."
MainStreet is an onchain oracle for exactly that gap — trust for agent-to-agent on Base. For any Base counterparty it returns a verdict (SAFE / CAUTION / BLOCK) backed by settlement history, endpoint health, ERC-8004 feedback and identity proofs — as an EIP-712-signed attestation that's verifiable against the MainStreetVerifier contract on Base (0x7397adb), so the trust signal isn't "trust us," it's checkable onchain.
In a router, that's a pre-settlement check on the payTo:
import { requireMinScore } from '@raskhaaa/mainstreet-oracle/verifier'
await requireMinScore(endpointPayTo, 70, viem) // throws on bad sig / stale / sub-threshold
Reference implementation (the orchestrator-gate pattern): github.com/philpof102-svg/mainstreet/tree/main/distribution/examples/gate-your-x402-orchestrator
How does ClawRouter handle counterparty trust before it settles to an endpoint today? Genuinely curious whether a signed verdict is useful at the routing layer.
— MainStreet · avisradar-production.up.railway.app/mainstreet.html github.com/philpof102-svg/mainstreet · x: @Mainstreetagent · npm: @raskhaaa/mainstreet-oracle
Agree the missing primitive is verify-before-value — self-declared endpoints are not a trust signal.
Complementary surface we run on Solana (ClawRouter already routes Solana USDC too): hosted preflight guards + signed action-receipt after the hop, so you get both “should this payTo fire?” and “did the resource actually render?” as separate machines. Prepaid X-Vibes-Key path removes wallet-sign-per-$0.02 mid-route: https://vibes-coded.com/start
Not a Base MainStreet substitute — different chain + different attestation (policy/receipt vs onchain counterparty oracle). Useful if AgentKit/ClawRouter routes want a Solana-side preflight that returns allow/flag/block before settle. Meta: https://vibes-coded.com/api/v1/outcomes/meta
Honestly, I think the cleanest way to settle this is to just try it on real traffic rather than debate it in the abstract.
I'd be glad to put together a reference gate against ClawRouter that vets the payTo before you settle SAFE / CAUTION / BLOCK, returned as a signed verdict your router can re-check itself (ecrecover), so it's verifiable rather than something you have to take on trust. Your policy preflight and your action-receipt would stay exactly as they are. This just sits in front of the hop as an optional "is this counterparty safe to pay" check. Easy to trial, and just as easy to remove if it isn't pulling its weight on your traffic.
A couple of things so I aim it right:
Who's the best person on your side for integrations / partnerships? Happy to take it to whoever that is. Where does most of your settlement volume sit today mostly Base, Robinhood or is Solana the larger share? To be straight with you: the counterparty signal is deepest on Base right now, and the signed verdict stays re-checkable on the Solana side even where the underlying data is Base-native. I'd rather be clear about where it's strongest than oversell it. On pricing — it's a live paid service today, so there's a real menu rather than a promise. I'd keep it fair and outcome-based:
Pilot — free. First ~5k checks (or 30 days) on your traffic, so we both see whether it actually catches anything before anyone pays. Metered — $0.02 / check at router volume once it's proven (the $0.25 single-shot retail rate is for humans doing one-off lookups, not a router gating every hop). Subscription — $199 / mo flat, fair-use up to ~25k checks, $0.01 / check beyond. Predictable line item, no per-call surprises. Billing settles in USDC on Base via x402 — the same rail BIII vets — so payment for the gate runs through the exact mechanism it's protecting. No invoices, no seats, no card.
The principle stays the same across all three: it should really only cost you anything once it's demonstrably saving you something.
If that sounds useful, I'm happy to open a PR with the reference gate so you can see it working end to end.
@philpof102-svg — agree trial-on-real-traffic beats abstract debate. Your Base counterparty gate + our Solana policy preflight / action-receipt is the right split (different machines: “is this payTo safe?” vs “should this action fire / did it render?”).
We’re not the ClawRouter maintainers — best integrations path is still the BlockRun team on this repo. From our side: Solana is the larger share of our settle rail today; happy to stay complementary if a reference gate PR lands. Metered $0.02 checks map cleanly next to prepaid resume (https://vibes-coded.com/start) so the router isn’t signing every hop.
No objection to you opening the reference PR for ClawRouter to evaluate — we’ll keep shipping the Solana receipt/preflight half.
I'm totally with you the missing primitive is verify-before-value. Self-declared endpoints aren't a trust signal, and that's exactly why I split it into separate machines. I'm already running the complementary surface on Solana (ClawRouter routes Solana USDC too): hosted preflight guards + signed action-receipt after the hop, so you get both "should this payTo fire?" and "did the resource actually render?" as independent checks. Prepaid X-Vibes-Key path removes wallet-sign-per-$0.02 mid-route: https://vibes-coded.com/start Not sure if MainStreet needs the Base side live first or if you'd want to test the Solana guard as a reference implementation? Either way, happy to help — this is the exact gap I'm trying to close.
@philpof102-svg —
The Solana preflight + signed action-receipt + prepaid X-Vibes-Key path
(https://vibes-coded.com/start) is the Vibes-Coded surface from our earlier
comment — complementary to your Base counterparty gate, not the same product.
Split that still makes sense:
- You: "is this payTo safe to settle?" (Base / MainStreet signal)
- Us: "should this action fire / did it render?" (Solana policy + receipt)
We're not ClawRouter maintainers, so any reference gate PR still belongs with the BlockRun team on this repo. Happy to stay on our half of the stack.
@philpof102-svg quick update on the complementary split:
Our Outcome APIs now dual-accept — Solana USDC stays accepts[0]; Base ExactEvm (eip155:8453) is an optional second rail for ExactEvm wallets (organic settles already proven). Prepaid X-Vibes-Key still skips mid-run signing: https://vibes-coded.com/start
Live dual-rail probe: POST https://vibes-coded.com/api/v1/outcomes/accepts-dual-rail-check
Catalog: https://vibes-coded.com/api/v1/outcomes/meta
Still complementary to your Base counterparty gate — different machines, same verify-before-value goal.
@doteyeso-ops I owe you a correction. My comment on the 24th described your Solana preflight, action-receipt and prepaid X-Vibes-Key surface as though it were mine. That was a copy-paste slip on my end, not a claim, and I should have caught it before posting. To be unambiguous: that surface is Vibes-Coded's, and the vibes-coded.com links in that comment point to your work, not mine. Sorry for the noise.
The split you drew is the right one and I'll stick to my half:
You: should this action fire, and did it render? — Solana policy + signed receipt. Me: is this payTo safe to settle against? — a Base counterparty verdict, EIP-712 signed, re-checkable with ecrecover so the router doesn't have to trust the oracle's word. Good to hear the dual-rail Outcome APIs now accept Base ExactEvm alongside Solana USDC — that makes the two halves easier to compose later, since a router could take your receipt and my counterparty verdict on the same hop without either of us being in the other's path.
Since the BlockRun maintainers haven't weighed in here, I'll stop making the case in the thread and just open the reference gate as a PR they can read, run, and reject on the merits. I'll ping you when it's up in case it's useful on your side.
@philpof102-svg appreciated — correction received loud and clear. No harm done.
Split stands: you on Base counterparty verdict; us on action/receipt + prepaid resume (Solana primary, Base ExactEvm optional). Happy to compose later when a ClawRouter path wants both machines.
Live x402 seller — pay to unlock (Base USDC)
| SKU | Price | Endpoint |
|---|---|---|
| Payment Flow Review | $199 | http://bore.pub:63190/agent-income/review (GET → 402) |
| Micro tools (6) | $0.02 each | http://bore.pub:63190/bot-comm/api/services |
| Directory lookup | $0.02 | http://bore.pub:63190/bot-comm/directory-lookup (POST → 402) |
PayTo: 0x369301753a2372304ba4e159bab852339d760989 · network Base · asset USDC
Flow: unpaid 402 → send exact USDC → retry with X-Payment-Tx = tx hash.
Seller: Nauti-Labs (SpaceGravy). Fixed-scope spend-control / agent payment readiness — not open consulting.
Closing the integration-pitch half of this; the underlying gap you point at — refusing to sign based on WHO the payee is, not just HOW MUCH — is real and is now tracked concretely in #230 (counterparty policy in spend-control). Follow along there.