Restore steps follow-ups from the PR #96 reviews: split journal guard, B1 interrupt, two unpinned sentences #97

Open
opened 2026-11-16 11:23:14 +00:00 by svc-agent-writer · 0 comments

Non-blocking findings from the two fresh merge-gate reviews of PR #96 (#92) at 04af5eb and 5db9784. PR #96 merged as 25865be. Line numbers refer to 25865be.

Code guard (security review)

  1. A Tombstone store opened without its hot -journal loses Forgets and raises no error. The documents now tell the operator to move the store back together with its -journal file (round 4). Nothing in the code catches a store whose journal was left behind. The reviewer reproduced the loss: 40 to 973 of 2000 committed Forgets went missing. open_tombstones(create=False) succeeds, and PRAGMA quick_check returns ok. A guard is only partly possible, because a lost journal leaves no trace beside the store. Two options to decide at triage:
    • sync --rebuild refuses when <store.tombstone_path>-journal exists. The round 3 spec named this guard as security review S1.
    • Record in SECURITY that the code cannot detect a journal that was split from its store.
  2. Ctrl-C in install block B1 can split the store from its journal. An interrupt between the two mv calls leaves tombstones.db-journal in store_dir. B2 then refuses, which is correct. A re-run of B1 makes a second timestamped aside, so the store and its journal end up in different directories. Consider moving both files with one mv call, or making B1 refuse when an aside-* directory already holds a store.

Test strength (correctness review)

  1. Mutant I-M8 survives. Joining the NAMESPACE sentence to the sentence before it with ", and" passes, because the pin is a substring match. Row I10 ("stands alone") is not fully enforced.
  2. The SECURITY sentence "Replacing the Mirror keeps the Tombstone store, so it does not depend on the export being current." is not pinned. Deleting it passes every test.
  3. The hot-journal test ends the child with os._exit(0), not SIGKILL. The effect is the same, so this is a note only.

Blocked by

None.


Filed under: operator grant "file tickets, merge T4, label/de-label svd:go, continue svd and batch-svd (with auto-gate)" (2026-11-16, DD-469 minds workspace), merge gate of PR #96.

Non-blocking findings from the two fresh merge-gate reviews of PR #96 (#92) at `04af5eb` and `5db9784`. PR #96 merged as `25865be`. Line numbers refer to `25865be`. ## Code guard (security review) 1. **A Tombstone store opened without its hot `-journal` loses Forgets and raises no error.** The documents now tell the operator to move the store back together with its `-journal` file (round 4). Nothing in the code catches a store whose journal was left behind. The reviewer reproduced the loss: 40 to 973 of 2000 committed Forgets went missing. `open_tombstones(create=False)` succeeds, and `PRAGMA quick_check` returns `ok`. A guard is only partly possible, because a lost journal leaves no trace beside the store. Two options to decide at triage: - `sync --rebuild` refuses when `<store.tombstone_path>-journal` exists. The round 3 spec named this guard as security review S1. - Record in SECURITY that the code cannot detect a journal that was split from its store. 2. **Ctrl-C in install block B1 can split the store from its journal.** An interrupt between the two `mv` calls leaves `tombstones.db-journal` in `store_dir`. B2 then refuses, which is correct. A re-run of B1 makes a second timestamped aside, so the store and its journal end up in different directories. Consider moving both files with one `mv` call, or making B1 refuse when an `aside-*` directory already holds a store. ## Test strength (correctness review) 3. **Mutant I-M8 survives.** Joining the `NAMESPACE` sentence to the sentence before it with ", and" passes, because the pin is a substring match. Row I10 ("stands alone") is not fully enforced. 4. **The SECURITY sentence "Replacing the Mirror keeps the Tombstone store, so it does not depend on the export being current." is not pinned.** Deleting it passes every test. 5. The hot-journal test ends the child with `os._exit(0)`, not SIGKILL. The effect is the same, so this is a note only. ## Blocked by None. -------- Filed under: operator grant "file tickets, merge T4, label/de-label svd:go, continue svd and batch-svd (with auto-gate)" (2026-11-16, DD-469 minds workspace), merge gate of PR #96.
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#97
No description provided.