Wakeless

How it works

An agent's paid tool calls are its plan, and on today's x402 rails the plan leaks at three layers. Per call: the exact scheme puts one token transfer on chain per request, so ordering and timing are public. At settlement: the batch-settlement scheme moves the calls off chain, but every channel open names the payer and the payTo, and every settle and distribute publishes the cumulative amount, so the vendor set and the spend per vendor are public. At funding: the depositor is public, so whoever owns the channel is public. Wakeless is a shielded sibling of batch-settlement on Solana that answers each leak in turn: off-chain cumulative vouchers, so nothing touches the chain per call; escrow and redemption inside a MagicBlock Private Ephemeral Rollup (PER), so the vendor is never named on the base layer; and channels fundable from any chain through Aurora Intents in confidential mode, so the Solana arrival cannot be linked to the operator's origin wallet. It keeps the x402 V2 envelope, the three headers, the three facilitator endpoints and the standard 50-byte voucher, under the scheme id batch-settlement-shielded. The privacy claim is against the public ledger. Three operators see inside: the facilitator (vouchers), MagicBlock's enclave (private transfers) and NEAR's private shard (funding origin and route).

Why hide the relationship

x402 lets agents pay per request, but every payment is a public Solana transaction. Hidden amounts are now the baseline. What stays public is the relationship: who an agent pays, how often, in what order. A buyer's vendor set is its plan; a seller's customer list is its asset, and what it has learned from one buyer is what sets the terms it offers next. Public settlement turns that private history into free reputation for anyone who did not earn it.

The calls are the plan. An agent's choice of paid tools, their order and their timing can reveal its next move, and hiding amounts does not hide that trajectory. The same leak applies wherever an agent pays for its inputs:

  • Trading and market signals: can expose a strategy before execution.
  • Due diligence and acquisitions: can reveal a target before a bid.
  • Legal research: can signal who will be sued, and on what theory.
  • Threat intelligence: can tip off an adversary to an investigation.
  • Procurement and sourcing: can expose suppliers, alternatives and fallbacks.
  • Agent orchestration: can reveal the specialists behind a capability stack.

Hidden amounts are the baseline: seven Crypto World's Fair teams built private x402 for agents in one month, and all seven hide how much an agent paid. Wakeless hides that too, and whom it paid, and in what order, because commercial history is bilateral and private. What a seller has learned from doing business with one buyer (settled cleanly seven periods running; overran its deposit twice; closed a channel owing money) is that seller's asset, and it is what sets the terms the seller offers next time. There is no canonical "is this buyer good"; there are only relationships, each private to the party that earned it. Public settlement destroys that: on the public batch-settlement rail anyone can read a seller's customer list, each customer's spend and which customers are regulars, a competitor can undercut the regulars, and a buyer's vendor set and ordering is its plan. So privacy here is not a feature on the rail; it is what lets a relationship stay an asset on an open chain. Three things follow, and this repository builds all three: the observer test measures what a reader can rebuild (vendor set, spend per vendor, first-contact order), not only how many transactions it sees; the leakage index shows that this graph is public today, with real counts; and behind a flag the seller prices from the private history the rail protects.

Side by side: the same workload on both rails

docs/side-by-side.md, generated by pnpm side-by-side on 2026-11-07 on Solana devnet: 30 paid calls across three vendors (10 each, in blocks), then each rail's redemption, once through the stock x402 batch-settlement facilitator, server and client examples (checkout e208bd3, unmodified) and once through Wakeless. Every row was read back from the devnet ledger with getTransaction through the watcher's own reader; nothing comes from a facilitator, server or client log. Sample size: one run per rail, one payer, three vendors, 30 calls. JSON: docs/side-by-side.json; the same data as a page: pnpm watcher:web.

Public batch-settlementWakeless
Base-layer transactions per call9 / 30 = 0.300 / 30 = 0.00
Vendors recovered / actual3 / 30 / 3
Spend recovered100.00%0.00%
First-contact order recoveredyesno

The public rail put 9 transactions on the base layer (an open, a settle and a distribute per vendor), and from them alone reconstruct() rebuilt the payer 94BRf9UjVLdNUBGGeKuFqWSk4sA67EDtAmS9pm6RTjzT, all three vendors in first-contact order, and 100,000 base units of spend per vendor: the open names payer and payTo, the settle carries the voucher's cumulative amount in clear in the Ed25519 instruction beside it, and the distribute names the recipient. The watcher's four checks (no vendor address, no vendor-attributable amount, no Memo instruction, no fee transfer naming the vendor) fail on the public rail as expected.

