Single-host install follow-ups from the PR #71 reviews: removal guard, snapshot volumes and test gaps #72

Closed
opened 2026-11-15 11:47:47 +00:00 by svc-agent-writer · 8 comments

Findings from the two fresh reviews of PR #71 (#56) at 1d99353 that the merge-gate rework does not fix. The rework fixes the symlink-hop blocker, the link-check test gaps, the one-line stty block and two wordings. Line numbers are at 1d99353.

Should fix

  1. The removal guard cannot tell a development clone from the install (docs/install-single-host.md §9, the rm -rf "$checkout" line). A synthetic repo at an exact tag with ignored .env and notes/ files passed the whole guard. git status --porcelain does not list ignored files, stashes or other branches, so rm -rf deletes them. An unreplaced placeholder fails safe. Decide: add git status --porcelain --ignored minus .venv/, check git stash list is empty, or record the limit.
  2. snapshots= probes only the Mirror's volume (host.py:223). The install document (§5) says present means snapshots hold "the store and the key". The key, the salt and the Tombstone store may sit on another volume. Probe each of those volumes, or narrow the sentence. A snapshot that Time Machine did not make (for example Carbon Copy Cloner) reports none; record that limit.

Test gaps

  1. Worst-value order in report (host.py:219-220). Reporting the last value that is not excluded, in place of the first, passes every test. Add a case where the two store directories give two different non-excluded values.
  2. _contain_faults runs before start() (cli.py:114-115). Moving the call after start() passes every test. A warning raised during start() would then escape uncontained.

Notes

  1. A link to an ancestor of the root, to $HOME or to / makes the check walk that whole tree. Nothing bounds the walk, and under $HOME the ~/Library ACL then fails closed (a false positive). Unlikely in a .venv; decide whether to cap the walk.
  2. The threading.excepthook replacement (cli.py:84) reports SystemExit in a thread as a fault; the default hook ignores it.
  3. A NUL in the root path makes root.resolve() in writable_by_others raise ValueError, which is not caught (host.py:195,201). The callers pass sys.prefix and __file__, so it is unreachable today. Older than #71.
  4. The secrets directory rename to secrets.noindex has no migration step. An install that followed the older document keeps secrets/, and the §9 removal no longer names it. rmdir then fails visibly, so the leftover is noticed. Decide whether §9 names the old directory.
  5. check is a one-time probe. A tree that is safe at check time can change before launch. Inherent; record it in §5 "What check does not see" if the operator wants it stated.

Acceptance criteria

  • Items 1 and 2 are fixed, or each has a recorded decision.
  • Items 3 and 4 each have a test that a hand mutation fails.
  • Items 5 to 9 are fixed, or each has a recorded decision.

Triage decisions (2026-11-16)

The operator accepted these decisions ("Yes, my way").

  • Item 1 (removal guard). Make the §9 guard safe. It must stop unless all of these hold:
    • git -C "$checkout" rev-parse --show-toplevel equals $checkout;
    • git status --porcelain --ignored exits 0 and lists nothing except .venv/;
    • git stash list is empty.
      Test the exit code of each command, never only its output.
  • Item 2 (snapshot coverage). Narrow the sentences, do not widen the probe. §5 and README say that snapshots= reports only names that start with com.apple.TimeMachine. on the store directory's volume. They also say that the key, the salt and the Tombstone store may sit on another volume, and that other snapshots (macOS update, other tools) are not seen. Add a test with an unrecognised snapshot name. §9 names the same mount point that check probes. Any ADR 0007 wording change is a draft for the operator and mind-spec only.
  • Unresolved path to each root. Check the components of the unresolved sys.prefix, sys.base_prefix and __file__ paths with the same hop rule, so that a link through a directory that others can write fails check.
  • uv .venv/.lock mode 0666. Keep the check fail-closed. §2 says why the chmod -R go-w step is required and that a later uv run in the checkout undoes it.
  • Items 3 and 4 and the other test gaps. Add a test for each one, and show that a hand mutation fails it.
  • Item 5 (unbounded walk). Cap the walk and fail closed when the cap is reached.
  • Item 6 (SystemExit in a thread). Match the default hook: ignore SystemExit.
  • Item 7 (NUL ValueError). Catch ValueError with OSError and fail closed with no traceback.
  • Item 8 (secrets/ to secrets.noindex). §9 also names the old secrets/ directory.
  • Item 9 (one-time probe). Record it in §5 "What check does not see".
  • Three checks covered twice (defence in depth). Keep them, with a comment that names the overlap.

Sequencing

Run SVD after #65, #78 and #75 merge, one at a time, because all of them write README.md.

Blocked by

  • #56 (PR #71 writes host.py, cli.py and docs/install-single-host.md)

Filed under: operator grant "I grant authority to file tickets, merge T4, label/de-label svd:go, continue svd and batch-svd (with auto-gate)" (2026-11-15)

Findings from the two fresh reviews of PR #71 (#56) at `1d99353` that the merge-gate rework does not fix. The rework fixes the symlink-hop blocker, the link-check test gaps, the one-line `stty` block and two wordings. Line numbers are at `1d99353`. ## Should fix 1. **The removal guard cannot tell a development clone from the install** (`docs/install-single-host.md` §9, the `rm -rf "$checkout"` line). A synthetic repo at an exact tag with ignored `.env` and `notes/` files passed the whole guard. `git status --porcelain` does not list ignored files, stashes or other branches, so `rm -rf` deletes them. An unreplaced placeholder fails safe. Decide: add `git status --porcelain --ignored` minus `.venv/`, check `git stash list` is empty, or record the limit. 2. **`snapshots=` probes only the Mirror's volume** (`host.py:223`). The install document (§5) says `present` means snapshots hold "the store and the key". The key, the salt and the Tombstone store may sit on another volume. Probe each of those volumes, or narrow the sentence. A snapshot that Time Machine did not make (for example Carbon Copy Cloner) reports `none`; record that limit. ## Test gaps 3. **Worst-value order in `report`** (`host.py:219-220`). Reporting the last value that is not `excluded`, in place of the first, passes every test. Add a case where the two store directories give two different non-excluded values. 4. **`_contain_faults` runs before `start()`** (`cli.py:114-115`). Moving the call after `start()` passes every test. A warning raised during `start()` would then escape uncontained. ## Notes 5. A link to an ancestor of the root, to `$HOME` or to `/` makes the check walk that whole tree. Nothing bounds the walk, and under `$HOME` the `~/Library` ACL then fails closed (a false positive). Unlikely in a `.venv`; decide whether to cap the walk. 6. The `threading.excepthook` replacement (`cli.py:84`) reports `SystemExit` in a thread as a fault; the default hook ignores it. 7. A NUL in the root path makes `root.resolve()` in `writable_by_others` raise `ValueError`, which is not caught (`host.py:195,201`). The callers pass `sys.prefix` and `__file__`, so it is unreachable today. Older than #71. 8. The secrets directory rename to `secrets.noindex` has no migration step. An install that followed the older document keeps `secrets/`, and the §9 removal no longer names it. `rmdir` then fails visibly, so the leftover is noticed. Decide whether §9 names the old directory. 9. `check` is a one-time probe. A tree that is safe at check time can change before launch. Inherent; record it in §5 "What `check` does not see" if the operator wants it stated. ## Acceptance criteria - Items 1 and 2 are fixed, or each has a recorded decision. - Items 3 and 4 each have a test that a hand mutation fails. - Items 5 to 9 are fixed, or each has a recorded decision. ## Triage decisions (2026-11-16) The operator accepted these decisions ("Yes, my way"). - **Item 1 (removal guard).** Make the §9 guard safe. It must stop unless all of these hold: - `git -C "$checkout" rev-parse --show-toplevel` equals `$checkout`; - `git status --porcelain --ignored` exits 0 and lists nothing except `.venv/`; - `git stash list` is empty. Test the exit code of each command, never only its output. - **Item 2 (snapshot coverage).** Narrow the sentences, do not widen the probe. §5 and README say that `snapshots=` reports only names that start with `com.apple.TimeMachine.` on the store directory's volume. They also say that the key, the salt and the Tombstone store may sit on another volume, and that other snapshots (macOS update, other tools) are not seen. Add a test with an unrecognised snapshot name. §9 names the same mount point that `check` probes. Any ADR 0007 wording change is a draft for the operator and mind-spec only. - **Unresolved path to each root.** Check the components of the unresolved `sys.prefix`, `sys.base_prefix` and `__file__` paths with the same hop rule, so that a link through a directory that others can write fails `check`. - **uv `.venv/.lock` mode 0666.** Keep the check fail-closed. §2 says why the `chmod -R go-w` step is required and that a later `uv` run in the checkout undoes it. - **Items 3 and 4 and the other test gaps.** Add a test for each one, and show that a hand mutation fails it. - **Item 5 (unbounded walk).** Cap the walk and fail closed when the cap is reached. - **Item 6 (`SystemExit` in a thread).** Match the default hook: ignore `SystemExit`. - **Item 7 (NUL `ValueError`).** Catch `ValueError` with `OSError` and fail closed with no traceback. - **Item 8 (`secrets/` to `secrets.noindex`).** §9 also names the old `secrets/` directory. - **Item 9 (one-time probe).** Record it in §5 "What `check` does not see". - **Three checks covered twice (defence in depth).** Keep them, with a comment that names the overlap. ## Sequencing Run SVD after #65, #78 and #75 merge, one at a time, because all of them write `README.md`. ## Blocked by - #56 (PR #71 writes `host.py`, `cli.py` and `docs/install-single-host.md`) --- Filed under: operator grant "I grant authority to file tickets, merge T4, label/de-label svd:go, continue svd and batch-svd (with auto-gate)" (2026-11-15)
Author
Member

Additions from the fresh reviews of PR #71 at 21eaf29 (merge-gate rounds 2 and 3). Round 4 of #71 fixes the ownership-ignoring hop; the items below stay here.

  • Item 2 update. #71 now words snapshots=present as presence of local Time Machine snapshots on the probed store volume, with no expiry bound (mind-spec ratification direction). Still open: the Tombstone store, the key and the salt on another volume are not probed, and install §9 hard-codes tmutil listlocalsnapshots / and deletelocalsnapshots /, while check probes the store directory's real mount (for example /System/Volumes/Data). Decide whether §9 names the mount point that check uses.
  • Item 1 addition. git -C "$checkout" describe and status walk up to a parent repository, so the guard does not prove that $checkout is a repository top-level. Consider [ "$(git -C "$checkout" rev-parse --show-toplevel)" = "$checkout" ].
  • Item 7 addition. A ValueError from os.lstat in the middle of a link chain also escapes writable_by_others (host.py, the outer handler catches OSError and RuntimeError only). The check does not pass, but check would print a traceback. A real filesystem cannot produce it.
  • New note. The hop counter is shared with links met as ancestor components (/var -> private/var), so an owner-only chain of 40 links through /var/tmp fails while 39 passes. No practical effect: the macOS kernel stops at 32 links.
  • New test gap. Three checks have no test that kills their removal, because another check covers the same directories: ancestors(target) in the ancestor-link branch, ancestors(target) for a file target, and _ownership_uncertain on a directory target. Decide whether to keep them as defence in depth with a comment, or to remove them.

