Idea: x402 verification step before paid agent actions
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:
- Franklin is about to rely on a factual claim for a paid action
- Franklin calls SAVER through x402
- SAVER returns a structured verification result with confidence, evidence, and sources
- 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.
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.
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.
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.