#Public railSignatureBase layerIn clear
1open, vendor 1, deposit 1000005heSWwPWgARrp661kYmqNkbDGQfvpo2A4rMqqcCDvn8Aq6r92o9FYVbayNvDtJKxXRXxNzvLcSCht4kGY6LEqh7Sslot 519519628payer, payTo, amount, two Memos
2settle, vendor 159P6Cy3fgRc2Be9vk9mYR2FaiHARN1FySXtXDWSp3efH11B7P4qGU2oo2FZRYpmJeYsLzXDpj3RBJJTJDcmg6sa7slot 519519860cumulative amount in the Ed25519 instruction
3distribute, vendor 12Rt69ztjwiKNgyJFdcirDnAHt8Jhmjd7ahyWJk9raLVeKdFCHDDhs7hgkshZkvnxTqSXJ3Eu347QkDHhUyEePqJMslot 519519868recipient, amount, Memo
4open, vendor 236DyHW7fMLbARYDmSW3PbvoptNcapsY5qAz1nbg6jW5TqYzcwqPXvFF1V71h8xSRpeEH5rPjxFCXtuFDqWwDyFehslot 519519892payer, payTo, amount, two Memos
5settle, vendor 2zSicACsABQRLs7ZaUw7mb7kmtFJy71RWzf98bokivVxVKtwooCtV8Y6UTLuBfMkXUa7cPVPP2kzLBKEnSvkK6Xmslot 519520133cumulative amount
6distribute, vendor 23pWXeacPuG83vcRmeLeZApkwXf26fmf7Y9zFLbtDpmphEabnfzL5dZF8vWnRo2eMm5KDeuPju2DbEYy2G2c6ipmPslot 519520151recipient, amount, Memo
7open, vendor 32DFtasJxJMEFi7hT6cXu6Gn3xnuaKnjzQXBDD4WnZDL187YSvv2CTAMPidF5b6YpA8Au8JkQDj7Va8xce2g2sDrzslot 519520178payer, payTo, amount, two Memos
8settle, vendor 34mVwpMj2MjPp1Qw4U5hbxjx7dK8Bjrmx1v3dMUAVq8JaYKjhasFfwLpQPXivTSjX5fVTzUhWf2Agvx1k9wYJYrQaslot 519520421cumulative amount
9distribute, vendor 32azAqZ3TSgWbMjzi2p1jGoxAbNrNSe155aSXpdeX4qLaoEdyztmcj4vrddhdNqzZ4r5tdvYhJVXyxEThJyKdJfmAslot 519520428recipient, amount, Memo

Wakeless ran the same 30 calls through the in-process facilitator, the three synthetic vendors and the client over the attested MagicBlock binding (buyer 3sWw9GDqNiqqQZUsSs7qkcbnodA4yMLXtXbH4q6anpba, escrow EasXF7gqHLMMncsB7aV18EtzrhNkzQy2oC7pdKPKT3k6), then one redemption run: 3 channels owed, 3 redeemed by private transfer. The six signatures the run emitted are not on the base layer; a devnet explorer returns nothing for them, and the TEE RPC answers existence and success only. The observer also scanned every base-layer transaction touching the buyer, the escrow or a vendor in the run's window and found none. reconstruct() recovered no payer, no vendor, no spend and no settlement time, and every signature passes all four checks.

#WakelessSignatureBase layerIn clear
1channel deposit, vendor 1 (private transfer)45rG4cjnUZL5zXn23DLSVF67pmJRQxGu5YY5FqMXG1ky2kVfS2gdaRJxdo12yb1UwL4gswVg1QNTKAjwUcpSwM7unot on the base layernothing
2channel deposit, vendor 22rFkuM8SBnJj9hZxWN7DTFzhjtET9pjSupensdSzfaEhNEBtb4WrVXPhc9D3mygRYsVar7FghTt1acPhGpE6yTq9not on the base layernothing
3channel deposit, vendor 3TFLa6G8pLqLkWqRWNn41HdAdxiGiZsJXy6euFfwz6TVmG3enK1Nhh2EKDtNYoJ7vuktwKbPjiXY8xiFKT5hL4vVnot on the base layernothing
4redemption, vendor 1 (private transfer)5sEq488hfWkkVbzuPuuqL89LzQSGS1eqtoBemwYnHD9NhSX8uEheEDvrGhh2CaWpqWwudo8k6Fecj9wM2VBAqH9enot on the base layernothing
5redemption, vendor 22etiqt3FMcX3UmbttRCXpFVg969BYUyHYa8kTp3rWodU1E4yvB9JCAsrqhqjH31d6xyWk1Qk88mx5FJ5LDRWqzn5not on the base layernothing
6redemption, vendor 33pmLLjquxJ3dSHhSEpRcKCZhYwXDp731XpqUB4EsWWvUHApr6rWFiDaJzqTHSViY5gBr8FWmaXsAU79qLYy2wfgNnot on the base layernothing

What remains readable of Wakeless is the edge of the pool, not the relationship: a vault deposit, when the buyer makes one, names the buyer and an amount going in, and a vault withdrawal names a vendor and an amount coming out, but nothing on the ledger joins the two. docs/WATCHER.md shows those edges on real signatures: the buyer's 1 USDC vault deposit before the 6 Nov pnpm e2e run, 384j89A1T1BeVAp2UrTDvLYCL8EYnAjJpp3c3jFQzkLagD5ipv87kRUWWdwmDxGM8J2VJF73pYpWHym1Vs2v2C9U (slot 519469332, buyer and vault named, 1,000,000 base units in clear, no vendor), and the 31 Oct spike's vault withdrawal of 0.25 USDC to vendor 1, 5XKE2bt32CvgwRSNc4iaESJUd397WQLut7xHSudQK18YnGXACvEMLAsMU7AVAmy4BL66PpGxxPsx2ntc2Lz319bp (slot 517194528, signed by the validator, vault and vendor named, no buyer, no channel). Every signature named in this README is checked by pnpm check:signatures: a base-layer signature must resolve on the devnet RPC, a rollup signature on the TEE RPC. Reproduce any of them at https://explorer.solana.com/tx/<signature>?cluster=devnet; devnet history is pruned over time, and the JSON files under docs/ keep what the observer read.

On this page