Repository navigation
fix(termux-native-worker): serving≠installed also sees a tar redeploy (ctime) (#2791 2a) - #2928
Merged
Merged
Conversation
… (ctime) (#2791 2a) The stale report compared each process start with the file's mtime only. A tar redeploy keeps the build's mtime (2026-11-24: dist/worker.js 10:29:40 on daegyo and gongyung, deployed 14:03 / 14:06 by ctime), so a worker still serving the old code after such a deploy was invisible. Compare with max(mtime, ctime). Warn-only as before; nothing restarts. - scripts/lib/a2a-native-worker-stale.sh: max(st_mtime, st_ctime) - health test: a worker.js with a 2000-01-01 mtime replaced after its process started is reported (mutation-checked: mtime-only fails it); suite 54/54, shellcheck -S warning clean - changelog.d/2791-native-worker-stale-ctime.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1451 ratchet) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jinon86
approved these changes
Nov 27, 2026
jinon86
left a comment
Contributor
There was a problem hiding this comment.
Approved after exact-head validation and fresh operator authorization using the relay-held jinon86 credential.
This was referenced Nov 27, 2026
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.
#2791 2단계 PR1(2a, 탐지 보강) — 진행안(코멘트)에서 「결정과 무관하게 착수 가능」으로 적은 부분입니다.
왜
1단계(#2794)의 serving≠installed 탐지는 파일 mtime만 프로세스 시작과 비교했습니다. tar 재배포는 빌드 시각 mtime을 그대로 두므로 놓칩니다. 실측(11-27 읽기 전용): Termux 노드 2대 모두
dist/worker.jsmtime이 빌드 시각2026-11-24 10:29:40, ctime은 배포 시각(약 3.5시간 뒤).무엇
scripts/lib/a2a-native-worker-stale.sh: 비교 기준을max(mtime, ctime)으로.shellcheck -S warning깨끗.범위 밖 (결정 대기)
PR2(재기동 도구, 기본 off)·PR3(배포 스크립트 정본화)은 #2791 결정 1~3 뒤. 노드 반영은 self-update(배포 시점 별도).
머지는 오너 승인 뒤(PR별).
🤖 Generated with Claude Code