[KANDEV-W-093] Backend early exit after sync #66
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
소유자 목표: 운영 세션 → Kandev 관제(2026-10-11) 「28153fb7f7 빌드를 격리 인스턴스에서 띄워 백엔드 stderr·종료 코드를 잡고, 몇 분 안에 꺼지는지 재현해 원인 커밋을 찾는다」.
확인할 결과: 새 판의 조기 종료가 격리된 실제 기동 경로에서 재현되고 종료 코드·stderr와 원인 커밋이 확정되며, 확인된 원인의 최소 수정과 해소 근거가 정상 fork workflow로 전달된다.
queue: KANDEV-W-093
This task owns one backend early-exit defect after installing fork main28153fb7f71dceafecfb970f9c1af46c4b4719fe. It is distinct from W092d26270f9's agentctl event-wide stall: that incident had a live backend and responsive GET; here kandev.exe disappears and health connection is refused. Coordinate only if causal evidence establishes overlap. Current five-workflow/title and canonical p320 duplicate checks found no matching item; do not register another defect for this same symptom.
Operations-provided incident timeline, to verify against supplied artifacts:
Required work:
Execution: standing parent8e3eb6b7-f0fb-4d79-a954-69aeab00993a, Kandev workspace94852851-6893-4289-908a-53022d15fd68, repository068d4436-d120-42af-b178-8e1a45eb2279, explicit Worktree08eb0bba-37dc-459c-b34c-14322417bde7/new_workspace/forkmain. Use the assigned task worktree only. No shared checkout Git/file writes or second worktree; if materialized environment is shared/Local, stop writes and report.
Design basis: design-card invariant5(설계카드.md:32) and Agent Manager source pointer(설계색인.md:18), launcher unified-native-binary architecture in repo AGENTS, docs/ARCHITECTURE.md Current Architecture/Agent Manager and existing isolation script. Read relevant source in your worktree; root controller does no code/log investigation.
Operations owns restart/rollback/next deployment. NEXT OPERATING REPLACEMENT IS BLOCKED until this cause is confirmed and fixed. Keep230verification list unchanged and held;207dashboard and today's merges are not installed PASS. W055OpenCode confirmation is separate. Do not move/restart/stop W091(the permanent fixed Opus owner) or W089/W090/W092/230.
All kdlbs/kandev writes belong solely to fixed Opus ownerW0916f198197-cd2e-40d5-af27-fefd1d5813c6. This investigation may read upstream only; fork delivery remains normal.
Cleanup: only your task-owned isolated processes/PID files/temporary artifacts; verify exact literal targets and current ownership/use, preserve uncertain data, use existing recycle procedure. No reset--hard/force/permanent variable/glob deletion, shared Temp worktree, drive/home scan or bin emptying.
Reporting through existing report-progress for KANDEV-W-093 when actual progress is ready; no fabricated PR/empty commit/new audit ledger. Source operation/user incident facts are not independent worker measurements.
temp
temp-check
[W-093] replacement ready. PR dreampiler/kandev#218 MERGED 2026-10-10T16:51:29Z, full merge SHA 7493cda71f1e23fcc948ae39d6e1e34966d8ef39 (squash = PR head 00945864c2, diff empty 확인). 병합판 빌드로 동일 dev-isolated 경로(port 48521, fresh DB) 격리 기동, 동일 backend PID 19480이 37.6분 연속 무종료(/health 200 유지, stderr 0B, panic 없음). 미수정 release는 63초에 exit 2 자멸. 원인: fork #43의 ReadRuntimeFootprints 직접 r.ctl 호출 + upstream #3598의 nil static ctl + runtimeOwner 생성 경로 충돌(merge-base 재확인: 613d6205f5는旧 baseline 포함, 349f61bc52는 새 upstream에만 존재). 최소 수정: acquireControl 경유 + ErrRuntimeUnavailable fail-closed, 동행 시험 2건 ok. 한계: 로컬 build-kandev 산출물(embedded web 자산은 release와 다름), fresh DB 검증, cursor-MCP 패키지 전체 hang은 기존 환경성. 남은 것: 격리 home C:\Users\dream.kandev-test-48521-809398b0 잔존(recycle 보호경로 거부) — 관제 판단 필요. 후속 제안: 운영 교체는 관제 소유 절차로.
[W-093 판정 2026-10-13, 작업 8b5c4925] 해소. 근거: #218 7493cda71f 가 fork main 과 운영 빌드 0d12c83d82 의 조상(merge-base 확인). apps/backend/internal/agent/runtime/lifecycle/executor_standalone.go:423-430 ReadRuntimeFootprints 가 acquireControl 경유. 운영 0d12c83d82 started_at 2026-10-12T22:51:15Z, 2026-10-13T02:22Z 관측 시 응답(약 3.5h 생존; 원 증상은 기동 후 약 1분 내 종료). 10-12 재시작(71d83c6d)은 stall 재시작으로 보이며 별도 소관(추정). 잔여 산출물: 격리 홈 C:\Users\dream.kandev-test-48521-809398b0 은 W-090 남은 목록 E 로 넘김.