feat(isolation): resolve idempotency bypass for late purge and verify Phase 4 integration tests

This commit is contained in:
2026-07-10 23:33:57 +09:00
parent e75a3a40c9
commit dad99f55c6
3 changed files with 20 additions and 12 deletions
@@ -128,8 +128,8 @@ PYEOF
TARGET_CWD=$(printf '%s' "$MAPPED_DATA" | python3 -c 'import sys,json; print(json.load(sys.stdin).get("cwd",""))')
DELEGATE_JOB_ID=$(printf '%s' "$MAPPED_DATA" | python3 -c 'import sys,json; print(json.load(sys.stdin).get("job_id",""))')
# 멱등성: STOP 모드에서 이미 stopped 인 세션이 no-op + exit 0
if [ "$STOP_MODE" = "1" ]; then
# 멱등성: STOP 모드에서 이미 stopped 인 세션이고 purge 가 아닐 때만 no-op + exit 0
if [ "$STOP_MODE" = "1" ] && [ "$PURGE" != "1" ]; then
if STOPPED_INFO=$(is_already_stopped "$SESSION_NAME"); then
echo "already stopped (status=stopped, $STOPPED_INFO) — no-op"
exit 0