Repository navigation
refactor: retire legacy PR-check migration machinery - #3299
Merged
Merged
Conversation
Confidence Score: 5/5The PR appears safe to merge because no blocking failure remains. No blocking failure remains. Reviews (3): Last reviewed commit: "no-mistakes(ci): Fixed both failing CI c..." | Re-trigger Greptile |
Every registered home already carried both completion markers, and no installer still creates pre-migration checks. Remove the one-time migrate script, its bootstrap/watch/teardown/docs surface, and migration-path tests without weakening live check-trust or PR-poll authentication.
…cile setup to use the public status-marking interface, preventing false watcher exits. Made remote-job shutdown deterministic by stopping the complete worker tree before tampering. Verified both affected test suites, repeated inactive reconciliation, shell syntax, and git diff checks
kunchenguid
force-pushed
the
fm/fm-retire-legacy-check-migration-s1
branch
from
August 29, 2026 21:23
e9b864d to
0c558e2
Compare
This was referenced Aug 31, 2026
timbarreto
added a commit
to timbarreto/firstmate
that referenced
this pull request
Sep 1, 2026
Intent
Retire the ALREADY-COMPLETED legacy PR-check migration machinery from Firstmate after proving it is safe to delete. The deletion is authorized only because every registered home (main plus every secondmate in data/secondmates.md) already carried both completion markers state/.pr-check-migration-scan-v1 and state/.pr-check-migration-v1, and no installer or live check-creation path still produces pre-migration checks. Remove bin/fm-pr-check-migrate.sh, its migration-path test coverage in tests/fm-pr-check-security.test.sh (keep every still-live PR-check security/trust test), the quarantine/log/marker machinery and bootstrap migration sweep, and dangling AGENTS.md/docs/state-layout references. Keep the executable-custom-check trust architecture (fm-check-register.sh, .check-trust, PR-poll sidecar) intact. One concept per PR: this is migration-machinery retirement only. The decision-hold-lifecycle stub was left in place because the collapse has no numbered release boundary proving "one release after." Prove behavior through real interfaces, not by asserting deleted source text is gone. Session start must still work with the sweep removed. Do not merge.
What Changed
Risk Assessment
✅ Low: The retirement is well-bounded, preserves live trust and PR-poll paths, and the previously removed live security coverage is restored without retaining migration-only machinery.
Testing
The focused PR-check security and session-start behavior suites passed; manual CLI checks demonstrated that live custom-check trust boundaries remain enforced and a real session start completes and persists its completion record without the retired sweep. This is CLI-only behavior, so reviewer-visible transcript artifacts were captured instead of visual screenshots.
Evidence: Custom-check trust architecture end-to-end transcript
Source: Custom-check trust architecture end-to-end transcript
Evidence: Session-start completion transcript
Source: Session-start completion transcript
Evidence: Complete real session-start output
Source: Complete real session-start output
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
tests/fm-pr-check-security.test.sh:793- Contradicts the required criterion “keep every still-live PR-check security/trust test.” The diff deletes all oftest_private_artifact_paths_refuse_symlinks_and_directories, including livefm_pr_poll_publish_preparedrefusal cases for pre-existing symlink/directory destinations, and all oftest_complete_single_link_validation, including live PR-poll hard-link validation plus custom-check source/trust hard-link and private-mode checks. Existing tests only verify normal single-link publication and post-rename corruption, not these boundaries. Split out and retain the non-migration cases rather than deleting the mixed tests wholesale.🔧 Fix: Restore live PR-check security coverage
✅ Re-checked - no issues remain.
✅ **Test** - passed
✅ No issues found.
bin/fm-test-run.sh tests/fm-pr-check-security.test.shbin/fm-test-run.sh tests/fm-session-start.test.shManualFM_HOME=<evidence>/custom-check-home bin/fm-check-register.sh demochecks for hard-linked source refusal, successful private registration, and hard-linked trust refusalManualFM_HOME=<evidence>/session-home FM_ROOT_OVERRIDE=<worktree> FM_BACKEND=orca bin/fm-session-start.shend-to-end session start, completion-record persistence, and deferred network-stage reporting✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.