diff --git a/.planning/instawards/sow2/03-mpp-and-validation.md b/.planning/instawards/sow2/03-mpp-and-validation.md index 95329c4..7cf679b 100644 --- a/.planning/instawards/sow2/03-mpp-and-validation.md +++ b/.planning/instawards/sow2/03-mpp-and-validation.md @@ -24,7 +24,7 @@ down. - [ ] 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. 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. +- [~] The validation is run and its written findings are published (or the reason the opt-in is not offered). Run, closed on 2026-11-23, and its findings are written below. ## Result @@ -78,7 +78,13 @@ In the $1.00 run the payer held less than the run needed to finish its checks, s - **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. +- **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 + +After the last run the maintainer unset the two key variables in the shell they had used (`WASIT_MAINNET_PAYER_SECRET` and the facilitator's); the variables read empty there (a terminal closed earlier cannot be checked). The ledger folder held no lock file. The maintainer did **not** empty or rotate the payer account: it was kept as it is, with its key in the maintainer's own terminal and backup. Read afterwards on public Horizon (no key): no transaction followed the last run (`c403b83e…b29f`) on either account, no payment left the payer for any address, and the payer's USDC stayed below the $10 the plan allows. The totals reconcile: the payer's USDC at the start, plus what the maintainer added, minus the 2.065 USDC spent, equals what Horizon showed after the last run; the receiver's USDC equals the 2.065 paid in minus the amount the maintainer sent back to the payer. + +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. ### Copies diff --git a/.planning/instawards/sow2/07-evidence-submission.md b/.planning/instawards/sow2/07-evidence-submission.md index f69c41c..5b48582 100644 --- a/.planning/instawards/sow2/07-evidence-submission.md +++ b/.planning/instawards/sow2/07-evidence-submission.md @@ -60,7 +60,7 @@ Further proofs of D1 (not SOW rows): | 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 and what was not run. Open: the maintainer's last step (emptying or rotating the two accounts) and the final commit the report names | +| 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 | | 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 4d2d51b..bb79fc0 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). Pending: the maintainer's last step with the two accounts. | +| 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-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`. |