This was generated by AI during the #71 merge gate.

Additions from the fresh reviews of PR #71 at `21eaf29` (merge-gate rounds 2 and 3). Round 4 of #71 fixes the ownership-ignoring hop; the items below stay here. - **Item 2 update.** #71 now words `snapshots=present` as presence of local Time Machine snapshots on the probed store volume, with no expiry bound (mind-spec ratification direction). Still open: the Tombstone store, the key and the salt on another volume are not probed, and install §9 hard-codes `tmutil listlocalsnapshots /` and `deletelocalsnapshots /`, while `check` probes the store directory's real mount (for example `/System/Volumes/Data`). Decide whether §9 names the mount point that `check` uses. - **Item 1 addition.** `git -C "$checkout" describe` and `status` walk up to a parent repository, so the guard does not prove that `$checkout` is a repository top-level. Consider `[ "$(git -C "$checkout" rev-parse --show-toplevel)" = "$checkout" ]`. - **Item 7 addition.** A `ValueError` from `os.lstat` in the middle of a link chain also escapes `writable_by_others` (`host.py`, the outer handler catches `OSError` and `RuntimeError` only). The check does not pass, but `check` would print a traceback. A real filesystem cannot produce it. - **New note.** The hop counter is shared with links met as ancestor components (`/var -> private/var`), so an owner-only chain of 40 links through `/var/tmp` fails while 39 passes. No practical effect: the macOS kernel stops at 32 links. - **New test gap.** Three checks have no test that kills their removal, because another check covers the same directories: `ancestors(target)` in the ancestor-link branch, `ancestors(target)` for a file target, and `_ownership_uncertain` on a directory target. Decide whether to keep them as defence in depth with a comment, or to remove them. > *This was generated by AI during the #71 merge gate.*
Author
Member

Additions from the two fresh reviews of PR #71 at ecd61ee (merge-gate round 4). Neither review found a blocker. Line numbers are at ecd61ee.

Filed under: #56 merge gate, round 4 reviews of PR #71.

Should fix

  • Item 1 addition: the guard passes when git status fails (docs/install-single-host.md:280). In a synthetic tagged repo with a corrupted .git/index, git status --porcelain exits 128 with empty output, so [ -z "$(…)" ] is true and rm -rf would run. Test the exit code, for example s=$(git -C "$checkout" status --porcelain --ignored) && [ -z "$s" ]. The base guard had no status check at all, so this is not a regression.
  • The unresolved path to each root is never checked (cli.py:26-27, host.py:220). cli._check resolves sys.prefix, sys.base_prefix and __file__ before the check runs. A link component on the path that Python and launchd use (for example a @CHECKOUT@ from $PWD that keeps a link) is not checked. A reviewer showed it with a link to an owner-only venv placed in a 0777 directory: the check returns False. So README line 463 ("check fails when … another user can write to the environment or code directory") claims too much. The claim predates #71. Decide: check the unresolved path's components with the hop rule, or narrow the sentence.
  • uv creates .venv/.lock with mode 0666, even under umask 077. writable_by_others(sys.prefix) then returns True on any venv that uv has touched since the §2 chmod -R go-w … "$checkout/.venv". Both the development checkout and a fresh clone return True, and both return False when only that file's mode is masked. The check fails closed, so this is a false positive, not a hole. Decide: say in §2 why the chmod step is required and that any later uv run in the checkout undoes it, or tell check to ignore uv's lock file (only with a reason recorded). This affects the Open Risk 5 post-merge check.
  • snapshots=none covers less than the ADR wording (host.py:99). Only lines that start with com.apple.TimeMachine. count. ADR 0007 Amendment 1 item 2 says Time Machine "can make other local snapshots, for example for a macOS update". A com.apple.os.update-* snapshot, or one from another tool, can hold the store while check reports none. This extends item 2. The reviewer could not confirm what the real tmutil listlocalsnapshots lists, because running it is forbidden. Fixing this is an ADR wording change, so it needs ratification.

Test gaps

  • Item 3 addition. The worst rule for spotlight= has no test. The mutation sp = probes[0][1] survives test_host.py and test_config_cli.py.
  • Every ownership-ignoring test mocks statfs (tests/test_host.py:36, 404, 775, 865, 892). A real statfs follows links, and the mocks do not model that. A real hdiutil attach -owners off image passed every case in both round-4 reviews and in the architect probe, but no test pins this. volume_only_at_hop=True (:865, :892) models a layout that cannot exist. A hop link's own volume is always the volume of its parent directory, which is checked as an ancestor.
  • Redundant-check survivors at ecd61ee. These mutations do not change the result: dropping ancestors(target) in the ancestor-link branch, dropping it for a file target, and not sharing the hop counter (a loop still fails closed through RuntimeError). Removing the parent canonicalisation in follow_link, the time_machine ValueError guard, or the com.apple. snapshot prefix also survives. Decide whether each check stays as defence in depth, with a comment saying so, or goes.

