fix(loop): fix wait_for_job hang bug and finalize Creator Self-Planning documentation

This commit is contained in:
2026-07-17 15:51:37 +09:00
parent 6c903420d8
commit be46484108
4 changed files with 157 additions and 17 deletions
@@ -117,7 +117,7 @@ wait_for_job() {
status=$(python3 -c "
import json, os
try:
with open('.mam/jobs/$job_id/job.json') as f:
with open('.mam/jobs/$job_id.json') as f:
print(json.load(f).get('status', 'unknown'))
except Exception:
print('unknown')
@@ -331,7 +331,7 @@ log_info "=== Phase 2: Code Implementation ==="
# cumulative and non-empty even after the Creator commits per DoD (P0-1).
BASE_COMMIT=$(git rev-parse HEAD 2>/dev/null || echo "")
EXECUTION_PROMPT="다음 작업 목표를 완성해주세요: $TASK"
EXECUTION_PROMPT="계획서가 존재하지 않으므로, 작업자(Creator)의 판단하에 스스로 구현 계획 및 설계를 수립한 뒤, 이를 바탕으로 코드를 구현하고 다음 작업 목표를 완성해주세요. 작업 목표: $TASK"
if [ -n "$CURRENT_PLAN" ]; then
EXECUTION_PROMPT="이미 수립된 다음 계획서에 입각하여 작업자의 판단하에 코드를 구현하고 작업 목표를 완성해주세요. 계획서:\n$CURRENT_PLAN\n\n작업 목표: $TASK"
fi