Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
986ee51
fix(core): a request that carries a payment never follows a redirect
dzakwannajmi Nov 15, 2026
8d2b691
feat(core): check that the RPC serves the run's network before paying
dzakwannajmi Nov 15, 2026
fcc8edb
feat(core): hold every x402 signature to $1, the run's cap, the pin a…
dzakwannajmi Nov 16, 2026
60f7097
feat(cli): wasit run --dry-run prints what the payment checks would sign
dzakwannajmi Nov 16, 2026
b83fa78
feat(core): say which GitHub events may pay, and show no change for c…
dzakwannajmi Nov 16, 2026
9a1b809
feat(cli): wasit run pays on test networks, and starts the service as…
dzakwannajmi Nov 16, 2026
41f04c0
feat(action): accept tier payment, and take baselines from push, sche…
dzakwannajmi Nov 16, 2026
dc706f0
feat(core): name the green run a comment compares with, and count fai…
dzakwannajmi Nov 16, 2026
d7f6540
feat(cli): ci-report takes the history of every run on main, and a ca…
dzakwannajmi Nov 16, 2026
7fbdb9e
feat(action): compare with the last green run on main, and take the h…
dzakwannajmi Nov 16, 2026
94398a7
fix(cli): hand the separate service user its environment on stdin, no…
dzakwannajmi Nov 16, 2026
25b2c49
feat(core): X402-11, a payment sent with a request the service must r…
dzakwannajmi Nov 16, 2026
a67972d
feat(core): mainnet switches that always refuse, and the RPC a result…
dzakwannajmi Nov 16, 2026
8c8731f
feat(cli): wasit run --mainnet refuses before anything is read
dzakwannajmi Nov 16, 2026
cdf8abe
feat(action): the mainnet input is refused before Wasit is installed
dzakwannajmi Nov 16, 2026
9455066
feat(server): refuse the mainnet start-up settings, and lock the RPC …
dzakwannajmi Nov 16, 2026
732b38e
fix(core): hold X402-11 to its 300 s on the copy it signs, and refuse…
dzakwannajmi Nov 16, 2026
4f05ea7
fix(cli): check the RPC before the service starts, and refuse the pay…
dzakwannajmi Nov 16, 2026
b57ab86
test(server): a canary over the MCP tools, and the close tool under t…
dzakwannajmi Nov 16, 2026
9eacc3a
fix(core,cli): X402-11 signs only for a lifetime of 30 s to 300 s
dzakwannajmi Nov 17, 2026
d8b905e
fix(action): give the payer key to the run step only
dzakwannajmi Nov 17, 2026
08eb111
fix(action): blank the payer key in the upload step too
dzakwannajmi Nov 18, 2026
c538c6e
feat(cli): coloured, live output for wasit test at a terminal
dzakwannajmi Nov 19, 2026
f62a09c
feat(action): the run on the pull request, with its status and each c…
dzakwannajmi Nov 19, 2026
05f5a19
docs(action): NODE_OPTIONS reaches the action through the workflow's env
dzakwannajmi Nov 20, 2026
7526237
fix(core): the reason an x402 v1 service is unsupported holds on ever…
dzakwannajmi Nov 20, 2026
38d8a86
chore(release): 0.8.0-beta.1
dzakwannajmi Nov 17, 2026
4397b08
Merge branch 'main' into sow2/s2-payment
dzakwannajmi Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 123 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,129 @@

