From cb06be73a6d2db459740c6113dab314e9d2fa767 Mon Sep 17 00:00:00 2001 From: Giovanny Amador <219895655+Eras256@users.noreply.github.com> Date: Sun, 22 Nov 2026 12:43:15 -0600 Subject: [PATCH 1/2] docs: CONTRIBUTING Wave section, real rate limits in SECURITY, PR template evidence Co-Authored-By: Claude Opus 5.5 --- .github/PULL_REQUEST_TEMPLATE.md | 5 ++++- CONTRIBUTING.md | 20 +++++++++++++++----- README.md | 2 +- SECURITY.md | 2 +- examples/audit-forensic-bridge/README.md | 2 +- 5 files changed, 22 insertions(+), 9 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 3310abd7..687c94db 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,5 +1,7 @@ ## What changed and why + + ## Package(s) touched - [ ] nirium (TypeScript SDK) - [ ] nirium (Python SDK) @@ -9,7 +11,8 @@ - [ ] Documentation only ## How this was tested - + ## Checklist - [ ] Ran the package's own tests and lint diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 88f99aa8..a025ac6f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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) ``` --- @@ -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/): @@ -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 @@ -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* diff --git a/README.md b/README.md index fa4fbd29..03103291 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/SECURITY.md b/SECURITY.md index b98bd446..8dcef3ae 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -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:** diff --git a/examples/audit-forensic-bridge/README.md b/examples/audit-forensic-bridge/README.md index d6c0f776..0f2c5cf6 100644 --- a/examples/audit-forensic-bridge/README.md +++ b/examples/audit-forensic-bridge/README.md @@ -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) From 40d81efbff1bc84de41dd92d8a7aed109eee01d9 Mon Sep 17 00:00:00 2001 From: Giovanny Amador <219895655+Eras256@users.noreply.github.com> Date: Sun, 22 Nov 2026 12:51:38 -0600 Subject: [PATCH 2/2] fix(mcp,sdk): IPFS deletion wording in the anchor tool description and docstrings Co-Authored-By: Claude Opus 5.5 --- packages/mcp/src/index.ts | 2 +- packages/sdk-python/src/nirium/client.py | 5 +++-- packages/sdk/src/index.ts | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/mcp/src/index.ts b/packages/mcp/src/index.ts index 847f152c..7139bb00 100644 --- a/packages/mcp/src/index.ts +++ b/packages/mcp/src/index.ts @@ -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)'), diff --git a/packages/sdk-python/src/nirium/client.py b/packages/sdk-python/src/nirium/client.py index 1c6c54f7..3cc348ee 100644 --- a/packages/sdk-python/src/nirium/client.py +++ b/packages/sdk-python/src/nirium/client.py @@ -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": "", "id": "..."}`` to attest *who* produced the evidence: sign the exact string diff --git a/packages/sdk/src/index.ts b/packages/sdk/src/index.ts index ee52e73f..7e3d6071 100644 --- a/packages/sdk/src/index.ts +++ b/packages/sdk/src/index.ts @@ -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 { const res = await this.request(