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

cameri / nostream / 44995902876
78%
main: 80%

Build:
Build:
LAST BUILD BRANCH: rewrite/main
DEFAULT BRANCH: main
Ran 22 Nov 2026 06:59AM 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 06:55AM UTC coverage: 77.588%. Remained the same
44995902876

push

github

web-flow
feat(mcp): the maintenance tools, the counts the pass drops, and the run record (#1226)

Slice 5 of #1183: `maintenance_run` and `maintenance_last_run`, the
retention purge's counts through the seam, and a last-run record.

**The API change the family carried.**
`MaintenanceService::clear_old_events` answers `EventPurgeCounts`
instead of `()`, the `MaintenanceTasks` trait's future carries them,
`MaintenanceRunner` passes them through, and `PassOutcome` gains
`counts: Option<EventPurgeCounts>` — `None` on a failed, panicked or
timed-out purge, never zeros. `crates/nostream-storage` is untouched:
both backends already answered the counts, and no `EventRepository`
implementor moves. The counts are handed on as one named value
(`record_maintenance_run(counts: EventPurgeCounts)`), so a transposed
`deleted`/`expired` pair is a call the compiler refuses.

**The door.** `maintenance_run` (write scope) runs the purge step
through `MaintenanceService` — the function the worker's
`MaintenanceTasks` arm delegates to, since a `MaintenanceRunner` needs
the outbox dispatcher, payments service and relay key source the stdio
mode does not compose — and records the run. `maintenance_last_run`
(read scope) answers `{"run": null}` before any run in this process and
`{"run": {ranAt, deleted, expired, retained}}` after one. The record is
process memory in `AdminState`: replace, never sum.

**The limit, stated not hidden.** The stdio door is its own process, so
the record is this process's own. Run beside a daemon, `{"run": null}`
means "this process has not run one" and the daemon's passes are
invisible — a known blind spot, and the tool's description says so. ADR
0019's Consequences names the durable cross-process record as that
decision's successor, and prices it: an amendment to ADR 0016's five-key
document plus a writer at the loop, which already holds the counts and
discards them (`MaintenanceTasks` → `run_pass`'s `PassOutcome` at
`workers/maintenance.rs:178`).

**Rec... (continued)

4502 of 6342 branches covered (70.99%)

Branch coverage included in aggregate %.

9792 of 12081 relevant lines covered (81.05%)

758.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Unit - 44995902876.1 22 Nov 2026 07:01AM UTC 321
75.03
GitHub Action Run
2 Integration - 44995902876.2 22 Nov 2026 06:59AM UTC 321
33.0
GitHub Action Run
Source Files on build 44995902876
  • Tree
  • List 321
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44995902876
  • 6d1454b1 on github
  • Prev Build on rewrite/main (#44972446901)
  • Next Build on rewrite/main (#45281051362)
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