All notable changes to Wasit are recorded here. Versions follow [Semantic Versioning](https://semver.org/): patch releases are fixes, minor releases add checks or features without breaking existing usage, major releases break something.

## [0.8.0-beta.1] - 2026-11-20

A pre-release for beta testers, on npm under the `beta` tag
(`npm install -g @wasit-dev/cli@beta`); `latest` stays at 0.7.0. All three
packages, versioned together. New: a config file for a whole service
(`wasit.config.json`), `wasit run` with a read-only tier and a payment tier,
`wasit ci-report`, a GitHub Action that runs them, and a seventeenth check,
`X402-11`. Payments are made on test networks only, and every payment Wasit
signs is held to $1.00, to $5.00 a run, and to a plan read before the run. The
mainnet opt-in is not part of this version: the switches that would ask for it
refuse. The guides on usewasit.dev still describe 0.7.0; this entry, the
package READMEs and `wasit run --help` describe the beta.

**Results can change on upgrade.**
- Payment checks pay on test networks only: `stellar:testnet`, Base Sepolia
(`eip155:84532`), Ethereum Sepolia (`eip155:11155111`) and Solana devnet, and
the MPP checks on `stellar:testnet` only. Any other network, `stellar:pubnet`
included, is refused before a key is read, in
`wasit test`, `wasit mpp-charge`, `wasit mpp-channel`, the MCP tools and core.
- A price above $1.00 is not paid: `X402-06` gets no verdict (`ERROR (setup)`),
the other payment checks are skipped, and nothing is signed.
- A paid request, and every MPP request, no longer follows a redirect: a 3xx
gives that check no verdict, and the payment is not sent again.
- The RPC must serve the run's network (the Stellar network passphrase, the EVM
chain id, the Solana genesis hash) before anything is signed; another network,
or no answer, stops the payment checks with no verdict.
- An x402 v1 challenge is reported as unsupported, not as a failure, and a run
that could grade nothing exits 2.

