PRD 0034: Sidecar Restart and Shutdown Semantics #127

Merged
didericis merged 3 commits from prd-0034-sidecar-restart-shutdown-semantics into main 2026-06-02 03:55:06 -04:00
Collaborator

Closes #126.

Parent hotspot review: #117.

PRD: fe6059e4a6/docs/prds/0034-sidecar-restart-shutdown-semantics.md

Summary

Implements PRD 0034 by moving SIGUSR1-triggered pipelock restarts onto the sidecar supervisor loop instead of doing restart work directly from the signal handler. Repeated restart requests coalesce by daemon name, and shutdown clears pending restarts so no daemon is respawned during teardown.

Clarifies exit-code behavior so positive child failures remain visible while signal-only shutdown returns zero instead of surfacing platform-specific negative signal codes.

Changes (3 commits)

  • docs(prd): add sidecar restart semantics
  • fix(sidecar): queue restart signals
  • complete(prd): mark PRD 0034 active
Closes #126. Parent hotspot review: #117. PRD: https://gitea.dideric.is/didericis/bot-bottle/src/commit/fe6059e4a67ad540aa2431ab14c48ff07c03e261/docs/prds/0034-sidecar-restart-shutdown-semantics.md ## Summary Implements PRD 0034 by moving SIGUSR1-triggered pipelock restarts onto the sidecar supervisor loop instead of doing restart work directly from the signal handler. Repeated restart requests coalesce by daemon name, and shutdown clears pending restarts so no daemon is respawned during teardown. Clarifies exit-code behavior so positive child failures remain visible while signal-only shutdown returns zero instead of surfacing platform-specific negative signal codes. ## Changes (3 commits) - `docs(prd): add sidecar restart semantics` - `fix(sidecar): queue restart signals` - `complete(prd): mark PRD 0034 active`
didericis-codex added 1 commit 2026-06-02 03:43:56 -04:00
docs(prd): add sidecar restart semantics
test / unit (pull_request) Successful in 42s
test / integration (pull_request) Successful in 59s
1b34b1df85
Owner

RE coalescing, think that makes sense. RE clamping, think that also makes sense.

RE coalescing, think that makes sense. RE clamping, think that also makes sense.
Author
Collaborator

Thanks, I’ll implement those decisions in PRD 0034: repeated restart requests will coalesce by daemon name, and exit-code handling will clamp signal-only shutdown outcomes to 0 while preserving any positive child crash code.

Thanks, I’ll implement those decisions in PRD 0034: repeated restart requests will coalesce by daemon name, and exit-code handling will clamp signal-only shutdown outcomes to 0 while preserving any positive child crash code.
didericis added 2 commits 2026-06-02 03:52:49 -04:00
complete(prd): mark PRD 0034 active
test / unit (pull_request) Successful in 39s
test / integration (pull_request) Successful in 52s
test / unit (push) Successful in 34s
test / integration (push) Successful in 50s
fe6059e4a6
didericis approved these changes 2026-06-02 03:54:59 -04:00
didericis merged commit fe6059e4a6 into main 2026-06-02 03:55:06 -04:00
didericis deleted branch prd-0034-sidecar-restart-shutdown-semantics 2026-06-02 03:55:07 -04:00
Sign in to join this conversation.