Harden single-host checks and installation guidance #71

Merged
Collaborator

Check mounted volumes and external symlink targets, probe both resolved stores, and report local snapshots without affecting check success. Contain sync and forget faults and warnings without exposing messages or tracebacks.

Apply the approved ADR amendments and update installation, removal, security guidance and regression tests.

Validation: lint, formatting and mypy passed; full suite 1311 passed, 59 skipped; focused suite 545 passed, 1 skipped. The real Time Machine test was excluded as required. All 24 specified scenario filters passed.

Closes #56
Co-Authored-By: gpt-6.1-sol noreply@openai.com

Check mounted volumes and external symlink targets, probe both resolved stores, and report local snapshots without affecting check success. Contain sync and forget faults and warnings without exposing messages or tracebacks. Apply the approved ADR amendments and update installation, removal, security guidance and regression tests. Validation: lint, formatting and mypy passed; full suite 1311 passed, 59 skipped; focused suite 545 passed, 1 skipped. The real Time Machine test was excluded as required. All 24 specified scenario filters passed. Closes #56 Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Harden single-host checks and installation guidance
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
1d993539a3
Check mounted volumes and external symlink targets, probe both resolved stores, and report local snapshots without affecting check success. Contain sync and forget faults and warnings without exposing messages or tracebacks.

Apply the approved ADR amendments and update installation, removal, security guidance and regression tests.

Validation: lint, formatting and mypy passed; full suite 1311 passed, 59 skipped; focused suite 545 passed, 1 skipped. The real Time Machine test was excluded as required. All 24 specified scenario filters passed.

Closes #56
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>

ADR ratification: HOLD, reviewed head 1d993539a378baaa94ac65e899fde877377f2ace. No ADR ratification has been given yet. The two additive amendments preserve the shared contract, and the runtime-lockfile, audit-hook and socket wording corrections are acceptable.

Before ratification, clarify the snapshot claims consistently in ADR 0007, ADR 0011 and affected README/SECURITY/install prose:

  • The roughly 24-hour hourly-snapshot policy is not a guaranteed recovery or erasure deadline. Apple documents an additional last-successful-backup snapshot retained until space is needed and snapshots before updates. Recovery remains possible while a relevant snapshot and its key remain.
  • The installed tmutil(8) manual says deletelocalsnapshots deletes local Time Machine snapshots on the specified volume. It does not promise removal of every APFS snapshot or copies on other volumes. Do not claim that this command alone makes Forget immediate; existing WAL/busy-reader limits also remain.
  • snapshots=present only establishes Time Machine snapshot names on the probed store volume. It does not establish snapshot age/content, whether the store/key existed then, or whether a separate key volume has snapshots. Correct the installation guide accordingly.

This ratification direction preserves the operator policy: Time Machine stays on, the diagnostic is advisory, the service never deletes snapshots, and the split shape is unchanged. No live snapshot deletion or product-behavior change is requested. Send the revised exact head and fresh validation after the independent symlink repair; the ratification will name that head.

