Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion EVIDENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ Pull requests merged into `nirium-protocol` repos from people outside the team,
| Program | What we published | Merged PRs |
|---|---|---|
| GrantFox campaigns ([platform](https://grantfox.xyz/open-source)), Jun-Aug 2026 | 42 issues labeled [`GrantFox OSS`](https://github.com/nirium-protocol/nirium/issues?q=label%3A%22GrantFox+OSS%22), all closed | 20 bounty issues delivered with a merged PR, audited issue by issue in [FOR-REVIEWERS section 7](docs/FOR-REVIEWERS.md#7-grantfox---the-real-numbers-not-the-flattering-summary). /stats links 15 automatically: only PRs whose title or description references the issue |
| Stellar Wave on Drips ([platform](https://www.drips.network/wave)), from Wave 11 (18 Nov 2026) | 31 issues labeled [`Stellar Wave`](https://github.com/nirium-protocol/nirium/issues?q=label%3A%22Stellar+Wave%22) | 16: [#372](https://github.com/nirium-protocol/nirium/pull/372), unit tests for the Payouts and Treasury client methods; [#373](https://github.com/nirium-protocol/nirium/pull/373), a runnable batch-payout example whose README links the contributor's own testnet run: [tx](https://stellar.expert/explorer/testnet/tx/323525d2b4f539824c0564468c2820e959ab1e0159aeaded75fb31c0583d1615), 10 recipients created by Friendbot, each signing its own trustline; [#370](https://github.com/nirium-protocol/nirium/pull/370), tests for every Treasury method in the Python SDK; [#389](https://github.com/nirium-protocol/nirium/pull/389), a read-only testnet vault monitor with alerts; [#393](https://github.com/nirium-protocol/nirium/pull/393), an agent logbook with one signed receipt per task; [#395](https://github.com/nirium-protocol/nirium/pull/395), provenance for an AI model or dataset with a signed receipt (these six merged 19 Nov 2026 UTC); [#411](https://github.com/nirium-protocol/nirium/pull/411), proof of delivery where only the hash of the photo and details is anchored, with three signed testnet receipts in its README; [#412](https://github.com/nirium-protocol/nirium/pull/412), a Soroban price oracle that only the oracle key can write, with its testnet runs in the README, including one write from another key that the contract rejected; [#413](https://github.com/nirium-protocol/nirium/pull/413), tests for the Upstash store of the x402 guard (these three merged 20 Nov 2026 UTC); [#388](https://github.com/nirium-protocol/nirium/pull/388), a test suite for every `nirium-mcp` tool plus its CI workflow; [#371](https://github.com/nirium-protocol/nirium/pull/371), a Python quickstart for a testnet Treasury vault whose README links the contributor's own run: [deploy](https://stellar.expert/explorer/testnet/tx/9d3fc51ecfb22302855106b57711ebd5ab6200abf15a910471f6860483696b12), [deposit](https://stellar.expert/explorer/testnet/tx/06573f03ce3ad2a9eefa7c6efa33baac7fc2da481c6756a823f0068ea2c4bced) of 1 USDC and [withdraw](https://stellar.expert/explorer/testnet/tx/6d826446826ac706b8d338b40c51860bbd19e3cb5e01e536b4dc3fd03058e422) of 0.9999 USDC back to the same account, every XDR signed locally; [#384](https://github.com/nirium-protocol/nirium/pull/384), tamper-evident project announcements where each file's hash is anchored with a signed receipt and the build stops if a published file changes, with its receipts in the README; [#422](https://github.com/nirium-protocol/nirium/pull/422), an OpenAI Agents SDK tool that pays x402 under a $1 per-payment cap, whose README links the contributor's own testnet run against his own `x402Serve` route: [tx](https://stellar.expert/explorer/testnet/tx/2d9235ab60a8908735cdc9cb4ab49f82dc48a9ae2b59c245cf94ffcafec9b0a6), 0.02 USDC to his own seller account, and a $2 call refused before signing; [#394](https://github.com/nirium-protocol/nirium/pull/394), the pre-sign policy hook in the Python SDK with the same guarantees as the TypeScript SDK: DENY and WAIT never reach the signer, errors fail closed, and the context hash matches the TypeScript wire format (these five merged 21 Nov 2026 UTC); [#438](https://github.com/nirium-protocol/nirium/pull/438), a CrewAI tool that pays x402 under a $1 per-payment cap, with a two-agent crew; its README links the contributor's own testnet run against his own `x402Serve` route: [tx](https://stellar.expert/explorer/testnet/tx/632ebebcd63c2c202fe2c7e3ef60c27b6ab99f31f663e3b71730017d58293d8d), 0.02 USDC to his own seller account, and a $2 call refused before signing; [#439](https://github.com/nirium-protocol/nirium/pull/439), the audit-forensic-bridge export now re-checks every CID it logged with `nirium-cli verify` and reports each failure, with two signed testnet receipts from the contributor's own key in the PR (these two merged 22 Nov 2026 UTC) |
| Stellar Wave on Drips ([platform](https://www.drips.network/wave)), from Wave 11 (18 Nov 2026) | 48 issues labeled [`Stellar Wave`](https://github.com/nirium-protocol/nirium/issues?q=label%3A%22Stellar+Wave%22) | 16: [#372](https://github.com/nirium-protocol/nirium/pull/372), unit tests for the Payouts and Treasury client methods; [#373](https://github.com/nirium-protocol/nirium/pull/373), a runnable batch-payout example whose README links the contributor's own testnet run: [tx](https://stellar.expert/explorer/testnet/tx/323525d2b4f539824c0564468c2820e959ab1e0159aeaded75fb31c0583d1615), 10 recipients created by Friendbot, each signing its own trustline; [#370](https://github.com/nirium-protocol/nirium/pull/370), tests for every Treasury method in the Python SDK; [#389](https://github.com/nirium-protocol/nirium/pull/389), a read-only testnet vault monitor with alerts; [#393](https://github.com/nirium-protocol/nirium/pull/393), an agent logbook with one signed receipt per task; [#395](https://github.com/nirium-protocol/nirium/pull/395), provenance for an AI model or dataset with a signed receipt (these six merged 19 Nov 2026 UTC); [#411](https://github.com/nirium-protocol/nirium/pull/411), proof of delivery where only the hash of the photo and details is anchored, with three signed testnet receipts in its README; [#412](https://github.com/nirium-protocol/nirium/pull/412), a Soroban price oracle that only the oracle key can write, with its testnet runs in the README, including one write from another key that the contract rejected; [#413](https://github.com/nirium-protocol/nirium/pull/413), tests for the Upstash store of the x402 guard (these three merged 20 Nov 2026 UTC); [#388](https://github.com/nirium-protocol/nirium/pull/388), a test suite for every `nirium-mcp` tool plus its CI workflow; [#371](https://github.com/nirium-protocol/nirium/pull/371), a Python quickstart for a testnet Treasury vault whose README links the contributor's own run: [deploy](https://stellar.expert/explorer/testnet/tx/9d3fc51ecfb22302855106b57711ebd5ab6200abf15a910471f6860483696b12), [deposit](https://stellar.expert/explorer/testnet/tx/06573f03ce3ad2a9eefa7c6efa33baac7fc2da481c6756a823f0068ea2c4bced) of 1 USDC and [withdraw](https://stellar.expert/explorer/testnet/tx/6d826446826ac706b8d338b40c51860bbd19e3cb5e01e536b4dc3fd03058e422) of 0.9999 USDC back to the same account, every XDR signed locally; [#384](https://github.com/nirium-protocol/nirium/pull/384), tamper-evident project announcements where each file's hash is anchored with a signed receipt and the build stops if a published file changes, with its receipts in the README; [#422](https://github.com/nirium-protocol/nirium/pull/422), an OpenAI Agents SDK tool that pays x402 under a $1 per-payment cap, whose README links the contributor's own testnet run against his own `x402Serve` route: [tx](https://stellar.expert/explorer/testnet/tx/2d9235ab60a8908735cdc9cb4ab49f82dc48a9ae2b59c245cf94ffcafec9b0a6), 0.02 USDC to his own seller account, and a $2 call refused before signing; [#394](https://github.com/nirium-protocol/nirium/pull/394), the pre-sign policy hook in the Python SDK with the same guarantees as the TypeScript SDK: DENY and WAIT never reach the signer, errors fail closed, and the context hash matches the TypeScript wire format (these five merged 21 Nov 2026 UTC); [#438](https://github.com/nirium-protocol/nirium/pull/438), a CrewAI tool that pays x402 under a $1 per-payment cap, with a two-agent crew; its README links the contributor's own testnet run against his own `x402Serve` route: [tx](https://stellar.expert/explorer/testnet/tx/632ebebcd63c2c202fe2c7e3ef60c27b6ab99f31f663e3b71730017d58293d8d), 0.02 USDC to his own seller account, and a $2 call refused before signing; [#439](https://github.com/nirium-protocol/nirium/pull/439), the audit-forensic-bridge export now re-checks every CID it logged with `nirium-cli verify` and reports each failure, with two signed testnet receipts from the contributor's own key in the PR (these two merged 22 Nov 2026 UTC) |

In total, 40 pull requests from people outside the team have been merged into these repos, including the ones above (the same count /stats shows, read repo by repo from the GitHub API).

Expand Down
21 changes: 14 additions & 7 deletions docs/FOR-REVIEWERS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Nirium - 10 minutes for a reviewer

Not a Claude Code session, not a deep dive. Seven things, in order of how much
Not a Claude Code session, not a deep dive. Eight things, in order of how much
you have to trust us to believe them. Every link below is something you can
check yourself right now - none of it depends on taking our word for it.
The full evidence list, with the network and date of every item, is in
Expand Down Expand Up @@ -51,14 +51,21 @@ It should print `SIGNATURE: VALID`, signed by
`VERIFICATION PASSED`. That receipt was anchored on mainnet by TIA, an
external integrator, with its own key, for the payment
[`cc5740ae…b577808a`](https://stellar.expert/explorer/public/tx/cc5740aebf850194532392a1d216c2af620c70a7c46c8b36a0ea4a06b577808a)
(18 Oct 2026). TIA has anchored three such receipts on mainnet (18 Oct,
23 Oct and 6 Nov 2026). The wallets behind its payments are also TIA's own,
so we count these as integration tests, not as paying customers.
(18 Oct 2026). TIA has anchored seven receipts on mainnet between 18 Oct
and 12 Nov 2026, with two keys of its own (each one listed in EVIDENCE). The
wallets behind its payments are also TIA's own, so we count these as
integration tests, not as paying customers.

To see why a receipt can be trusted, change one character of any receipt
and verify it again: the signature still belongs to the original, the file
no longer does, and verification fails.

The /verify page recomputes the CID and the hash in your browser from the
gateway bytes, but checks the signature on our server; the CLI checks
everything on your machine. An outside reviewer, [holistis](https://github.com/holistis),
checked two receipts with their own code and no Nirium tools on 19 Nov 2026,
and their 21 test cases now run in our CI (details in EVIDENCE, section 1).

## 3. Payments that settle

- **Mainnet:** the x402 payment account,
Expand Down Expand Up @@ -108,7 +115,7 @@ zero seed phrase) pay for x402 APIs and sign audit records without touching
a raw Stellar key. Two concrete artifacts:

- **Merged, not just proposed**: [nirium-pollar-adapter PR #1](https://github.com/nirium-protocol/nirium-pollar-adapter/pull/1) (deferred-mode wallet funding) merged 29 Aug 2026.
- **Live demo**: [nirium-pollar-x402-demo.vercel.app](https://nirium-pollar-x402-demo.vercel.app) - log in with Google, pay a real x402 endpoint, holding zero XLM end to end. Testnet only. **Known issue, 10 Nov 2026:** the demo app's code lives in Pollar's repo, and a payment in it can fail with `XDR Read Error: unknown StellarValueType member for value 3` because two versions of the Stellar SDK end up in its dependencies. The fix, [pollar-apps#36](https://github.com/pollar-xyz/pollar-apps/pull/36) (opened by our team on 7 Nov 2026), is waiting for Pollar's review; the demo works again once it is merged and redeployed.
- **Live demo**: [nirium-pollar-x402-demo.vercel.app](https://nirium-pollar-x402-demo.vercel.app) - log in with Google, pay a real x402 endpoint, holding zero XLM end to end. Testnet only. The live demo is deployed by our team from the branch of [pollar-apps#37](https://github.com/pollar-xyz/pollar-apps/pull/37) (opened 14 Nov 2026, still waiting for Pollar's review), which fixes the `XDR Read Error` caused by two Stellar SDK versions in the demo's dependencies; it replaced #36. Pollar's own x402 guide links this demo.
- **Two real mainnet transactions**, not just a working demo: a payment [`25ebaf9a…`](https://stellar.expert/explorer/public/tx/25ebaf9aa7e72c1c3edcc43a1c18aaa102c12eee42c57e02fed4fda79af6605d) settled 27 Jul 2026 (evidence anchored at [`QmZiwxidm…`](https://gateway.pinata.cloud/ipfs/QmZiwxidm7pcTqNufxzFyUc7qJrCRN2TKRNwcXkg7vUUwR)), and a user who signed in with Google paying $0.02 USDC on mainnet, [`e4fa3df9…`](https://stellar.expert/explorer/public/tx/e4fa3df9cb225a4d7f64dd0082eb38218ada4b4af3378f288989a5d4b1116ed9), holding zero XLM throughout. Both detailed in [nirium-pollar-adapter's own README](https://github.com/nirium-protocol/nirium-pollar-adapter#readme).

The demo-app integration itself,
Expand Down Expand Up @@ -178,7 +185,7 @@ omit it - caught 2026-09-28 re-verifying this page.

### Stellar Wave on Drips (from 18 Nov 2026)

Since Wave 11 we also publish issues on [Stellar Wave](https://www.drips.network/wave): 31 so far, labeled [`Stellar Wave`](https://github.com/nirium-protocol/nirium/issues?q=label%3A%22Stellar+Wave%22). Contributors apply with a plan and we assign by merit. Only merged work counts: 14 PRs merged so far (22 Nov 2026 UTC), each listed in EVIDENCE. Same rule as GrantFox: contributors earn Wave points, so this is people building on the code, not product demand. The running list is in [EVIDENCE.md](../EVIDENCE.md), section 14, and on [nirium.xyz/stats](https://nirium.xyz/stats).
Since Wave 11 we also publish issues on [Stellar Wave](https://www.drips.network/wave): 48 so far, labeled [`Stellar Wave`](https://github.com/nirium-protocol/nirium/issues?q=label%3A%22Stellar+Wave%22). Contributors apply with a plan and we assign by merit. Only merged work counts: 16 PRs merged so far (22 Nov 2026 UTC), each listed in EVIDENCE. Same rule as GrantFox: contributors earn Wave points, so this is people building on the code, not product demand. The running list is in [EVIDENCE.md](../EVIDENCE.md), section 14, and on [nirium.xyz/stats](https://nirium.xyz/stats).

## 8. How we review each other's pull requests

Expand All @@ -189,4 +196,4 @@ Approvals between the two maintainers (@Eras256 and @M0nsxx) are often AI-assist
*Every number and link on this page was checked live against its source
(Horizon, GitHub's API, the running API itself, `nirium-cli verify`) before
being written down - not copied from an internal doc or an earlier draft.
Last verified: 10 Nov 2026.*
Last verified: 22 Nov 2026.*
18 changes: 18 additions & 0 deletions docs/devlog.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,21 @@ Two earlier ones never made it into this log: [x402#3228](https://github.com/x40
**What we got wrong.** We proposed an optional receipt hook to [Rumble Fish's Stellar facilitator](https://github.com/rumblefishdev/stellar-x402/issues/153). Their review asked what a receipt proves that the ledger doesn't, and for the fields we suggested hashing (payer, payee, amount, tx hash), the answer was nothing. A Stellar transaction already proves all of that.

**What we changed.** Our home page stopped saying "prove every payment". The README, the four package READMEs and the Pollar adapter now say what a receipt is actually for: policy decisions (including refused payments that were never signed), what a payment was for, off-chain records, and who declared them. Where only the transfer matters, link the transaction. The reasoning is in [docs/DESIGN-FAQ.md](DESIGN-FAQ.md). The same week we closed our own `upto` spec for Stellar, [x402#3098](https://github.com/x402-foundation/x402/pull/3098), in favor of Rumble Fish's [x402#3781](https://github.com/x402-foundation/x402/pull/3781), after review there settled the design.

## 2026-11-19: We called receipts "immutable". They are tamper-evident.

**What we got wrong.** About 40 places on nirium.xyz, the MCP tool description, two API responses and the Payouts terms said a receipt was "immutable", "permanent" or kept "forever". None of that is true: a changed document gets a different CID, so a change shows, but nothing prevents it, and nobody can guarantee that something is deleted from IPFS or kept there.

**What we changed.** Every one now says tamper-evident, not tamper-proof ([#402](https://github.com/nirium-protocol/nirium/pull/402) for the packages; the site and the live API on 19 and 20 Nov). The Payouts terms were edited in place with a dated note.

## 2026-11-20: An outside reviewer found a receipt our CLI accepted and our Action rejected

**What broke.** [holistis](https://github.com/holistis) ran 21 test cases against both verifiers. In one, a receipt with `record: null` and its hash and signature kept, the GitHub Action rejected it and `nirium-cli verify` passed it, reporting the hash as not checked. The CLI decided the mode with a truthy check (`doc.record ?`) where the Action checks `doc.record === undefined`.

**Fix.** [#420](https://github.com/nirium-protocol/nirium/pull/420) uses the Action's rule and adds an opt-in `--require-signature`; the 21 cases now run in the CLI's tests, credited to holistis. Shipped in `nirium-cli` 3.2.6 on 20 Nov. holistis re-ran the cases against the published package: the decision matches the Action in 21 of 21. Earlier, the same review found the Action calling an unsigned hash-only receipt verified ([#396](https://github.com/nirium-protocol/nirium/pull/396), [#399](https://github.com/nirium-protocol/nirium/pull/399)).

## 2026-11-21: Our Reporting count included refused payments

**What broke.** The Reporting card on nirium.xyz showed 42 mainnet payments while the billing account on the ledger had 39. It counted every payment log line, including three refused attempts from 6 Sep 2026.

**Fix.** It now counts only received payments and matches the ledger; EVIDENCE has a dated note. On 22 Nov, /verify started recomputing the CID and the hash in the browser from the gateway bytes, instead of trusting the copy our server read, so a gateway or our server serving a different document shows up as a mismatch.
2 changes: 1 addition & 1 deletion docs/serverless-audit-waituntil.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Keep anchoring failures off the critical path:
bug in your hash/signature construction (do not retry blindly).

A paid x402 response should still return `200` even when the anchor fails. The
receipt is an integrity seal, not a gate on delivery.
receipt is a tamper-evident record, not a gate on delivery.

## Fallback when `waitUntil` is not available

Expand Down