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
5 changes: 4 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## What changed and why

<!-- If this closes an issue (including a Stellar Wave issue), write: Closes #123 -->

## Package(s) touched
- [ ] nirium (TypeScript SDK)
- [ ] nirium (Python SDK)
Expand All @@ -9,7 +11,8 @@
- [ ] Documentation only

## How this was tested
<!-- Commands you ran, their output, and which network (testnet/mainnet) if relevant. -->
<!-- Commands you ran, their output, and which network (testnet/mainnet) if relevant.
For examples: the tx hashes and receipt CIDs from your own testnet run, signed with your own keys. -->

## Checklist
- [ ] Ran the package's own tests and lint
Expand Down
20 changes: 15 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ nirium/
├── packages/cli/ → CLI (npm: nirium-cli)
├── actions/verify-audit-cid/ → GitHub Action that verifies an Audit Trail CID in CI
├── skills/ → Agent skill (nirium-agentic-payments)
├── community/ → Contributor programs (Niriumtober)
├── community/ → Contributor programs (Niriumtober badges)
├── docs/ → Quickstarts and guides
└── examples/ → 14 runnable integrations (TypeScript, Python, Go, Rust, Unity, policy hooks)
└── examples/ → 24 runnable integrations (TypeScript, Python, Go, Rust, Unity, policy hooks)
```

---
Expand All @@ -68,6 +68,16 @@ nirium/

Reviewers will not follow up for missing context - include a clear description of what changed and why.

### Stellar Wave issues (Drips)

Issues labeled [`Stellar Wave`](https://github.com/nirium-protocol/nirium/issues?q=label%3A%22Stellar+Wave%22) are part of [Stellar Wave](https://www.drips.network/wave). Apply on Drips with a short plan; we assign by merit, usually one issue at a time until you have a merged PR here. Each issue lists its own "Done when" and evidence. In short:

- Use your **own** testnet keys (Friendbot is fine). Never ask for, or use, a key or funds from us.
- Put the transaction hashes and receipt CIDs from your own run in the README, and a short screen recording in the PR.
- Link the issue in the PR (`Closes #123`). A PR from outside the team needs one maintainer approval; CI on a fork runs after a maintainer approves it.

Only merged work counts. The running list is in [EVIDENCE.md](EVIDENCE.md), section 14.

### Commit Convention

