Repository navigation
fix(agent): remote Rex fault handling — timeouts, lease reclaim, on-host reconcile, dead-worker probe (#209) - #215
Merged
Conversation
…se reclaim, on-host prompt-send reconcile, dead-worker probe - rexSpawn: bound every rex CLI call (default 120s, rex wait gets timeout+30s) so a dead host/stalled ssh forward fails instead of hanging the task forever; timeout surfaces as code 124 → transport, never worker-exit - acquireTaskLease: reclaim leases whose '<verb>-<pid>' owner is dead (ESRCH) by marking released so the next generation fences stale workers; live/unknown owners still refuse double lease - reconcileTaskEffects: resolve remote Rex prompt-send UNKNOWN against evidence on the recorded host (capture prompt match, fresh program_status, dead-shell block) instead of pending forever — local provider evidence cannot see remote turns - rex getWorker: block record presence is not worker presence — a bare shell foreground (post-restart respawn) now reports the worker absent so resume fails closed with 'not present' instead of prompting a dead block into 'unrecognized failure' Verified on Mac→WSL: host-down dispatch error, killed-CLI journal fail-close, server stop/start killing workers, resume classification.
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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
Mac→WSL障害系実機検証で発見した4件の実害を修正:
rex -S呼出が永久にブロック → 全呼出にデフォルト120s timeout(rex waitは +30s バッファ)。timeout は code 124 で transport 側に分類され、worker 終了と誤認しない<verb>-<pid>が ESRCH なら released にして次 generation で fence。生存/不明 owner は従来通り拒否実機検証(Mac→WSL device-wsl)
rex host unreachableで即失敗(fallback なし)Test plan
Generated with Devin