claude-evolve 1.6.17 → 1.6.18
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/bin/claude-evolve-worker +8 -3
- package/package.json +1 -1
package/bin/claude-evolve-worker
CHANGED
|
@@ -220,7 +220,7 @@ process_candidate() {
|
|
|
220
220
|
source_file="$FULL_OUTPUT_DIR/evolution_${parent_id}.py"
|
|
221
221
|
if [[ ! -f "$source_file" ]]; then
|
|
222
222
|
echo "[WORKER-$$] ERROR: Parent algorithm not found: $source_file" >&2
|
|
223
|
-
return
|
|
223
|
+
return 78 # New exit code for missing parent
|
|
224
224
|
fi
|
|
225
225
|
fi
|
|
226
226
|
|
|
@@ -574,9 +574,8 @@ with EvolutionCSV('$FULL_CSV_PATH') as csv:
|
|
|
574
574
|
if [[ $process_exit_code -eq 0 ]]; then
|
|
575
575
|
echo "[WORKER-$$] Successfully processed $candidate_id"
|
|
576
576
|
elif [[ $process_exit_code -eq 77 ]]; then
|
|
577
|
-
#
|
|
577
|
+
# AI generation failed, mark for retry
|
|
578
578
|
echo "[WORKER-$$] AI generation failed for $candidate_id - marking as failed-ai-retry"
|
|
579
|
-
# Mark with special status that indicates AI generation failed (not evaluation)
|
|
580
579
|
"$PYTHON_CMD" -c "
|
|
581
580
|
import sys
|
|
582
581
|
sys.path.insert(0, '$SCRIPT_DIR/..')
|
|
@@ -584,6 +583,12 @@ from lib.evolution_csv import EvolutionCSV
|
|
|
584
583
|
with EvolutionCSV('$FULL_CSV_PATH') as csv:
|
|
585
584
|
csv.update_candidate_status('$candidate_id', 'failed-ai-retry')
|
|
586
585
|
" 2>/dev/null || true
|
|
586
|
+
elif [[ $process_exit_code -eq 78 ]]; then
|
|
587
|
+
# Missing parent; leave candidate as pending for later processing
|
|
588
|
+
echo "[WORKER-$$] Parent missing for $candidate_id - leaving status pending"
|
|
589
|
+
# No status change; keep pending to allow future workers to build parent
|
|
590
|
+
# Exit loop so we don't repeatedly retry immediately
|
|
591
|
+
break
|
|
587
592
|
else
|
|
588
593
|
echo "[WORKER-$$] Failed to process $candidate_id"
|
|
589
594
|
# Other failures (evaluation errors, etc) mark as failed
|