• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cameri / nostream / 44972446901
78%
main: 80%

Build:
Build:
LAST BUILD BRANCH: rewrite/main
DEFAULT BRANCH: main
Ran 22 Nov 2026 01:42AM UTC
Jobs 2
Files 321
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Nov 2026 01:39AM UTC coverage: 77.588% (+0.006%) from 77.582%
44972446901

push

github

web-flow
feat(mcp): add user_admin, user_get, the invoice reads and reports_list (#1224)

Slice 4 of #1183. Five tools over the store seams already in the tree —
no new trait method, no new store field (`git diff a8cef4a5 --
crates/nostream-storage` is empty).

### `user_admin` and `user_get` — two rows, because scope is a row
property

`user_admin` carries the four decisions an operator makes about one
pubkey — `admit`, `revoke`, `vanish`, `unvanish` — as one closed action
enum, and answers the row as it stands after the call. `user_get` reads
the same row and its balance. They are separate tools because scope is a
property of the `TOOLS` row: one tool would have made a balance read
cost a `write` document or an admission reachable with a read-only one.
A case pins the split by running the four reads under an empty document
and asserting the write is refused once.

The read path is **one** `find_by_pubkey` with the balance taken from
the row it answers, and **never** `is_vanished` — that method hydrates a
live kind-62 and stores a row, and `user_get` is reachable with a
document that grants nothing. A case refuses the balance read through a
delegating repository, so the one-read invariant is pinned rather than
described.

### The reads

`invoices_list` is the store's pending walk, oldest first, paged by
`offset` and `limit`; `invoices_get` takes the invoice's own opaque id
verbatim and answers a miss as `{"invoice": null}`, matching
`get_event`. `reports_list` is the actionable review queue over
`find_actionable(limit)` — the description says so, and the general
listing is out of scope with its price in ADR 0018, so a later slice
takes it deliberately.

### Record

ADR 0018 with D1–D7 and a cost each; ADR 0014's D18 table and its two
sentences; the twelve count sites; the four absent-name sites move from
`user_admin` to `maintenance_run`; `CONFIGURATION.md` and `--help` name
all twelve tools; changeset added.

### Verification

`cargo fmt --all --check`, both... (continued)

4502 of 6342 branches covered (70.99%)

Branch coverage included in aggregate %.

9792 of 12081 relevant lines covered (81.05%)

759.22 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Unit - 44972446901.1 22 Nov 2026 01:44AM UTC 321
75.03
GitHub Action Run
2 Integration - 44972446901.2 22 Nov 2026 01:42AM UTC 321
33.0
GitHub Action Run
Source Files on build 44972446901
  • Tree
  • List 321
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44972446901
  • ab3626c1 on github
  • Prev Build on rewrite/main (#44952924718)
  • Next Build on rewrite/main (#44995902876)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc