@ai-dev-methodologies/rlp-desk 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-dev-methodologies/rlp-desk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Fresh-context iterative loops for Claude Code — autonomous task completion with independent verification",
5
5
  "scripts": {
6
6
  "postinstall": "node scripts/postinstall.js",
@@ -1051,10 +1051,19 @@ main() {
1051
1051
  # --- governance.md s7 step 5+6: Poll for Worker completion ---
1052
1052
  log " Polling for iter-signal.json..."
1053
1053
  if ! poll_for_signal "$SIGNAL_FILE" "$WORKER_HEARTBEAT" "$WORKER_PANE" "$worker_launch" "Worker"; then
1054
- # Monitor failure or timeout
1054
+ # Check if Worker is still actively running (not stuck)
1055
+ local worker_cmd
1056
+ worker_cmd=$(tmux display-message -p -t "$WORKER_PANE" '#{pane_current_command}' 2>/dev/null)
1057
+ if [[ "$worker_cmd" == "node" || "$worker_cmd" == "claude" ]]; then
1058
+ # Worker is still active — timeout but not a failure, just slow
1059
+ log " Worker timed out but still active ($worker_cmd). Extending..."
1060
+ update_status "worker" "slow"
1061
+ continue
1062
+ fi
1063
+ # Worker is truly dead/stuck
1055
1064
  (( MONITOR_FAILURE_COUNT++ ))
1056
1065
  if (( MONITOR_FAILURE_COUNT >= 3 )); then
1057
- write_blocked_sentinel "3 consecutive monitor failures"
1066
+ write_blocked_sentinel "3 consecutive monitor failures (worker not active)"
1058
1067
  update_status "blocked" "monitor_failures"
1059
1068
  return 1
1060
1069
  fi