Changelog
Changelog
All notable changes to this project are documented here. The format follows Keep a Changelog, and the project uses Semantic Versioning.
Unreleased
0.2.1 - 2026-11-23
Fixed
- The relayer no longer sends
settleandspendwith a fixed 350,000 gas limit, which ran a Perennial spend that had to redeem principal out of gas on the testnet (0xbacd85244ff115139ef555e01ab93fa42e09ffc2cf8c1bc497453c53eca75d26).EvmSettlerestimates each call, adds 20% (gasHeadroomPercent), refuses to send abovemaxGas(default 1,000,000) or when the estimate reverts, and keeps the decoded revert reason. A fixedgasoption still overrides it.
Added
pnpm demo(examples/demo.ts): one complete run on the testnet, apq-erc20and apq-perennialpayment for sealed calls, recorded tosite/run.json; one account can play both roles withQORE_MNEMONIC.docs/quickstart.md, the demo page (site/, live at https://pq-402.vercel.app), the cover and social images (scripts/site.mjs), andAI_USAGE.md.
Changed
- The README leads with what PQ-402 does, why, and how, and lists both recorded testnet runs with their transaction hashes.
0.2.0 - 2026-11-17
Changed
pq-perennialsigns the final Perennial vault’sactionMessage, whose domain tag iskeccak256("Perennial.Action"). Spends signed by 0.1.x are refused by the deployed vaults.PqPerennialClientSchemetakespositionOf(the whole position) instead ofnonceOf, and refuses to sign a spend the position cannot pay.- The relayer simulates
settleandspendbefore sending them, so a refused payment costs no gas and reports the contract’s reason.
Added
- Budget mode for
pq-perennial: a spend over the period’s budget fails withinvalid_pq402_budget_exceeded; one the position cannot cover withinsufficient_funds.Pq402Errormessages explain each code. - The facilitator compares the vault’s own
actionMessagewith the local encoding whenever it can read the chain, and refuses on a mismatch. pnpm testnet perennial-check <vault>: checks a deployed vault’s signing bytes against PQ-402’s with freeeth_calls.
0.1.2 - 2026-11-16
Changed
- The packages are named
@pq402/core,@pq402/scheme-qorechain,@pq402/serverand@pq402/client, and are published to npm (decision 009).
Added
- A README for each package.
EvmSettleroptionsmaxFeePerGasandmaxPriorityFeePerGas; its default gas limit is now 350,000 (settlement measured at about 253,000 gas).- The testnet deployment and its transactions in the README.
0.1.1 - 2026-11-16
Fixed
pnpm buildfailed on Linux and macOS: the shell expanded the unquoted workspace filter.
0.1.0 - 2026-11-16
Added
pq-erc20x402 scheme: ML-DSA-87 signed payments settled byPQ402Escrow, which verifies them with QoreChain’spqcVerifyandpqcKeyStatusprecompiles and fails closed when they are inactive.pq-perennialx402 scheme: payments made as Perennial vaultspendactions, relayed by the facilitator and confirmed by theSpentevent.pq402-sealingextension: request and response bodies sealed with ML-KEM-1024 (QoreSeal) to keys from the KEM key registry, and receipts signed by the gateway’s ML-DSA-87 key.@pq-402/core,@pq-402/scheme-qorechain,@pq-402/server(payment gate andnode:httpadapter) and@pq-402/client(payingfetch).- Known-answer vectors checked in TypeScript and Solidity.
- Examples: a paid endpoint, a client that pays per inference call, and a testnet setup script.
- Specification, decision records and threat model.