2026-11-27 16:19 UTC

Reference design delegates fiat-funded agent budgets offline

state: expiredheat: lowuncertainty: mediumrelevance: mediumagent-payments budget-attenuation agent-securityMarco Celeri

What is this?

Marco Celeri’s Attenuated Agent Budgets project is a specification and tested Python reference implementation for a payment flow in which a customer pays once in fiat through a Merchant of Record, then an orchestrator delegates scoped, capped, revocable spending authority to worker agents using Biscuit tokens. The project says delegation can happen offline, without crypto wallets or per-call crypto settlement, while a stateful ledger at the verifying endpoint tracks spending and supports holds and captures. It explicitly describes itself as not production-ready; its demo simulates the payment flow and ledger rather than processing real payments.

Why it matters

This is a useful early design for a practical agent-commerce problem: letting an orchestrator give less-trusted worker agents narrowly scoped spending authority without requiring every payment to use crypto or contact a central issuer. If adopted, that could make autonomous multi-agent purchases easier to control within existing fiat payment flows. But the project is a prototype, not evidence of production use or a validated tax treatment.

Current assessment

Marco Celeri’s project publishes a specification and tested Python reference implementation for delegating a fiat-funded budget to worker agents. The proposed flow uses a Merchant of Record for the initial payment, Biscuit tokens for offline delegation of capped and scoped sub-budgets, and a stateful verifying-endpoint ledger for cumulative spending and variable-cost holds/captures. The author frames it as an alternative for cases where crypto-native or per-request settlement is undesirable; the tax rationale is the project’s framing, not independently established here. The repository says it is not production-ready and documents open issues including concurrent ledger contention, orphaned holds, chargeback exposure, and revocation denial-of-service risks. Its runnable demo simulates payment and ledger operations rather than processing real payments. The supplied evidence confirms publication and design intent, but gives no independent security review, real-world adoption, or evidence that the approach resolves applicable tax or legal obligations.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

10-26 13:29 (minted)⭐ origin echo-reconstructedA specification and tested Python reference implementation for Merchant-of-Record fiat settlement and offline delegation of independently re
Marco Celeri on github (echo) · attributed from hn.story.50242738 · published time unknown
—
10-26 12:50first on hacker news · published · lag ?Show HN: Extending X402 for MoR fiat payments and budget attenuation
mceleri
—
10-26 12:50amplified on hacker news 👑hn.story.50242738
mceleri
peak 1 · 0 comments · 105% of case engagement
10-26 13:26our radar first saw it · lag ?discovery anchor: hn.story.50242738—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Extending X402 for MoR fiat payments and budget attenuation
Retrieved article excerpt

Open article · Retrieved 2026-10-26T13:28:13.424025+00:00

# Attenuated Agent Budgets

Cryptographic budget delegation (Biscuits) for multi-agent M2M payments via Merchant of Record fiat settlement.

> Turn one fiat payment into a revocable, offline-splittable spending budget for a swarm of autonomous agents. No crypto, no wallets, no per-call settlement.

## The Problem

Current M2M payment protocols (such as L402, X402, and MPP) generally assume crypto-native or per-request settlement. For freelancers and SMEs under several European tax regimes, that's a problem: every crypto-denominated microtransaction can be a taxable disposal event, with no de minimis exemption. Hundreds (or thousands) of automated €0.01 calls can mean too many reportable events.

This project asks a narrower question: once a human has paid once, in fiat, through a Merchant of Record, how do you let an orchestrator agent split that budget into independently revocable, cryptographically enforced sub-budgets for its worker agents, entirely offline, without touching crypto rails?

## How it works

```
flowchart LR
    H[Human] -->|"Pays once (fiat, via MoR)"| MoR[Merchant of Record]
    MoR -->|Settlement webhook| P[Provider]
    P -->|"Master Biscuit + revocation_secret"| O[Orchestrator]
    O -->|"Offline attenuation<br/>(no issuer round-trip)"| SA["Sub-agent A<br/>/v1/ocr, max €0.50/call"]
    O -->|"Offline attenuation"| SB["Sub-agent B<br/>budget: €5.00 total"]
    SA -->|Spend| Svc[("Verifying endpoint<br/>+ ledger")]
    SB -->|Spend| Svc
```

 Loading

