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

cameri / nostream / 44952924718
78%
main: 80%

Build:
Build:
LAST BUILD BRANCH: rewrite/main
DEFAULT BRANCH: main
Ran 21 Nov 2026 09:46PM 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

21 Nov 2026 09:42PM UTC coverage: 77.582%. Remained the same
44952924718

push

github

web-flow
feat(mcp): add delete_event and reports_action over a report setter (#1222)

Slice 3 of #1183. Two write tools on the MCP door, and the store seams
they need.

### `delete_event`

Soft delete through `delete_by_pubkey_and_ids` — the store's own
single-row delete — with four
outcomes (`deleted`, `already_deleted`, `not_deleteable` for kind 62,
`not_found`) and the event
row read back after the call. The outcome is decided by the row **as it
stands after** the call,
so two concurrent deletes answer `already_deleted` rather than
`not_deleteable`.

The description states what the store actually does: the event leaves
REQ and COUNT, keeps its
row, and `get_event` / `list_events` still return it with `deleted_at`
set — **unless an
actionable report hides it**, in which case it stays hidden until the
report is allowed.

### `reports_action`

Acts on a report's **own kind-1984 event id** through
`find_by_event_id`, setting
`Report.actionable` for `hide` and `allow` across every row that event
wrote, and answers
`changed` — the rows whose value actually moved — with every row of the
event sorted by `id` by
the handler, not by either backend's order. The LMDB arm removes the
three denormalised
`reports_actionable_*` index entries in the same write, which is what
keeps the NIP-56 filter
honest; `allow` cannot re-publish a target that another actionable
report still names.

### The seams

- `ReportRepository::set_actionable`, implemented by LMDB, Postgres,
InMemory, Unavailable and
Noop, reached through a new `ServiceStores.reports` field (one field at
ten construction
  sites) rather than a third `AdminState` field.
- `EventRepository::find_stored(&EventId)` — one ungated exact-id read,
LMDB one `get`, Postgres
one `SELECT ... WHERE event_id = $1`. The NIP-56 gate is a read's, and
the delete path must see
the row a report hides: with the gated read, "hide the report, then
delete the event" answered
`not_found` and deleted nothing, which made the two tools incohe... (continued)

4501 of 6342 branches covered (70.97%)

Branch coverage included in aggregate %.

9792 of 12081 relevant lines covered (81.05%)

761.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Unit - 44952924718.1 21 Nov 2026 09:46PM UTC 321
75.03
GitHub Action Run
2 Integration - 44952924718.2 21 Nov 2026 09:46PM UTC 321
32.99
GitHub Action Run
Source Files on build 44952924718
  • 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 #44952924718
  • a8cef4a5 on github
  • Prev Build on rewrite/main (#44933843464)
  • Next Build on rewrite/main (#44972446901)
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