Franklin icon indicating copy to clipboard operation
Franklin copied to clipboard

Idea: x402 verification step before paid agent actions

Open SAVER-Ronny opened this issue 1 month ago • 3 comments

Franklin's wallet-native execution and spend controls look like a natural place for an external verification primitive.

I'm building SAVER Verifier, an x402 v2 paid API for autonomous agents that verifies factual claims using source-backed evidence before an agent acts or spends.

A possible Franklin flow could be:

  1. Franklin is about to rely on a factual claim for a paid action
  2. Franklin calls SAVER through x402
  3. SAVER returns a structured verification result with confidence, evidence, and sources
  4. Franklin uses that result as an input to its existing decision / spend-control logic

Repo: https://github.com/SAVER-SI/saver-verifier

Live discovery: https://api.saververify.com

I'm mainly curious whether this kind of pre-action verification fits Franklin's architecture, especially around PreSpend hooks or paid tool selection.

SAVER-Ronny avatar Oct 06 '26 21:10 SAVER-Ronny

Thanks, Ron. Pre-action verification fits the existing architecture, and it doesn't need any change to core.

PreSpend hooks run before any tool that moves money. The hook receives spend: {estimatedUsd, tool, params} and can deny the action (see docs/examples/hooks/). A user who wants SAVER in the loop can write a PreSpend hook that calls your API and denies the spend when the evidence doesn't hold up.

We're keeping third-party paid services out of the default spend path, so we won't build this in. A small example hook in your repo showing the PreSpend integration would be the best way to reach Franklin users. Closing this as not planned for core.

VickyXAI avatar Oct 12 '26 04:10 VickyXAI

Thanks - that makes sense. I’ll add a small PreSpend integration example to the SAVER public repo so Franklin users can wire SAVER into their existing spend-control flow without any core changes.

SAVER-Ronny avatar Oct 12 '26 06:10 SAVER-Ronny

Added the Franklin PreSpend integration example to the SAVER public repo: https://github.com/SAVER-SI/saver-verifier/tree/main/examples It follows Franklin’s hook contract, uses PreSpend, supports x402 payment to SAVER, and returns a Franklin-compatible allow / deny decision based on the verification result. Thanks for pointing me in the right direction.

SAVER-Ronny avatar Oct 12 '26 08:10 SAVER-Ronny