One signed [Biscuit token](https://www.biscuitsec.org/) carries the budget. The orchestrator can fork it into as many scoped, capped, sealed sub-tokens as needed, each independently revocable without contacting the issuer. A stateful ledger enforces the cumulative ceiling and handles two-phase hold/capture for variable-cost workloads (LLM generation, streaming, etc.).

Full details:

- Cryptographic architecture and Datalog semantics in [`02-architecture.md`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/02-architecture.md)
- Wire protocol specification in [`03-wire-protocol.md`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/03-wire-protocol.md)
- EU voucher and tax analysis in [`04-tax-and-legal.md`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/04-tax-and-legal.md)

## Status

This is a specification and reference implementation, not a production system. The cryptographic architecture, X402 wire protocol, EU tax analysis (SPV classification), and a runnable Python reference implementation are complete and tested.

Known gaps and trade-offs (ledger contention under concurrent swarms, orphaned holds, chargeback exposure, revocation DoS vectors) are documented in [`05-open-problems.md`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/05-open-problems.md) rather than glossed over. If you're evaluating this for production use, start there.

## Contents

| File | Description |
| --- | --- |
| [`00-abstract.md`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/00-abstract.md) | Abstract and problem framing |
| [`01-landscape.md`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/01-landscape.md) | Comparative landscape of M2M payment and discovery protocols (L402, X402, MPP, MoR platforms) |
| [`02-architecture.md`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/02-architecture.md) | Biscuit authorization architecture, Datalog semantics, sealing, and state delegation |
| [`03-wire-protocol.md`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/03-wire-protocol.md) | X402 wire protocol, JSON Schemas, HTTP status code matrix, and concrete wire exchange traces |
| [`04-tax-and-legal.md`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/04-tax-and-legal.md) | Legal disclaimer, EU Voucher Directive analysis (SPV vs. MPV), and tax neutrality |
| [`05-open-problems.md`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/05-open-problems.md) | Technical limitations, concurrency bottlenecks, edge synchronization, and open questions |
| [`06-references.md`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/06-references.md) | Academic, industry standard, and statutory references |
| [`examples/`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/examples) | Minimal runnable reference implementation (issuance, offline attenuation, hold/capture, verification) |

## Running the Reference Demo

A self-contained Python reference implementation demonstrating all protocol phases (issuance, offline attenuation, fixed-cost calls, dynamic two-phase hold/capture, budget top-up, and surgical revocation) is available in [`examples/`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/examples):

```
cd examples
pip install -r requirements.txt
python3 demo.py
```

Runs in seconds, no payments or external services required. It simulates the MoR webhook, provider, and ledger in-process. Expect output like:

```
>> STEP 7: Surgical Revocation of Rogue Sub-Agent
[*] Orchestrator identifies compromised agent: agent_search_01
[*] Target Block Revocation ID: f76bbf0bc33026b8af04ed902bce04fe9...
[-] Test 7A: Rogue entity attempts revocation with invalid management secret...
    HTTP Status: 401 (Expected 401)
[+] Test 7B: Orchestrator executes revocation via management secret...
    HTTP Status: 200 (Expected 200)
[-] Attempting call with revoked agent_search_01:
    HTTP Status: 410 (Expected 410)
[+] Verifying unaffected agent agent_synth_02:
    HTTP Status: 200
>> DEMO COMPLETED SUCCESSFULLY: All 7 architectural phases verified.
```

## FAQ

**Why not just use Stripe metered billing / a plain API key with a quota?**  
Because the quota then has to live in one central place the orchestrator calls on every spend decision. Biscuit lets the orchestrator carve out and hand off sub-budgets offline, to agents it doesn't fully trust, with no round-trip to the issuer and no shared secret.

**Why not just use X402 / L402 as-is?**  
They are built for crypto-native settlement. This proposal is not a replacement. It is a fiat on-ramp for the same capability delegation problem, aimed at the EU freelancer and SME case where per-call crypto settlement creates unacceptable tax and reporting liabilities.

**Is this audited / production-ready?**  
No. It is a specification with a working reference implementation, published to explore the design space and gather feedback. See [`05-open-problems.md`](https://github.com/mceleri/attenuated-agent-budgets/blob/main/05-open-problems.md) for known limitations and open questions.

## License

This repository uses a dual license:

- **Text and documentation**: [CC-BY-4.0](https://github.com/mceleri/attenuated-agent-budgets/blob/main/LICENSE)
- **Code examples**: [MIT](https://github.com/mceleri/attenuated-agent-budgets/blob/main/examples/LICENSE)

## About the Author / Get in touch

**Marco Celeri** is a Senior Software Architect and AI Solution Architect with 15+ years of experience designing and delivering enterprise distributed systems. Formerly coordinator of the AI Lab at Ex Machina (Switzerland), he currently operates as an independent consultant specializing in on-premise AI/LLM architectures, RAG, and autonomous agent systems.

If you are working on agent payments, budget delegation, or M2M infrastructure, feel free to open an issue or connect on [LinkedIn](https://www.linkedin.com/in/marco-celeri-61730b55).
mceleri10
🟧 echo.github ⭐A specification and tested Python reference implementation for Merchant-of-Record fiat settlement and offline delegation of independently reMarco Celeri——

Interpretation history

Decision trace