Feeder: review findings left after the rework of #9 #48

Open
opened 2026-11-13 20:12:21 +00:00 by svc-agent-writer · 0 comments

Two reviews of PR #35 (issue #9, head 15ed56b) found the items below. The rework of #9 covers the history guard, the token and config file checks, the schema-pin literal, the pin-set test, the static scan, the stale socket, the filter-seam test and the expected-failure reason. These items are left for a later slice.

Correctness

  1. A row can be examined and never served. Operations.swift reads the Chat view, then the rows, in two reads. A row whose Chat appears between the two reads is examined, not served, and position moves past it. Reasoned from the code, not reproduced.
  2. Every row request over-reads. A row request asks the store for up to 5001 rows whatever limit is; check does the same; the serving view reads every Chat on every request.

Limits

  1. An unauthenticated peer can hold all 8 connection slots for 10 s, again and again. After authentication there is no deadline.
  2. changed-rows has no 1 MiB cap (the fake has none either).

Test coverage

  1. The synthetic history uses journal_mode=DELETE. The read-only proof does not cover WAL, the mode of a real history.
  2. The address form accepts an IPv4-mapped private address.

Notes

  • HEAD gets a body. A read timeout or an oversize header gets 401.
  • Rows with an unknown associated_message_type or a zero date are dropped without a count.
  • Chat name, members and attachments are cut at 1024 without a count.

Acceptance criteria

  • Each item has a test that fails before its fix, or a recorded decision.

Blocked by


Filed under: operator word "Accept. Proceed" sha256:94d7525a5334

Two reviews of PR #35 (issue #9, head `15ed56b`) found the items below. The rework of #9 covers the history guard, the token and config file checks, the schema-pin literal, the pin-set test, the static scan, the stale socket, the filter-seam test and the expected-failure reason. These items are left for a later slice. ## Correctness 1. **A row can be examined and never served.** `Operations.swift` reads the Chat view, then the rows, in two reads. A row whose Chat appears between the two reads is examined, not served, and `position` moves past it. Reasoned from the code, not reproduced. 2. **Every row request over-reads.** A row request asks the store for up to 5001 rows whatever `limit` is; `check` does the same; the serving view reads every Chat on every request. ## Limits 3. An unauthenticated peer can hold all 8 connection slots for 10 s, again and again. After authentication there is no deadline. 4. `changed-rows` has no 1 MiB cap (the fake has none either). ## Test coverage 5. The synthetic history uses `journal_mode=DELETE`. The read-only proof does not cover WAL, the mode of a real history. 6. The address form accepts an IPv4-mapped private address. ## Notes - `HEAD` gets a body. A read timeout or an oversize header gets `401`. - Rows with an unknown `associated_message_type` or a zero date are dropped without a count. - Chat name, members and attachments are cut at 1024 without a count. ## Acceptance criteria - Each item has a test that fails before its fix, or a recorded decision. ## Blocked by - #9 --- Filed under: operator word "Accept. Proceed" sha256:94d7525a5334
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dev/messages-mind-mcp#48
No description provided.