**Fixed: two MPP defects of 0.7.0.** In 0.7.0 `MPP-01` paid on `stellar:pubnet`
when the run named it (`--network`, or the MCP tool's `network` argument), with
no cap (read from the code, not run: it would need mainnet funds). And a channel commitment
was signed without checking the bytes the RPC returned for it, so a run on the
test network pointed at a mainnet RPC signed a commitment valid on mainnet
(shown offline, against a stand-in RPC). Both are fixed: every network but the
test networks is refused before a key is read, and a commitment is signed only
when it names the run's channel, amount and network. See the advisory
[GHSA-7c36-rg54-r3v8](https://github.com/wasit-dev/wasit/security/advisories/GHSA-7c36-rg54-r3v8).

**Added: `wasit.config.json`, `wasit run` and `wasit ci-report`.** The config
(version 1) holds a service's endpoints, methods, request bodies and
environments. The loader is strict: an unknown key is an error, and secrets,
the mainnet opt-in and per-payment caps have no place in the file. `wasit run`
runs every endpoint of it (`--env`, `--endpoint`) and writes one report
(`--json`, `--out`); it can start the service itself (`--start`,
`--start-if-local`) and compare with the report of the default branch
(`--baseline`). `wasit run --read-only` runs `X402-01` to `X402-05`, which send
no payment. `wasit run --dry-run` prints, without a key, what the payment
checks would sign. `wasit ci-report` turns a report into the pull request
comment and the job summary.

**Added: the payment tier.** `wasit run` without `--read-only` pays, on test
networks only, when the environment has `operatedByMe: true` and the chain's
key variable is set. Each signature is held to $1.00 and the run to $5.00
(`maxRunUsd` can only lower it), to the `payTo` and asset the config pins, and
to the plan read before the run; the x402 client is handed the one option
checked, and what it signed is compared before it is sent. In GitHub Actions it
pays only on a push to the default branch, a schedule and `workflow_dispatch`;
a pull request runs the read-only checks and says "payment checks not run: pull
request", and a payer key given to a run that may not pay stops it with exit 2
before the service starts. On a GitHub-hosted runner with a payer key, a
service Wasit starts (`--start`) runs as a separate user, `wasit-service`. In another CI (`CI` set, not
GitHub Actions) the payment tier stops with exit 2: use `--read-only` there.

**Added: the GitHub Action** (`action/`, pinned by full commit SHA). A
composite action for Linux runners with Node 22, which builds Wasit from the
ref it is pinned to. Inputs: `config`, `environment`, `tier` (`read-only` or
`payment`), `endpoints`, and `mainnet`, which is refused. It comments on the
pull request (one comment, updated on each push), compares with the last green
run on the default branch and names it, and writes the job summary.

**Added: the run on the pull request.** The comment shows a table of each
endpoint's checks with a mark for each result (✅ PASS, ❌ FAIL, ⚪ SKIP,
⚠️ ERROR), and every check's detail folded at the end. On `stellar:testnet`,
when `X402-06` passed, it links that payment's transaction on Stellar Expert, as
the check read it back from the chain (the new `reference` field of a passing
result, also in `--json` and the MCP tools' output). While Wasit runs, the
comment says "⏳ Wasit is running", with a link to the run. With the permission
`checks: write`, the Action also adds a check run, "Wasit conformance",
completed at the end with the verdict and the job summary (`wasit ci-report
--check-run`); without it, that check is left out. A pull request from a fork
gets neither. `NODE_OPTIONS` is set empty in every step of the Action, so a
`NODE_OPTIONS` in the workflow's `env` no longer reaches Wasit or a service it
starts: put the options a service needs in `service.start`. The example workflow (`action/examples/wasit.yml`)
asks for `checks: write` and runs one Wasit job per pull request, a newer push
cancelling the older one.

**Added: `X402-11`, "Rejected Request Not Settled".** For an endpoint with a
`reject` case in the config, on Stellar: a valid payment is sent with the
request the service must refuse, and the chain is read until that payment's
authorization has expired. Unused, with no transfer, passes; used, or the
request served, fails. A lifetime above 300 s, or below 30 s, is skipped before
anything is signed, and the wait stops 360 s after the payment was sent. See
`docs/CHECKS.md`.

**Added: the mainnet switches, which refuse.** `wasit run --mainnet`, the
Action input `mainnet: true`, and the MCP server's `WASIT_MAINNET_OPT_IN`,
`WASIT_MAINNET_CONFIG` and `--mainnet` stop with exit 2 and "the mainnet opt-in
is not part of this version". Nothing is started, sent or signed.

**Added: the MCP server's RPC lock.** `WASIT_RPC_URL`, read when the server
starts, fixes the RPC of every tool call, and the `rpcUrl` argument is then
refused before anything is sent. A result that reads the chain names its RPC
by origin, where it came from, and when it is not Wasit's default (in the text
and in `structuredContent.rpc`).

**Added: coloured, live output at a terminal.** `wasit test` shows its checks
in two blocks, challenge and payment. Each line has a mark and a badge that
agree (✓ PASS on green, ✗ FAIL on red, ○ SKIP on yellow, ! ERROR on magenta)
and its duration. A spinner line says what the check in flight is
doing, and the verdict, the counts and the run's duration come at the end. The
colours are Wasit's own, exact on a terminal with 24-bit colour. `wasit
mpp-charge` and `wasit mpp-channel` mark their results the same way. A pipe, CI,
`--json` and `NO_COLOR` get the plain text as before; `FORCE_COLOR=1` colours a
pipe.

**Changed:** `@stellar/stellar-sdk` 16.4.1: the test network is on protocol
30, and 16.1.0 cannot read its ledger headers.

**Not in this version:** the mainnet opt-in; paying MPP from `wasit run` and
the Action (an MPP endpoint's payment checks are skipped, with the reason);
`wasit init`.

## [0.7.0] — 2026-10-08

All three packages, versioned together as usual. The x402 payment checks now
Expand Down
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,20 @@ Wasit exists so these are found by a tool, before they are found by a user.
| x402 payment checks (`X402-06`–`10`) | Done on Stellar testnet, Base Sepolia, Ethereum Sepolia and Solana devnet, settlement verified from each chain's own record |
| MPP charge mode (`MPP-01`) | Done, settlement verified from contract events; pays only on the run's network |
| MPP channel mode (`MPP-10`–`14`) | Done, including destructive close |
| CLI | Done — six subcommands, `wasit serve` among them, plus an interactive dashboard |
| CLI | Done — six subcommands in 0.7.0, `wasit serve` among them, and eight in 0.8.0-beta.1 (`wasit run`, `wasit ci-report`), plus an interactive dashboard |
| Testnet wallet tooling | Done — `wasit wallet` create/fund/status on Stellar testnet, and for the x402 payer on Base Sepolia, Ethereum Sepolia and Solana devnet |
| MCP server | Done, three tools + one behind an opt-in |
| `wasit.config.json`, `wasit run`, `wasit ci-report` | In 0.8.0-beta.1 (npm tag `beta`): every endpoint of a service from one config, a read-only tier and a payment tier, and the pull request comment and job summary from the report |
| GitHub Action (`action/`) | In 0.8.0-beta.1: runs `wasit run` in a workflow; on a pull request it comments and, with `checks: write`, adds a check, "Wasit conformance"; it pays only on a push to the default branch, a schedule or a run started by hand, on test networks |
| `X402-11`, rejected request not settled | In 0.8.0-beta.1: on Stellar, through `wasit run`, for an endpoint with a `reject` case |
| Error taxonomy and exit codes | Done |
| Wasit's own test suite | Done — offline (no keys, no target, no network); type-check and tests both run in CI |
| Testing against third-party services | Done — one third-party service, [defi-copilot](docs/evidence/2026-09-28-authorized-third-party-run.md), tested with its operator's written authorization as a local instance, plus Stellar's own reference implementations ([x402](docs/evidence/2026-09-06-reference-implementation-run.md), [MPP](docs/evidence/2026-09-24-official-sdk-reference-run.md)); reported in aggregate in [conformance-findings.md](docs/findings/conformance-findings.md) |
| Upstream reports to SDK maintainers | Filed — [stellar-mpp-sdk#66](https://github.com/stellar/stellar-mpp-sdk/issues/66), [#67](https://github.com/stellar/stellar-mpp-sdk/issues/67), [#70](https://github.com/stellar/stellar-mpp-sdk/issues/70) (closed; fix merged, unreleased), [#82](https://github.com/stellar/stellar-mpp-sdk/issues/82) (fixed in [#83](https://github.com/stellar/stellar-mpp-sdk/pull/83), verified), [#89](https://github.com/stellar/stellar-mpp-sdk/issues/89) |
| Published to npm | Yes — `@wasit-dev/core`, `@wasit-dev/cli`, `@wasit-dev/server` |
| Mainnet | Out of scope — see [Design Notes](#design-notes) |
| Published to npm | Yes — `@wasit-dev/core`, `@wasit-dev/cli`, `@wasit-dev/server`: 0.7.0 under `latest`, 0.8.0-beta.1 under `beta` |
| Mainnet | Out of scope — see [Design Notes](#design-notes). In 0.8.0-beta.1 a payment on any network but the test networks is refused before a key is read |

Sixteen checks are implemented and reachable from both front ends. Every one is
Seventeen checks are implemented. Sixteen are reachable from both front ends; `X402-11`, new in 0.8.0-beta.1, runs through `wasit run`. Every one is
traced to a written spec clause in [docs/CHECKS.md](docs/CHECKS.md); a check that
cannot be traced is out of scope by construction.

Expand All @@ -212,6 +215,9 @@ npx @wasit-dev/cli test --target https://your-service.example/paid --read-only
# or keep it around
npm install -g @wasit-dev/cli
wasit test --target https://your-service.example/paid --read-only

# the pre-release, 0.8.0-beta.1: wasit run, wasit ci-report and X402-11
npm install -g @wasit-dev/cli@beta
```

That runs `X402-01` through `X402-05` against your own service. It costs
Expand Down
Loading
Loading