From 9c54bfe9978b192a9fbd3338fb566f6ad33c54a4 Mon Sep 17 00:00:00 2001 From: Hare Date: Sun, 28 Jun 2026 16:19:54 +0900 Subject: [PATCH] ticket: close workspace companion llm worker --- .yoi/tickets/00001KW55B33H/item.md | 4 +- .yoi/tickets/00001KW55B33H/resolution.md | 32 +++++++ .yoi/tickets/00001KW55B33H/thread.md | 103 +++++++++++++++++++++++ 3 files changed, 137 insertions(+), 2 deletions(-) create mode 100644 .yoi/tickets/00001KW55B33H/resolution.md diff --git a/.yoi/tickets/00001KW55B33H/item.md b/.yoi/tickets/00001KW55B33H/item.md index 0a7828a8..84284ff6 100644 --- a/.yoi/tickets/00001KW55B33H/item.md +++ b/.yoi/tickets/00001KW55B33H/item.md @@ -1,8 +1,8 @@ --- title: 'Workspace Companionを実LLM実行Workerとして起動する' -state: 'inprogress' +state: 'closed' created_at: '2026-06-27T18:26:47Z' -updated_at: '2026-06-28T07:18:37Z' +updated_at: '2026-06-28T07:19:50Z' assignee: null queued_by: 'workspace-panel' queued_at: '2026-06-27T19:06:32Z' diff --git a/.yoi/tickets/00001KW55B33H/resolution.md b/.yoi/tickets/00001KW55B33H/resolution.md new file mode 100644 index 00000000..63ad8953 --- /dev/null +++ b/.yoi/tickets/00001KW55B33H/resolution.md @@ -0,0 +1,32 @@ +Workspace Companion を embedded Runtime / `worker` runtime adapter 経由の実行可能 Worker として扱う実装を行い、reviewer approval 後に orchestration branch へ merge した。 + +実装内容: +- `/api/companion/messages` の旧 `companion_llm_not_connected` 固定拒否経路を廃止し、通常の Worker runtime input path (`RuntimeRegistry::send_input`) に接続。 +- Companion bootstrap を `builtin:companion` profile / Companion config bundle path に変更。 +- Companion transcript projection を Runtime transcript 由来に変更。 +- Companion status / transport を input-capable なら `connected`、不可なら `not_input_capable` + typed diagnostics に変更。 +- `/api/workspace` の `extension_points.companion_console` も Companion の実 status / diagnostics 由来に変更し、stale `not_connected` / disabled note を削除。 +- `ExtensionPointState` に `diagnostics` を追加し、Workspace web type も更新。 +- Browser-facing `/api/workspace` から raw `local_root` exposure を削除。 +- deterministic test backend により Companion bootstrap / input dispatch / assistant output / observation event / transcript projection を Worker execution path 経由で検証。 +- fake/providerless/canned assistant response は導入していない。 +- Worker Console path は `runtime_id + worker_id` keyed のまま維持。 +- public `can_stream_events` / `can_read_bounded_transcript` capability は復活させていない。 + +Integrated commits: +- `ee25cfbcfd90983a24091ef30c0128d653095003 fix: route workspace companion through worker runtime` +- `3be193223c7efc67636667d1ad526646da81fb63 fix: report companion console runtime status` +- merge: `eb06b8a9 merge: workspace companion llm worker` + +Validation: +- `cargo fmt --all --check`: success +- `cd web/workspace && deno task test`: success +- `cd web/workspace && deno task check`: success +- `cd web/workspace && deno task build`: success +- `cargo test -p yoi-workspace-server`: success (`34 passed`) +- `cargo check -p yoi`: success +- `git diff --check`: success +- `nix build .#yoi --no-link`: success + +Operational note: +- User instructed not to use `StopPod` for now after repeated stop/hang symptoms. Cleanup will skip role-Pod shutdown and remove only child implementation worktree / branch. \ No newline at end of file diff --git a/.yoi/tickets/00001KW55B33H/thread.md b/.yoi/tickets/00001KW55B33H/thread.md index 5024a132..33ae8ebb 100644 --- a/.yoi/tickets/00001KW55B33H/thread.md +++ b/.yoi/tickets/00001KW55B33H/thread.md @@ -410,3 +410,106 @@ Evidence: Reported validations は、updated server tests が Companion Console workspace status と runtime dispatch behavior を cover していることも含め、変更内容に対して妥当と判断した。 --- + + + +## Implementation report + +Merge / validation report: + +Implementation branch was integrated into the orchestration branch after reviewer approval. + +Integrated commits: +- `ee25cfbcfd90983a24091ef30c0128d653095003 fix: route workspace companion through worker runtime` +- `3be193223c7efc67636667d1ad526646da81fb63 fix: report companion console runtime status` + +Merge commit: +- `eb06b8a9 merge: workspace companion llm worker` + +Validation in orchestration worktree: +- `cargo fmt --all --check`: success +- `cd web/workspace && deno task test`: success +- `cd web/workspace && deno task check`: success +- `cd web/workspace && deno task build`: success +- `cargo test -p yoi-workspace-server`: success (`34 passed`) +- `cargo check -p yoi`: success +- `git diff --check`: success +- `nix build .#yoi --no-link`: success + +Outcome: +- Workspace Companion now routes through embedded Runtime / `worker` runtime adapter instead of fake/providerless response or fixed non-connected rejection. +- `/api/companion/messages` is a compatibility route over the normal Worker input path. +- Companion bootstrap uses Companion profile / config bundle path. +- Companion status and `/api/workspace` companion console status report `connected` when input-capable, otherwise `not_input_capable` with typed diagnostics. +- Transcript projection is sourced from Runtime transcript / Worker protocol event flow. +- Worker Console path remains keyed by `runtime_id + worker_id`. +- Browser-facing raw `local_root` exposure was removed from `/api/workspace`. +- Public `can_stream_events` / `can_read_bounded_transcript` capability flags were not revived. + +--- + + + +## State changed + +Reviewer approval後に implementation branch を orchestration branch へ merge し、要求された validation が成功したため done に遷移する。 + +Validation: +- `cargo fmt --all --check`: success +- `cd web/workspace && deno task test`: success +- `cd web/workspace && deno task check`: success +- `cd web/workspace && deno task build`: success +- `cargo test -p yoi-workspace-server`: success (`34 passed`) +- `cargo check -p yoi`: success +- `git diff --check`: success +- `nix build .#yoi --no-link`: success + +--- + + + +## State changed + +Ticket を closed にしました。 + + +--- + + + +## 完了 + +Workspace Companion を embedded Runtime / `worker` runtime adapter 経由の実行可能 Worker として扱う実装を行い、reviewer approval 後に orchestration branch へ merge した。 + +実装内容: +- `/api/companion/messages` の旧 `companion_llm_not_connected` 固定拒否経路を廃止し、通常の Worker runtime input path (`RuntimeRegistry::send_input`) に接続。 +- Companion bootstrap を `builtin:companion` profile / Companion config bundle path に変更。 +- Companion transcript projection を Runtime transcript 由来に変更。 +- Companion status / transport を input-capable なら `connected`、不可なら `not_input_capable` + typed diagnostics に変更。 +- `/api/workspace` の `extension_points.companion_console` も Companion の実 status / diagnostics 由来に変更し、stale `not_connected` / disabled note を削除。 +- `ExtensionPointState` に `diagnostics` を追加し、Workspace web type も更新。 +- Browser-facing `/api/workspace` から raw `local_root` exposure を削除。 +- deterministic test backend により Companion bootstrap / input dispatch / assistant output / observation event / transcript projection を Worker execution path 経由で検証。 +- fake/providerless/canned assistant response は導入していない。 +- Worker Console path は `runtime_id + worker_id` keyed のまま維持。 +- public `can_stream_events` / `can_read_bounded_transcript` capability は復活させていない。 + +Integrated commits: +- `ee25cfbcfd90983a24091ef30c0128d653095003 fix: route workspace companion through worker runtime` +- `3be193223c7efc67636667d1ad526646da81fb63 fix: report companion console runtime status` +- merge: `eb06b8a9 merge: workspace companion llm worker` + +Validation: +- `cargo fmt --all --check`: success +- `cd web/workspace && deno task test`: success +- `cd web/workspace && deno task check`: success +- `cd web/workspace && deno task build`: success +- `cargo test -p yoi-workspace-server`: success (`34 passed`) +- `cargo check -p yoi`: success +- `git diff --check`: success +- `nix build .#yoi --no-link`: success + +Operational note: +- User instructed not to use `StopPod` for now after repeated stop/hang symptoms. Cleanup will skip role-Pod shutdown and remove only child implementation worktree / branch. + +---