feat: auto-pull, rebuild, and restart Symphony from GitHub - #2
Merged
Conversation
Symphony now polls its own git remote on a configurable interval. When new commits land on the tracked branch it fast-forward pulls, runs install (only when manifests changed) and the build command, then exits with code 75. A new bin/symphony-supervisor.sh wrapper (also exposed as `npm run start:watch`) relaunches Symphony on that exit code so hands-off upgrades work without an external process manager. Guards refuse to pull a dirty tree, a detached HEAD, or a branch ahead of the remote, so operator edits and local commits are preserved.
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.
Summary
bin/symphony-supervisor.shwrapper (alsonpm run start:watch) relaunches Symphony on exit 75 so hands-off upgrades work without an external process manager. Existingnode dist/index.jsusers still get the pull + rebuild but exit instead of restarting.auto_update:block inWORKFLOW.mdcontrolsenabled,interval_ms,remote,branch,repo_root,build_command,install_command. Defaults: every 5 min onorigin/<current branch>of the Symphony checkout.Safety
auto_update.branch.Test plan
npm run buildclean.SelfUpdateragainst a local bare repo: detected new commit, pulled, ran build, fired restart callback.https://claude.ai/code/session_01Bs7f7nqtcieCeknu9vuWys
Generated by Claude Code