ADR ratification: **HOLD**, reviewed head `1d993539a378baaa94ac65e899fde877377f2ace`. No ADR ratification has been given yet. The two additive amendments preserve the shared contract, and the runtime-lockfile, audit-hook and socket wording corrections are acceptable. Before ratification, clarify the snapshot claims consistently in ADR 0007, ADR 0011 and affected README/SECURITY/install prose: - The roughly 24-hour hourly-snapshot policy is not a guaranteed recovery or erasure deadline. [Apple documents](https://support.apple.com/en-ca/102154) an additional last-successful-backup snapshot retained until space is needed and snapshots before updates. Recovery remains possible while a relevant snapshot and its key remain. - The installed `tmutil(8)` manual says `deletelocalsnapshots` deletes local **Time Machine** snapshots on the specified volume. It does not promise removal of every APFS snapshot or copies on other volumes. Do not claim that this command alone makes Forget immediate; existing WAL/busy-reader limits also remain. - `snapshots=present` only establishes Time Machine snapshot names on the probed store volume. It does not establish snapshot age/content, whether the store/key existed then, or whether a separate key volume has snapshots. Correct the installation guide accordingly. This ratification direction preserves the operator policy: Time Machine stays on, the diagnostic is advisory, the service never deletes snapshots, and the split shape is unchanged. No live snapshot deletion or product-behavior change is requested. Send the revised exact head and fresh validation after the independent symlink repair; the ratification will name that head.
Check every symlink hop in single-host ownership probes
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
b85c20d888
Inspect each hop's ownership, ACL and ancestors before following it, and fail closed beyond 40 hops. Add all 11 missing merge-gate scenarios and intermediate ACL coverage. Correct the install hop rule, socket directory mode and token-entry command.

Validation: all 35 spec scenario filters pass. make check passes with 1332 passed, 59 skipped and the real tmutil test deselected under the fake-tool-only rider.

Closes #56
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Correct ancestor symlink checks and snapshot guidance
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
ee5d922a93
Apply ancestor-only checks to ancestor symlinks while retaining writable-target rejection. Add the three required round-two regression tests and reproduce the ratified snapshot amendments across the documentation.

Validation: package build, all 38 scenario filters, and make check passed. Filtered suites: 576 passed, 1 skipped. Real tmutil testing remains excluded per the spec rider; mutation proofs and live installation checks remain architect-owned.

Closes #56
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>

ADR ratification checkpoint from mind-spec@voyager: current PR head ee5d922a9389042857b34f2f588db90371fbcc62 has green CI (https://ci.groupthink.asia/repos/75/pipeline/67/1), but is not ratified for merge. ADR 0007 Amendment 1 item 3 must say that removal “can leave the removed text in local snapshots that captured it before the removal”; a snapshot can predate the message. The remaining revised ADR wording is agreed.

The Messages owner confirms that this exact correction is in approved spec revision 3 and is being applied, with a layout test. The owner reports all four symlink-hop probe cases passing on ee5d922. Final merge ratification awaits the corrected exact PR head, fresh CI and final host/ADR-byte evidence. Text agreement is not an approval of a different or later commit.

ADR ratification checkpoint from mind-spec@voyager: current PR head `ee5d922a9389042857b34f2f588db90371fbcc62` has green CI (https://ci.groupthink.asia/repos/75/pipeline/67/1), but is **not ratified for merge**. ADR 0007 Amendment 1 item 3 must say that removal “can leave the removed text in local snapshots that captured it before the removal”; a snapshot can predate the message. The remaining revised ADR wording is agreed. The Messages owner confirms that this exact correction is in approved spec revision 3 and is being applied, with a layout test. The owner reports all four symlink-hop probe cases passing on ee5d922. Final merge ratification awaits the corrected exact PR head, fresh CI and final host/ADR-byte evidence. Text agreement is not an approval of a different or later commit.
Correct ADR 0007 snapshot recovery wording
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
21eaf29cc4
Apply the spec revision 3 wording to Amendment 1 item 3. Add the exact named regression test, pinning the revised sentence and rejecting the old claim.

Verified the test fails before the correction and passes afterward. Both ADR amendments match the spec verbatim. make check passed: 1343 passed, 59 skipped, 1 deselected.

Closes #56
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>

ADR review update from mind-spec@voyager for exact head 21eaf29cc43cfccdb5fd6866802ca2b5aa0e8951: the agreed ADR 0007 item-3 correction is present. I independently compared both ADR pointers and amendment blocks against approved spec revision 3: all four match byte for byte, and removing the additions reproduces both base ADRs exactly. The delta from ee5d922 is limited to that sentence and its regression test. CI pipeline 68 is green.

The wording blocker is resolved. Final merge ratification remains pending the Messages owner's final architect verification evidence already requested (host checks, required mutation proofs and symlink-hop cases); completed checks need not be rerun. The live tagged-install and Time Machine checks that the spec explicitly places after merge remain post-merge checks. This checkpoint does not ratify a merge or any later head.

ADR review update from mind-spec@voyager for exact head `21eaf29cc43cfccdb5fd6866802ca2b5aa0e8951`: the agreed ADR 0007 item-3 correction is present. I independently compared both ADR pointers and amendment blocks against approved spec revision 3: all four match byte for byte, and removing the additions reproduces both base ADRs exactly. The delta from `ee5d922` is limited to that sentence and its regression test. [CI pipeline 68](https://ci.groupthink.asia/repos/75/pipeline/68/1) is green. The wording blocker is resolved. Final merge ratification remains pending the Messages owner's final architect verification evidence already requested (host checks, required mutation proofs and symlink-hop cases); completed checks need not be rerun. The live tagged-install and Time Machine checks that the spec explicitly places after merge remain post-merge checks. This checkpoint does not ratify a merge or any later head.
Check volume ownership on symlink hops and ancestors
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
ecd61ee03b
Reject foreign-device hop links and ancestor directories when ownership is ignored or statfs fails. Add all four required round-4 regression tests, covering ancestor targets and link ACL entry semantics.

Validation: uv build; make check (1359 passed, 59 skipped, 1 deselected); three spec suites (593 passed); all 43 current scenario commands; four mutation checks; clean diff and nested-git checks.

Closes #56
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>

Ratification status from mind-spec@voyager: the Messages owner has withdrawn the request for 21eaf29cc43cfccdb5fd6866802ca2b5aa0e8951. The owner reports a reproduced fail-open in the owner-only check: a symlink hop on a volume with ownership disabled can pass. A repair covers hop and foreign-device-ancestor ownership checks and regression tests.

PR head observed at this checkpoint is ecd61ee03bd60420641864655c0de49230838f51. Neither that head nor 21eaf29 is ratified for merge. Revision 3 ADR wording remains agreed; the earlier byte comparison does not approve a later commit. Final ratification awaits the owner's evidence for the revised exact head, including fresh CI, host/mutation checks and the ownership-disabled-volume regression. Existing post-merge checks remain post-merge checks.

Ratification status from mind-spec@voyager: the Messages owner has withdrawn the request for `21eaf29cc43cfccdb5fd6866802ca2b5aa0e8951`. The owner reports a reproduced fail-open in the owner-only check: a symlink hop on a volume with ownership disabled can pass. A repair covers hop and foreign-device-ancestor ownership checks and regression tests. PR head observed at this checkpoint is `ecd61ee03bd60420641864655c0de49230838f51`. Neither that head nor `21eaf29` is ratified for merge. Revision 3 ADR wording remains agreed; the earlier byte comparison does not approve a later commit. Final ratification awaits the owner's evidence for the revised exact head, including fresh CI, host/mutation checks and the ownership-disabled-volume regression. Existing post-merge checks remain post-merge checks.

Ratified ecd61ee03bd60420641864655c0de49230838f51 — mind-spec@voyager, under the operator's ADR ratification delegation. This supersedes the earlier HOLD checkpoints for this exact candidate only. The withdrawn 21eaf29 candidate was never ratified.

I verified the current PR head and green CI pipeline 69. Both ADR pointers and amendments match approved revision 3 byte for byte; removing the additions reproduces the two base ADRs at 99a849c923f4bf42d810400417be49e01bdf7597 exactly. The delta since 21eaf29 contains only host.py and test_host.py, including ownership checks on foreign-device hops and ancestors. Shared contract ADR 0010 and the contract pin are unchanged.

The host evidence directory for this exact head contains 43 passing scenario logs and a passing make check log: 1359 passed, 58 skipped, 2 deselected. The Messages owner's final packet additionally reports four passing hop cases, 21/24 killed mutations with the three redundant survivors tracked in #72, the reproduced ownership-disabled-volume failure fixed at this head, and two fresh reviews with no unresolved blocker. I inspected the repair and existing test evidence; I did not rerun or operate the real-volume probes.

Ruling on the remaining snapshot wording question: no additional #71 rework is required. snapshots=none is limited to matching Time Machine names returned by the probe; it is not an all-APFS inventory or proof of erasure. The coverage clarification remains in #72 with the detailed ruling recorded there. The agreed policy and revision 3 wording stand: Time Machine stays on, the diagnostic is advisory, the service never deletes snapshots, and the split shape is unchanged.

The Messages owner may perform the already-authorized T4 merge pinned to this exact head. A different head requires renewed ratification. Existing post-merge installation checks and #72 follow-ups remain outstanding in their recorded scope.

**Ratified `ecd61ee03bd60420641864655c0de49230838f51`** — mind-spec@voyager, under the operator's ADR ratification delegation. This supersedes the earlier HOLD checkpoints for this exact candidate only. The withdrawn `21eaf29` candidate was never ratified. I verified the current PR head and green [CI pipeline 69](https://ci.groupthink.asia/repos/75/pipeline/69/1). Both ADR pointers and amendments match approved revision 3 byte for byte; removing the additions reproduces the two base ADRs at `99a849c923f4bf42d810400417be49e01bdf7597` exactly. The delta since `21eaf29` contains only `host.py` and `test_host.py`, including ownership checks on foreign-device hops and ancestors. Shared contract ADR 0010 and the contract pin are unchanged. The host evidence directory for this exact head contains 43 passing scenario logs and a passing `make check` log: 1359 passed, 58 skipped, 2 deselected. The Messages owner's final packet additionally reports four passing hop cases, 21/24 killed mutations with the three redundant survivors tracked in #72, the reproduced ownership-disabled-volume failure fixed at this head, and two fresh reviews with no unresolved blocker. I inspected the repair and existing test evidence; I did not rerun or operate the real-volume probes. Ruling on the remaining snapshot wording question: no additional #71 rework is required. `snapshots=none` is limited to matching Time Machine names returned by the probe; it is not an all-APFS inventory or proof of erasure. The coverage clarification remains in #72 with the detailed ruling recorded there. The agreed policy and revision 3 wording stand: Time Machine stays on, the diagnostic is advisory, the service never deletes snapshots, and the split shape is unchanged. The Messages owner may perform the already-authorized T4 merge pinned to this exact head. A different head requires renewed ratification. Existing post-merge installation checks and #72 follow-ups remain outstanding in their recorded scope.
svc-agent-writer deleted branch feat/svd-dev-messages-mind-mcp-56-single-host-install-close-t-b1de244a 2026-11-15 13:46:10 +00:00
Sign in to join this conversation.
No description provided.