We follow [Conventional Commits](https://www.conventionalcommits.org/):
Expand All @@ -93,9 +103,9 @@ Many earlier reviews (October and November 2026) were drafted the same way, ofte

### Dependency updates

Dependabot (`.github/dependabot.yml`) opens update PRs every Monday for `packages/sdk`, `packages/cli`, `packages/mcp` and the GitHub Actions used in `.github/workflows/`. Each package gets at most one minor/patch PR a week; majors come as separate PRs, and `@stellar/stellar-sdk`, `@x402/*` and `@stellar/mpp` majors are grouped so they move together.
Dependabot (`.github/dependabot.yml`) opens update PRs every Monday for `packages/sdk`, `packages/cli`, `packages/mcp` and the GitHub Actions used in `.github/workflows/`. Each package gets at most one minor/patch PR a week; majors come as separate PRs, and `@stellar/stellar-sdk`, `@x402/*` and `@stellar/mpp` majors are grouped so they move together. Dependabot security updates can also open PRs for the examples (`examples/*`); those get the same review and are held while that example fails its typecheck.

These PRs are reviewed like any other PR: by the code owner of the path (CODEOWNERS requests @M0nsxx for `packages/cli`), and otherwise by a maintainer (@Eras256). Nothing is auto-merged. Before approving, the reviewer checks that the package builds and its tests pass, and, for majors or the Stellar/x402 group, reads the changelog and the peer-dependency note in `.github/workflows/sdk-test.yml`.
These PRs are reviewed like any other PR: by the code owner of the path (CODEOWNERS requests @M0nsxx for `packages/sdk` and `packages/cli`), and otherwise by a maintainer (@Eras256). Nothing is auto-merged. Before approving, the reviewer checks that the package builds and its tests pass, and, for majors or the Stellar/x402 group, reads the changelog and the peer-dependency note in `.github/workflows/sdk-test.yml`.

### Code Style

Expand Down Expand Up @@ -123,4 +133,4 @@ By contributing, you agree that your contributions will be licensed under the [A

---

*Updated October 20, 2026*
*Updated November 22, 2026*
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Any AI agent can now pay for your endpoint in USDC: no account, no card, no subs
> and [issue #91](https://github.com/nirium-protocol/nirium/issues/91) (closed),
> where the design came from a real production deployment.

See [`docs/`](./docs) for full quickstarts, including [**"Charge AI agents in 5 minutes"**](./docs/quickstart-x402.md) ([🇪🇸 Español](./docs/es/quickstart-x402.md)), and [**serverless Audit Trail anchoring with `waitUntil`**](./docs/serverless-audit-waituntil.md), plus [`examples/`](./examples) for 14 runnable integrations: [Express](./examples/express-x402) and [Next.js](./examples/nextjs-x402) (TypeScript), [Go](./examples/go-x402), [Rust](./examples/rust-x402), [LangChain x402](./examples/langchain-x402-agent) (Python), [non-custodial treasury vault](./examples/treasury-vault-quickstart), [resilient WebSocket signals](./examples/ws-signals-resilient), [one-click Vercel deploy](./examples/deploy-x402-vercel), [Unity/C# game paywall](./examples/unity-game-x402-gate), [RouteDock discovery manifest](./examples/routedock-manifest), [Stellar Disbursement Platform audit bridge](./examples/sdp-audit-bridge), [audit-forensic-bridge](./examples/audit-forensic-bridge), [per-agent daily spend policy](./examples/x402-policy-daily-budget), and an [Open Policy Agent policy behind the pre-sign hook](./examples/x402-policy-opa). For real production findings (not marketing copy), see the [**devlog**](./docs/devlog.md).
See [`docs/`](./docs) for full quickstarts, including [**"Pay for an x402 API in 5 minutes"**](./docs/quickstart-x402.md) ([🇪🇸 Español](./docs/es/quickstart-x402.md)), and [**serverless Audit Trail anchoring with `waitUntil`**](./docs/serverless-audit-waituntil.md), plus [`examples/`](./examples) for 14 runnable integrations: [Express](./examples/express-x402) and [Next.js](./examples/nextjs-x402) (TypeScript), [Go](./examples/go-x402), [Rust](./examples/rust-x402), [LangChain x402](./examples/langchain-x402-agent) (Python), [non-custodial treasury vault](./examples/treasury-vault-quickstart), [resilient WebSocket signals](./examples/ws-signals-resilient), [one-click Vercel deploy](./examples/deploy-x402-vercel), [Unity/C# game paywall](./examples/unity-game-x402-gate), [RouteDock discovery manifest](./examples/routedock-manifest), [Stellar Disbursement Platform audit bridge](./examples/sdp-audit-bridge), [audit-forensic-bridge](./examples/audit-forensic-bridge), [per-agent daily spend policy](./examples/x402-policy-daily-budget), and an [Open Policy Agent policy behind the pre-sign hook](./examples/x402-policy-opa). For real production findings (not marketing copy), see the [**devlog**](./docs/devlog.md).

## Networks

Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The Soroban contracts, the frontend at nirium.xyz and the agent API at nirium-ag
- Prompt injection sanitization on all LLM inputs
- Prototype pollution guard
- HMAC-SHA256 webhook signature validation
- Sliding-window rate limiting (60/30/300 rpm by tier)
- Rate limiting per API-key tier (free: 10 requests/min and 100/day; sandbox: 60/min; institutional: 300/min) and per route (public routes 100/min; Audit Trail anchoring and escrow routes 20/min). **Update, 2026-11-22 (checked against the agent code):** this line previously read "60/30/300 rpm by tier", which did not match the configured limits
- domainLock and response obfuscation modules exist in the repo but are not mounted on any route. **Update, 2026-10-12 (checked against the agent codebase that day):** this line previously also listed "AML screening" as a live control. The AML middleware was never imported or mounted on any route and has been removed as dead code.

**Infrastructure:**
Expand Down
2 changes: 1 addition & 1 deletion examples/audit-forensic-bridge/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ to the Reporting service.
A verified receipt proves that the record in the IPFS document has not changed since it was
anchored and, when an agent signature is present, which Stellar key signed it. It does **not**
prove that the record is true. `anchoredAt` is the Nirium node's clock, not a ledger timestamp.
Anchor only hashes or small non-personal records: IPFS content cannot be deleted.
Anchor only hashes or small non-personal records: nobody can guarantee that something is deleted from IPFS, since anyone with the CID may have kept a copy.

## Testnet run (21 November 2026)

Expand Down
2 changes: 1 addition & 1 deletion packages/mcp/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export function createNiriumMcpServer(options: NiriumMcpOptions = {}): McpServer
'anchor_audit_record',
'Anchor evidence to IPFS and get back a CID. Tamper-evident, not tamper-proof: a changed document no longer matches its CID. Not notarization. '
+ 'Pass `hash` (sha-256 hex of your own file/event) or `record` (small JSON object, max 8KB). '
+ 'Anchor hashes rather than raw personal data — IPFS content cannot be deleted. Free during open beta.',
+ 'Anchor hashes rather than raw personal data — nobody can guarantee that something is deleted from IPFS. Free during open beta.',
{
hash: z.string().optional().describe('sha-256 hex (64 chars), optionally prefixed "sha-256:"'),
record: z.record(z.unknown()).optional().describe('Small JSON object to anchor verbatim (max 8KB)'),
Expand Down
5 changes: 3 additions & 2 deletions packages/sdk-python/src/nirium/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,9 @@ async def anchor_audit_record(
"""Anchor evidence to IPFS and get back a CID.

This is an integrity seal, not notarization and not legal proof of content.
Anchor a ``hash`` of your data rather than the data itself: IPFS content
cannot be deleted, so raw personal data would outlive any erasure request.
Anchor a ``hash`` of your data rather than the data itself: nobody can
guarantee that something is deleted from IPFS, so raw personal data could
outlive any erasure request.

Pass ``agent`` as ``{"key": "G...", "signature": "<base64>", "id": "..."}``
to attest *who* produced the evidence: sign the exact string
Expand Down
5 changes: 3 additions & 2 deletions packages/sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -973,8 +973,9 @@ export class Agent {
* Anchor evidence to IPFS and get back a CID — an integrity seal, not
* notarization and not legal proof of content.
*
* Anchor a `hash` of your data rather than the data itself: IPFS content
* cannot be deleted, so raw personal data would outlive any erasure request.
* Anchor a `hash` of your data rather than the data itself: nobody can
* guarantee that something is deleted from IPFS, so raw personal data could
* outlive any erasure request.
*/
async anchorAuditRecord(options: AuditAnchorOptions): Promise<AuditAnchor> {
const res = await this.request<AuditAnchor & { content_sha256?: unknown }>(
Expand Down