Notes

  • statfs on a hop link (host.py:172) follows the link, so it reads the target's volume. It does not fail open, for the reason above.
  • report(()) with no stores gives timemachine=excluded spotlight=excluded and can be ok (host.py:233-250). cli always passes two paths, so a user cannot reach this.
  • install-single-host.md:45 says other users must not be able to write the roots "or their ancestors". host.py:205 accepts a sticky world-writable ancestor, which is sound. The document should say so.
  • install-single-host.md:164 ("does not see") is accurate only because it is scoped to ownership checks. Hop links and foreign-device ancestors are also statfs'd.
  • An unexpected exception from start() in check re-raises at cli.py:128 with a full traceback. Fault containment covers only sync and forget (item 12 scope). This predates #71.
  • No code checks the Feeder socket's directory (source.py:74 checks only the socket's mode). The "0700 directory the Owner owns" wording in README, SECURITY.md and ADR 0011 Amendment 1 is a requirement on the Feeder.
Additions from the two fresh reviews of PR #71 at `ecd61ee` (merge-gate round 4). Neither review found a blocker. Line numbers are at `ecd61ee`. Filed under: #56 merge gate, round 4 reviews of PR #71. ## Should fix - **Item 1 addition: the guard passes when `git status` fails** (`docs/install-single-host.md:280`). In a synthetic tagged repo with a corrupted `.git/index`, `git status --porcelain` exits 128 with empty output, so `[ -z "$(…)" ]` is true and `rm -rf` would run. Test the exit code, for example `s=$(git -C "$checkout" status --porcelain --ignored) && [ -z "$s" ]`. The base guard had no status check at all, so this is not a regression. - **The unresolved path to each root is never checked** (`cli.py:26-27`, `host.py:220`). `cli._check` resolves `sys.prefix`, `sys.base_prefix` and `__file__` before the check runs. A link component on the path that Python and launchd use (for example a `@CHECKOUT@` from `$PWD` that keeps a link) is not checked. A reviewer showed it with a link to an owner-only venv placed in a 0777 directory: the check returns False. So README line 463 ("`check` fails when … another user can write to the environment or code directory") claims too much. The claim predates #71. Decide: check the unresolved path's components with the hop rule, or narrow the sentence. - **uv creates `.venv/.lock` with mode 0666, even under `umask 077`.** `writable_by_others(sys.prefix)` then returns True on any venv that uv has touched since the §2 `chmod -R go-w … "$checkout/.venv"`. Both the development checkout and a fresh clone return True, and both return False when only that file's mode is masked. The check fails closed, so this is a false positive, not a hole. Decide: say in §2 why the `chmod` step is required and that any later `uv` run in the checkout undoes it, or tell `check` to ignore uv's lock file (only with a reason recorded). This affects the Open Risk 5 post-merge check. - **`snapshots=none` covers less than the ADR wording** (`host.py:99`). Only lines that start with `com.apple.TimeMachine.` count. ADR 0007 Amendment 1 item 2 says Time Machine "can make other local snapshots, for example for a macOS update". A `com.apple.os.update-*` snapshot, or one from another tool, can hold the store while `check` reports `none`. This extends item 2. The reviewer could not confirm what the real `tmutil listlocalsnapshots` lists, because running it is forbidden. Fixing this is an ADR wording change, so it needs ratification. ## Test gaps - **Item 3 addition.** The worst rule for `spotlight=` has no test. The mutation `sp = probes[0][1]` survives `test_host.py` and `test_config_cli.py`. - **Every ownership-ignoring test mocks `statfs`** (`tests/test_host.py:36, 404, 775, 865, 892`). A real `statfs` follows links, and the mocks do not model that. A real `hdiutil attach -owners off` image passed every case in both round-4 reviews and in the architect probe, but no test pins this. `volume_only_at_hop=True` (`:865`, `:892`) models a layout that cannot exist. A hop link's own volume is always the volume of its parent directory, which is checked as an ancestor. - **Redundant-check survivors at `ecd61ee`.** These mutations do not change the result: dropping `ancestors(target)` in the ancestor-link branch, dropping it for a file target, and not sharing the hop counter (a loop still fails closed through `RuntimeError`). Removing the parent canonicalisation in `follow_link`, the `time_machine` `ValueError` guard, or the `com.apple.` snapshot prefix also survives. Decide whether each check stays as defence in depth, with a comment saying so, or goes. ## Notes - `statfs` on a hop link (`host.py:172`) follows the link, so it reads the target's volume. It does not fail open, for the reason above. - `report(())` with no stores gives `timemachine=excluded spotlight=excluded` and can be `ok` (`host.py:233-250`). `cli` always passes two paths, so a user cannot reach this. - `install-single-host.md:45` says other users must not be able to write the roots "or their ancestors". `host.py:205` accepts a sticky world-writable ancestor, which is sound. The document should say so. - `install-single-host.md:164` ("does not see") is accurate only because it is scoped to ownership checks. Hop links and foreign-device ancestors are also statfs'd. - An unexpected exception from `start()` in `check` re-raises at `cli.py:128` with a full traceback. Fault containment covers only `sync` and `forget` (item 12 scope). This predates #71. - No code checks the Feeder socket's directory (`source.py:74` checks only the socket's mode). The "0700 directory the Owner owns" wording in README, SECURITY.md and ADR 0011 Amendment 1 is a requirement on the Feeder.
Author
Member

mind-spec ratification ruling for PR #71 at ecd61ee03bd60420641864655c0de49230838f51: the snapshot coverage item remains a follow-up in #72 and does not require another rework round for #71.

