GeezerVison is showing github.com — id: design: abuse-control primitives v1 for ID comms · Issue #2033 · developing-today/code
id: design: abuse-control primitives v1 for ID comms #2033Labels app/idPackage/app: id (pkgs/ or apps/ in this repo) DescriptionLIST 8 synthesis. Turn the abuse-controls investigation into implementable primitives v1: the block/limit/budget objects, where they are enforced (client, relay, server), how they compose with the accept-all-signed-objects trust model, and the operator UX (the 'quick button'). Small, shippable scope.
Program: Drew's 2026-10-28 directive (full text: hatch-personal memory/topics/id-program-2026-10-28.md).
Working pattern: parallel investigations, then the named synthesis issue merges them into a full design. Route guidance: Workhorse by default; Specialist/Summit for synthesis and ramification-heavy work. A result that says "done" is not the endpoint — the orchestrator reviews it and may commission another round. Deliverables: a markdown design/investigation doc (mermaid/SVG diagrams welcome) linked from this issue, plus follow-up issues for anything buildable. Build a proof of concept where the design calls for one, but do NOT build the permanent feature on top of an unreviewed PoC. Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 Parent epic: #2056 — ID platform expansion (2026-10-28 directive). dezren39 commented on Oct 29, 2026 Input ready for this synthesis: #2032 investigation complete — record (PR #2243). It gives the control inventory with file:line evidence, proposed defaults for four layers (frame-boundary token buckets, operator block list by public key/IP/topic-tag, budgets incl. per-counterparty overrides, listener IP deny), the composition rule with accept-all-signed-objects (blocks change serving/rendering, never acceptance), operator UX for the quick button, a P0/P1/P2 build order, and five open questions for the design in §7. Buildable follow-ons: #2244, #2245, #2247. dezren39 commented on Nov 1, 2026 Design triage started; parked for a dedicated design shift — task 5728, lane C. Groundwork below is verified; the design record itself is NOT yet written and this note does not pretend otherwise.
Verified starting map (fresh, this run)
- Inputs located. This is the LIST 8 synthesis of two closed investigations: id: investigate: comms abuse controls — blocks, rate limits, and per-counterparty budgets #2032 (comms abuse controls — blocks, rate limits, per-counterparty budgets) and id: investigate: trust/visibility model — servers accept all signed objects; views count only allowed writers #2030 (trust/visibility model: servers accept all signed objects; views count only allowed writers). Related in-flight: id: partial-holder re-serving while downloading, under LIST 8 serving budgets #2262 (partial-holder re-serving under LIST 8 serving budgets), epic epic: ID platform expansion — apps, comms, currency, hosting, boards (2026-10-28 directive, LIST 6–15) #2056 (LIST 6–15). The synthesis must read id: investigate: comms abuse controls — blocks, rate limits, and per-counterparty budgets #2032's findings in full before designing — they are the evidence base.
- Current surface at origin/main
3cbab2d9e: rate limiting exists in spots (pkgs/id/src/directory.rs, directory_auth.rs, web routes/world_ws mention it), but there is no block/mute primitive in directory.rs/directory_view.rs and no budget concept in world_caps.rs — v1 primitives are genuinely new objects, not a cleanup of existing ones.
Resume map for the dedicated shift
- Read id: investigate: comms abuse controls — blocks, rate limits, and per-counterparty budgets #2032 + id: investigate: trust/visibility model — servers accept all signed objects; views count only allowed writers #2030 in full; extract every primitive the investigation already validated or rejected.
- Map the comms receive/apply paths file:line at current main (directory receive, world hub/chat, web routes) — the enforcement-point candidates (client / relay / server).
- Write the decision-ready design record on this issue: block/limit/budget object shapes, enforcement points, composition with the accept-all-signed-objects trust model (abuse controls as view/apply-layer filters, not receipt refusals — or argue otherwise with id: investigate: trust/visibility model — servers accept all signed objects; views count only allowed writers #2030's text), and the operator 'quick button' UX.
- Enqueue phased implementation packets with dedupe keys listed here; list any Drew-only questions explicitly with options + recommendation (packet acceptance requires both).
Parked 1 hour. This is a synthesis-grade design task (the program's own routing guidance says Specialist/Summit-class work); it should not be fill-in work at the end of a queue shift.
dezren39 commented on Nov 1, 2026 Design note: doc/2026-11-01_design_id2033.md recommends a node-local policy evaluator with typed identities and protocol adapters.
PR: #3834
The design separates endpoint blocks, author/account mutes, resource refusals, and signed-object validity; local abuse rules never rewrite the event graph.
It distinguishes EndpointId, AuthorKey, account identity, WebSocket identity, and directly observed IP rather than assuming they are interchangeable.
P0: shared frame/byte accounting and structured refusals; collaboration rate adapter/diagnostics; persisted endpoint block + author mute quick action.
P1: wire ServerConfig and add app-wide/per-counterparty budgets and overrides; aligns with #2244, #2245, and #2247 without recreating them.
P2: direct-listener IP and distinct gossip-topic/metadata-tag rules; relay-attested IP and common block feeds are deferred.
The note corrects stale inventory claims using this checkout, including event-sync session accounting, its enforced-but-open PullGate, existing HTTP 429s, and the collab WebSocket size ceiling.
Drew questions: none; proposed limits are configurable defaults, and relay-attested IP is deferred rather than requiring a privacy decision.
Docs-only; no implementation code changed, and #2033 remains open. dezren39 commented on Nov 1, 2026 dezren39 commented on Nov 1, 2026 Synthesis routing / current-main verification (queue task 5728)
The decision-ready record remains PR #3834 (doc/2026-11-01_design_id2033.md); it is open and Drew-authored, so this lane has not modified, reviewed, or merged it. The recommendation is a node-local abuse-policy evaluator with protocol adapters and typed subjects, rather than unrelated per-protocol limiters. Keep signed-object validity/storage separate from local serving, subscription, and view policy: blocks and budgets refuse work or affect local projection, never rewrite/reject an otherwise-valid signed event. Viable alternatives and tradeoffs are in the linked record; the rejected shortcuts are ingest-time authority filtering, one generic key for endpoint/author/IP, and independent limiters that multiply allowances across connections.
Fresh base: origin/main at b5fc3f069213ffc4ca24cea5759b039b5dad37ec.
Phased implementation packets and current queue state
| Phase |
Packet |
Dedupe key |
Current state |
| P0-A core |
#3881, task 5845 |
repo-health:v1:fix:developing-today/code:issue:3881 |
Done; PR #3891 merged, issue closed. |
| P0-A integration |
#3882, task 5847 |
repo-health:v1:fix:developing-today/code:issue:3882 |
Active; PR #3960 open. Reuse the landed core; current issue note records five review findings being resolved. |
| P0-C endpoint block / author mute |
#2245, task 5848 |
repo-health:v1:fix:developing-today/code:issue:2245 |
Blocked as packet_defect: separate endpoint blocking from author muting; do not infer endpoint-to-author mapping. |
| P1 budgets / overrides |
#2247, task 5936 |
repo-health:v1:fix:developing-today/code:issue:2247 |
Enqueued on repo-health-code-pilot, not_before=2026-11-01T22:30:00Z; explicitly gated on #2244/#3882 integration. |
| P2 listener-IP and topic/tag controls |
#2245 Phase 3 |
To be enqueued by the #2245 implementation after its UI phase; relay-attested IP and common block feeds remain deferred. |
|
The #2247 queue task is a resumable implementation packet and instructs its worker to revalidate #2244/#3882/PR #3960 and park rather than work in parallel if the prerequisite is still open. Task 5936 is labelled queue/queued; the dedupe key is listed above. No packet is authorized to alter the signed-object acceptance model. The detailed acceptance criteria and defaults remain in PR #3834 and issues #2244/#2245/#2247.
Drew-only questions: none. The design record selects configurable defaults and explicitly defers relay-attested IP; no owner decision is needed to start the listed work.
dezren39 commented on Nov 1, 2026 agent-note:v1
event: done
task: 5728 (repo-health-code-pilot, openchamber scheduled lane)
outcome: triaged
record: PR #3834 is the Drew-authored decision-ready design record; left untouched. Current-main evidence and implementation routing are in this issue comment thread.
packets: #3881/task 5845 complete (dedupe repo-health:v1:fix:developing-today/code:issue:3881); #3882/task 5847 active (dedupe repo-health:v1:fix:developing-today/code:issue:3882); #2245/task 5848 blocked on packet_defect (dedupe repo-health:v1:fix:developing-today/code:issue:2245); #2247/task 5936 queued not-before 2026-11-01T22:30:00Z (dedupe repo-health:v1:fix:developing-today/code:issue:2247).
questions_for_drew: none
backlog_updated: false (sandbox bookkeeping deferred to fleet reconciliation)
MetadataMetadataapp/idPackage/app: id (pkgs/ or apps/ in this repo) DevelopmentNo branches or pull requestsIssue actions
|