Skip to content

Add deploy:strategy command and branch-to-release auto-switch#80

Merged
jonathonbyrdziak merged 1 commit intomasterfrom
feature/deploy-strategy-autoswitch
Mar 21, 2026
Merged

Add deploy:strategy command and branch-to-release auto-switch#80
jonathonbyrdziak merged 1 commit intomasterfrom
feature/deploy-strategy-autoswitch

Conversation

@jonathonbyrdziak
Copy link
Copy Markdown
Contributor

Summary

  • Adds protocol deploy:strategy [branch|release] command for manually viewing/switching deployment strategy
  • When a node runs with awaiting_release=true (fallback branch strategy), git:pull now polls PROTOCOL_ACTIVE_RELEASE after each fetch cycle
  • When a release is detected, updates node config + protocol.json to release strategy and exits with code 42
  • git-repo-watcher catches exit code 42, runs protocol restart --force in the background, and exits — switching from branch watcher to release watcher automatically

Test plan

  • Run protocol deploy:strategy — verify it shows current strategy and prompts to change
  • Run protocol deploy:strategy release — verify it updates protocol.json and node config
  • Set awaiting_release: true in node config, set PROTOCOL_ACTIVE_RELEASE GitHub variable, verify auto-switch triggers on next git:pull cycle
  • Verify protocol restart launches the release watcher after auto-switch
  • Verify audit log captures strategy_switch event

🤖 Generated with Claude Code

When a node is running with awaiting_release=true (fallback branch
strategy), git:pull now polls PROTOCOL_ACTIVE_RELEASE after each
fetch cycle. When a release is detected, it updates node config and
protocol.json to release strategy and exits with code 42, signaling
git-repo-watcher to restart protocol with the release watcher.

Also adds `protocol deploy:strategy` command for manually switching
between branch and release strategies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jonathonbyrdziak jonathonbyrdziak merged commit d6ecab0 into master Mar 21, 2026
5 of 8 checks passed
@jonathonbyrdziak jonathonbyrdziak deleted the feature/deploy-strategy-autoswitch branch March 21, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant