Change feed slice B follow-ups from the PR #81 reviews: WAL close-time wording and loop test gaps #82
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#82
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?
Findings from the two fresh reviews of PR #81 (#65) at
e2dd63c. Neither review found a blocker. Line numbers are ate2dd63c.Should fix
SECURITY.md:37,store.py:325). The documents say the positions connection "never starts an automatic checkpoint". That is true in SQLite's terms. But the connection still checkpoints and removes the-walfile when it closes as the last connection on the store. That is the WAL bound whilesyncis stopped, as the #65 spec ruled. SECURITY then says "A stoppedsyncstops this bound" and names no other bound, so a reader can infer that acks grow the WAL without limit. Add one sentence to SECURITY and to the docstring. It says that the connection checkpoints at close as the last connection, and that withoutsyncthe ack growth is bounded by each Consumer's distance tolast_seq.Test gaps (mutations that survived)
ELOOPrefusal inload_confighas no test of its own (config.py:272-276). Both reviews found this. Replacing theraisewithpasskeeps the full suite green on 3.12 and on a real 3.13, because the startupELOOPbranch (startup.py:84) gives the same output throughmain(). The behaviour does change: on 3.13 with the mutation, a loopedauth.read_token_fileplus an existingtombstone_export_pathprintsconfig-validation at=store.tombstone_export_path, which is the wrong code and the wrong location. Add aload_configtest withPath.resolvesimulated as on 3.13 and an existing export path, and assert("secret-path-invalid", (loc,)).tombstone_export_pathcan be left out of the NUL validator (config.py:64). The oldValueErrorcatch gives the same output, so both NUL tests pass. Only the precedence over the secret checks differs. Pin it, or record why not.lstatin place ofstat(startup.py:73). No test gives--configas a symlink, which is the normal case for a Kubernetes ConfigMap mount. The current code handles it correctly. Add a test.Notes
statementslist also recordsPRAGMA key = …(tests/test_store.py:253), with the synthetic test key.--showlocalswould print it. Filter it out, or redact it.test_check_fails_on_a_store_directory_with_no_accessfails on Python 3.14, at both the base and the head.checkexits 0 on a store directory that it cannot access. CI pins 3.12, so it does not see this. Fix it before any interpreter bump.make_configrewriting the config in place. It callsmake_configagain afteros.link, and relies onwrite_textkeeping the inode. A rename-based write would break the test.load_configcatches onlyOSErroraroundos.stat(secret). A NUL would raiseValueError, butresolve()raises first on 3.12, 3.13 and 3.14, so that line cannot be reached today.O_NOFOLLOW(kit/secrets.py:21). A swap between the stat checks and the open is not covered. This belongs with #79.config", where the output order isat=config,<location>. Cosmetic.Acceptance criteria
Blocked by
Filed under: #65 merge gate, fresh reviews of PR #81 at
e2dd63c.