Single-host install: close the decisions, hardening items and test gaps from the PR #55 reviews #56
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/messages-mind-mcp#56
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?
PR #55 (issue #25, the single-host install) merged as
381b3e8, pinned to the gated head105f56d. A correctness review and a security review ran before each of its three rework rounds; the last pair reviewed105f56dand found no blocker. The items below were found and not fixed in that PR. Each was checked against the code by its reviewer. "Mutation survives" means the change left the full suite green.Decision for the operator
docs/install-single-host.mdsection 9 says that Time Machine local snapshots cover the whole volume, exclusions included, so the store and key stay recoverable until those snapshots expire (about 24 hours). ADR 0007 says "There is no replica and no snapshot of the Mirror" and rejects snapshots because a Forgotten message would stay in them. The same limit applies to a Forget or an Unsend on a Mac with Time Machine on, and only the removal section says so. Decide one of two: amend ADR 0007 and ADR 0011 to state the limit for the single-host shape, or require local snapshots off for that shape and makecheckreport them. ADRs are an operator surface.SECURITY.mdand the install document now say that the build backendhatchlingis not hashed, and that the test checks rather than proves. Amend ADR 0011 to match.Should fix
host.py, reproduced)._ownership_uncertainruns only on the resolved root. A volume mounted with ownership ignored, inside an owner-only tree, passes. Fix: runstatfsagain on every entry whosest_devdiffers from the root's.host.py, reproduced; the spec allows the skip). With uvlink-mode = "symlink"(UV_LINK_MODEoruv.toml), all of site-packages is a set of links into the uv cache, which the check never reads. Fix: check each link target that resolves outside the checked roots, or pin--link-mode=clonein install section 1.checkprobes the configured store directory, not the resolved store (cli.py, reproduced). Amirror.dbthat is a symlink into an included, indexed directory reportstimemachine=excluded spotlight=excluded, while the store opens the resolved path.tombstone_pathis not probed at all. Fix: probecfg.store.path.resolve().parentand the tombstone directory.checkcan print a traceback with the home path (host.pyspotlight, reproduced). A store path with a NUL makesresolve()raiseValueError, which no handler catches. Fix: answerunknownonValueError.stty -echoaround thecat, and tell the operator to clear the clipboard.$secrets_dirand its Time Machine exclusion.sedwrites/.venv/bin/python3into the plists. Restate the variables at the start of each section, as section 9 does.tmutil removeexclusionon a deleted path always fails (reproduced: "Error (100002) … Invalid argument"), so the guarded lines in section 9 do nothing, and "may report that a deleted path is absent" does not match the output. Correct the sentence or drop the lines.~/Library/Logs/messagesmind/sync.log, which is not excluded from Time Machine and not.noindex. No path from Feeder data into an unwrapped exception was found.Test gaps
host.pychecking only the first parent survives. Every ancestor test usestree.parent. Add a test with a 0777 grandparent and one with an allow ACL on a grandparent.statfs$INODE64branch: changing the lookup tolibc.statfssurvives, because the R8 tests patchCDLLwithMock(spec=["statfs"]). On x86_64 the plain symbol reads the old struct layout (checked under Rosetta). Add a test that requires the suffix lookup when the symbol exists.test_check_passes_the_store_directory_to_the_host_probesdoes not catch dropping.resolve()fromsys.prefixor the code path.Notes
checkrunsstatfsonly on the environment and code roots, not on the store or secrets volumes; the install document says so. Filesystems that synthesize permissions (exFAT with-m, SMB) are not detected.base_prefixonly. Libraries the interpreter loads from outside it (Homebrew OpenSSL and sqlite) are not checked..venv/bin/pythonpoints at uv's floating interpreter link, souv python upgradechanges the interpreter; "the locked interpreter" is slightly overstated..noindex. The key files have no extension, so the content-indexing risk is low.time_machinedoes not resolve a symlinked store directory, althoughspotlightdoes.tmutilfollows the link, so there is no bypass.Acceptance criteria
Triage rulings (2026-11-15)
Operator word "accept leans / after #13, triage #58 and dispatch" (sha256:a999fb29c997).
checkreports local snapshots. Time Machine stays on.hatchlingis not hashed; the outbound test "checks", not "proves"; the socket is "in a 0700 directory the Owner owns". The same amendment holds the local-snapshot limit of ruling 3A.ready-for-agent. The follow-ups #52, #54 and #56 run one at a time, after #13 and #58.Blocked by
Filed under: operator word "Merge 55" sha256:77a1ca0d2853
Moved to
ready-for-agentunder ruling 8. Items 1 and 2 are decided: rulings 3A and 4 amend ADR 0007 and ADR 0011. The amendment text needs the operator's approval before the merge. The body now holds the rulings. Dispatch waits for the operator'ssvd:go, after #54.⏸ SVD architect gate: dev/messages-mind-mcp#56 single-host-install-close-the-decisions-hardening-items-and
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 efforthighRun:
20261115T045007Z-9db300a9Held because: CLEAN but 7 open risk(s) (3 verification · 4 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
Change: host.py: move the statfs call out of _ownership_uncertain (host.py:40-49) into _statfs(path) and keep the statfs$INODE64-first lookup. writable_by_others (host.py:119-146) keeps its signature and gains three things: a statfs check on every walked entry whose st_dev differs from the root's (item 3); a check of each symlink's resolved target, done once through a shared seen-set, when the target lies outside the root, with dangling links failing closed (item 4); and ValueError added to the handlers in spotlight and time_machine (item 6). report() changes to take the store file paths (Mirror, Tombstone store). It resolves each parent in a try that catches OSError, RuntimeError and ValueError, and the worst probe result wins (item 5, Note 7). A new local_snapshots() runs tmutil listlocalsnapshots on the store volume's mount point, written like time_machine (host.py:52-70). Its result is appended as a final snapshots= field and never changes the ok flag (ruling 3A). cli.py:23-27 passes (cfg.store.path, cfg.store.tombstone_path). A new _contain_faults(verb) for sync and forget mirrors server.configure_logs:184-186 and writes one stderr line holding only the class name (item 12). Docs: append Amendment 1 to ADR 0007 and ADR 0011, shaped like ADR 0010 Amendment 1 (0010:54-60), using the draft text in the spec. Install doc: --link-mode=clone; stty -echo and pbcopy clearing; Consumer token command; variables restated in sections 3, 5 and 6 but not 7; an explicit checkout path plus a git tag/clean guard in section 9; the tmutil removeexclusion lines dropped with a sticky-exclusion sentence; a snapshots field and limits paragraph; the secrets directory renamed to secrets.noindex. README and SECURITY.md wording aligned. The tests_layout.py exact-text assertions are updated in place.
Files:
src/messages_mind_mcp/host.py·src/messages_mind_mcp/cli.py·docs/install-single-host.md·docs/adr/0007-store-encryption-and-backup.md·docs/adr/0011-deployment-shapes-split-and-single-host.md·README.md·SECURITY.md·tests/test_host.py·tests/test_config_cli.py·tests/test_layout.pyDecision: 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):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-15-single-host-install-close-the-decisions-hardening-items-and.md— next:codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-15-single-host-install-close-the-decisions-hardening-items-and.mdspec-verify-dispatch Half B for dev/messages-mind-mcp#56 single-host-install-close-the-decisions-hardening-items-and completed integration verify.
1d993539a3codex-svd ship --run-id 20261115T111801Z-b1de244a --confirm-merge)spec-verify-dispatch Half B for dev/messages-mind-mcp#56 single-host-install-close-the-decisions-hardening-items-and completed integration verify.
b85c20d888make check. Ruff, format and mypy did not run in this invocation.codex-svd ship --run-id 20261115T111801Z-b1de244a --confirm-merge)spec-verify-dispatch Half B for dev/messages-mind-mcp#56 single-host-install-close-the-decisions-hardening-items-and completed integration verify.
ee5d922a93python3 -m pytest --collect-onlyfails here with No module named tiktoken (conftest). Collection and tests ran underuv run, which provisions the dependencies.codex-svd ship --run-id 20261115T111801Z-b1de244a --confirm-merge)spec-verify-dispatch Half B for dev/messages-mind-mcp#56 single-host-install-close-the-decisions-hardening-items-and completed integration verify.
21eaf29cc4codex-svd ship --run-id 20261115T111801Z-b1de244a --confirm-merge)spec-verify-dispatch Half B for dev/messages-mind-mcp#56 single-host-install-close-the-decisions-hardening-items-and completed integration verify.
ecd61ee03bcodex-svd ship --run-id 20261115T111801Z-b1de244a --confirm-merge)