GeezerVison is showing github.com — id(comms): operator block list by public key, with one-button block in the web UI (P0 of #2032) · Issue #2245 · developing-today/code
id(comms): operator block list by public key, with one-button block in the web UI (P0 of #2032) #2245DescriptionFrom the #2032 investigation (record). This is the control an operator actually reaches for during an incident.
Problem
There is no block list of any kind in pkgs/id — grep -i 'block|ban|deny' over peers, connectivity and petname returns nothing — and ServerConfig (server_config/mod.rs:58-70) has no key that could hold one.
Work
- Persisted
blocks table in the per-node store: {kind: peer_key | ip | topic_tag, value, added_at, reason, expires_at}; expires_at = null is the permanent block the issue asks for.
- Public key (endpoint ID): refuse new sessions, refuse to serve blobs, drop gossip subscriptions, filter their objects out of views. Blocks change serving/subscribing/rendering — they must not reject already-signed objects, or the graph diverges between nodes (see id: investigate: trust/visibility model — servers accept all signed objects; views count only allowed writers #2030).
- Web UI: Block / Mute on each peer row, a Blocks page with unblock, and a one-click action that writes the row.
- IP and topic/tag kinds: IP enforced at the listener only (best-effort; a relayed peer has no visible IP), topic/tag composed with the existing
PullPolicy.
Done when
An operator can block a peer from the peer list in one click, see it in the blocks page, and the peer's live frames and served objects stop without any signed object being discarded.
Parent: #2056 · Investigation: #2032 · Synthesis: #2033 Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Nov 1, 2026 🤖 Agent note · picked up
- Agent: queue worker lane F (repo-worker-code)
- Session / ID: queue task 5840, lane F shift 2026-11-01
- Found via: atomic queue claim
- Task: Triage id(comms): operator block list by public key, with one-button block in the web UI (P0 of #2032) #2245 (operator block list by public key + one-button web UI block, P0 of id: investigate: comms abuse controls — blocks, rate limits, and per-counterparty budgets #2032 / P0-C of design id: design: abuse-control primitives v1 for ID comms #2033) — claim-by-claim verdict against current main, implementation route, phased packets.
- Fresh check: issue id(comms): operator block list by public key, with one-button block in the web UI (P0 of #2032) #2245 OPEN, only label
app/id, no hard-stop labels; design record is PR design(id): #2033 abuse-control primitives v1 #3834 (open, doc/2026-11-01_design_id2033.md).
dezren39 commented on Nov 1, 2026 🤖 Agent note · done (triage)
Claim-by-claim verdict (fresh at main 5b2eca7a1b5cd6adb84b7b319935118fa76ea32b)
- "There is no block list of any kind in
pkgs/id" — CONFIRMED. Grep for block-list/blocked-peer machinery over pkgs/id/src returns nothing; block|ban|deny returns nothing in petname.rs or connectivity.rs. Nothing can refuse a peer today.
ServerConfig has no key that could hold one — CONFIRMED. pkgs/id/src/server_config/mod.rs:58-67: ServerConfig { users, groups, create, policy, names, aliases } — no block/abuse field. (Design id: design: abuse-control primitives v1 for ID comms #2033's [abuse] config wiring is id(comms): budgets — app-wide, per-IP, per-ID, and per-counterparty overrides (P1 of #2032) #2247's P1 work, not this issue's.)
- Persistence home exists and has a pattern to follow — CONFIRMED. The per-node store is a redb
Database in pkgs/id/src/event_store/mod.rs (imports at :56-57; TableDefinition constants events/hashes/chains at :86-91). A blocks table is a new TableDefinition in the same style — no new storage system needed. (store.rs is blob/keypair storage, not the node record store.)
- Enforcement seams exist — CONFIRMED. Sessions/pull serving already gate through policy seams (
pull_policy.rs:1-19: PullPolicy is local serving policy; note id serve does not load it from config yet — that wiring gap is id(comms): budgets — app-wide, per-IP, per-ID, and per-counterparty overrides (P1 of #2032) #2247's, and Phase 3 must compose with PullPolicy as the issue says, not invent a parallel path); blob serving has its own gate (blob_gate, referenced in pull_policy.rs docs); gossip subscriptions live in the discovery/gossip layer (discovery.rs).
- Web UI surface exists — CONFIRMED.
pkgs/id/src/web/routes.rs:265 (/peers), :274 (/api/peers), :379-399 (peers_handler → render_peers) — peer rows are rendered server-side, so Block/Mute actions and a Blocks page attach to an existing page, not a new app.
- The hard invariant is real — CONFIRMED as a design constraint. Per id: investigate: trust/visibility model — servers accept all signed objects; views count only allowed writers #2030 (cited by both the issue and design id: design: abuse-control primitives v1 for ID comms #2033): blocks change serving/subscribing/rendering only; they must not reject already-signed objects at ingest, or the object graph diverges between nodes. Any implementation that filters at ingest is wrong, however natural it looks.
Route (design #2033 P0-C, split for the 45-minute packet timebox)
Design #2033 maps this issue to its P0-C row ("may merge independently from P0-B; depends only on the rule model") and resolves the semantics: endpoint ID for transport admission, author identity for view muting, rules node-local and never federated, expires_at = null permanent. Phased on the standard fix key (one live fix packet per issue; later phases chained on completion, the #3448/#805 pattern):
- Phase 1 — ENQUEUED as task 5848 (dedupe
repo-health:v1:fix:developing-today/code:issue:2245): typed rule model {kind: peer_key | ip | topic_tag, value, added_at, reason, expires_at} persisted as a redb table in the event store; peer_key enforcement (refuse new sessions, refuse blob serving, drop gossip subscriptions, filter its objects from local views); internal rule add/list/remove for the UI; tests incl. the no-ingest-rejection invariant, restart persistence, expiry.
- Phase 2 — web UI (enqueued by task 5848's worker on completion): Block / Mute on each peer row (separate explicit actions, per design id: design: abuse-control primitives v1 for ID comms #2033's endpoint-vs-author distinction), Blocks page with unblock, one-click write.
- Phase 3 — remaining kinds (chained after Phase 2): IP enforced at the listener only (best-effort; relayed peers have no visible IP — never inferred), topic/tag composed with the existing
PullPolicy.
Done-when mapping: the issue's "operator can block a peer from the peer list in one click, see it in the blocks page, and the peer's live frames and served objects stop without any signed object being discarded" is met at the end of Phase 2 (one-click + page) with Phase 1's enforcement underneath; Phase 3 completes the issue's remaining Work items.
Questions for Drew
None. Design #2033 states this explicitly for the whole primitive set ("no owner preference is needed to start implementation"), and nothing in #2245's scope raises a new one: permanence default, kind set, and the endpoint/author split are all already decided in the issue + design.
dezren39 commented on Nov 1, 2026 agent-note:v1
event: picked-up
task: 5848 (repo-health-code-pilot, openchamber scheduled lane)
state: claimed
next: revalidate issue #2245 and design/PR #2033/#3834, then inspect current code and create the task worktree if the scope is still available.
dezren39 commented on Nov 11, 2026
state: parked (CI wait)
task 8517 (small_fix) — issue #2245 — lane code-e, 2026-11-11
Resumed task 8517 and re-verified PR #8212 fresh: OPEN, no hard-stop labels, rollup unchanged — 9 QUEUED, 1 SUCCESS, 1 SKIPPED, 1 NEUTRAL (fleet CI queue stall). Prior verification stands (targeted tests passed at the PR head; Codex left a usage-limits notice only, no findings).
Terminal for this shift: task 8517 parked as a CI wait on PR #8212. Resume: when checks complete, merge PR #8212, verify, and complete task 8517. dezren39 commented on Nov 11, 2026
Agent note — lane tmp-code-g, task 8517
- Stage: verified / awaiting_ci (resumed; PR feat(id): operator block list surface - blocks page, block routes, one-click peer block (#2245) #8212, branch queue/8517-2245-operator-block-list, head f4cf48c)
- Fresh revalidation: issue id(comms): operator block list by public key, with one-button block in the web UI (P0 of #2032) #2245 OPEN, no hard-stop labels; PR feat(id): operator block list surface - blocks page, block routes, one-click peer block (#2245) #8212 OPEN, worktree clean at the PR head. No Codex review findings exist on PR feat(id): operator block list surface - blocks page, block routes, one-click peer block (#2245) #8212 (Codex posted only a usage-limits notice, 2026-11-10 — no review was performed, so there are no findings to disposition).
- Prior-lane test record (PR body): web:: 605, local_events 19, render_peers 4, block 63 — all pass on the rebased head. This lane re-ran the targeted block tests on the laptop at the same head: 63 passed, 0 failed (cargo test --features web --lib block, pkgs/id).
- CI: most checks still QUEUED in the fleet runner stall (world snapshot determinism SUCCESS, flake check SKIPPED). Task 8517 parked on the CI ready-condition for PR feat(id): operator block list surface - blocks page, block routes, one-click peer block (#2245) #8212; resume = checks complete, then merge and complete fixed_merged.
dezren39 commented on Nov 11, 2026
state: done (fixed_merged)
task 8517 (small_fix) — issue #2245 — lane any-d, 2026-11-11
The operator surface remainder is landed: PR #8212 MERGED at 2026-11-11T05:46:08Z, merge commit 60234f0, verified as main HEAD with the /blocks route present at pkgs/id/src/web/routes.rs:575. Delivered: GET /blocks page + GET/POST /api/blocks + POST /api/blocks/remove writing rows through the existing EventStore add_block/remove_block (via LocalEvents wrappers, the same rows abuse.rs/blob_gate.rs/pull_policy.rs enforce live), one-click Block/Unblock on every peer row (incl. the #6956 auto-refresh partial), Blocks page with unblock + add form.
This shift's verification: PR #8212 was 735 commits behind main with a single conflict in templates.rs (the #6956 no-wrapper test: main's formatting vs the branch's new blocked-set argument) — rebased to head b231fe4, conflict resolved by combining both, diff unchanged (4 files, +482/-23). Targeted tests re-run independently on the laptop worktree, before and after the rebase: block 63 -> 64 pass / 0 fail, render_peers 4 pass, local_events 19 pass (--features web). Codex: no review ran on this PR (the connector posted a usage-limit notice only) — no findings exist to disposition; CodeRabbit neutral. PR checks still QUEUED behind the fleet CI stall; merged on the locally verified suites per Drew's merge authority (CI runs on main only).
With the backend (PR #4874, PR #4972) and this surface both on main, issue #2245's Done-when is met and the issue closes with this note.
Terminal: task 8517 complete, outcome fixed_merged.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|