Skip to content

0.6.0: hand back the offer without answering a request - #9

Merged
ralyodio merged 1 commit into
mainfrom
feat/offer-accessor
Sep 9, 2026
Merged

ralyodio merged 1 commit into
mainfrom
feat/offer-accessor

Conversation

@ralyodio

@ralyodio ralyodio commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

A site with its own refusal — rssamplifier's tiered limiter, whose 429 body says which rung the caller is on and what the next one costs — wants to keep that body and add a machine-readable offer to it, so an x402 client can pay on the spot instead of being told in prose to go and fetch /crawl.

The alternative is every such site rebuilding payTo, price, currency and network from its own copy of the config, which is how two of them end up quoting different numbers.

Both offer and receipt were already computed inside the closure; this only stops them being private. Purely additive — 85/85 tests pass, three of them new.

🤖 Generated with Claude Code

A site with its own refusal -- rssamplifier's tiered limiter, whose 429 body
says which rung the caller is on and what the next one costs -- wants to keep
that body and add a machine-readable offer to it, so an x402 client can pay
on the spot instead of being told in prose to go and fetch /crawl.

The alternative is every such site rebuilding payTo, price, currency and
network from its own copy of the config, which is how two of them end up
quoting different numbers. Both were already computed inside the closure;
this only stops them being private.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YDGCxTmEPs3ecwjjLJDQXh
@ralyodio
ralyodio merged commit 8fec5ee into main Sep 9, 2026
6 checks passed
@ralyodio
ralyodio deleted the feat/offer-accessor branch September 9, 2026 16:50
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