Repository navigation
Conversation
This was referenced Oct 12, 2026
…tly renaming the fixture variable to watch_state, avoiding collisions with sourced library variables. Passed: bash bin/fm-lint.sh tests/fm-update.test.sh, bash tests/fm-update.test.sh, and git diff --check. Full CI was not rerun
0x7067
force-pushed
the
fm/fm-update-migrate-pr-watches
branch
from
October 16, 2026 03:10
248aa7c to
e5b6c7f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Make firstmate updates migrate existing PR merge watches instead of refusing them.
After the 2026-10-12 update to 20dcbf9 (the Forgejo forge change, #4395, which rewrote
bin/fm-pr-poll.sh), firstmate-dev's PR merge watches for kunchenguid/firstmate PRs 6813, 6816 and 6863 were refused by the watcher with "check: rejected unauthenticated state checks: state/.check.sh", because each armedstate/<task>.check.shheld the old program bytes. Merge detection silently stopped. Re-registering each withbin/fm-pr-check.sh <task> <pr-url>restored them.bin/fm-update.shrunsfm-procevent-when.sh rebind-allfor the primary and local second-mate homes, but the remote second-mate homes did not get their watches migrated.Expected: an update keeps every home's existing PR watches accepted, local and remote.
What Changed
Risk Assessment
✅ Low: The migration is bounded by existing authentication and publication safeguards and conforms to the accepted one-time rollout contract.
Testing
Focused regressions and live CLI scenarios passed for migration across disposable primary, local, and remote homes, documented rollout recovery, idempotence, device-record changes, and authentication guards. Captured product transcripts and cleaned all temporary workspace files.
Evidence: Live migration, repeat update, and device-change transcript
Source: Live migration, repeat update, and device-change transcript
Evidence: Old-updater rollout and one-time startup recovery
Source: Old-updater rollout and one-time startup recovery
Evidence: Altered-registration refusal transcript
Source: Altered-registration refusal transcript
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
✅ No issues found.
✅ **Test** - passed
✅ No issues found.
test_update_migrates_only_authenticated_pr_pollsandtest_migration_after_device_renumber_and_update, executed through a temporary targeted runnertest_update_routes_pr_migration_to_primary_and_local_mateandtest_old_updater_rollout_migrates_watches_after_one_time_session_start, executed through a temporary targeted runnerbash .phase-tmp/live.sh: real updater, remote host-local sync, repeated migration, altered-watch refusal, and previous-device registration recoverybash .phase-tmp/rollout.sh: old updater installs current scripts, followed by realfm-session-start.shbash .phase-tmp/startup-guards.sh: real detect-only bootstrap and normal session startRemoved disposable homes and temporary runners; verified cleangit status --short✅ No issues found.
TMPDIR="$PWD/.phase-tmp" bash tests/.phase-pr.test.sh: selected migration and device-renumbering regressions.TMPDIR="$PWD/.phase-tmp" bash tests/.phase-update.test.sh: migration routing and old-updater rollout regressions.TMPDIR="$PWD/.phase-tmp" bash tests/.phase-sync.test.sh: remote migration routing; the selector also executed the scratchpad2 isolation regression.bash .phase-live.sh: real updater, remote sync, migration, repeat runs, and session start in disposable homes.MODE=rollout bash .phase-live.sh: old-release update followed by detect-only bootstrap and documented session-start recovery.bash .phase-guards.sh: seven adversarial registration mutations against the real migration command.Preserved drivers and command transcripts in the evidence directory; removed disposable homes and temporary runners; verified clean git status.✅ **Document** - passed
✅ No issues found.
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ No issues found.
✅ **Push** - passed
✅ No issues found.
✅ No issues found.