Harden single-host checks and removal guidance #102
No reviewers
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!102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/svd-dev-messages-mind-mcp-72-single-host-install-follow-bca03f9a"
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?
Preserve unresolved environment and code paths for ownership checks, cap linked-tree walks at 100,000 entries, fail closed on ValueError, and ignore SystemExit in sync and forget thread hooks. Explain the retained overlapping safety checks.
Strengthen the documented removal guard, remove legacy secrets, use the store volume for snapshot commands, and narrow snapshot-reporting claims. Document uv lock permissions and the one-time nature of check.
This PR replaces PR #101 (
53b5d37, closed without merge). Rework round 1 is the first rework of this SVD run. It fixes two §9 Removal blockers that a fresh security review reproduced:git status --porcelain --ignored --untracked-files=normal. Without it,status.showUntrackedFiles=noin the repository, global or system config hid untracked files, and the guard deleted them.store_volumenow comes from/bin/df -P. On the operator's Mac,dfon PATH is GNU coreutils. It reports/for a path on the Data volume, whilecheckprobes/System/Volumes/Data.ADR 0007 Amendment 1 item 4: DRAFT for the operator and mind-spec
This is a draft only. This PR does not edit
docs/adr/*. The ADR text changes only after mind-spec ratifies the wording at an exact head (operator ruling at the #72 gate, 2026-11-16).Current text:
Proposed text:
The proposed text matches README line 14, SECURITY and install §5 in this PR (
docs/install-single-host.md:164). ADR 0011 keeps similar broad wording. That is noted for mind-spec and is not drafted here.Mutant to failing test
Each mutant was applied alone, the targeted tests were run, and the mutant was reverted. Every mutant is killed.
tmtest_report_names_the_first_non_excluded_value_for_each_fieldsp = probes[0][1]test_report_names_the_first_non_excluded_value_for_each_fieldtm = probes[0][0]test_report_names_the_first_non_excluded_value_for_each_fieldcom.apple.test_local_snapshots_parses_only_successful_known_outputtest_local_snapshots_parses_only_successful_known_output_contain_faultsafterstart()test_sync_and_forget_contain_a_warning_raised_during_startSystemExitguardtest_a_systemexit_in_a_thread_is_ignored_like_the_default_hookValueErrorfrom the outer excepttest_a_nul_in_a_root_or_a_link_fails_closed_without_a_tracebacktest_the_tree_walk_fails_closed_past_its_captest_a_root_reached_through_a_link_in_a_writable_directory_fails.resolve()incli._checktest_check_passes_the_store_directory_to_the_host_probes,test_check_fails_when_the_environment_is_reached_through_a_writable_directory[ "$top" = "$checkout" ]test_the_removal_guard_keeps_a_checkout_it_cannot_prove[nested-checkout],test_the_removal_deletes_the_checkout_only_after_it_proves_the_checkout--ignored[ -z "$stashes" ][ -z "$extra" ]s=$(…);instead of&&listlocalsnapshots /test_the_removal_names_local_snapshots_and_the_logs_limitsecretspathtest_the_removal_names_local_snapshots_and_the_logs_limit.lockparagraphtest_the_install_document_states_why_the_venv_chmod_is_required--untracked-files=normaltest_the_removal_guard_keeps_a_checkout_it_cannot_prove[untracked-hidden],test_the_removal_deletes_the_checkout_only_after_it_proves_the_checkout/bin/df -Pback todf -Ptest_the_removal_names_local_snapshots_and_the_logs_limitNotes on the table:
53b5d37. The code and those tests are unchanged at464e1d3.464e1d3.Gate evidence at
464e1d3make check(full): ruff check is clean, ruff format reports 64 files formatted, and mypy reports no issues in 46 files. pytest gave 1570 passed, 58 skipped. Nothing was deselected, there was no collection error and no "command not found".ci/woodpecker/pr/validationis green.test_the_removal_guard_keeps_a_checkout_it_cannot_provepassed for every case, with no skips, including stash,untracked-hiddenandnested-checkout.status.showUntrackedFiles=no. The old guard deleted that case.df -Pon PATH (/etc/profiles/per-user/piers/bin/df) reports/, and/bin/df -Preports/System/Volumes/Data.Decisions (operator rulings at the #72 gate, 2026-11-16)
__pycache__/directories undersrc/and nothing else.Operator checks after merge
/bin/df -P "$store_dir"prints the mount thatcheckprobes, and thattmutil listlocalsnapshots "$store_volume"exits 0.checkagainst a freshuv sync --locked --no-dev --link-mode=clonecheckout, after the §2 chmod. Expectenvironment=owner-only code=owner-only.Closes #72
Co-Authored-By: gpt-6.1-sol noreply@openai.com
Merge record.
464e1d3fdc9587bd14235ad574460a3bff3eec9e(basec6c9e1f)." The record is/private/tmp/dd469-messages72-adr0007-ratification-20261117.mdon voyager. This satisfies the pre-merge referral (operator ruling at the #72 gate). This PR made no ADR edit. Applying the ratified wording todocs/adr/0007-store-encryption-and-backup.mdis separate work.464e1d3, CIci/woodpecker/pr/validationreported success,git diff c6c9e1f 464e1d3 -- docs/adrwas empty, and ship accepted the class. The merge is squashed asacc6c05, and the rewind check passed.make checkat464e1d3(1570 passed, 58 skipped) is a saved log:gate-make-check-464e1d3.login run20261116T130328Z-bca03f9a, sha256 prefixff613b9945e4ea37.c6c9e1f(1535 passed, 58 skipped) is a count reported by the independent reviewer, not a saved log.