At this head, snapshots=none means the probe found no returned name starting with com.apple.TimeMachine. on the probed store volume. It does not establish the absence of com.apple.os.update-*, third-party snapshots, snapshots on another volume, backups, or other recoverable copies, and it is not evidence that Forget has completed. The field remains advisory.

Apple documents hourly snapshots, a last-successful-backup snapshot, and a snapshot before macOS updates. That source does not establish the names or completeness of this probe's output. Retain the follow-up to make the diagnostic's name/volume coverage explicit or widen it on evidence, with tests for unrecognised snapshot names. Any resulting ADR amendment still requires its own exact-head ratification. The current operator policy remains: Time Machine stays on, the service never deletes snapshots, and the split shape is unchanged.

mind-spec ratification ruling for PR #71 at `ecd61ee03bd60420641864655c0de49230838f51`: the snapshot coverage item remains a follow-up in #72 and does not require another rework round for #71. At this head, `snapshots=none` means the probe found no returned name starting with `com.apple.TimeMachine.` on the probed store volume. It does not establish the absence of `com.apple.os.update-*`, third-party snapshots, snapshots on another volume, backups, or other recoverable copies, and it is not evidence that Forget has completed. The field remains advisory. [Apple documents](https://support.apple.com/en-ca/102154) hourly snapshots, a last-successful-backup snapshot, and a snapshot before macOS updates. That source does not establish the names or completeness of this probe's output. Retain the follow-up to make the diagnostic's name/volume coverage explicit or widen it on evidence, with tests for unrecognised snapshot names. Any resulting ADR amendment still requires its own exact-head ratification. The current operator policy remains: Time Machine stays on, the service never deletes snapshots, and the split shape is unchanged.
Author
Member

This was generated by AI during triage.

The operator accepted the triage decisions on 2026-11-16. They are now in the issue body under "Triage decisions (2026-11-16)". State: ready-for-agent.

> *This was generated by AI during triage.* The operator accepted the triage decisions on 2026-11-16. They are now in the issue body under "Triage decisions (2026-11-16)". State: ready-for-agent.
Collaborator

⏸ SVD architect gate: dev/messages-mind-mcp#72 single-host-install-follow-ups-from-the-pr-71-reviews-remova

Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity substrate · dispatch effort high

Run: 20261116T114648Z-ff952958

Held because: CLEAN but 7 open risk(s) (1 sequencing · 2 verification · 4 decision) — HOLD-ALL parks everything. The risks, verbatim:

