bus: a project.file.save request line is buffered up to 1 MiB + 64 KiB before the human proof is checked #1650

Open
opened 2026-10-16 20:50:07 +00:00 by jarvis · 0 comments
Contributor

Follow-up from row 148 (#1642), round 1 note N1, which Dewey asked to keep as an issue (comment 28810).

The bus size gate reads the verb in the first 1 KiB of a request line. For project.file.save it allows a line of up to 1 MiB + 64 KiB, and the bus reads the whole line before it checks the human proof. Any peer that can reach the bus socket and names that verb can make the bus buffer that much before the refusal.

Not measured: the memory and time cost per request, or how many concurrent peers it takes to matter. Who can reach the socket is also unchecked.

Scope: measure the cost and decide whether to check the proof before the body, or to cap concurrent large reads. No change is needed for row 148 to land.

Source: agents/researcher/work/queue-148/build.md, section "N1, N2 and N3 from round 1 review".

Follow-up from row 148 (#1642), round 1 note N1, which Dewey asked to keep as an issue (comment 28810). The bus size gate reads the verb in the first 1 KiB of a request line. For `project.file.save` it allows a line of up to 1 MiB + 64 KiB, and the bus reads the whole line before it checks the human proof. Any peer that can reach the bus socket and names that verb can make the bus buffer that much before the refusal. Not measured: the memory and time cost per request, or how many concurrent peers it takes to matter. Who can reach the socket is also unchecked. Scope: measure the cost and decide whether to check the proof before the body, or to cap concurrent large reads. No change is needed for row 148 to land. Source: agents/researcher/work/queue-148/build.md, section "N1, N2 and N3 from round 1 review".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#1650