From e8d0dee57c2c2199540442a2b600ec6da0542a31 Mon Sep 17 00:00:00 2001 From: Muhammad Dzakwan Najmi Date: Mon, 23 Nov 2026 21:55:17 +0800 Subject: [PATCH] docs(evidence): the mainnet validation names its final commit, c8cf72a A refused mainnet run no longer prints the warning that funds can be lost. The board now has a third set on that commit (a dry run, a refusal for the run cap without the warning, and a paid run of $0.01 read back from Horizon), the ledger copy, and the totals and close updated. --- .../instawards/sow2/03-mpp-and-validation.md | 22 +- .../instawards/sow2/07-evidence-submission.md | 4 +- .planning/instawards/sow2/STATUS.md | 2 +- .../09-rerun-c8cf72a-0.01-usd.ledger.json | 207 ++++++++++++++++++ .../excerpts-of-the-runs.txt | 19 +- 5 files changed, 246 insertions(+), 8 deletions(-) create mode 100644 .planning/instawards/sow2/week-2/copies/mainnet-validation/09-rerun-c8cf72a-0.01-usd.ledger.json diff --git a/.planning/instawards/sow2/03-mpp-and-validation.md b/.planning/instawards/sow2/03-mpp-and-validation.md index 7cf679b..85d204b 100644 --- a/.planning/instawards/sow2/03-mpp-and-validation.md +++ b/.planning/instawards/sow2/03-mpp-and-validation.md @@ -32,7 +32,7 @@ down. ### 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. +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, and, after a second, smaller change (below), commit `c8cf72a` for the third set. All three 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. @@ -65,19 +65,31 @@ In the $1.00 run the payer held less than the run needed to finish its checks, s | 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) | +### One more change, and a third set, commit `c8cf72a` + +The warning described above also printed on a run refused for another reason, where nothing is signed and no funds can be lost. A refused plan now carries no warning; a plan that starts is unchanged. The change touches only the text of the plan. + +| Run | Result | Proof | +| --- | --- | --- | +| Dry run | worst case $0.045, exit 0 | [excerpts](week-2/copies/mainnet-validation/excerpts-of-the-runs.txt) | +| Two endpoints at $1.00, payer holding $3.2146205 (above the minimum of $3.00, below the worst case of $8.00) | refused for the $5.00 run cap, "Nothing was signed", exit 2, the funds line printed and **no warning**; no ledger opened | [excerpts](week-2/copies/mainnet-validation/excerpts-of-the-runs.txt) | +| Paid run, price $0.01 | X402-01 to X402-11 pass; ledger consistent | [`3cc8aac7…0382`](https://stellar.expert/explorer/public/tx/3cc8aac77606b023c6dd2f8c3ba85c30372a7c33224465bcbc45c985c45b0382) · [ledger](week-2/copies/mainnet-validation/09-rerun-c8cf72a-0.01-usd.ledger.json) | + +Read afterwards on public Horizon (no key): the payer's USDC went from 3.2146205 to 3.2046205 and its XLM did not move; the receiver's USDC rose by 0.01 and its XLM fell by the fee of 12103 stroops. The transaction has one operation, from the receiver's account, and moves 0.01 USDC from the payer to the receiver. The paid path of the warning on a run that starts was not repeated on this commit; it is covered by the offline tests and was seen on mainnet in the second set. The paid run of $1.00, lax mode and the MCP tool were not repeated on this commit: only the plan's text changed. + ### 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). +- **Spent in all:** 2.075 USDC moved from A to B in ten settlements (first set $1.045, second $1.02, third $0.01), and B paid ten network fees of 12103 stroops each (about 0.012 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. +- **One message was noisy, and was changed:** the "funds can be lost" warning also printed when a run was refused for another reason (nothing is signed then). It is now added only to a run that starts. Commit `c8cf72a`; the third set shows the refused run without it. - **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 a close that empties or rotates the accounts: the maintainer chose to keep both accounts as they are (see "The close"). ### The close @@ -86,6 +98,8 @@ After the last run the maintainer unset the two key variables in the shell they Not found in the runs, by their own results and ledgers: a signature without a ledger entry, a transfer outside the plan, or a spend above the plan. This is a reading of the result files and ledgers by the maintainer's session, not a second check by another party. +**After the third set (`c8cf72a`).** The maintainer reported unsetting the two key variables again, in both shells (not checked by this session). The ledger folder held no lock file. Read on public Horizon (no key): the latest transaction on both accounts is the third set's paid run (`3cc8aac7…0382`), and the two before it are the earlier settlements. The payer's USDC is 3.2046205, its XLM is unchanged, and it stayed below $10. The totals still reconcile: 3.2146205 before the run, minus the 0.01 spent, equals what Horizon showed after it. The accounts were again kept, not emptied or rotated. + ### 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. +[`week-2/copies/mainnet-validation/`](week-2/copies/mainnet-validation/): the nine 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 5b48582..aceb94f 100644 --- a/.planning/instawards/sow2/07-evidence-submission.md +++ b/.planning/instawards/sow2/07-evidence-submission.md @@ -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 | ✅ | 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 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). A third paid run of $0.01, on the final commit `c8cf72a`: [`3cc8aac7…0382`](https://stellar.expert/explorer/public/tx/3cc8aac77606b023c6dd2f8c3ba85c30372a7c33224465bcbc45c985c45b0382). 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 | ✅ (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, what was not run and the close of 2026-11-23 (keys unset, accounts kept, balances read on Horizon). The final commit is named in the final report | +| 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, two changes made from what the runs showed, what went wrong, what was not run and the close of 2026-11-23 (keys unset, accounts kept, balances read on Horizon). The commit of the last runs is `c8cf72a`; the final report names it again | | 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 bb79fc0..760d08c 100644 --- a/.planning/instawards/sow2/STATUS.md +++ b/.planning/instawards/sow2/STATUS.md @@ -108,7 +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). The validation was closed the same day: the keys were unset in the shell, the two accounts were kept (not emptied, not rotated) and their balances were read on public Horizon ([job 03, "The close"](03-mpp-and-validation.md)). | +| 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. A warning that also printed on a refused run was then removed, and a third set (a dry run, a refusal for the run cap and a paid run of $0.01) was made on that commit, `c8cf72a`. Proofs and findings: [job 03](03-mpp-and-validation.md). The validation was closed the same day: the keys were unset in the shell, the two accounts were kept (not emptied, not rotated) and their balances were read on public Horizon ([job 03, "The close"](03-mpp-and-validation.md)). | | 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/09-rerun-c8cf72a-0.01-usd.ledger.json b/.planning/instawards/sow2/week-2/copies/mainnet-validation/09-rerun-c8cf72a-0.01-usd.ledger.json new file mode 100644 index 0000000..2728baa --- /dev/null +++ b/.planning/instawards/sow2/week-2/copies/mainnet-validation/09-rerun-c8cf72a-0.01-usd.ledger.json @@ -0,0 +1,207 @@ +{ + "format": "wasit-run-ledger", + "version": 1, + "openedAt": "2026-11-23T13:48:40.319Z", + "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": "32146205", + "native": "273338792", + "rpcLatest": 65631134, + "horizonLatest": 65631134, + "rpc": "https://mainnet.sorobanrpc.com", + "horizon": "https://horizon.stellar.org", + "remainingUsd": "5000000000000000000" + }, + "funding": { + "prices": "100000", + "highestPrice": "100000", + "minimum": "200000", + "worstCase": "450000", + "decimals": 7, + "balance": "32146205" + } + }, + "balancesBefore": { + "usdc": "32146205", + "native": "273338792", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T13:48:40.324Z" + }, + "entries": [ + { + "id": 1, + "endpoint": "quote", + "check": "X402-06", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T13:48:40.604Z", + "state": "signed", + "signedAt": "2026-11-23T13:48:43.496Z", + "expiresAtLedger": 65631146, + "sent": { + "at": "2026-11-23T13:48:58.501Z", + "status": 200 + }, + "settlement": { + "reference": "3cc8aac77606b023c6dd2f8c3ba85c30372a7c33224465bcbc45c985c45b0382", + "verified": true + }, + "verdict": "pass" + }, + { + "id": 2, + "endpoint": "quote", + "check": "X402-07", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T13:48:59.003Z", + "state": "signed", + "signedAt": "2026-11-23T13:49:03.014Z", + "expiresAtLedger": 65631150, + "sent": { + "at": "2026-11-23T13:49:03.406Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 3, + "endpoint": "quote", + "check": "X402-09", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "50000", + "intentAt": "2026-11-23T13:49:03.706Z", + "state": "signed", + "signedAt": "2026-11-23T13:49:06.475Z", + "expiresAtLedger": 65631151, + "sent": { + "at": "2026-11-23T13:49:06.493Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 4, + "endpoint": "quote", + "check": "X402-10", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T13:49:06.515Z", + "state": "signed", + "signedAt": "2026-11-23T13:49:09.422Z", + "expiresAtLedger": 65631140, + "sent": { + "at": "2026-11-23T13:49:29.802Z", + "status": 402 + }, + "verdict": "pass" + }, + { + "id": 5, + "endpoint": "quote", + "check": "X402-11", + "network": "stellar:pubnet", + "asset": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75", + "payTo": "GBFTF5QOLLBF34T6G4GZBOL7VLYQ4GBHNVS6LKFWIZV5F2N5Y35QL6OZ", + "amount": "100000", + "intentAt": "2026-11-23T13:49:29.829Z", + "state": "signed", + "signedAt": "2026-11-23T13:49:35.011Z", + "expiresAtLedger": 65631156, + "sent": { + "at": "2026-11-23T13:49:38.784Z", + "status": 400 + }, + "verdict": "pass" + } + ], + "balancesAfter": { + "usdc": "32046205", + "native": "273338792", + "source": "public Horizon (https://horizon.stellar.org)", + "at": "2026-11-23T13:50:41.292Z" + }, + "result": "consistent", + "reasons": [], + "closedAt": "2026-11-23T13:50:41.292Z" +} 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 index 66b0a54..85952b8 100644 --- 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 @@ -1,7 +1,7 @@ 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. +job 03. Commit 2e5ea94 for the first set, commit 9eff947 for the second set, commit c8cf72a for the third set. === First set (2e5ea94): dry run, no key === Network: stellar:pubnet (mainnet) @@ -96,3 +96,20 @@ Result: 1 graded (exit 0). 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) + +=== Third set (c8cf72a): dry run === +Worst case: $0.045 of $5.00. +exit 0 + +=== Third set: two endpoints at $1.00, payer holding $3.2146205 (between the minimum $3.00 and the worst case $8.00) === +Mainnet: funds: the payer holds $3.2146205 in USDC; this run needs at least $3.00 to finish its checks (the prices, $2.00, plus the highest price again, $1.00): $0.2146205 above it; worst case $8.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. +exit 2 +(no "Warning:" line; the ledger folder stayed empty) + +=== Third set: paid run, $0.01 === +Mainnet: funds: the payer holds $3.2146205 in USDC; this run needs at least $0.02 to finish its checks (the prices, $0.01, plus the highest price again, $0.01): $3.1946205 above it; worst case $0.045. + PASS X402-06 ... (tx 3cc8aac77606b023c6dd2f8c3ba85c30372a7c33224465bcbc45c985c45b0382). + PASS X402-01 to X402-05, X402-07 to X402-11 +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).