PR #49: residual notes from the last merge-gate reviews (url rules, document tests) #50
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#50
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?
Two reviews of PR #49 (issue #32, head
005a73c) found no blocker and no should-fix item, after four rework rounds. They left the notes below. None of them sends the Feeder token, or any data, to an address that the config does not name.Feeder
urlwording (README.md:42,SECURITY.md:36)0.0.0.0passes config and then reaches the local host. Say "unspecified address literals are refused".:08421) and upper-case hex in an IPv6 literal are accepted. Both connect to the configured host. State them or refuse them.[fe80::1]), multicast (224.0.0.1) and broadcast (255.255.255.255) hosts. The README makes no claim about them. Decide whether to refuse them.SECURITY.md:36says a test proves that sync connects "only to the Feeder". Align it with "the addresses of the one configured Feeder host".urlrow holds about eight rules in one table cell. Move them to a list.Tests (
tests/test_sync_documents.py)config.py:154) is dead code, becauseurlsplitalready refuses[127.0.0.1]and[localhost].test_the_sync_text_names_no_host(:201) captures[, so a bracketed loopback example such ashttp://[::1]:8421would fail it wrongly.503changed in theschema-pinrow or in the SECURITY "503withunavailable" sentence.Other
401on a paged call is asked again down to alimitof 1, so one pass can send the token about ten times to the same configured Feeder. README:71-72 states this. Decide whether401should stop the halving.Decisions
urlhas one spelling.[127.0.0.1]and[localhost]are refused.401stops the halving. The status is checked before the size, so a refused token is sent once per call. The README sentence "a reply over the size cap reportsresponse-too-largefirst" changes to match.Acceptance criteria
## Decisions. A test covers each code change and each document rule.make checkpasses.Human act
ruling: the operator sets
svd:goto approve dispatch of this Feeder-token change (CONV-40)Blocked by
Filed under: operator word "Accept. Proceed" sha256:94d7525a5334
sync: the start-time failures andtombstones-schema-aheadexit inconsistently #38Triage
main(e29bbbe), offline::08421,[FD12::5],[fe80::1],224.0.0.1and255.255.255.255, and refuses only unspecified address literals;urlsplitalready raises on[127.0.0.1]and[localhost], so the bracket clause never refuses anything;test_the_sync_text_names_no_hostcaptures[fromhttp://[::1]:8421;401check, and_smallerhalveslimitdown to 1 onresponse-too-large.## Decisions.ready-for-human. The human act is the operator's dispatch approval (svd:go).Blocked by #32is replaced by #38 and #44. All three editsync.pyorsource.pywithREADME.md, so they dispatch one at a time (CONV-37). #50 goes last, so that its wording describes the code after the peer check and the Chat cap of #44.Brief
Category: bug
Summary: the Feeder
urlrule has one spelling and refuses hosts that no Feeder can use; a401stops the page halving; the document tests catch the listed drifts.Why a human gates it: the change decides where the Feeder token goes and how often. The design is settled; the operator approves the dispatch.
Desired behavior:
FeederConfigrefuses aurlwith a leading-zero port, upper-case IPv6 hex, or a link-local, multicast or broadcast host. The DEL and C1 refusal is a named check with its own test. The unreachable bracket clause is gone, and a test pins the refusal of[127.0.0.1]and[localhost].401givesfeeder-unauthorizedbefore the size check, and the page halving stops on it.[feeder]table states theurlrules as a list and says "unspecified address literals are refused". The limits list says that the connect timeout applies to each address of a name.SECURITY.mdsays that sync connects only to the addresses of the one configured Feeder host. The sync bullet again says that the loop retries a failed pass unless it has a stop code.503in theschema-pinrow and in the SECURITY503sentence; a bracketed loopback example.Key interfaces:
FeederConfig.feeder_url;FeederSourceresponse handling; the sync page-halving helper; the README## The sync workersection; the SECURITY## What the sync worker limitssection;tests/test_sync_documents.py.Acceptance criteria: the list in the body.
Out of scope: the socket peer check and the Chat cap (#44); the exit rules of
sync(#38).