Open risks:

  1. The issue says to run SVD after #65, #78 and #75 merge (all write README.md). #65 (2f42311) and #78 (c67adfd) are closed by merged commits. No commit on main at c6c9e1f closes #75, and gh is denied in Half-A, so #75's state is unverified. [sequencing — blocked by #75]
  2. The triage says git status --porcelain --ignored must list nothing except .venv/. The agents run python3 -I without -B, so Python writes src/messages_mind_mcp/pycache/ and kit/pycache/ into the checkout; the dev clone shows both as !! entries this session. Taken literally, the guard refuses every install that has ever run. Question: accept the lean of also allowing pycache/ directories under src/ (and nothing else)? The alternative keeps the literal rule and adds a separate guarded pycache deletion step. [decision]
  3. Issue item 1 names 'other branches', but the triage lists only the top-level, ignored-files and stash checks. Lean: the §9 prose records that local branches that were never pushed are not checked, with no for-each-ref check. Question: is recording the limit enough? [decision]
  4. On a real Mac after merge, df -P "$store_dir" | sed -n '2s/^\([^ ]* *\)\{5\}//p' must print the same mount that check probes (expected /System/Volumes/Data on a standard install), and tmutil listlocalsnapshots "$store_volume" must exit 0. tmutil cannot run in the review sandboxes, and in this sandbox df reported / for /Users/piers. [verification]
  5. On the macOS gate host, test_the_removal_guard_keeps_a_checkout_it_cannot_prove must be reported as passed, not skipped, including its stash case (the Half-A sandbox denied git's exec of log). Then run check against a fresh uv sync --locked --no-dev --link-mode=clone checkout after the §2 chmod and confirm environment=owner-only code=owner-only, so that neither the unresolved-path check nor WALK_LIMIT=100000 gives a false positive. Record find .venv | wc -l and the sys.base_prefix entry count in the PR. [verification]
  6. These adjacent findings have no triage decision and are left untouched. server.py:185 (the api's threading.excepthook also reports SystemExit). Round 4 notes: report(()) can be ok; install :45 sticky-ancestor wording; the scope of install :164; a start() exception in check prints a traceback; no code checks the Feeder socket directory; the 40-link hop counter is shared with ancestor links. Round 4 test gaps: every statfs is mocked, with no real hdiutil -owners off image test, and volume_only_at_hop models an impossible layout. Other redundant-check survivors: hop-counter sharing, the follow_link parent canonicalisation, and the time_machine ValueError guard. Question: file them as a new follow-up issue (lean), or fold any into this slice? [decision]
  7. The ADR 0007 Amendment 1 item 4 wording stays unchanged; the PR body carries a narrowed draft. Question: does the operator send that draft to mind-spec for exact-head ratification after merge? [decision]

Change: Follow the existing writable_by_others closure in host.py:149-227 and reuse its ancestors, follow_link and unsafe helpers. Take unresolved = root.absolute() and resolve it. Bind root_dev, then run ancestors(unresolved) or unsafe(unresolved, ancestor=True) before unsafe_tree(root). Add a module WALK_LIMIT = 100_000 with one entry counter shared across the whole call in the os.walk loop (host.py:214); the walk fails closed past it. Widen the outer except to (OSError, RuntimeError, ValueError). Add a comment naming the overlap at the three defence-in-depth checks (host.py:192, 199, 212). In cli.py:42-43, pass the .absolute() roots instead of .resolve(). In cli.py:100, threading.excepthook ignores exc_type is SystemExit, matching CPython's default. Install §9: a one-line guard that tests every exit status: rev-parse --show-toplevel equals $checkout, describe --exact-match, s=$(git status --porcelain --ignored) filtered by sed to allow only .venv/ and src/**/pycache/, and stash list empty. The same block captures store_volume from df -P "$store_dir" for tmutil, and deletes the old secrets/ directory. Narrow the snapshots= wording in §5, README:14 and SECURITY:37. Add §2's uv .venv/.lock chmod sentence, plus the cap and one-time-probe sentences. The ADR stays a draft in the PR body. Tests mirror test_host.py:474-528 and test_config_cli.py:2252-2289. They include a behavioural git test of the §9 guard line, extracted from the document.

Files: src/messages_mind_mcp/host.py · src/messages_mind_mcp/cli.py · docs/install-single-host.md · README.md · SECURITY.md · tests/test_host.py · tests/test_config_cli.py · tests/test_layout.py

Decision: accept the 7 open risk(s) above and dispatch this spec (svd:go), or park (svd:skip) / re-spec (svd:respec)?

Your call (when this issue is held at the gate via svd:hold):

  • add label svd:go — approve; Half-B dispatch accepts exactly this spec (open risks accepted)
  • add label svd:fire beside svd:go — approve AND authorise the Half-B fire from the phone; never on its own
  • add label svd:skip — park it; dispatch refuses it and the issue stays for a human
  • add label svd:respec — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context

Spec: /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-16-single-host-install-follow-ups-from-the-pr-71-reviews-remova.md — next: codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-16-single-host-install-follow-ups-from-the-pr-71-reviews-remova.md

— messages-mind@voyager

### ⏸ SVD architect gate: dev/messages-mind-mcp#72 single-host-install-follow-ups-from-the-pr-71-reviews-remova **Status:** CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity `substrate` · dispatch effort `high` **Run:** `20261116T114648Z-ff952958` **Held because:** CLEAN but 7 open risk(s) (1 sequencing · 2 verification · 4 decision) — HOLD-ALL parks everything. The risks, verbatim: **Open risks:** 1. The issue says to run SVD after #65, #78 and #75 merge (all write README.md). #65 (2f42311) and #78 (c67adfd) are closed by merged commits. No commit on main at c6c9e1f closes #75, and gh is denied in Half-A, so #75's state is unverified. [sequencing — blocked by #75] 2. The triage says `git status --porcelain --ignored` must list nothing except .venv/. The agents run python3 -I without -B, so Python writes src/messages_mind_mcp/__pycache__/ and kit/__pycache__/ into the checkout; the dev clone shows both as !! entries this session. Taken literally, the guard refuses every install that has ever run. Question: accept the lean of also allowing __pycache__/ directories under src/ (and nothing else)? The alternative keeps the literal rule and adds a separate guarded __pycache__ deletion step. [decision] 3. Issue item 1 names 'other branches', but the triage lists only the top-level, ignored-files and stash checks. Lean: the §9 prose records that local branches that were never pushed are not checked, with no for-each-ref check. Question: is recording the limit enough? [decision] 4. On a real Mac after merge, `df -P "$store_dir" | sed -n '2s/^\([^ ]* *\)\{5\}//p'` must print the same mount that check probes (expected /System/Volumes/Data on a standard install), and `tmutil listlocalsnapshots "$store_volume"` must exit 0. tmutil cannot run in the review sandboxes, and in this sandbox df reported / for /Users/piers. [verification] 5. On the macOS gate host, test_the_removal_guard_keeps_a_checkout_it_cannot_prove must be reported as passed, not skipped, including its stash case (the Half-A sandbox denied git's exec of log). Then run check against a fresh `uv sync --locked --no-dev --link-mode=clone` checkout after the §2 chmod and confirm environment=owner-only code=owner-only, so that neither the unresolved-path check nor WALK_LIMIT=100000 gives a false positive. Record `find .venv | wc -l` and the sys.base_prefix entry count in the PR. [verification] 6. These adjacent findings have no triage decision and are left untouched. server.py:185 (the api's threading.excepthook also reports SystemExit). Round 4 notes: report(()) can be ok; install :45 sticky-ancestor wording; the scope of install :164; a start() exception in check prints a traceback; no code checks the Feeder socket directory; the 40-link hop counter is shared with ancestor links. Round 4 test gaps: every statfs is mocked, with no real hdiutil -owners off image test, and volume_only_at_hop models an impossible layout. Other redundant-check survivors: hop-counter sharing, the follow_link parent canonicalisation, and the time_machine ValueError guard. Question: file them as a new follow-up issue (lean), or fold any into this slice? [decision] 7. The ADR 0007 Amendment 1 item 4 wording stays unchanged; the PR body carries a narrowed draft. Question: does the operator send that draft to mind-spec for exact-head ratification after merge? [decision] **Change:** Follow the existing writable_by_others closure in host.py:149-227 and reuse its ancestors, follow_link and unsafe helpers. Take unresolved = root.absolute() and resolve it. Bind root_dev, then run ancestors(unresolved) or unsafe(unresolved, ancestor=True) before unsafe_tree(root). Add a module WALK_LIMIT = 100_000 with one entry counter shared across the whole call in the os.walk loop (host.py:214); the walk fails closed past it. Widen the outer except to (OSError, RuntimeError, ValueError). Add a comment naming the overlap at the three defence-in-depth checks (host.py:192, 199, 212). In cli.py:42-43, pass the .absolute() roots instead of .resolve(). In cli.py:100, threading.excepthook ignores exc_type is SystemExit, matching CPython's default. Install §9: a one-line guard that tests every exit status: rev-parse --show-toplevel equals $checkout, describe --exact-match, `s=$(git status --porcelain --ignored)` filtered by sed to allow only .venv/ and src/**/__pycache__/, and stash list empty. The same block captures `store_volume` from `df -P "$store_dir"` for tmutil, and deletes the old secrets/ directory. Narrow the snapshots= wording in §5, README:14 and SECURITY:37. Add §2's uv .venv/.lock chmod sentence, plus the cap and one-time-probe sentences. The ADR stays a draft in the PR body. Tests mirror test_host.py:474-528 and test_config_cli.py:2252-2289. They include a behavioural git test of the §9 guard line, extracted from the document. **Files:** `src/messages_mind_mcp/host.py` · `src/messages_mind_mcp/cli.py` · `docs/install-single-host.md` · `README.md` · `SECURITY.md` · `tests/test_host.py` · `tests/test_config_cli.py` · `tests/test_layout.py` **Decision:** accept the 7 open risk(s) above and dispatch this spec (`svd:go`), or park (`svd:skip`) / re-spec (`svd:respec`)? **Your call** (when this issue is held at the gate via `svd:hold`): - add label `svd:go` — approve; Half-B dispatch accepts exactly this spec (open risks accepted) - add label `svd:fire` **beside** `svd:go` — approve AND authorise the Half-B fire from the phone; never on its own - add label `svd:skip` — park it; dispatch refuses it and the issue stays for a human - add label `svd:respec` — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context <sub>Spec: `/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-16-single-host-install-follow-ups-from-the-pr-71-reviews-remova.md` — next: `codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-16-single-host-install-follow-ups-from-the-pr-71-reviews-remova.md`</sub> — messages-mind@voyager
Collaborator

spec-verify-dispatch Half B for dev/messages-mind-mcp#72 single-host-install-follow-ups-from-the-pr-71-reviews-remova completed integration verify.

  • PR: #101
  • Branch: feat/svd-dev-messages-mind-mcp-72-single-host-install-follow-e3feae73
  • Commit: 53b5d37b15
  • Build: none
  • Test: green
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: True
  • Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/75/pipeline/93/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: self-review: the sentence that any later uv command makes .venv/.lock writable again is broader than observed (uv run preserved an existing 0600 lock) -> not fixed: the spec requires and pins that sentence.
  • Warning: self-review: ADRs 0007 and 0011 keep broader snapshot-reporting wording -> not fixed: ADR edits are outside the write set. The PR carries an ADR 0007 draft for the operator and mind-spec.
  • Warning: The PR body has no ADR 0007 Amendment 1 item 4 draft or mutant table. The spec has no PR Body section, so this is not a blocker. The operator should add the draft before merge.
  • Warning: Live df/tmutil volume verification and the fresh production-install check remain operator checks, as the spec directs.
  • Warning: Scope note: the PR adds a tracked synthetic kit/init.py to a test fixture. This is inside tests/test_layout.py and is not a new file in the diff.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: review the PR and merge? (codex-svd ship --run-id 20261116T123255Z-e3feae73 --confirm-merge)
spec-verify-dispatch Half B for dev/messages-mind-mcp#72 single-host-install-follow-ups-from-the-pr-71-reviews-remova completed integration verify. - PR: https://git.groupthink.asia/dev/messages-mind-mcp/pulls/101 - Branch: feat/svd-dev-messages-mind-mcp-72-single-host-install-follow-e3feae73 - Commit: 53b5d37b15a8083783a6a477ff023ca42a3f67f3 - Build: none - Test: green - Reader audit clean: True - Spec fidelity: True - Ready for merge: True - Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/75/pipeline/93/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: self-review: the sentence that any later uv command makes .venv/.lock writable again is broader than observed (uv run preserved an existing 0600 lock) -> not fixed: the spec requires and pins that sentence. - Warning: self-review: ADRs 0007 and 0011 keep broader snapshot-reporting wording -> not fixed: ADR edits are outside the write set. The PR carries an ADR 0007 draft for the operator and mind-spec. - Warning: The PR body has no ADR 0007 Amendment 1 item 4 draft or mutant table. The spec has no PR Body section, so this is not a blocker. The operator should add the draft before merge. - Warning: Live df/tmutil volume verification and the fresh production-install `check` remain operator checks, as the spec directs. - Warning: Scope note: the PR adds a tracked synthetic kit/__init__.py to a test fixture. This is inside tests/test_layout.py and is not a new file in the diff. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: review the PR and merge? (`codex-svd ship --run-id 20261116T123255Z-e3feae73 --confirm-merge`)
Collaborator

spec-verify-dispatch Half B for dev/messages-mind-mcp#72 single-host-install-follow-ups-from-the-pr-71-reviews-remova completed integration verify.

  • PR: #101
  • Branch: feat/svd-dev-messages-mind-mcp-72-single-host-install-follow-e3feae73
  • Commit: 53b5d37b15
  • Build: none
  • Test: green
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: True
  • Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/75/pipeline/93/1
  • Checks: PR #101 head 53b5d37: ci/woodpecker/pr/validation green. Local full suite 1568 passed, 58 skipped. Mergeable.
  • Warning: self-review: the uv lock sentence (any later uv command makes .venv/.lock writable again) is broader than observed (uv run preserved an existing 0600 lock) -> not fixed: the spec requires and pins that sentence.
  • Warning: self-review: ADRs 0007 and 0011 retain broader snapshot-reporting wording -> not fixed: ADR edits are outside the write set; the ADR 0007 item 4 draft is supplied for the operator and mind-spec.
  • Warning: Operator checks remain: live df/tmutil volume verification and a fresh production-install check against a real uv sync --link-mode=clone checkout.
  • Decision: review the PR and merge? (codex-svd ship --run-id 20261116T123255Z-e3feae73 --confirm-merge)
spec-verify-dispatch Half B for dev/messages-mind-mcp#72 single-host-install-follow-ups-from-the-pr-71-reviews-remova completed integration verify. - PR: https://git.groupthink.asia/dev/messages-mind-mcp/pulls/101 - Branch: feat/svd-dev-messages-mind-mcp-72-single-host-install-follow-e3feae73 - Commit: 53b5d37b15a8083783a6a477ff023ca42a3f67f3 - Build: none - Test: green - Reader audit clean: True - Spec fidelity: True - Ready for merge: True - Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/75/pipeline/93/1 - Checks: PR #101 head 53b5d37: ci/woodpecker/pr/validation green. Local full suite 1568 passed, 58 skipped. Mergeable. - Warning: self-review: the uv lock sentence (any later uv command makes .venv/.lock writable again) is broader than observed (uv run preserved an existing 0600 lock) -> not fixed: the spec requires and pins that sentence. - Warning: self-review: ADRs 0007 and 0011 retain broader snapshot-reporting wording -> not fixed: ADR edits are outside the write set; the ADR 0007 item 4 draft is supplied for the operator and mind-spec. - Warning: Operator checks remain: live df/tmutil volume verification and a fresh production-install `check` against a real uv sync --link-mode=clone checkout. - Decision: review the PR and merge? (`codex-svd ship --run-id 20261116T123255Z-e3feae73 --confirm-merge`)
Collaborator

spec-verify-dispatch Half B for dev/messages-mind-mcp#72 single-host-install-follow-ups-from-the-pr-71-reviews-remova completed integration verify.

  • PR: #102
  • Branch: feat/svd-dev-messages-mind-mcp-72-single-host-install-follow-bca03f9a
  • Commit: 464e1d3fdc
  • Build: none
  • Test: green
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: True
  • Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/75/pipeline/94/1
  • Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll
  • Warning: Remote check ci/woodpecker/pr/validation is still pending; the runner must re-poll before merge.
  • Warning: The spec has no scenario table (it says so), so no scenario tracing applied. All 15 named tests in the Test Strategy table collect and pass; the removal-guard cases passed on macOS with no skips.
  • Warning: The PR body must carry the ADR 0007 Amendment 1 item 4 draft and the mutation table. The PR has no PR Body section in the spec, so the gate carries them in.
  • Warning: Real-Mac snapshot-volume and fresh uv sync --link-mode=clone production-install checks remain operator checks under the spec's Agent Adjustments.
  • Warning: No pristine-base make check baseline was measured here. Local run on the PR head had 713 passed, 0 failed, 0 skipped across the 3 touched suites. ruff check, ruff format --check and mypy were clean.
  • CI wait: ci/woodpecker/pr/validation -> pass
  • Decision: review the PR and merge? (codex-svd ship --run-id 20261116T130328Z-bca03f9a --confirm-merge)
spec-verify-dispatch Half B for dev/messages-mind-mcp#72 single-host-install-follow-ups-from-the-pr-71-reviews-remova completed integration verify. - PR: https://git.groupthink.asia/dev/messages-mind-mcp/pulls/102 - Branch: feat/svd-dev-messages-mind-mcp-72-single-host-install-follow-bca03f9a - Commit: 464e1d3fdc9587bd14235ad574460a3bff3eec9e - Build: none - Test: green - Reader audit clean: True - Spec fidelity: True - Ready for merge: True - Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/75/pipeline/94/1 - Checks: required ci/woodpecker/pr/validation resolved pass by CI-wait poll - Warning: Remote check ci/woodpecker/pr/validation is still pending; the runner must re-poll before merge. - Warning: The spec has no scenario table (it says so), so no scenario tracing applied. All 15 named tests in the Test Strategy table collect and pass; the removal-guard cases passed on macOS with no skips. - Warning: The PR body must carry the ADR 0007 Amendment 1 item 4 draft and the mutation table. The PR has no PR Body section in the spec, so the gate carries them in. - Warning: Real-Mac snapshot-volume and fresh `uv sync --link-mode=clone` production-install checks remain operator checks under the spec's Agent Adjustments. - Warning: No pristine-base `make check` baseline was measured here. Local run on the PR head had 713 passed, 0 failed, 0 skipped across the 3 touched suites. ruff check, ruff format --check and mypy were clean. - CI wait: ci/woodpecker/pr/validation -> pass - Decision: review the PR and merge? (`codex-svd ship --run-id 20261116T130328Z-bca03f9a --confirm-merge`)
svc-svd-writer 2026-11-16 13:35:17 +00:00
  • closed this issue
  • removed the
    svd:go
    label
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#72
No description provided.