Feeder follow-ups from the #58 reviews: scan gaps, the D1 stall and test gaps #62
Labels
No labels
boundary:crosses
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/messages-mind-mcp#62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Security review of
ea8b70c(round 1), not fixed in #61The review found no blocker. Each item below is also missed by the base
fdfc45a.Scan gaps (SHOULD-FIX)
Data(contentsOf:)andString(contentsOf:)accept a remote URL.NWConnectionGroup,NWBrowserandNWListener.Serviceare Network types that the pattern\bNWConnection\.does not match. Add each one toFORBIDDENintests/test_feeder_package.py, with a self-test sample for each.removeFileAtPath:handler:,movePath:toPath:handler:,copyPath:toPath:handler:,linkPath:toPath:handler:andchangeFileAttributes:atPath:reach a write throughperformSelector. Add them to the binary selector deny list, with a sample for each.let f = unlinkand a laterf(path)passestest_only_the_listener_unlinks_or_changes_a_mode. The same holds forchmod,socketandconnect. Fix: annm -ucheck per object file. OnlyListener.swift.o(orFeederCore.o) imports_unlink,_chmod,_socketand_connect, and no object imports_dlsym.Test gaps
child()intests/test_feeder_real.pysends stdout toDEVNULL. Aprint()of a path or a message text passes every test. Capture stdout and assert that it is empty, or banprint(infeeder/Sources.E[A-Z0-9]+is looser than the closed errno table. Pin it to the table.LC_RPATHentries of the binary are not pinned. Pin the expected set (@loader_pathand the toolchain path) or assert that no entry points into a writable directory.Notes
\uXXXXescape. That row then answers503on every request, andsyncstops at its position for good. Anyone who can send the Owner a message can trigger it. It does no harm today, because the Feeder serves no real history before #10. It must be fixed before #10 serves one.policy.admits(chat:)receives has no cap. #10 must not assume a bound.Correctness review of
ea8b70c(round 1), not fixed in #61The review found no blocker and no should-fix item. It ran 15 extra mutations, and all were killed.
testAResponseIsEncodedOnceAndAFailureIs503(FeederCoreTests.swift:764) claims an encode failure.WireValuehas noDouble, soJSONEncodercannot fail. The test repeats the progress-guard 503. Rename it to say what it tests.exit(1), sotearDownWithErrordoes not run and a timed-out test leaves/private/tmp/feeder-unit.*behind. That directory holds the synthetic token. Remove the directory before the exit, or create it under a path the watchdog cleans.pageBytesLimitcan be alet. It is an internalvar(Operations.swift:41-42) that only tests set. A value aboveresponseBytesbrings back the 503 stall. Make it aninitparameter with the default.PageBytesencodes each item once more to measure it, so encode CPU doubles. Peak memory is about 2 × 16 MiB, becauseResponse.httpcopies the header and the body./private/tmp, because the fixtures hard-code it and the history rule atConfig.swift:105accepts only~/Library/Messages,/private/tmpor/tmp.Spec follow-ups, carried from the #58 spec
handle-unfitmetric counts a cut row twice.openwith a numeric write flag passes the scans. The correctness review measured it: the demangled 2-argumentDarwin.opendoes not match the deny patterns. No write primitive is linked today.Order
Item 7 must be fixed before #10 serves a real history. This issue therefore blocks #10.
Blocked by
Filed under: operator word "I grant authority to merge T4 through 21:00 aedt" sha256:cec4dd4fecbd