From e79d64f8eaf92f040440dd82ec696c77c9ce7be7 Mon Sep 17 00:00:00 2001 From: Muhammad Dzakwan Najmi Date: Tue, 24 Nov 2026 13:04:52 +0800 Subject: [PATCH] docs(evidence): MPP charge and channel through wasit run, on the board MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The maintainer ran the MPP checks through wasit run on 2026-11-24 against the local MPP test services: MPP-01 passed and its payment was read back on Horizon; the channel checks MPP-11, 12 and 14 passed, MPP-10 was skipped, MPP-13 is never run. Job 03, the evidence table and the status board now show it as partly done (🟡), with copies of the output and of the comment written from those runs. The code becomes public with the release; the run in the example project comes then. --- .../instawards/sow2/03-mpp-and-validation.md | 21 ++++++- .../instawards/sow2/07-evidence-submission.md | 2 +- .planning/instawards/sow2/STATUS.md | 7 ++- .../copies/mpp-local-run/channel-comment.md | 33 ++++++++++ .../copies/mpp-local-run/charge-comment.md | 28 +++++++++ .../mpp-local-run/excerpts-of-the-runs.txt | 61 +++++++++++++++++++ 6 files changed, 145 insertions(+), 7 deletions(-) create mode 100644 .planning/instawards/sow2/week-2/copies/mpp-local-run/channel-comment.md create mode 100644 .planning/instawards/sow2/week-2/copies/mpp-local-run/charge-comment.md create mode 100644 .planning/instawards/sow2/week-2/copies/mpp-local-run/excerpts-of-the-runs.txt diff --git a/.planning/instawards/sow2/03-mpp-and-validation.md b/.planning/instawards/sow2/03-mpp-and-validation.md index 85d204b..9a0a7f2 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: 🟡 **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 +Status: 🟡 **IN PROGRESS** — the validation of the opt-in was run on 2026-11-23 and MPP in `wasit run` on 2026-11-24, on the maintainer's machine (week 2, ahead of its week); MPP in the example project's Action comes with the release; the recent-failures line and "resource consumed" are not started · Deliverable: **D2** · Week: **3** · Depends on: #2 ## Goal @@ -20,7 +20,7 @@ down. ## Acceptance criteria -- [ ] MPP charge and channel runs in the example project, in the same comment format. +- [~] MPP charge and channel runs in the example project, in the same comment format. Partly: run through `wasit run` on the maintainer's machine on 2026-11-24, and the comment written from those runs (below); the run in the example project, through the Action, comes with the release, when the code is public. - [ ] 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. @@ -28,7 +28,22 @@ down. ## Result -**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.** +**Part 1 of this job (MPP) was run on 2026-11-24 on the maintainer's machine, on the Stellar test network; part 3 (the validation of the opt-in on our own service) on 2026-11-23 on Stellar mainnet. The recent-failures line and "resource consumed" are not started.** + +### MPP through `wasit run`, on the maintainer's machine (2026-11-24) + +`wasit run`, the command the Action runs, now runs the MPP checks in the payment tier, on `stellar:testnet` only and by the same rules as x402: the event, `operatedByMe` and the key variable. MPP-01 (charge) is planned from the service's unpaid answer before anything is signed and held to the same caps as x402, at most $1.00 a payment and one $5.00 budget for the run; the payment it signs must be the planned one. The channel checks (MPP-10, 11, 12 and 14) sign commitments off-chain and send no transaction. MPP-13, which closes a channel for good, is never run by `wasit run`. The maintainer ran it in their own terminal against the local MPP test services of Wasit's repository; the keys came from their local environment file and are in no output. + +| Run | Result | Proof | +| --- | --- | --- | +| MPP charge, one endpoint | The plan printed first ("MPP-01 10000 (base units)", "could spend up to $0.001 of the $5.00 cap"); MPP-01 passed: the payment settled for exactly the advertised amount, read from the transfer event; exit 0. Read afterwards on Horizon: one successful operation, the payer debited and the receiver credited 0.0010000 USDC | [`4349…bf83`](https://stellar.expert/explorer/testnet/tx/43499f50af379f20467b31645815e4d31db250bef4315ce98d5ed22eb83cbf83) · [excerpts](week-2/copies/mpp-local-run/excerpts-of-the-runs.txt) · [comment](week-2/copies/mpp-local-run/charge-comment.md) | +| MPP channel, one endpoint | MPP-11, MPP-12 and MPP-14 passed, MPP-10 skipped (the channel's expected terms were not in the config), MPP-13 not listed; nothing charged to the cap; exit 0 | [excerpts](week-2/copies/mpp-local-run/excerpts-of-the-runs.txt) · [comment](week-2/copies/mpp-local-run/channel-comment.md) | + +The two comments were written by `wasit ci-report` from the reports of these runs, the same command the Action runs: the charge comment links the payment on Stellar Expert, as the x402 comment does for X402-06. No pull request was involved: this is the comment format, not yet a run in the example project. + +The code is commit `bd9209a` on a local branch of the week 3 work, which becomes public with the release; until then the copies are the readable record. The comments' version line reads 0.8.0-beta.1 because the local build keeps the pre-release's version number: the published 0.8.0-beta.1 does not have this code. Not run yet: MPP in the example project through the Action (with the release), and a service that is not ours. + +### Part 3: the validation of the opt-in (2026-11-23) ### What was run, and where diff --git a/.planning/instawards/sow2/07-evidence-submission.md b/.planning/instawards/sow2/07-evidence-submission.md index aceb94f..db5636d 100644 --- a/.planning/instawards/sow2/07-evidence-submission.md +++ b/.planning/instawards/sow2/07-evidence-submission.md @@ -50,7 +50,7 @@ Further proofs of D1 (not SOW rows): | --- | --- | --- | | Payment-tier runs with a Stellar Expert link to each transaction | ✅ | [Run on `main` of 2026-11-20](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/44641632605): the link is now in the check "Wasit conformance" itself ([copy of its summary](week-2/copies/check-run-main-summary.md); [the payment](https://stellar.expert/explorer/testnet/tx/ec61f2df41306528d08388887556a104d5e18be061d964ea7d9e76f13de02c0d)) · [Run on `main` of the example project](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43816426654) · [X402-06's payment on Stellar Expert](https://stellar.expert/explorer/testnet/tx/beb0a5f94e2c5cb41cad8f5fe1110020dd004c30022b53b853b30ae5ef905a86) · [copy of the log](week-2/copies/run-main-payment-tier.log.txt). X402-07 to X402-10 send payments the service must refuse; it refused them, so they have no transaction | | A run of the new check showing the refused request and the chain read with no transfer | ✅ | [Run on `main` of the example project](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43851987068) · [copy of the log](week-2/copies/run-main-x402-11.log.txt): `X402-11` sent a valid payment with a request the seller must refuse; the seller answered 400; the chain shows the payment's authorization unused after it expired, and no transfer of it. Two sellers that take such a payment fail it, naming the transaction: [copy of the output](week-2/copies/live-check-x402-11-three-modes.txt) (on the maintainer's machine; the transactions are public) | -| MPP charge and channel runs | ⬜ | Week 3 (job 03) | +| MPP charge and channel runs | 🟡 | Run through `wasit run` on the maintainer's machine, 2026-11-24, against local test services on the Stellar test network: MPP-01 passed, its payment [`4349…bf83`](https://stellar.expert/explorer/testnet/tx/43499f50af379f20467b31645815e4d31db250bef4315ce98d5ed22eb83cbf83) read back on Horizon; channel MPP-11, MPP-12 and MPP-14 passed, MPP-10 skipped, MPP-13 never run · [excerpts](week-2/copies/mpp-local-run/excerpts-of-the-runs.txt) · comments ([charge](week-2/copies/mpp-local-run/charge-comment.md), [channel](week-2/copies/mpp-local-run/channel-comment.md)) · [job 03](03-mpp-and-validation.md). The code becomes public with the release; the run in the example project, through the Action, comes then | | A run on a pull request from a fork showing the payment checks were not run | ✅ | [Pull request 5](https://github.com/dzakwannajmi/x402-example-paywall/pull/5) · [run](https://github.com/dzakwannajmi/x402-example-paywall/actions/runs/43819805398) · [copy of the log](week-2/copies/run-pr5-fork-payment-tier.log.txt): the workflow asks for `tier: payment`; on this pull request from a fork X402-01 to X402-05 passed and X402-06 to X402-10 were skipped with "payment checks not run: pull request"; nothing was signed | | 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) | diff --git a/.planning/instawards/sow2/STATUS.md b/.planning/instawards/sow2/STATUS.md index 760d08c..3adaf85 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-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 +Last updated: 2026-11-24: MPP charge and channel run through `wasit run` on the maintainer's machine, MPP-01 held to the same caps as x402 and its payment read back from the chain ([job 03](03-mpp-and-validation.md)); the code becomes public with the release. On 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) @@ -46,7 +46,7 @@ This table is for screening a week without reading the rest. | --- | --- | --- | --- | --- | | 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) · [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) | +| 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 | 🟡 **IN PROGRESS**, early — MPP through `wasit run` run on the maintainer's machine on 2026-11-24 (code public with the release); the validation of the opt-in was run on 2026-11-23 (see week 2) | [MPP-01's payment on Stellar Expert](https://stellar.expert/explorer/testnet/tx/43499f50af379f20467b31645815e4d31db250bef4315ce98d5ed22eb83cbf83) · [MPP runs, excerpts](week-2/copies/mpp-local-run/excerpts-of-the-runs.txt) · [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 | 🟡 **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 | +| 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); MPP through `wasit run` on 2026-11-24 on the maintainer's machine (in the example project with the release); the recent-failures line and "resource consumed" are 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-24 | MPP through `wasit run` | `wasit run`, the command the Action runs, now runs MPP charge (MPP-01) and channel (MPP-10, 11, 12, 14) on the Stellar test network, by the same rules as x402; MPP-13 is never run. MPP-01 is planned from the service's unpaid answer and held to the same caps ($1.00 a payment, one $5.00 budget for the run). The maintainer ran it against Wasit's local MPP test services: MPP-01 passed and its payment [`4349…bf83`](https://stellar.expert/explorer/testnet/tx/43499f50af379f20467b31645815e4d31db250bef4315ce98d5ed22eb83cbf83) was read back on Horizon (0.0010000 USDC from the payer to the receiver); MPP-11, 12 and 14 passed, MPP-10 was skipped for want of the channel's expected terms ([excerpts](week-2/copies/mpp-local-run/excerpts-of-the-runs.txt)). The comment written from those runs links the payment as for x402 ([copy](week-2/copies/mpp-local-run/charge-comment.md)). The code is on a local branch and becomes public with the release; the run in the example project, through the Action, comes then. | | 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. | diff --git a/.planning/instawards/sow2/week-2/copies/mpp-local-run/channel-comment.md b/.planning/instawards/sow2/week-2/copies/mpp-local-run/channel-comment.md new file mode 100644 index 0000000..aff10e9 --- /dev/null +++ b/.planning/instawards/sow2/week-2/copies/mpp-local-run/channel-comment.md @@ -0,0 +1,33 @@ + +**Wasit: ✅ conformant.** 1 graded on channel, stellar:testnet. Wasit 0.8.0-beta.1 (core 0.8.0-beta.1), x402 v2, @x402/core 2.28.0, @x402/stellar 2.28.0, @stellar/mpp 0.7.1, mppx 0.8.14, @stellar/stellar-sdk 16.4.1. + +| Endpoint | Protocol | Outcome | Checks | +| --- | --- | --- | --- | +| stream | mpp-channel | ✅ conformant | MPP channel 3/4, 1 skipped | + +### ✅ stream · mpp-channel · conformant + +| | Check | Result | +| --- | --- | --- | +| ⚪ | MPP-10 Channel Deploy | SKIP | +| ✅ | MPP-11 Cumulative Commitment Ordering | PASS | +| ✅ | MPP-12 Challenge Replay Rejection | PASS | +| ✅ | MPP-14 Commitment Replay Rejection | PASS | + +### Changed since main +No baseline on main yet, so nothing is compared. The next run on main creates it. + +### Notes +- Tier: payment on stellar:testnet. No payment was planned, so nothing was charged to the cap. +- MPP channel: the commitments MPP-11, MPP-12 and MPP-14 sign are off-chain, and Wasit sends no transaction for them, so they are not charged to the cap. MPP-13 \(close\) is never run by wasit run. + +
Details of each check + +**stream** + +- ⚪ MPP-10 Channel Deploy: Skipped: expected on-chain parameters not supplied \(token, from, to, refundWaitingPeriod\). +- ✅ MPP-11 Cumulative Commitment Ordering: Both ordering rules enforced: a commitment equal to the cumulative \(10000\) and one that under-covers the price \(19999\) were each rejected with HTTP 402. +- ✅ MPP-12 Challenge Replay Rejection: Byte-identical credential correctly rejected on replay \(HTTP 402\). +- ✅ MPP-14 Commitment Replay Rejection: Captured commitment \(30000\) correctly rejected when re-presented against a fresh challenge \(HTTP 402\). + +
diff --git a/.planning/instawards/sow2/week-2/copies/mpp-local-run/charge-comment.md b/.planning/instawards/sow2/week-2/copies/mpp-local-run/charge-comment.md new file mode 100644 index 0000000..f7a9d54 --- /dev/null +++ b/.planning/instawards/sow2/week-2/copies/mpp-local-run/charge-comment.md @@ -0,0 +1,28 @@ + +**Wasit: ✅ conformant.** 1 graded on charge, stellar:testnet. Wasit 0.8.0-beta.1 (core 0.8.0-beta.1), x402 v2, @x402/core 2.28.0, @x402/stellar 2.28.0, @stellar/mpp 0.7.1, mppx 0.8.14, @stellar/stellar-sdk 16.4.1. + +| Endpoint | Protocol | Outcome | Checks | +| --- | --- | --- | --- | +| chat | mpp-charge | ✅ conformant | MPP charge 1/1 | + +### ✅ chat · mpp-charge · conformant + +| | Check | Result | +| --- | --- | --- | +| ✅ | MPP-01 Charge Settlement On-Chain | PASS | + +**Payment proof**: MPP-01 settled on stellar:testnet, [tx 4349…bf83 on Stellar Expert](https://stellar.expert/explorer/testnet/tx/43499f50af379f20467b31645815e4d31db250bef4315ce98d5ed22eb83cbf83). + +### Changed since main +No baseline on main yet, so nothing is compared. The next run on main creates it. + +### Notes +- Tier: payment on stellar:testnet. The run charged $0.001 of the $5.00 cap, at most $1.00 a payment; every signature is counted as if it settled. + +
Details of each check + +**chat** + +- ✅ MPP-01 Charge Settlement On-Chain: Settled on-chain for exactly the advertised 10000 base units of CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA to GALVZ57VAY6BE33WYPJMUJ27PFAUDRQ6ATTVMIIF4STTGQTXDBEIBXUI, verified from the transfer event \(tx 43499f50af379f20467b31645815e4d31db250bef4315ce98d5ed22eb83cbf83\). + +
diff --git a/.planning/instawards/sow2/week-2/copies/mpp-local-run/excerpts-of-the-runs.txt b/.planning/instawards/sow2/week-2/copies/mpp-local-run/excerpts-of-the-runs.txt new file mode 100644 index 0000000..0f0a3b0 --- /dev/null +++ b/.planning/instawards/sow2/week-2/copies/mpp-local-run/excerpts-of-the-runs.txt @@ -0,0 +1,61 @@ +MPP charge and channel through `wasit run`, on the maintainer's machine, 2026-11-24 + +Run by the maintainer in their own terminal, against the local MPP test services of Wasit's repository (the charge +service on 127.0.0.1:3002 and the channel service on 127.0.0.1:3003, both on the Stellar test network). Keys came from +the maintainer's local environment file and are in no output below. Code: commit bd9209a on a local branch of the week 3 +work, which becomes public with the release; the version line of the comment reads 0.8.0-beta.1 because the local build +keeps the pre-release's version number (the published 0.8.0-beta.1 does not have this code). The output below is copied +from the terminal as it was, with the shell prompt removed and the commands shortened: the local build was run as +`node /index.js run ...` with full file paths, shown here as `wasit run ...` with file names only. + +$ wasit run --config wasit.mpp-fixtures.json --env charge --endpoint chat --out charge-report.json + +Payment tier on stellar:testnet (test network): test funds. MPP-01 payer GDHQTUA2P5OO7EXSZ5MAUID4HUFM3H7XP6B5GJNQSRX3N675KCFNAFVK; at most $1.00 per payment; this run could spend up to $0.001 of the $5.00 cap. +Caps: $1.00 a payment, $5.00 this run. + chat: pays "GALVZ57VAY6BE33WYPJMUJ27PFAUDRQ6ATTVMIIF4STTGQTXDBEIBXUI" in "CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA", up to $0.001 + MPP-01 10000 (base units) +Worst case: $0.001 of $5.00. +Environment charge: http://127.0.0.1:3002 +Network: stellar:testnet (test network) +Endpoints: 1 + chat mpp-charge GET /data +Tier: payment on stellar:testnet. The run charged $0.001 of the $5.00 cap, at most $1.00 a payment; every signature is counted as if it settled. + +chat mpp-charge GET /data: conformant + PASS MPP-01 Charge Settlement On-Chain + Settled on-chain for exactly the advertised 10000 base units of CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA to GALVZ57VAY6BE33WYPJMUJ27PFAUDRQ6ATTVMIIF4STTGQTXDBEIBXUI, verified from the transfer event (tx 43499f50af379f20467b31645815e4d31db250bef4315ce98d5ed22eb83cbf83). + +Summary: 1 graded. +Result: 1 graded (exit 0). + +$ wasit run --config wasit.mpp-fixtures.json --env channel --endpoint stream --out channel-report.json + +Environment channel: http://127.0.0.1:3003 +Network: stellar:testnet (test network) +Endpoints: 1 + stream mpp-channel GET /data +Tier: payment on stellar:testnet. No payment was planned, so nothing was charged to the cap. + +stream mpp-channel GET /data: conformant + SKIP MPP-10 Channel Deploy + Skipped: expected on-chain parameters not supplied (token, from, to, refundWaitingPeriod). + PASS MPP-11 Cumulative Commitment Ordering + Both ordering rules enforced: a commitment equal to the cumulative (10000) and one that under-covers the price (19999) were each rejected with HTTP 402. + PASS MPP-12 Challenge Replay Rejection + Byte-identical credential correctly rejected on replay (HTTP 402). + PASS MPP-14 Commitment Replay Rejection + Captured commitment (30000) correctly rejected when re-presented against a fresh challenge (HTTP 402). + +Summary: 1 graded. +Note: MPP channel: the commitments MPP-11, MPP-12 and MPP-14 sign are off-chain, and Wasit sends no transaction for them, so they are not charged to the cap. MPP-13 (close) is never run by wasit run. +Result: 1 graded (exit 0). + +Read afterwards on Horizon for the Stellar test network (no key), transaction +43499f50af379f20467b31645815e4d31db250bef4315ce98d5ed22eb83cbf83: + successful: true, ledger 5894520, created 2026-11-24T04:57:22Z, one operation, + source and fee account GDHQTUA2P5OO7EXSZ5MAUID4HUFM3H7XP6B5GJNQSRX3N675KCFNAFVK (the MPP-01 payer) + effects: GDHQTUA2P5OO7EXSZ5MAUID4HUFM3H7XP6B5GJNQSRX3N675KCFNAFVK debited 0.0010000 USDC + GALVZ57VAY6BE33WYPJMUJ27PFAUDRQ6ATTVMIIF4STTGQTXDBEIBXUI credited 0.0010000 USDC + +The two comments in this folder were written by `wasit ci-report` from the two reports above, the same command the +Action runs after `wasit run`. No pull request was involved.