diff --git a/.planning/instawards/sow2/03-mpp-and-validation.md b/.planning/instawards/sow2/03-mpp-and-validation.md index 7839d4e..95329c4 100644 --- a/.planning/instawards/sow2/03-mpp-and-validation.md +++ b/.planning/instawards/sow2/03-mpp-and-validation.md @@ -1,6 +1,6 @@ # Job 03 — MPP, recent failures, own facilitator, validation of the opt-in -Status: ⬜ **NOT STARTED** · Deliverable: **D2** · Week: **3** · Depends on: #2 +Status: 🟡 **IN PROGRESS** — the validation of the opt-in was run on 2026-11-23 (week 2, ahead of its week); MPP in the Action, the recent-failures line and "resource consumed" are not started · Deliverable: **D2** · Week: **3** · Depends on: #2 ## Goal @@ -23,9 +23,63 @@ down. - [ ] MPP charge and channel runs in the example project, in the same comment format. - [ ] The line with recent failure counts in a run comment. - [ ] A run against a single-use test paywall shows "resource consumed". -- [ ] Our own facilitator and a free mainnet RPC are running for the example service. -- [ ] The validation is run and its written findings are published (or the reason the opt-in is not offered). +- [~] Our own facilitator and a free mainnet RPC are running for the example service. Partly: they ran for a copy of the example's seller on the maintainer's machine for the validation (not hosted); the example project itself still uses the hosted test-network facilitator. +- [~] The validation is run and its written findings are published (or the reason the opt-in is not offered). Run, and its findings are written below; the last step (emptying or rotating the two accounts) and the change of the board's status wait for the maintainer. ## Result -Not started. +**Part 3 of this job (the validation of the opt-in on our own service) was run on 2026-11-23 on Stellar mainnet. MPP in the Action, the recent-failures line and "resource consumed" are not started.** + +### What was run, and where + +The maintainer ran every command below in their own terminal; no agent held a mainnet key or ran a mainnet command. The service under test is a copy of the example project's seller with **our own facilitator** (the official SDK's facilitator, in process) and a **free public mainnet RPC**, listening on `127.0.0.1` only. Two accounts, both the maintainer's own and made only for this: the payer [A](https://stellar.expert/explorer/public/account/GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V) (a small USDC balance, never above the $10 the plan allows) and the receiving address and facilitator [B](https://stellar.expert/explorer/public/account/GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ). Every payment went from A to B. The code is the local branch of the opt-in (it is not pushed before the validation is accepted, so the Action cannot build it from a ref anyone can name): commit `2e5ea94` for the first set of runs and, after one change made from what they showed (below), commit `9eff947` for the second set. Both commits are expected to become public with the release (the final report names the commit the last runs were made on); until then the ledger copies below are the readable record of each run. + +Each paid run writes a **run ledger** before the key signs: one entry per signature, the answer's status, the settlement hash, and the payer's balances before and after (read on public Horizon). The copies are in [`week-2/copies/mainnet-validation/`](week-2/copies/mainnet-validation/) and name no key; each was compared with Stellar Expert and Horizon by hand. + +https://stellar.expert/explorer/public/ here is `https://stellar.expert/explorer/public/`. + +### Runs and proofs (first set, commit `2e5ea94`) + +| Run | Result | Proof | +| --- | --- | --- | +| Dry run, no key | Plan on `stellar:pubnet`, the one payee, USDC, worst case $0.045 | [excerpts](week-2/copies/mainnet-validation/excerpts-of-the-runs.txt) | +| Six refusals with the payer's key present: no `--mainnet`; a price of $1.01 (above the $1.00 cap); two endpoints (worst case $8.00, above the $5.00 run cap); the payee changed; another asset; another network | Each refused, "Nothing was signed", no ledger opened, balances unchanged | [excerpts](week-2/copies/mainnet-validation/excerpts-of-the-runs.txt) | +| First paid run, price $0.01, one endpoint with the reject case | X402-01 to X402-11 pass; one transfer of 100000 base units A to B | [`98d1b511…5288`](https://stellar.expert/explorer/public/tx/98d1b511f9726ca9833836cec4648808e9bdae571b7d96b2b2fe8957fc285288) · [ledger](week-2/copies/mainnet-validation/01-first-paid-run-0.01-usd.ledger.json) | +| Paid run at exactly $1.00 (second attempt) | X402-06 passes: one transfer of 10000000 base units; the checks that sign again could not (the payer held $0.27 after the first payment): no verdict | [`379c7b70…1410`](https://stellar.expert/explorer/public/tx/379c7b7003582246b2f8c6ab45fe7cfbede15788890ccf0dedc0c326d12d1410) · [ledger](week-2/copies/mainnet-validation/03-1.00-usd-attempt-2.ledger.json) | +| A service that settles what it should refuse (lax mode), price $0.01 | X402-09 and X402-11 **fail** as designed; each settlement read back from the transfer event; ledger consistent; exit 1 | [`6fb84ff8…9fbd`](https://stellar.expert/explorer/public/tx/6fb84ff840e4c454c952ad330011e65536053ebcb6ab0a071fdfc55ba3f59fbd) (X402-06) · [`788c08d0…df7a`](https://stellar.expert/explorer/public/tx/788c08d0d8ca9b95c90191546f1084e3e53bc4de08243c6e60ae4967b522df7a) (X402-09) · [`ad1f3ef5…8682`](https://stellar.expert/explorer/public/tx/ad1f3ef57578a440148d7f30268750c8094c17f8a5beae4cb81e01aa68618682) (X402-11) · [ledger](week-2/copies/mainnet-validation/04-lax-service.ledger.json) | +| The MCP server's mainnet tool, started by a small client script (not an agent), price $0.01 | `conformant`, progress notifications, ledger consistent; the two ordinary tools asked for `stellar:pubnet` refuse | [`08b91199…e197`](https://stellar.expert/explorer/public/tx/08b911996f55c062572ff6a0154194b22fa4d5ab684bbaed1fbf2d787b31e197) · [ledger](week-2/copies/mainnet-validation/05-mcp-tool-0.01-usd.ledger.json) | +| First $1.00 attempt, before the second | The facilitator's settlement never reached a ledger; **no funds moved**; X402-06 fails, the rest skip | [ledger](week-2/copies/mainnet-validation/02-1.00-usd-attempt-1-facilitator-failed.ledger.json) (the transaction `0c5d8bf0…c5d2` is not on the chain) | + +### One change made from what these runs showed + +In the $1.00 run the payer held less than the run needed to finish its checks, so the run ended without a verdict half way. The plan of a mainnet run now reads the payer's USDC and holds it to what the run needs: the prices of the endpoints plus the highest price again. Below that, the run is refused before anything is signed and the message says how much is missing; at or above it but below the run's worst case, the plan warns that a service which settles what it should refuse can take more. Commit `9eff947`. + +### Second set, commit `9eff947` + +| Run | Result | Proof | +| --- | --- | --- | +| Dry run | also prints the minimum a paying run will hold the payer to | [excerpts](week-2/copies/mainnet-validation/excerpts-of-the-runs.txt) | +| Six refusals again | each refused as before | [excerpts](week-2/copies/mainnet-validation/excerpts-of-the-runs.txt) | +| $1.00 against a payer holding $1.24 | **refused at the plan**: "needs at least $2.00 to finish its checks ... $0.7615614 short. Nothing was signed." | [excerpts](week-2/copies/mainnet-validation/excerpts-of-the-runs.txt) | +| Paid run, price $0.01 | X402-01 to X402-11 pass | [`12a1e20e…5d8f`](https://stellar.expert/explorer/public/tx/12a1e20e1a70d6160c463c200946f6734e14c43938469cfd415f757ac8c15d8f) · [ledger](week-2/copies/mainnet-validation/06-rerun-0.01-usd.ledger.json) | +| Paid run at exactly $1.00, payer holding $4.22 | **X402-01 to X402-11 all pass**, with the new warning (balance below the worst case of $4.50) | [`ca6c9779…76e9`](https://stellar.expert/explorer/public/tx/ca6c977926028a5afb7f6cad903174f67e516ce8bd428adf7b8656e3bcac76e9) · [ledger](week-2/copies/mainnet-validation/07-rerun-1.00-usd.ledger.json) | +| The MCP server's mainnet tool, price $0.01 | `conformant`, ledger consistent | [`c403b83e…b29f`](https://stellar.expert/explorer/public/tx/c403b83e8901c61aa98ab119b24ad424c786358d62844572146a99bff779b29f) · [ledger](week-2/copies/mainnet-validation/08-rerun-mcp-tool-0.01-usd.ledger.json) | + +### What the runs show + +- **A payment within the cap is read back from the chain.** Each paid run's X402-06 names the settlement; the ledger and Stellar Expert agree on the transaction, the amount, the two addresses and the fee. A transfer of exactly $1.00 is accepted. +- **A payment above the cap, a run that could spend above the run cap, another payee, another asset and another network are each refused before anything is signed.** No refusal opened a ledger or moved a balance. +- **A service that settles what it should refuse is caught.** In lax mode the underpayment and the refused request were both settled; Wasit failed both checks, named both settlements, and the ledger still matched the chain. +- **The payer's balances matched the ledger after every paid run.** Its USDC went down by exactly the settlements the run verified, and its XLM did not move during a run (the payer's XLM differs between runs because the account was topped up and swapped by hand between them). +- **Spent in all:** 2.065 USDC moved from A to B in nine settlements (first set $1.045, second $1.02), and B paid nine network fees of 12103 stroops each (about 0.011 XLM). + +### What went wrong or is open + +- **One facilitator failure.** The first $1.00 attempt: our facilitator's settlement transaction never reached a ledger. No funds moved (the chain and the balances show it), and the authorization had expired. Wasit reports this as a failed X402-06, with a hint that it may be the facilitator's or its RPC's failure: from the target's answer it cannot tell a target that refuses a valid payment from a facilitator that fails to send. The cause is not established; a raised inclusion fee was used afterwards, and the fee charged did not change, so it is not shown to be the cause. +- **The free RPC timed out once** while Wasit checked which network it serves; Wasit stopped before anything was sent, as it should. +- **One message is noisy:** the "funds can be lost" warning also prints when a run is refused for another reason. Planned to change. +- **Not run:** the Action's paid path on mainnet (by design: our key never goes into GitHub secrets), a window of days (these runs are minutes), MPP (it stays on test networks), a service that is not ours, and the close of the validation (emptying or rotating the accounts), which is the maintainer's last step. + +### Copies + +[`week-2/copies/mainnet-validation/`](week-2/copies/mainnet-validation/): the eight run ledgers and [excerpts of the output](week-2/copies/mainnet-validation/excerpts-of-the-runs.txt) (the lines that carry each result, copied from the maintainer's terminal). The full terminal logs are kept by the maintainer. The linked transactions open on Stellar Expert without a login. diff --git a/.planning/instawards/sow2/07-evidence-submission.md b/.planning/instawards/sow2/07-evidence-submission.md index 080e7a6..f69c41c 100644 --- a/.planning/instawards/sow2/07-evidence-submission.md +++ b/.planning/instawards/sow2/07-evidence-submission.md @@ -1,6 +1,6 @@ # Job 07 — Evidence Submission -Status: 🟡 **IN PROGRESS** (week 1 rows filled, 2026-11-15) · Week: **1 to 4** · Depends on: all +Status: 🟡 **IN PROGRESS** (week 1 rows filled, 2026-11-15; the mainnet validation rows filled, 2026-11-23) · Week: **1 to 4** · Depends on: all ## Goal @@ -55,12 +55,12 @@ Further proofs of D1 (not SOW rows): | The new check's entry in `docs/CHECKS.md` | ✅ | [`docs/CHECKS.md` at the pre-release tag](https://github.com/wasit-dev/Wasit/blob/v0.8.0-beta.1/docs/CHECKS.md), row `X402-11`; the file ships in the MCP server's package on npm. It reaches `main` with the merge of the code | | A paying run without the opt-in refusing `stellar:pubnet` before anything is signed | ✅ | [Run on `main` of the example project](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43882304954) · [copy of the log](week-2/copies/run-pubnet-payment-refused.log.txt): the payment tier, started by hand on `main` (an event that may pay), on a config that names `stellar:pubnet`; Wasit stopped with exit 2 before the service started, saying the mainnet opt-in is not part of this version and that nothing was sent or signed, and wrote no report. The run was given no payer key; the refusal comes before any key is read. A step after it requires that refusal, so the job is green only when it happens. Also offline: [`runners.test.ts`](https://github.com/wasit-dev/Wasit/blob/main/packages/cli/test/unit/runners.test.ts) (the MPP commands) and the property test [`no-allow-path.test.ts`](https://github.com/wasit-dev/Wasit/blob/main/packages/cli/test/unit/no-allow-path.test.ts) | | The read-only checks passing on a challenge that names `stellar:pubnet` | ✅ | [Pull request 6](https://github.com/dzakwannajmi/x402-example-paywall/pull/6) · [run](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43724229283) · [copy of the comment](week-2/copies/pr-6-comment.md) · [copy of the log](week-2/copies/run-pr6-pubnet.log.txt): in the Action, against a local seller whose payment request names `stellar:pubnet`; five checks passed, no payment, nothing signed. A deployed mainnet service was not read | -| A paid run with the opt-in on Stellar mainnet, capped, with a Stellar Expert link and the settlement read back from the chain | ⬜ | Week 3, after the validation (job 03) | -| A payment above the per-payment cap refused before anything is signed | ⬜ | Week 3 (job 03) | -| A run whose possible spend exceeds the per-run cap refused before it starts | ⬜ | Week 3 (job 03) | +| A paid run with the opt-in on Stellar mainnet, capped, with a Stellar Expert link and the settlement read back from the chain | ✅ | Run on our own service, 2026-11-23: [`98d1b511…5288`](https://stellar.expert/explorer/public/tx/98d1b511f9726ca9833836cec4648808e9bdae571b7d96b2b2fe8957fc285288) ($0.01) · [`ca6c9779…76e9`](https://stellar.expert/explorer/public/tx/ca6c977926028a5afb7f6cad903174f67e516ce8bd428adf7b8656e3bcac76e9) (exactly $1.00, all eleven checks pass) · [ledgers](week-2/copies/mainnet-validation/) · [job 03](03-mpp-and-validation.md). The code is a local branch that becomes public with the release; the ledgers are the readable record until then | +| A payment above the per-payment cap refused before anything is signed | ✅ | A service priced at $1.01 against the $1.00 cap: "Nothing was signed", no ledger opened, balances unchanged · [excerpts](week-2/copies/mainnet-validation/excerpts-of-the-runs.txt) · [job 03](03-mpp-and-validation.md) | +| A run whose possible spend exceeds the per-run cap refused before it starts | ✅ | Two endpoints at $1.00: "This run could spend up to $8.00 ... above the $5.00 per run. Nothing was signed." · [excerpts](week-2/copies/mainnet-validation/excerpts-of-the-runs.txt) · [job 03](03-mpp-and-validation.md) | | An Action run on a push or schedule with the opt-in set, refusing mainnet | ✅ | [Run on a push](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43882283916) · [copy of the log](week-2/copies/run-mainnet-input-refused.log.txt): on a branch of the example project that is never merged, the Action with `mainnet: true` stopped with exit 2 in the step that checks the inputs: "the mainnet opt-in is not part of this version", and the input is also refused on every event but a run started by hand; the install, the run and the report steps were skipped. In this pre-release the input is always refused | -| An MCP tool call asking for mainnet, refused | 🟡 | Offline tests that start the server as an MCP client does: [`network-guard.test.ts`](https://github.com/wasit-dev/Wasit/blob/main/packages/server/test/unit/network-guard.test.ts) (a tool call with `stellar:pubnet` sends nothing) and [`mainnet-and-rpc-lock.test.ts`](https://github.com/wasit-dev/Wasit/blob/main/packages/server/test/unit/mainnet-and-rpc-lock.test.ts) (the start-up settings that ask for mainnet stop the server; the tool list has no mainnet tool). A recorded call comes with the pre-release | -| The written findings of the mainnet validation (or, if the opt-in is not offered, the reason) | ⬜ | Week 3 (job 03) | +| An MCP tool call asking for mainnet, refused | ✅ (recorded call) · 🟡 (offline tests) | A recorded session, 2026-11-23: a small client script (not an agent) starts the MCP server and calls the ordinary tools with `stellar:pubnet`: both refuse (X402 and MPP charge) · [excerpts](week-2/copies/mainnet-validation/excerpts-of-the-runs.txt) · [job 03](03-mpp-and-validation.md). Offline tests that start the server as an MCP client does: [`network-guard.test.ts`](https://github.com/wasit-dev/Wasit/blob/main/packages/server/test/unit/network-guard.test.ts) (a tool call with `stellar:pubnet` sends nothing) and [`mainnet-and-rpc-lock.test.ts`](https://github.com/wasit-dev/Wasit/blob/main/packages/server/test/unit/mainnet-and-rpc-lock.test.ts) (the start-up settings that ask for mainnet stop the server; the tool list has no mainnet tool). | +| The written findings of the mainnet validation (or, if the opt-in is not offered, the reason) | 🟡 | Written in [job 03](03-mpp-and-validation.md): what ran, the proofs, one change made from what the runs showed, what went wrong and what was not run. Open: the maintainer's last step (emptying or rotating the two accounts) and the final commit the report names | | A run comment showing the line with recent failure counts | ⬜ | Week 3 (job 03) | | A run against a single-use test paywall showing the "resource consumed" result | ⬜ | Week 3 (job 03) | diff --git a/.planning/instawards/sow2/STATUS.md b/.planning/instawards/sow2/STATUS.md index 4f92698..4d2d51b 100644 --- a/.planning/instawards/sow2/STATUS.md +++ b/.planning/instawards/sow2/STATUS.md @@ -3,7 +3,7 @@ > **READ THIS FIRST** for anything about SOW 2. Single source of truth for the > engagement. Updated at the end of every working session. -Last updated: 2026-11-21: the code of the pre-release is on `main` of Wasit's +Last updated: 2026-11-23: the validation of the capped mainnet opt-in was run on our own service ([job 03](03-mpp-and-validation.md)): paid runs read back from the chain, refusals before anything is signed, and a service that settles what it should refuse caught. Before that, on 2026-11-21: the code of the pre-release is on `main` of Wasit's repository. [Pull request 23](https://github.com/wasit-dev/Wasit/pull/23) and [pull request 30](https://github.com/wasit-dev/Wasit/pull/30) were merged after green CI, and [CI on `main`](https://github.com/wasit-dev/Wasit/actions/runs/44831312060) @@ -45,8 +45,8 @@ This table is for screening a week without reading the rest. | Week | Dates (our calendar) | What the week plans | Status | Click to check | | --- | --- | --- | --- | --- | | 1 | 14 to 20 Nov | The read-only Action, `wasit.config.json`, "unsupported" results, the workflow in the example project | ✅ **DONE** | [Red check and comment, PR 1](https://github.com/dzakwannajmi/x402-example-paywall/pull/1) · [Red, then green, same comment, PR 2](https://github.com/dzakwannajmi/x402-example-paywall/pull/2) · [Green run on `main`](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43697947796) · [From a fork, no comment, PR 5](https://github.com/dzakwannajmi/x402-example-paywall/pull/5) · [Job 00](00-read-only-action.md) · [Evidence table](07-evidence-submission.md) | -| 2 | 21 to 27 Nov | Payment checks in CI on test networks, the new check "rejected request does not settle", the network guard and its caps, a pre-release for beta testers | 🟡 **IN PROGRESS** — the payment tier and the new check run on `main` | [Draft pull request with the code](https://github.com/wasit-dev/Wasit/pull/23) · [Payment tier code, PR 30](https://github.com/wasit-dev/Wasit/pull/30) · [Payment tier on `main`, 10 of 10](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43816426654) · [The payment on Stellar Expert](https://stellar.expert/explorer/testnet/tx/beb0a5f94e2c5cb41cad8f5fe1110020dd004c30022b53b853b30ae5ef905a86) · [The new check `X402-11` on `main`, 11 of 11](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43851987068) · [From a fork, payment checks not run, PR 5](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43819805398) · [A payment on `stellar:pubnet` refused before signing](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43882304954) · [The `mainnet` input refused on a push](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43882283916) · [Read-only checks pass on a challenge naming `stellar:pubnet`, PR 6](https://github.com/dzakwannajmi/x402-example-paywall/pull/6) · [The check "Wasit conformance" and the running comment, PR 7](https://github.com/dzakwannajmi/x402-example-paywall/pull/7) · [From a fork, no check and no running comment, PR 8](https://github.com/dzakwannajmi/x402-example-paywall/pull/8) · [The pre-release `0.8.0-beta.1`](https://github.com/wasit-dev/Wasit/releases/tag/v0.8.0-beta.1) · [On npm, tag `beta`](https://www.npmjs.com/package/@wasit-dev/cli/v/0.8.0-beta.1) · [The Action at the pre-release, on `main`](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/44748831548) · [Job 02](02-guard-and-payment-tier.md) | -| 3 | 28 Nov to 4 Dec | MPP in the Action, `wasit init` and the test-network key setup, recent-failures line, validation of the capped opt-in on our own service | ⬜ **NOT STARTED** | [Job 03](03-mpp-and-validation.md) · [Job 04](04-init.md) | +| 2 | 21 to 27 Nov | Payment checks in CI on test networks, the new check "rejected request does not settle", the network guard and its caps, a pre-release for beta testers | 🟡 **IN PROGRESS** — the payment tier and the new check run on `main` | [Draft pull request with the code](https://github.com/wasit-dev/Wasit/pull/23) · [Payment tier code, PR 30](https://github.com/wasit-dev/Wasit/pull/30) · [Payment tier on `main`, 10 of 10](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43816426654) · [The payment on Stellar Expert](https://stellar.expert/explorer/testnet/tx/beb0a5f94e2c5cb41cad8f5fe1110020dd004c30022b53b853b30ae5ef905a86) · [The new check `X402-11` on `main`, 11 of 11](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43851987068) · [From a fork, payment checks not run, PR 5](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43819805398) · [A payment on `stellar:pubnet` refused before signing](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43882304954) · [The `mainnet` input refused on a push](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43882283916) · [Read-only checks pass on a challenge naming `stellar:pubnet`, PR 6](https://github.com/dzakwannajmi/x402-example-paywall/pull/6) · [The check "Wasit conformance" and the running comment, PR 7](https://github.com/dzakwannajmi/x402-example-paywall/pull/7) · [From a fork, no check and no running comment, PR 8](https://github.com/dzakwannajmi/x402-example-paywall/pull/8) · [The pre-release `0.8.0-beta.1`](https://github.com/wasit-dev/Wasit/releases/tag/v0.8.0-beta.1) · [On npm, tag `beta`](https://www.npmjs.com/package/@wasit-dev/cli/v/0.8.0-beta.1) · [The Action at the pre-release, on `main`](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/44748831548) · [Job 02](02-guard-and-payment-tier.md) · [Mainnet validation, run early](03-mpp-and-validation.md) | +| 3 | 28 Nov to 4 Dec | MPP in the Action, `wasit init` and the test-network key setup, recent-failures line, validation of the capped opt-in on our own service | ⬜ **NOT STARTED** (the validation of the opt-in was run early, on 2026-11-23: see week 2) | [Job 03](03-mpp-and-validation.md) · [Job 04](04-init.md) | | 4 | 5 to 11 Dec | Demo mode, guides, install-time guarantees, SBOM, release, final report | ⬜ **NOT STARTED** | [Job 05](05-guides-and-hygiene.md) · [Job 06](06-release-and-final-report.md) | Marks: ✅ built and shown in a real run or a public page · 🟡 built and tested, @@ -88,7 +88,7 @@ or shown only in part · ⬜ planned for a later week. | 0 | Read-only GitHub Action (D1) | `00-read-only-action.md` | 1 | ✅ **DONE** — 2026-11-15, runs and pull requests linked | — | | 1 | Example project with the Wasit workflow (D3, and the place where D2 runs are shown) | `01-example-project.md` | 1, 2, 3 | 🟡 **IN PROGRESS** — workflow done in week 1; payment and MPP runs come with weeks 2 and 3 | #0 | | 2 | Network guard, payment tier, new check, opt-in, pre-release (D2) | `02-guard-and-payment-tier.md` | 2 | 🟡 **IN PROGRESS** — the payment tier and the new check run on `main` | #0 | -| 3 | MPP in the Action, recent failures, "resource consumed", own facilitator and RPC, validation of the opt-in (D2) | `03-mpp-and-validation.md` | 3 | ⬜ **NOT STARTED** | #2 | +| 3 | MPP in the Action, recent failures, "resource consumed", own facilitator and RPC, validation of the opt-in (D2) | `03-mpp-and-validation.md` | 3 | 🟡 **IN PROGRESS** — the validation of the opt-in was run on 2026-11-23 (job 03, result written); the rest of job 03 is not started | #2 | | 4 | `wasit init` and the test-network key setup (D3) | `04-init.md` | 3 | ⬜ **NOT STARTED** | #2 | | 5 | Demo mode, guides, SECURITY.md, SBOM, pinned MCP examples (D3) | `05-guides-and-hygiene.md` | 4 | ⬜ **NOT STARTED** | #4 | | 6 | Release and final report (Overall) | `06-release-and-final-report.md` | 4 | ⬜ **NOT STARTED** | all | @@ -108,6 +108,7 @@ or shown only in part · ⬜ planned for a later week. | Date | Focus | Outcome | | --- | --- | --- | +| 2026-11-23 | The mainnet validation | The capped opt-in was validated on our own service on Stellar mainnet, from the command line and through the MCP server's tool, with two accounts of the maintainer's (a payer and a receiver). Paid runs of $0.01 and exactly $1.00 were read back from the chain and from the run ledger; a price above the cap, a run above the run cap, another payee, another asset and another network were each refused before anything was signed; a service that settles what it should refuse failed two checks as designed. One facilitator failure moved no funds; a run that ran short of USDC led to a change in the plan (it now refuses a payer that cannot finish the checks), and the second set of runs was made on that change. Proofs and findings: [job 03](03-mpp-and-validation.md). Pending: the maintainer's last step with the two accounts. | | 2026-11-21 | The code on `main` | [Pull request 23](https://github.com/wasit-dev/Wasit/pull/23) and [pull request 30](https://github.com/wasit-dev/Wasit/pull/30), the code of weeks 1 and 2, were merged into `main` of Wasit's repository, each after its CI passed against the current `main`. [CI on `main`](https://github.com/wasit-dev/Wasit/actions/runs/44831312060) passes: command line 275, core 830, server 30, Action 195. The links into the code on this board now point at `main`. | | 2026-11-20 | The pre-release `0.8.0-beta.1` | Published without the mainnet opt-in: [the release](https://github.com/wasit-dev/Wasit/releases/tag/v0.8.0-beta.1), tag `v0.8.0-beta.1` on commit `38d8a86`, and `@wasit-dev/core`, `cli` and `server` on npm under the `beta` tag; `latest` stays at 0.7.0. Before publishing, every check of the release ran on the maintainer's machine: the offline tests, the install of the packed packages, and the suites against local fixtures on Stellar testnet, Base Sepolia, Ethereum Sepolia and Solana devnet, with each settlement read back from its chain. The packages on npm have the same shasums as those tested. The package READMEs now describe the beta, and the reason an x402 v1 service is unsupported holds on every chain. [The advisory](https://github.com/wasit-dev/Wasit/security/advisories/GHSA-7c36-rg54-r3v8) for the two MPP defects of 0.7.0, fixed in this version, is published. On `main` of the example project, [the Action at the release commit](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/44748831548) passed all eleven checks and its report names 0.8.0-beta.1. The workshop kit's [v0.1.2](https://github.com/dzakwannajmi/x402-starer-kit/releases/tag/v0.1.2) runs the pre-release. | | 2026-11-20 | The run on a pull request | Three changes the maintainer chose for the pre-release, shown in real runs. The comment has a table of each check with a mark for its result and the details folded at the end; under an endpoint whose `X402-06` passed on the test network, it links the payment on Stellar Expert. While Wasit runs, the comment says so, and the result replaces it ([pull request 7](https://github.com/dzakwannajmi/x402-example-paywall/pull/7): the comment's edit history shows both). With `checks: write` the Action adds its own check, "Wasit conformance", completed with the verdict and the job summary ([on `main`](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/44641632605), where it carries the payment link). [Pull request 8](https://github.com/dzakwannajmi/x402-example-paywall/pull/8), from a fork, got neither. A probe on pull request 7 showed that `NODE_OPTIONS` set in the workflow does not reach the Action's steps or the service, and that GitHub's runner refuses it through `GITHUB_ENV`. The copies are in `week-2/copies/`. Code: commit [`05f5a19`](https://github.com/wasit-dev/Wasit/commit/05f5a19cc51a7dbb151d25f5ccadaaf48b3e1398) on branch `sow2/pr-run`. | diff --git a/.planning/instawards/sow2/week-2/copies/mainnet-validation/01-first-paid-run-0.01-usd.ledger.json b/.planning/instawards/sow2/week-2/copies/mainnet-validation/01-first-paid-run-0.01-usd.ledger.json new file mode 100644 index 0000000..43c06ed --- /dev/null +++ b/.planning/instawards/sow2/week-2/copies/mainnet-validation/01-first-paid-run-0.01-usd.ledger.json @@ -0,0 +1,199 @@ +{ + "format": "wasit-run-ledger", + "version": 1, + "openedAt": "2026-11-23T02:32:22.434Z", + "versions": { + "wasit.cli": "0.8.0-beta.1", + "wasit.core": "0.8.0-beta.1", + "sdk.x402Version": "2", + "sdk.@x402/core": "2.28.0", + "sdk.@x402/stellar": "2.28.0", + "sdk.@stellar/mpp": "0.7.1", + "sdk.mppx": "0.8.14", + "sdk.@stellar/stellar-sdk": "16.4.1" + }, + "environment": "mainnet", + "network": "stellar:pubnet", + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "caps": { + "perPaymentUsd": "$1.00", + "runUsd": "$5.00" + }, + "rpc": "https://mainnet.sorobanrpc.com", + "plan": { + "network": "stellar:pubnet", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "perPaymentCapUsd": "1000000000000000000", + "capUsd": "5000000000000000000", + "capLowered": false, + "endpoints": [ + { + "name": "quote", + "status": "planned", + "option": { + "scheme": "exact", + "network": "stellar:pubnet", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "amount": "100000", + "maxTimeoutSeconds": 60 + }, + "signatures": [ + { + "check": "X402-06", + "amount": "100000" + }, + { + "check": "X402-07", + "amount": "100000" + }, + { + "check": "X402-09", + "amount": "50000" + }, + { + "check": "X402-10", + "amount": "100000" + }, + { + "check": "X402-11", + "amount": "100000" + } + ], + "worstCase": "450000", + "worstCaseUsd": "45000000000000000", + "url": "http://127.0.0.1:4412/paid" + } + ], + "worstCaseUsd": "45000000000000000", + "mainnet": { + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "decimals": 7, + "usdc": "12833706", + "native": "37517947", + "rpcLatest": 65623018, + "horizonLatest": 65623018, + "rpc": "https://mainnet.sorobanrpc.com", + "horizon": "https://horizon.stellar.org", + "remainingUsd": "5000000000000000000" + } + }, + "balancesBefore": { + "usdc": "12833706", + "native": "37517947", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T02:32:22.439Z" + }, + "entries": [ + { + "id": 1, + "endpoint": "quote", + "check": "X402-06", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T02:32:22.698Z", + "state": "signed", + "signedAt": "2026-11-23T02:32:25.481Z", + "expiresAtLedger": 65623031, + "sent": { + "at": "2026-11-23T02:32:37.737Z", + "status": 200 + }, + "settlement": { + "reference": "98d1b511f9726ca9833836cec4648808e9bdae571b7d96b2b2fe8957fc285288", + "verified": true + }, + "verdict": "pass" + }, + { + "id": 2, + "endpoint": "quote", + "check": "X402-07", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T02:32:38.133Z", + "state": "signed", + "signedAt": "2026-11-23T02:32:43.195Z", + "expiresAtLedger": 65623034, + "sent": { + "at": "2026-11-23T02:32:44.257Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 3, + "endpoint": "quote", + "check": "X402-09", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "50000", + "intentAt": "2026-11-23T02:32:44.591Z", + "state": "signed", + "signedAt": "2026-11-23T02:32:54.589Z", + "expiresAtLedger": 65623035, + "sent": { + "at": "2026-11-23T02:32:54.602Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 4, + "endpoint": "quote", + "check": "X402-10", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T02:32:54.621Z", + "state": "signed", + "signedAt": "2026-11-23T02:33:00.502Z", + "expiresAtLedger": 65623026, + "sent": { + "at": "2026-11-23T02:33:20.872Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 5, + "endpoint": "quote", + "check": "X402-11", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T02:33:20.902Z", + "state": "signed", + "signedAt": "2026-11-23T02:33:26.343Z", + "expiresAtLedger": 65623042, + "sent": { + "at": "2026-11-23T02:33:29.999Z", + "status": 400 + }, + "verdict": "pass" + } + ], + "balancesAfter": { + "usdc": "12733706", + "native": "37517947", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T02:34:27.494Z" + }, + "result": "consistent", + "reasons": [], + "closedAt": "2026-11-23T02:34:27.494Z" +} diff --git a/.planning/instawards/sow2/week-2/copies/mainnet-validation/02-1.00-usd-attempt-1-facilitator-failed.ledger.json b/.planning/instawards/sow2/week-2/copies/mainnet-validation/02-1.00-usd-attempt-1-facilitator-failed.ledger.json new file mode 100644 index 0000000..ef1a487 --- /dev/null +++ b/.planning/instawards/sow2/week-2/copies/mainnet-validation/02-1.00-usd-attempt-1-facilitator-failed.ledger.json @@ -0,0 +1,123 @@ +{ + "format": "wasit-run-ledger", + "version": 1, + "openedAt": "2026-11-23T02:40:30.925Z", + "versions": { + "wasit.cli": "0.8.0-beta.1", + "wasit.core": "0.8.0-beta.1", + "sdk.x402Version": "2", + "sdk.@x402/core": "2.28.0", + "sdk.@x402/stellar": "2.28.0", + "sdk.@stellar/mpp": "0.7.1", + "sdk.mppx": "0.8.14", + "sdk.@stellar/stellar-sdk": "16.4.1" + }, + "environment": "mainnet", + "network": "stellar:pubnet", + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "caps": { + "perPaymentUsd": "$1.00", + "runUsd": "$5.00" + }, + "rpc": "https://mainnet.sorobanrpc.com", + "plan": { + "network": "stellar:pubnet", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "perPaymentCapUsd": "1000000000000000000", + "capUsd": "5000000000000000000", + "capLowered": false, + "endpoints": [ + { + "name": "quote", + "status": "planned", + "option": { + "scheme": "exact", + "network": "stellar:pubnet", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "amount": "10000000", + "maxTimeoutSeconds": 60 + }, + "signatures": [ + { + "check": "X402-06", + "amount": "10000000" + }, + { + "check": "X402-07", + "amount": "10000000" + }, + { + "check": "X402-09", + "amount": "5000000" + }, + { + "check": "X402-10", + "amount": "10000000" + }, + { + "check": "X402-11", + "amount": "10000000" + } + ], + "worstCase": "45000000", + "worstCaseUsd": "4500000000000000000", + "url": "http://127.0.0.1:4412/paid" + } + ], + "worstCaseUsd": "4500000000000000000", + "mainnet": { + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "decimals": 7, + "usdc": "12733706", + "native": "37517947", + "rpcLatest": 65623116, + "horizonLatest": 65623116, + "rpc": "https://mainnet.sorobanrpc.com", + "horizon": "https://horizon.stellar.org", + "remainingUsd": "5000000000000000000" + } + }, + "balancesBefore": { + "usdc": "12733706", + "native": "37517947", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T02:40:30.931Z" + }, + "entries": [ + { + "id": 1, + "endpoint": "quote", + "check": "X402-06", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "10000000", + "intentAt": "2026-11-23T02:40:31.209Z", + "state": "signed", + "signedAt": "2026-11-23T02:40:35.227Z", + "expiresAtLedger": 65623128, + "sent": { + "at": "2026-11-23T02:41:56.271Z", + "status": 402 + }, + "verdict": "fail" + } + ], + "balancesAfter": { + "usdc": "12733706", + "native": "37517947", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T02:42:01.018Z" + }, + "result": "consistent", + "reasons": [], + "closedAt": "2026-11-23T02:42:01.019Z" +} diff --git a/.planning/instawards/sow2/week-2/copies/mainnet-validation/03-1.00-usd-attempt-2.ledger.json b/.planning/instawards/sow2/week-2/copies/mainnet-validation/03-1.00-usd-attempt-2.ledger.json new file mode 100644 index 0000000..b11179e --- /dev/null +++ b/.planning/instawards/sow2/week-2/copies/mainnet-validation/03-1.00-usd-attempt-2.ledger.json @@ -0,0 +1,179 @@ +{ + "format": "wasit-run-ledger", + "version": 1, + "openedAt": "2026-11-23T02:51:42.263Z", + "versions": { + "wasit.cli": "0.8.0-beta.1", + "wasit.core": "0.8.0-beta.1", + "sdk.x402Version": "2", + "sdk.@x402/core": "2.28.0", + "sdk.@x402/stellar": "2.28.0", + "sdk.@stellar/mpp": "0.7.1", + "sdk.mppx": "0.8.14", + "sdk.@stellar/stellar-sdk": "16.4.1" + }, + "environment": "mainnet", + "network": "stellar:pubnet", + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "caps": { + "perPaymentUsd": "$1.00", + "runUsd": "$5.00" + }, + "rpc": "https://mainnet.sorobanrpc.com", + "plan": { + "network": "stellar:pubnet", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "perPaymentCapUsd": "1000000000000000000", + "capUsd": "5000000000000000000", + "capLowered": false, + "endpoints": [ + { + "name": "quote", + "status": "planned", + "option": { + "scheme": "exact", + "network": "stellar:pubnet", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "amount": "10000000", + "maxTimeoutSeconds": 60 + }, + "signatures": [ + { + "check": "X402-06", + "amount": "10000000" + }, + { + "check": "X402-07", + "amount": "10000000" + }, + { + "check": "X402-09", + "amount": "5000000" + }, + { + "check": "X402-10", + "amount": "10000000" + }, + { + "check": "X402-11", + "amount": "10000000" + } + ], + "worstCase": "45000000", + "worstCaseUsd": "4500000000000000000", + "url": "http://127.0.0.1:4412/paid" + } + ], + "worstCaseUsd": "4500000000000000000", + "mainnet": { + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "decimals": 7, + "usdc": "12733706", + "native": "37517947", + "rpcLatest": 65623250, + "horizonLatest": 65623250, + "rpc": "https://mainnet.sorobanrpc.com", + "horizon": "https://horizon.stellar.org", + "remainingUsd": "5000000000000000000" + } + }, + "balancesBefore": { + "usdc": "12733706", + "native": "37517947", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T02:51:42.269Z" + }, + "entries": [ + { + "id": 1, + "endpoint": "quote", + "check": "X402-06", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "10000000", + "intentAt": "2026-11-23T02:51:42.515Z", + "state": "signed", + "signedAt": "2026-11-23T02:51:45.333Z", + "expiresAtLedger": 65623263, + "sent": { + "at": "2026-11-23T02:51:58.664Z", + "status": 200 + }, + "settlement": { + "reference": "379c7b7003582246b2f8c6ab45fe7cfbede15788890ccf0dedc0c326d12d1410", + "verified": true + }, + "verdict": "pass" + }, + { + "id": 2, + "endpoint": "quote", + "check": "X402-07", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "10000000", + "intentAt": "2026-11-23T02:52:00.100Z", + "state": "not-signed", + "note": "Stellar simulation failed with error message: HostError: Error(Contract, #10)", + "verdict": "no-verdict" + }, + { + "id": 3, + "endpoint": "quote", + "check": "X402-09", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "5000000", + "intentAt": "2026-11-23T02:52:03.911Z", + "state": "not-signed", + "note": "Stellar simulation failed with error message: HostError: Error(Contract, #10)", + "verdict": "no-verdict" + }, + { + "id": 4, + "endpoint": "quote", + "check": "X402-10", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "10000000", + "intentAt": "2026-11-23T02:52:06.222Z", + "state": "not-signed", + "note": "Stellar simulation failed with error message: HostError: Error(Contract, #10)", + "verdict": "no-verdict" + }, + { + "id": 5, + "endpoint": "quote", + "check": "X402-11", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "10000000", + "intentAt": "2026-11-23T02:52:08.497Z", + "state": "not-signed", + "note": "Stellar simulation failed with error message: HostError: Error(Contract, #10)", + "verdict": "no-verdict" + } + ], + "balancesAfter": { + "usdc": "2733706", + "native": "37517947", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T02:52:54.947Z" + }, + "result": "consistent", + "reasons": [], + "closedAt": "2026-11-23T02:52:54.948Z" +} diff --git a/.planning/instawards/sow2/week-2/copies/mainnet-validation/04-lax-service.ledger.json b/.planning/instawards/sow2/week-2/copies/mainnet-validation/04-lax-service.ledger.json new file mode 100644 index 0000000..34dc266 --- /dev/null +++ b/.planning/instawards/sow2/week-2/copies/mainnet-validation/04-lax-service.ledger.json @@ -0,0 +1,207 @@ +{ + "format": "wasit-run-ledger", + "version": 1, + "openedAt": "2026-11-23T03:07:04.934Z", + "versions": { + "wasit.cli": "0.8.0-beta.1", + "wasit.core": "0.8.0-beta.1", + "sdk.x402Version": "2", + "sdk.@x402/core": "2.28.0", + "sdk.@x402/stellar": "2.28.0", + "sdk.@stellar/mpp": "0.7.1", + "sdk.mppx": "0.8.14", + "sdk.@stellar/stellar-sdk": "16.4.1" + }, + "environment": "mainnet", + "network": "stellar:pubnet", + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "caps": { + "perPaymentUsd": "$1.00", + "runUsd": "$5.00" + }, + "rpc": "https://mainnet.sorobanrpc.com", + "plan": { + "network": "stellar:pubnet", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "perPaymentCapUsd": "1000000000000000000", + "capUsd": "5000000000000000000", + "capLowered": false, + "endpoints": [ + { + "name": "quote", + "status": "planned", + "option": { + "scheme": "exact", + "network": "stellar:pubnet", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "amount": "100000", + "maxTimeoutSeconds": 60 + }, + "signatures": [ + { + "check": "X402-06", + "amount": "100000" + }, + { + "check": "X402-07", + "amount": "100000" + }, + { + "check": "X402-09", + "amount": "50000" + }, + { + "check": "X402-10", + "amount": "100000" + }, + { + "check": "X402-11", + "amount": "100000" + } + ], + "worstCase": "450000", + "worstCaseUsd": "45000000000000000", + "url": "http://127.0.0.1:4412/paid" + } + ], + "worstCaseUsd": "45000000000000000", + "mainnet": { + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "decimals": 7, + "usdc": "12734386", + "native": "37517947", + "rpcLatest": 65623435, + "horizonLatest": 65623435, + "rpc": "https://mainnet.sorobanrpc.com", + "horizon": "https://horizon.stellar.org", + "remainingUsd": "5000000000000000000" + } + }, + "balancesBefore": { + "usdc": "12734386", + "native": "37517947", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T03:07:04.940Z" + }, + "entries": [ + { + "id": 1, + "endpoint": "quote", + "check": "X402-06", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T03:07:05.191Z", + "state": "signed", + "signedAt": "2026-11-23T03:07:08.031Z", + "expiresAtLedger": 65623447, + "sent": { + "at": "2026-11-23T03:07:18.439Z", + "status": 200 + }, + "settlement": { + "reference": "6fb84ff840e4c454c952ad330011e65536053ebcb6ab0a071fdfc55ba3f59fbd", + "verified": true + }, + "verdict": "pass" + }, + { + "id": 2, + "endpoint": "quote", + "check": "X402-07", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T03:07:18.844Z", + "state": "signed", + "signedAt": "2026-11-23T03:07:22.290Z", + "expiresAtLedger": 65623450, + "sent": { + "at": "2026-11-23T03:07:22.587Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 3, + "endpoint": "quote", + "check": "X402-09", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "50000", + "intentAt": "2026-11-23T03:07:22.947Z", + "state": "signed", + "signedAt": "2026-11-23T03:07:25.695Z", + "expiresAtLedger": 65623451, + "sent": { + "at": "2026-11-23T03:07:37.299Z", + "status": 200 + }, + "settlement": { + "reference": "788c08d0d8ca9b95c90191546f1084e3e53bc4de08243c6e60ae4967b522df7a", + "verified": true + }, + "verdict": "fail" + }, + { + "id": 4, + "endpoint": "quote", + "check": "X402-10", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T03:07:37.648Z", + "state": "signed", + "signedAt": "2026-11-23T03:07:41.099Z", + "expiresAtLedger": 65623443, + "sent": { + "at": "2026-11-23T03:08:01.440Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 5, + "endpoint": "quote", + "check": "X402-11", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T03:08:01.467Z", + "state": "signed", + "signedAt": "2026-11-23T03:08:05.242Z", + "expiresAtLedger": 65623459, + "sent": { + "at": "2026-11-23T03:08:17.491Z", + "status": 200 + }, + "settlement": { + "reference": "ad1f3ef57578a440148d7f30268750c8094c17f8a5beae4cb81e01aa68618682", + "verified": true + }, + "verdict": "fail" + } + ], + "balancesAfter": { + "usdc": "12484386", + "native": "37517947", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T03:09:13.825Z" + }, + "result": "consistent", + "reasons": [], + "closedAt": "2026-11-23T03:09:13.826Z" +} diff --git a/.planning/instawards/sow2/week-2/copies/mainnet-validation/05-mcp-tool-0.01-usd.ledger.json b/.planning/instawards/sow2/week-2/copies/mainnet-validation/05-mcp-tool-0.01-usd.ledger.json new file mode 100644 index 0000000..3c7ce3a --- /dev/null +++ b/.planning/instawards/sow2/week-2/copies/mainnet-validation/05-mcp-tool-0.01-usd.ledger.json @@ -0,0 +1,199 @@ +{ + "format": "wasit-run-ledger", + "version": 1, + "openedAt": "2026-11-23T03:19:22.273Z", + "versions": { + "wasit.server": "0.8.0-beta.1", + "wasit.core": "0.8.0-beta.1", + "sdk.x402Version": "2", + "sdk.@x402/core": "2.28.0", + "sdk.@x402/stellar": "2.28.0", + "sdk.@stellar/mpp": "0.7.1", + "sdk.mppx": "0.8.14", + "sdk.@stellar/stellar-sdk": "16.4.1" + }, + "environment": "mainnet", + "network": "stellar:pubnet", + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "caps": { + "perPaymentUsd": "$1.00", + "runUsd": "$5.00" + }, + "rpc": "https://mainnet.sorobanrpc.com", + "plan": { + "network": "stellar:pubnet", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "perPaymentCapUsd": "1000000000000000000", + "capUsd": "5000000000000000000", + "capLowered": false, + "endpoints": [ + { + "name": "quote", + "status": "planned", + "option": { + "scheme": "exact", + "network": "stellar:pubnet", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "amount": "100000", + "maxTimeoutSeconds": 60 + }, + "signatures": [ + { + "check": "X402-06", + "amount": "100000" + }, + { + "check": "X402-07", + "amount": "100000" + }, + { + "check": "X402-09", + "amount": "50000" + }, + { + "check": "X402-10", + "amount": "100000" + }, + { + "check": "X402-11", + "amount": "100000" + } + ], + "worstCase": "450000", + "worstCaseUsd": "45000000000000000", + "url": "http://127.0.0.1:4412/paid" + } + ], + "worstCaseUsd": "45000000000000000", + "mainnet": { + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "decimals": 7, + "usdc": "12484386", + "native": "37517947", + "rpcLatest": 65623582, + "horizonLatest": 65623582, + "rpc": "https://mainnet.sorobanrpc.com", + "horizon": "https://horizon.stellar.org", + "remainingUsd": "5000000000000000000" + } + }, + "balancesBefore": { + "usdc": "12484386", + "native": "37517947", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T03:19:22.279Z" + }, + "entries": [ + { + "id": 1, + "endpoint": "quote", + "check": "X402-06", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T03:19:22.552Z", + "state": "signed", + "signedAt": "2026-11-23T03:19:25.149Z", + "expiresAtLedger": 65623595, + "sent": { + "at": "2026-11-23T03:19:37.589Z", + "status": 200 + }, + "settlement": { + "reference": "08b911996f55c062572ff6a0154194b22fa4d5ab684bbaed1fbf2d787b31e197", + "verified": true + }, + "verdict": "pass" + }, + { + "id": 2, + "endpoint": "quote", + "check": "X402-07", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T03:19:37.974Z", + "state": "signed", + "signedAt": "2026-11-23T03:19:41.418Z", + "expiresAtLedger": 65623598, + "sent": { + "at": "2026-11-23T03:19:41.768Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 3, + "endpoint": "quote", + "check": "X402-09", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "50000", + "intentAt": "2026-11-23T03:19:42.066Z", + "state": "signed", + "signedAt": "2026-11-23T03:19:44.623Z", + "expiresAtLedger": 65623599, + "sent": { + "at": "2026-11-23T03:19:44.639Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 4, + "endpoint": "quote", + "check": "X402-10", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T03:19:44.660Z", + "state": "signed", + "signedAt": "2026-11-23T03:19:47.396Z", + "expiresAtLedger": 65623588, + "sent": { + "at": "2026-11-23T03:20:08.020Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 5, + "endpoint": "quote", + "check": "X402-11", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T03:20:08.055Z", + "state": "signed", + "signedAt": "2026-11-23T03:20:12.101Z", + "expiresAtLedger": 65623604, + "sent": { + "at": "2026-11-23T03:20:15.683Z", + "status": 400 + }, + "verdict": "pass" + } + ], + "balancesAfter": { + "usdc": "12384386", + "native": "37517947", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T03:21:21.690Z" + }, + "result": "consistent", + "reasons": [], + "closedAt": "2026-11-23T03:21:21.690Z" +} diff --git a/.planning/instawards/sow2/week-2/copies/mainnet-validation/06-rerun-0.01-usd.ledger.json b/.planning/instawards/sow2/week-2/copies/mainnet-validation/06-rerun-0.01-usd.ledger.json new file mode 100644 index 0000000..c7f03b7 --- /dev/null +++ b/.planning/instawards/sow2/week-2/copies/mainnet-validation/06-rerun-0.01-usd.ledger.json @@ -0,0 +1,207 @@ +{ + "format": "wasit-run-ledger", + "version": 1, + "openedAt": "2026-11-23T03:49:39.433Z", + "versions": { + "wasit.cli": "0.8.0-beta.1", + "wasit.core": "0.8.0-beta.1", + "sdk.x402Version": "2", + "sdk.@x402/core": "2.28.0", + "sdk.@x402/stellar": "2.28.0", + "sdk.@stellar/mpp": "0.7.1", + "sdk.mppx": "0.8.14", + "sdk.@stellar/stellar-sdk": "16.4.1" + }, + "environment": "mainnet", + "network": "stellar:pubnet", + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "caps": { + "perPaymentUsd": "$1.00", + "runUsd": "$5.00" + }, + "rpc": "https://mainnet.sorobanrpc.com", + "plan": { + "network": "stellar:pubnet", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "perPaymentCapUsd": "1000000000000000000", + "capUsd": "5000000000000000000", + "capLowered": false, + "endpoints": [ + { + "name": "quote", + "status": "planned", + "option": { + "scheme": "exact", + "network": "stellar:pubnet", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "amount": "100000", + "maxTimeoutSeconds": 60 + }, + "signatures": [ + { + "check": "X402-06", + "amount": "100000" + }, + { + "check": "X402-07", + "amount": "100000" + }, + { + "check": "X402-09", + "amount": "50000" + }, + { + "check": "X402-10", + "amount": "100000" + }, + { + "check": "X402-11", + "amount": "100000" + } + ], + "worstCase": "450000", + "worstCaseUsd": "45000000000000000", + "url": "http://127.0.0.1:4412/paid" + } + ], + "worstCaseUsd": "45000000000000000", + "mainnet": { + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "decimals": 7, + "usdc": "12384386", + "native": "509918892", + "rpcLatest": 65623945, + "horizonLatest": 65623946, + "rpc": "https://mainnet.sorobanrpc.com", + "horizon": "https://horizon.stellar.org", + "remainingUsd": "5000000000000000000" + }, + "funding": { + "prices": "100000", + "highestPrice": "100000", + "minimum": "200000", + "worstCase": "450000", + "decimals": 7, + "balance": "12384386" + } + }, + "balancesBefore": { + "usdc": "12384386", + "native": "509918892", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T03:49:39.439Z" + }, + "entries": [ + { + "id": 1, + "endpoint": "quote", + "check": "X402-06", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T03:49:39.703Z", + "state": "signed", + "signedAt": "2026-11-23T03:49:43.558Z", + "expiresAtLedger": 65623958, + "sent": { + "at": "2026-11-23T03:50:03.395Z", + "status": 200 + }, + "settlement": { + "reference": "12a1e20e1a70d6160c463c200946f6734e14c43938469cfd415f757ac8c15d8f", + "verified": true + }, + "verdict": "pass" + }, + { + "id": 2, + "endpoint": "quote", + "check": "X402-07", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T03:50:04.220Z", + "state": "signed", + "signedAt": "2026-11-23T03:50:09.471Z", + "expiresAtLedger": 65623963, + "sent": { + "at": "2026-11-23T03:50:14.407Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 3, + "endpoint": "quote", + "check": "X402-09", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "50000", + "intentAt": "2026-11-23T03:50:14.722Z", + "state": "signed", + "signedAt": "2026-11-23T03:50:33.119Z", + "expiresAtLedger": 65623965, + "sent": { + "at": "2026-11-23T03:50:33.128Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 4, + "endpoint": "quote", + "check": "X402-10", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T03:50:33.142Z", + "state": "signed", + "signedAt": "2026-11-23T03:50:39.291Z", + "expiresAtLedger": 65623958, + "sent": { + "at": "2026-11-23T03:51:00.287Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 5, + "endpoint": "quote", + "check": "X402-11", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T03:51:00.307Z", + "state": "signed", + "signedAt": "2026-11-23T03:51:07.314Z", + "expiresAtLedger": 65623974, + "sent": { + "at": "2026-11-23T03:51:13.905Z", + "status": 400 + }, + "verdict": "pass" + } + ], + "balancesAfter": { + "usdc": "12284386", + "native": "509918892", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T03:52:07.920Z" + }, + "result": "consistent", + "reasons": [], + "closedAt": "2026-11-23T03:52:07.920Z" +} diff --git a/.planning/instawards/sow2/week-2/copies/mainnet-validation/07-rerun-1.00-usd.ledger.json b/.planning/instawards/sow2/week-2/copies/mainnet-validation/07-rerun-1.00-usd.ledger.json new file mode 100644 index 0000000..d7b37dd --- /dev/null +++ b/.planning/instawards/sow2/week-2/copies/mainnet-validation/07-rerun-1.00-usd.ledger.json @@ -0,0 +1,208 @@ +{ + "format": "wasit-run-ledger", + "version": 1, + "openedAt": "2026-11-23T03:53:53.743Z", + "versions": { + "wasit.cli": "0.8.0-beta.1", + "wasit.core": "0.8.0-beta.1", + "sdk.x402Version": "2", + "sdk.@x402/core": "2.28.0", + "sdk.@x402/stellar": "2.28.0", + "sdk.@stellar/mpp": "0.7.1", + "sdk.mppx": "0.8.14", + "sdk.@stellar/stellar-sdk": "16.4.1" + }, + "environment": "mainnet", + "network": "stellar:pubnet", + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "caps": { + "perPaymentUsd": "$1.00", + "runUsd": "$5.00" + }, + "rpc": "https://mainnet.sorobanrpc.com", + "plan": { + "network": "stellar:pubnet", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "perPaymentCapUsd": "1000000000000000000", + "capUsd": "5000000000000000000", + "capLowered": false, + "endpoints": [ + { + "name": "quote", + "status": "planned", + "option": { + "scheme": "exact", + "network": "stellar:pubnet", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "amount": "10000000", + "maxTimeoutSeconds": 60 + }, + "signatures": [ + { + "check": "X402-06", + "amount": "10000000" + }, + { + "check": "X402-07", + "amount": "10000000" + }, + { + "check": "X402-09", + "amount": "5000000" + }, + { + "check": "X402-10", + "amount": "10000000" + }, + { + "check": "X402-11", + "amount": "10000000" + } + ], + "worstCase": "45000000", + "worstCaseUsd": "4500000000000000000", + "url": "http://127.0.0.1:4412/paid" + } + ], + "worstCaseUsd": "4500000000000000000", + "mainnet": { + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "decimals": 7, + "usdc": "42246205", + "native": "273338792", + "rpcLatest": 65623996, + "horizonLatest": 65623996, + "rpc": "https://mainnet.sorobanrpc.com", + "horizon": "https://horizon.stellar.org", + "remainingUsd": "5000000000000000000" + }, + "funding": { + "prices": "10000000", + "highestPrice": "10000000", + "minimum": "20000000", + "worstCase": "45000000", + "decimals": 7, + "balance": "42246205", + "warning": "Warning: the payer holds $4.2246205, less than this run's worst case of $4.50. A service that settles payments it should refuse can take more than the $2.00 this run needs: funds can be lost that way, and the later checks may then have too little left to run." + } + }, + "balancesBefore": { + "usdc": "42246205", + "native": "273338792", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T03:53:53.746Z" + }, + "entries": [ + { + "id": 1, + "endpoint": "quote", + "check": "X402-06", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "10000000", + "intentAt": "2026-11-23T03:53:54.030Z", + "state": "signed", + "signedAt": "2026-11-23T03:53:57.839Z", + "expiresAtLedger": 65624009, + "sent": { + "at": "2026-11-23T03:54:07.807Z", + "status": 200 + }, + "settlement": { + "reference": "ca6c977926028a5afb7f6cad903174f67e516ce8bd428adf7b8656e3bcac76e9", + "verified": true + }, + "verdict": "pass" + }, + { + "id": 2, + "endpoint": "quote", + "check": "X402-07", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "10000000", + "intentAt": "2026-11-23T03:54:08.189Z", + "state": "signed", + "signedAt": "2026-11-23T03:54:11.726Z", + "expiresAtLedger": 65624012, + "sent": { + "at": "2026-11-23T03:54:11.981Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 3, + "endpoint": "quote", + "check": "X402-09", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "5000000", + "intentAt": "2026-11-23T03:54:12.288Z", + "state": "signed", + "signedAt": "2026-11-23T03:54:16.349Z", + "expiresAtLedger": 65624012, + "sent": { + "at": "2026-11-23T03:54:16.360Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 4, + "endpoint": "quote", + "check": "X402-10", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "10000000", + "intentAt": "2026-11-23T03:54:16.374Z", + "state": "signed", + "signedAt": "2026-11-23T03:54:19.250Z", + "expiresAtLedger": 65624002, + "sent": { + "at": "2026-11-23T03:54:39.604Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 5, + "endpoint": "quote", + "check": "X402-11", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "10000000", + "intentAt": "2026-11-23T03:54:39.621Z", + "state": "signed", + "signedAt": "2026-11-23T03:54:43.741Z", + "expiresAtLedger": 65624018, + "sent": { + "at": "2026-11-23T03:54:47.125Z", + "status": 400 + }, + "verdict": "pass" + } + ], + "balancesAfter": { + "usdc": "32246205", + "native": "273338792", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T03:55:51.179Z" + }, + "result": "consistent", + "reasons": [], + "closedAt": "2026-11-23T03:55:51.179Z" +} diff --git a/.planning/instawards/sow2/week-2/copies/mainnet-validation/08-rerun-mcp-tool-0.01-usd.ledger.json b/.planning/instawards/sow2/week-2/copies/mainnet-validation/08-rerun-mcp-tool-0.01-usd.ledger.json new file mode 100644 index 0000000..e27b5fa --- /dev/null +++ b/.planning/instawards/sow2/week-2/copies/mainnet-validation/08-rerun-mcp-tool-0.01-usd.ledger.json @@ -0,0 +1,207 @@ +{ + "format": "wasit-run-ledger", + "version": 1, + "openedAt": "2026-11-23T04:09:08.756Z", + "versions": { + "wasit.server": "0.8.0-beta.1", + "wasit.core": "0.8.0-beta.1", + "sdk.x402Version": "2", + "sdk.@x402/core": "2.28.0", + "sdk.@x402/stellar": "2.28.0", + "sdk.@stellar/mpp": "0.7.1", + "sdk.mppx": "0.8.14", + "sdk.@stellar/stellar-sdk": "16.4.1" + }, + "environment": "mainnet", + "network": "stellar:pubnet", + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "caps": { + "perPaymentUsd": "$1.00", + "runUsd": "$5.00" + }, + "rpc": "https://mainnet.sorobanrpc.com", + "plan": { + "network": "stellar:pubnet", + "pin": { + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75" + }, + "perPaymentCapUsd": "1000000000000000000", + "capUsd": "5000000000000000000", + "capLowered": false, + "endpoints": [ + { + "name": "quote", + "status": "planned", + "option": { + "scheme": "exact", + "network": "stellar:pubnet", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "amount": "100000", + "maxTimeoutSeconds": 60 + }, + "signatures": [ + { + "check": "X402-06", + "amount": "100000" + }, + { + "check": "X402-07", + "amount": "100000" + }, + { + "check": "X402-09", + "amount": "50000" + }, + { + "check": "X402-10", + "amount": "100000" + }, + { + "check": "X402-11", + "amount": "100000" + } + ], + "worstCase": "450000", + "worstCaseUsd": "45000000000000000", + "url": "http://127.0.0.1:4412/paid" + } + ], + "worstCaseUsd": "45000000000000000", + "mainnet": { + "payer": "GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V", + "decimals": 7, + "usdc": "32246205", + "native": "273338792", + "rpcLatest": 65624179, + "horizonLatest": 65624179, + "rpc": "https://mainnet.sorobanrpc.com", + "horizon": "https://horizon.stellar.org", + "remainingUsd": "5000000000000000000" + }, + "funding": { + "prices": "100000", + "highestPrice": "100000", + "minimum": "200000", + "worstCase": "450000", + "decimals": 7, + "balance": "32246205" + } + }, + "balancesBefore": { + "usdc": "32246205", + "native": "273338792", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T04:09:08.760Z" + }, + "entries": [ + { + "id": 1, + "endpoint": "quote", + "check": "X402-06", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T04:09:09.041Z", + "state": "signed", + "signedAt": "2026-11-23T04:09:17.140Z", + "expiresAtLedger": 65624192, + "sent": { + "at": "2026-11-23T04:09:32.315Z", + "status": 200 + }, + "settlement": { + "reference": "c403b83e8901c61aa98ab119b24ad424c786358d62844572146a99bff779b29f", + "verified": true + }, + "verdict": "pass" + }, + { + "id": 2, + "endpoint": "quote", + "check": "X402-07", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T04:09:33.085Z", + "state": "signed", + "signedAt": "2026-11-23T04:09:39.141Z", + "expiresAtLedger": 65624197, + "sent": { + "at": "2026-11-23T04:09:39.932Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 3, + "endpoint": "quote", + "check": "X402-09", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "50000", + "intentAt": "2026-11-23T04:09:40.220Z", + "state": "signed", + "signedAt": "2026-11-23T04:09:46.853Z", + "expiresAtLedger": 65624198, + "sent": { + "at": "2026-11-23T04:09:46.862Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 4, + "endpoint": "quote", + "check": "X402-10", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T04:09:46.875Z", + "state": "signed", + "signedAt": "2026-11-23T04:09:53.856Z", + "expiresAtLedger": 65624189, + "sent": { + "at": "2026-11-23T04:10:14.576Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 5, + "endpoint": "quote", + "check": "X402-11", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T04:10:14.593Z", + "state": "signed", + "signedAt": "2026-11-23T04:10:21.243Z", + "expiresAtLedger": 65624205, + "sent": { + "at": "2026-11-23T04:10:28.918Z", + "status": 400 + }, + "verdict": "pass" + } + ], + "balancesAfter": { + "usdc": "32146205", + "native": "273338792", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T04:11:31.649Z" + }, + "result": "consistent", + "reasons": [], + "closedAt": "2026-11-23T04:11:31.649Z" +} diff --git a/.planning/instawards/sow2/week-2/copies/mainnet-validation/excerpts-of-the-runs.txt b/.planning/instawards/sow2/week-2/copies/mainnet-validation/excerpts-of-the-runs.txt new file mode 100644 index 0000000..66b0a54 --- /dev/null +++ b/.planning/instawards/sow2/week-2/copies/mainnet-validation/excerpts-of-the-runs.txt @@ -0,0 +1,98 @@ +Excerpts of the output of the mainnet validation runs, 2026-11-23, copied from the maintainer's terminal. +Only the lines that carry the result are kept; nothing is edited inside a line. The ledger files next to this +one and the linked transactions are the full record of the paid runs. A and B are the two addresses named in +job 03. Commit 2e5ea94 for the first set, commit 9eff947 for the second set. + +=== First set (2e5ea94): dry run, no key === +Network: stellar:pubnet (mainnet) +Pinned: payTo GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ, asset CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75. + X402-06 100000, X402-07 100000, X402-09 50000, X402-10 100000, X402-11 100000 (base units) +Worst case: $0.045 of $5.00. + +=== First set: the six refusals, payer's key present === +no --mainnet: +wasit run: stellar:pubnet is Stellar mainnet: a paying run there needs --mainnet, and every rule of the mainnet opt-in (see wasit run --help). Nothing was started, sent or signed. + +price $1.01: + quote at http://127.0.0.1:4412/paid: refused: it is priced at 10100000 base units of USDC ($1.01), above the $1.00 per payment fixed in Wasit. Nothing was signed. Test a route priced at $1.00 or less. + +two endpoints at $1.00: +Worst case: $8.00 of $5.00. +Refused: This run could spend up to $8.00 (quote $4.50, quote2 $3.50), above the $5.00 per run. Nothing was signed. Select fewer endpoints, or test a cheaper route. + +the pin on another address (an address nobody holds a key for): + quote at http://127.0.0.1:4412/paid: refused: Option 1 of the challenge (exact, stellar:pubnet) has payTo "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", not the pinned GBNTV5XIMYJJJQ4NINLXISU6GH26OP5WIV6YRWJ3MTLVYIZA5PX2EP3X. Nothing was signed. + +another asset: + quote at http://127.0.0.1:4412/paid: refused: Option 1 of the challenge (exact, stellar:pubnet) has asset "CAS3J7GYLGXMF6TDJBBYYSE3HQ6BBSMLNUQ34T6TZMYMW2EVH34XOWMA", not the pinned CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75. Nothing was signed. + +another network: + quote at http://127.0.0.1:4412/paid: not paid: the target offers no payment option on stellar:pubnet (it offers stellar:testnet), so no payment was attempted (see X402-05). + +After the six runs: no ledger file, no lock; the balances of A and B unchanged. + +=== First set: first paid run, $0.01 === +MAINNET RUN on stellar:pubnet: real funds. Payer GCJPZARVX662YFJXYNAXDJLOEVHJF5TU7TGQDV5Z4I2M65NZSL25AL7V; pays only GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ in USDC; at most $1.00 per payment; at most $5.00 this run. The plan is read next; nothing is signed before it passes. +Ledger: consistent: the payer's USDC went down by exactly the settlements this run verified (100000 base units), and its XLM did not move. + PASS X402-06 Signature Resubmit Accepted + Valid payment accepted (HTTP 200) and settled on-chain for exactly the advertised 100000 base units of CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75 to GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ, verified from the transfer event (tx 98d1b511f9726ca9833836cec4648808e9bdae571b7d96b2b2fe8957fc285288). +Result: 1 graded (exit 0). + +=== First set: $1.00, first attempt (the facilitator's settlement did not reach a ledger) === + FAIL X402-06 Signature Resubmit Accepted + Expected 2xx after a valid payment, got 402 (settlement failed: settle_exact_stellar_transaction_failed). + SKIP X402-07, X402-08, X402-09, X402-10, X402-11 +Ledger: consistent: the payer's USDC went down by exactly the settlements this run verified (0 base units), and its XLM did not move. +Result: 1 endpoint is non-conformant (1 graded (1 non-conformant)) (exit 1). + +=== First set: $1.00, second attempt === + PASS X402-06 ... settled on-chain for exactly the advertised 10000000 base units ... (tx 379c7b7003582246b2f8c6ab45fe7cfbede15788890ccf0dedc0c326d12d1410). + ERROR X402-07 / X402-09 / X402-10 / X402-11 Check could not run (harness): Stellar simulation failed with error message: HostError: Error(Contract, #10) +Ledger: consistent: the payer's USDC went down by exactly the settlements this run verified (10000000 base units), and its XLM did not move. +Result: nothing could be graded: 0 graded, 1 no verdict (exit 2). + +=== First set: lax service === + FAIL X402-09 Underpayment Rejected + A validly signed payment for 50000 of the advertised 100000 base units was accepted (HTTP 200) — security-relevant failure: the target served for less than its price. It settled on chain: 50000 base units moved from the payer to payTo in 788c08d0d8ca9b95c90191546f1084e3e53bc4de08243c6e60ae4967b522df7a, read back from the transfer event. + FAIL X402-11 Rejected Request Not Settled + A request the config declares invalid was served (HTTP 200) with a valid payment for 100000 base units. The payment was taken: ad1f3ef57578a440148d7f30268750c8094c17f8a5beae4cb81e01aa68618682 (ledger 65623450). +Ledger: consistent: the payer's USDC went down by exactly the settlements this run verified (250000 base units), and its XLM did not move. +Result: 1 endpoint is non-conformant (1 graded (1 non-conformant)) (exit 1). + +=== First set: the MCP server's tools === +1. tools: wasit_x402_test, wasit_mpp_charge_test, wasit_mpp_channel_test, wasit_x402_mainnet_test + ERROR PREFLIGHT Run Preflight + Check could not run (configuration): stellar:pubnet is Stellar mainnet, and this run has no mainnet opt-in: Wasit pays there only through wasit run --mainnet, the Action's mainnet: true on workflow_dispatch, or the MCP server's wasit_x402_mainnet_test, each with every rule of the opt-in. ... + ERROR MPP-01 Charge Settlement On-Chain + Check could not run (configuration): stellar:pubnet is Stellar mainnet, and MPP stays on test networks: the MPP checks pay on stellar:testnet only. Nothing was sent and nothing was signed. +--- 4. wasit_x402_mainnet_test: isError=false outcome=conformant +mainnet: {"network":"stellar:pubnet","payTo":"GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ","ledgerResult":"consistent","spentUsd":"$0.045","processSpentUsd":"$0.045","processCapUsd":"$5.00"} +(tx 08b91199…e197) + +=== Second set (9eff947): dry run, new line === +Mainnet dry run: a paying run also refuses when the payer holds less than $0.02 in USDC (the prices, $0.01, plus the highest price again, $0.01: what it needs to finish its checks), and warns below the worst case of $0.045. + +=== Second set: $1.00 against a payer holding $1.2384386 === +Mainnet: funds: the payer holds $1.2384386 in USDC; this run needs at least $2.00 to finish its checks (the prices, $1.00, plus the highest price again, $1.00): $0.7615614 short; worst case $4.50. +Refused: This mainnet run does not start: the payer holds $1.2384386 in USDC, and this run needs at least $2.00 to finish its checks (the prices, $1.00, plus the highest price again, $1.00): $0.7615614 short. Nothing was signed. Add USDC to the payer (it may hold at most $10.00), or select fewer or cheaper endpoints. + +=== Second set: paid run, $0.01 === +Mainnet: funds: the payer holds $1.2384386 in USDC; this run needs at least $0.02 to finish its checks (the prices, $0.01, plus the highest price again, $0.01): $1.2184386 above it; worst case $0.045. + PASS X402-06 ... (tx 12a1e20e1a70d6160c463c200946f6734e14c43938469cfd415f757ac8c15d8f). +Ledger: consistent: the payer's USDC went down by exactly the settlements this run verified (100000 base units), and its XLM did not move. +Result: 1 graded (exit 0). + +=== Second set: paid run at exactly $1.00, payer holding $4.2246205 === +Mainnet: funds: the payer holds $4.2246205 in USDC; this run needs at least $2.00 to finish its checks (the prices, $1.00, plus the highest price again, $1.00): $2.2246205 above it; worst case $4.50. +Warning: the payer holds $4.2246205, less than this run's worst case of $4.50. A service that settles payments it should refuse can take more than the $2.00 this run needs: funds can be lost that way, and the later checks may then have too little left to run. +quote x402 GET /paid: conformant + PASS X402-06 ... (tx ca6c977926028a5afb7f6cad903174f67e516ce8bd428adf7b8656e3bcac76e9). + PASS X402-07, X402-08, X402-09, X402-10, X402-11 +Ledger: consistent: the payer's USDC went down by exactly the settlements this run verified (10000000 base units), and its XLM did not move. +Result: 1 graded (exit 0). + +=== Second set: the MCP server's mainnet tool, $0.01 === +--- 4. wasit_x402_mainnet_test: isError=false outcome=conformant + PASS X402-06 ... (tx c403b83e…b29f). +mainnet: {"network":"stellar:pubnet","payTo":"GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ","ledgerResult":"consistent","spentUsd":"$0.045","processSpentUsd":"$0.045","processCapUsd":"$5.00"} +(the output of the client script is cut at 40 lines; the verdicts of X402-09 to X402-11 are in the ledger)