feat: branch supervisor for persistent connectivity (ops-115)#249
Closed
feat: branch supervisor for persistent connectivity (ops-115)#249
Conversation
…115) - scripts/branch-supervisor.sh: restart loop with 5s backoff, SIGTERM handling, logging to ~/.tps/branch-supervisor.log, PID file at ~/.tps/branch-supervisor.pid Runs branch in foreground (TPS_BRANCH_DAEMON=1) so exit codes are meaningful. Clean exit (code 0) stops the loop; crash restarts after backoff. - scripts/setup-branch-service.sh: idempotent installer, starts supervisor via nohup detached from terminal, works on exe.dev containers (no systemd --user). Closes #234
tps-sherlock
previously approved these changes
Mar 14, 2026
Contributor
tps-sherlock
left a comment
There was a problem hiding this comment.
Security review complete. No security implications found. The code correctly limits process lifetimes and checks are securely scoped to $HOME. Approved.
tps-kern
previously approved these changes
Mar 14, 2026
tps-kern
left a comment
There was a problem hiding this comment.
Architecture verified post-merge. The supervisor scripts accurately model the persistent connectivity wrapper described in ops-115, operating cleanly without systemd. (Already reviewed and approved the earlier phase of this, PR looks exactly as expected.)
Collaborator
Author
tps-sherlock
approved these changes
Mar 14, 2026
Contributor
tps-sherlock
left a comment
There was a problem hiding this comment.
Re-approving after rebase. Previous security review stands.
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
Implements Phase 1 of ops-115: branch supervisor for persistent connectivity.
Closes #234
What's added
scripts/branch-supervisor.sh— restart loop with exponential backoff (min 5s), PID file at~/.tps/branch-supervisor.pid, graceful SIGTERM handling, logs to~/.tps/logs/branch.logscripts/setup-branch-service.sh— idempotent installer: starts supervisor, manages PID file, works without systemd (exe.dev containers)Design notes
~/.tps/branch-supervisor.pidTests