fix(continuity): allow fm-watch-checkpoint.sh as a recovery command - #1216
Open
martinstroher wants to merge 1 commit into
Open
fix(continuity): allow fm-watch-checkpoint.sh as a recovery command#1216martinstroher wants to merge 1 commit into
martinstroher wants to merge 1 commit into
Conversation
Adds fm-watch-checkpoint.sh to the RECOVERY_SCRIPTS allowlist in the watcher-continuity PreToolUse gate so Copilot primaries can run foreground supervision checkpoints when workers are in flight. - fm-continuity-command-policy.mjs: add fm-watch-checkpoint.sh to RECOVERY_SCRIPTS - fm-continuity-pretool-check.sh: update denial reason to mention both arm and checkpoint paths, with harness annotations (Claude/Grok vs Copilot/Codex) - tests/fm-continuity-pretool-check.test.sh: add checkpoint recovery expect_allow case and update expected denial message - .claude/settings.json: register fm-continuity-pretool-check.sh as a Bash PreToolUse hook so the gate is active for Claude sessions
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.
The continuity gate RECOVERY_SCRIPTS only had
fm-wake-drain.shandfm-watch-arm.sh. Copilot/Codex primaries usefm-watch-checkpoint.shfor foreground supervision, but the gate blocked it — deadlocking spawning, steering, and teardown while any worker was in flight.Changes:
bin/fm-continuity-command-policy.mjs: addfm-watch-checkpoint.shto RECOVERY_SCRIPTSbin/fm-continuity-pretool-check.sh: update denial message to mention both pathstests/fm-continuity-pretool-check.test.sh: addexpect_allow "watch checkpoint recovery"test caseAll 4 tests pass, lint clean.