Skip to content

fix(daemon): maintain worktree continuity across graceful shutdown #679

@kys0213

Description

@kys0213

배경

Graceful Shutdown 후 재시작 시 이전 worktree를 재사용하려는 경로가 끊어지는 문제입니다. previous_worktree_path가 transient하기 때문입니다.

스펙 요구사항

  • concerns/daemon.md: Graceful shutdown 중 진행 중인 작업과 상태 유지 필요
  • 재시작 후 같은 worktree에서 작업 계속

현재 코드

  • crates/belt-daemon/src/daemon.rs: Graceful shutdown 로직

영향 범위

  • Worktree 관리 및 재사용
  • Spec 추적 지속성
  • 데몬 복구력

구현 가이드

  1. gap:data-model.md:previous-worktree-transient와 함께 해결
  2. Shutdown 신호 수신 시 현재 worktree 경로를 DB에 저장
  3. 시작 시 DB에서 이전 worktree 복구
  4. 주기적 heartbeat로 worktree 상태 동기화

Metadata

Metadata

Assignees

No one assigned

    Labels

    autopilot:gapGap analysis: Missing or partial implementationspec-gapSpec vs code implementation gap

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions