diff --git a/.yoi/tickets/00001KW76E8EG/item.md b/.yoi/tickets/00001KW76E8EG/item.md index 5ed674b8..bbb5ab2f 100644 --- a/.yoi/tickets/00001KW76E8EG/item.md +++ b/.yoi/tickets/00001KW76E8EG/item.md @@ -2,7 +2,7 @@ title: 'Workspace Backendのembedded Runtimeをfs-store永続化に切り替える' state: 'inprogress' created_at: '2026-06-28T13:34:29Z' -updated_at: '2026-06-28T18:40:58Z' +updated_at: '2026-06-28T19:05:47Z' assignee: null queued_by: 'workspace-panel' queued_at: '2026-06-28T17:12:16Z' diff --git a/.yoi/tickets/00001KW76E8EG/thread.md b/.yoi/tickets/00001KW76E8EG/thread.md index bda632f4..63273ab8 100644 --- a/.yoi/tickets/00001KW76E8EG/thread.md +++ b/.yoi/tickets/00001KW76E8EG/thread.md @@ -143,3 +143,50 @@ Implementation focus: - tests cover fs-store restore, ConfigBundle/transcript restore, execution stale/unconnected restore, memory-backed production bypass absence, and store-root non-leak --- + + + +## Implementation report + +Implementation report: + +実装・検証・commit 完了。Ticket ファイル編集、merge、close、cleanup は未実施。 + +Commit: +- `736b05c6 feat: persist embedded workspace runtime in fs store` + +変更概要: +- `workspace-server` で `worker-runtime` の `fs-store` feature を有効化。 +- `ServerConfig` に `embedded_runtime_store_root` を追加し、既定値を user data 配下の `workspace-server//embedded-runtime` に設定。 +- 通常の `WorkspaceApi` 生成経路を `EmbeddedWorkerRuntime::new_memory_with_execution_backend` から `new_fs_store_with_execution_backend` に切り替え。 +- `Runtime::with_fs_store_and_execution_backend` を使う fs-store backed constructor を追加。 +- 再起動後の Worker は live handle 接続済みと偽らず、`stale` / `unconnected` の診断を Browser API projection に残すようにした。 +- store root / raw path / handle が Browser API に出ないことをテスト。 +- `package.nix` の `cargoHash` を更新。 + +追加・更新テスト: +- fs-store restart restore: + - catalog / Worker snapshot + - ConfigBundle + - transcript + - stale execution projection / input rejection +- store root isolation / non-leak +- 既存 workspace-server tests は明示的 temp store root を使うよう調整。 + +Validation: +- `cargo fmt`: success +- `cargo fmt -- --check`: success +- `cargo test -p yoi-workspace-server`: success +- `cargo test -p worker-runtime --features "ws-server fs-store"`: success +- `cargo check -p yoi`: success +- `git diff --check`: success +- `nix build .#yoi`: success + +作業後状態: +- branch: `work/00001KW76E8EG-embedded-runtime-fs-store` +- `git status --short`: clean + +Residual risks: +- 特記すべき未解決リスクなし。再起動後の実行 handle は復元せず stale/unconnected として扱う設計どおり。 + +---