fix(self-update): run external restart inside audit/notify boundary + runtime recovery tick (#971) - #976
Merged
Merged
Conversation
… runtime recovery tick (#971) The hand-chained cron line (ccc-self-update run; rc=11 -> start.sh --restart; exit 0) detected its own restart failure, reported it to a log file, and then discarded the signal: daegyo stayed down 4h15m until the daily fleet watch noticed. The 05:45 retry slot could never help because it only retries the update, never the restart. - new operator-owned hooks: self-update.restart-cmd (external restart command) and self-update.health-cmd (runtime probe), same trust model as self-update.services - degraded path (code changed, nothing restarted): run the restart command inside the script — outcome audited/notified, failure exits 7 with the recovery snapshot retained instead of a silent exit 0 - up-to-date tick: with both hooks configured, verify runtime health and attempt one recovery restart when the runtime is down, so the second daily slot can recover an updated-but-down node - docs: supported replacement for the chained cron line Closes #971
seoseo-ai
approved these changes
Aug 6, 2026
seoseo-ai
left a comment
Collaborator
There was a problem hiding this comment.
Approved after explicit operator authorization using the local seoseo-ai credential.
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.
문제 (#971, daegyo 4h15m 침묵 장애)
수동 체이닝 크론 라인(
run; rc=11 → start.sh --restart; exit 0)이 재시작 실패를 감지하고도 신호를 버림:start.sh는not-available-within-timeout을 정확히 보고했지만 trailingexit 0이 삼킴 → notify 없음degraded-no-services)는 체이닝된 재시작을 볼 수 없음수정 — 외부 재시작을 스크립트 안으로
운영자 소유 훅 2개(self-update.services와 동일 신뢰 모델, 에이전트 쓰기 금지):
~/.claude/self-update.restart-cmd— 외부 재시작 명령 (예: Termuxstart.sh --restart -d)~/.claude/self-update.health-cmd— 런타임 헬스 프로브 (exit 0 = healthy)runtime-recovered/runtime-downaudit + notify) — 두 번째 데일리 슬롯이 updated-but-down 노드를 복구 가능ccc-self-update.sh run으로 단순화 가능 (docs에 마이그레이션 예시)검증
후속 (별도 오너 승인)
Termux 2대(daegyo·gongyung) + gongmyoung의 크론 라인을 새 훅 파일 + 순수 run으로 교체하는 배포 작업 (머지 후 self-update로 코드 전파 뒤 진행).
Closes #971