ticket: allow not-found workdir cleanup

This commit is contained in:
Keisuke Hirata 2026-07-13 20:44:18 +09:00
parent da0fe7c81f
commit 81ceb1ceff
No known key found for this signature in database
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,25 @@
---
title: 'Allow not-found Workdir cleanup action'
state: 'planning'
created_at: '2026-07-13T11:43:33Z'
updated_at: '2026-07-13T11:44:00Z'
assignee: null
---
## 背景
Workdir list では Runtime から `not_found` が確認できているが、cleanup plan では `file_status``notfound` になり、`workdir_record_delete` ではなく `workdir_dirty_discard` と判定される。そのため frontend の delete action が disabled になっている。
原因は `WorkingDirectoryStatusKind::NotFound``format!("{:?}").to_lowercase()` で string 化しているためで、serde の `snake_case` 表現 (`not_found`) とずれている。
## 要件
- Workdir cleanup plan の observed Runtime status string は Debug 表現ではなく canonical snake_case label を使う。
- `WorkingDirectoryStatusKind::NotFound``not_found` として扱われる。
- `not_found` Workdir candidate は `workdir_record_delete` action になり、blocking reason がなければ削除可能になる。
## 受け入れ条件
- cleanup plan API で not-found Workdir の `file_status``not_found` になる。
- cleanup plan API で not-found Workdir の `action``workdir_record_delete` になる。
- workspace-server tests が通る。

View File

@ -0,0 +1,7 @@
<!-- event: create author: "yoi ticket" at: 2026-07-13T11:43:33Z -->
## 作成
LocalTicketBackend によって作成されました。
---