From 0c5a769abb213f8162ea5608b04eea36472f1151 Mon Sep 17 00:00:00 2001 From: Hare Date: Sun, 28 Jun 2026 15:02:59 +0900 Subject: [PATCH] ticket: accept workspace companion llm worker --- .../artifacts/orchestration-plan.jsonl | 1 + .yoi/tickets/00001KW55B33H/item.md | 4 +- .yoi/tickets/00001KW55B33H/thread.md | 38 +++++++++++++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) diff --git a/.yoi/tickets/00001KW55B33H/artifacts/orchestration-plan.jsonl b/.yoi/tickets/00001KW55B33H/artifacts/orchestration-plan.jsonl index 97335d0d..850ac141 100644 --- a/.yoi/tickets/00001KW55B33H/artifacts/orchestration-plan.jsonl +++ b/.yoi/tickets/00001KW55B33H/artifacts/orchestration-plan.jsonl @@ -1 +1,2 @@ {"id":"orch-plan-20260627-190816-1","ticket_id":"00001KW55B33H","kind":"blocked_by","related_ticket":"00001KW55B33B","note":"Queue routing checked. Workspace Companion real LLM Worker execution depends on embedded worker-runtime to worker crate connection `00001KW55B33B`, which is queued and blocked by execution backend boundary `00001KW55B32Y`. Leave queued until dependency chain is done.","author":"yoi-orchestrator","at":"2026-06-27T19:08:16Z"} +{"id":"orch-plan-20260628-060239-2","ticket_id":"00001KW55B33H","kind":"accepted_plan","note":"Queue continuation requested by user. Dependency `00001KW55B33B` is closed and validated, so the Companion real LLM Worker Ticket is now unblocked. There are no other queued Tickets.","accepted_plan":{"summary":"前段 `00001KW55B33B` が closed になったため、Workspace Backend 起動時の `workspace_companion` を実 LLM execution backend 付き Worker として spawn し、Worker list / Worker Console から通常 Worker として attach/send できる状態を完成させる。Companion 専用 fake/providerless response は復活させず、provider/config/secret 不足は typed diagnostic として扱う。","branch":"work/00001KW55B33H-workspace-companion-llm-worker","worktree":"/home/hare/Projects/yoi/.worktree/00001KW55B33H-workspace-companion-llm-worker","role_plan":"Orchestrator が dedicated child worktree を作成し、coder Worker に `crates/workspace-server`, 必要に応じて `crates/worker`, `crates/worker-runtime`, `web/workspace`, root Cargo/package files の focused write scope を委譲する。reviewer Worker は read-only で Companion bootstrap、Worker input API 経路、protocol event / transcript / Web Console 表示、provider/config 不足時の typed diagnostic、fake response absence、Browser-facing non-leak を確認する。merge/validation/done/cleanup は Orchestrator が行う。現時点では `StopPod` は使用せず、cleanup は child worktree/branch のみ行う。"},"author":"yoi-orchestrator","at":"2026-06-28T06:02:39Z"} diff --git a/.yoi/tickets/00001KW55B33H/item.md b/.yoi/tickets/00001KW55B33H/item.md index 0db113f0..071d462e 100644 --- a/.yoi/tickets/00001KW55B33H/item.md +++ b/.yoi/tickets/00001KW55B33H/item.md @@ -1,8 +1,8 @@ --- title: 'Workspace Companionを実LLM実行Workerとして起動する' -state: 'queued' +state: 'inprogress' created_at: '2026-06-27T18:26:47Z' -updated_at: '2026-06-27T19:08:35Z' +updated_at: '2026-06-28T06:02:54Z' assignee: null queued_by: 'workspace-panel' queued_at: '2026-06-27T19:06:32Z' diff --git a/.yoi/tickets/00001KW55B33H/thread.md b/.yoi/tickets/00001KW55B33H/thread.md index e6eabe35..54c9ea14 100644 --- a/.yoi/tickets/00001KW55B33H/thread.md +++ b/.yoi/tickets/00001KW55B33H/thread.md @@ -55,3 +55,41 @@ Next action: - `00001KW55B33B` が done になった後に再 routing する。 --- + + + +## Decision + +Routing decision: + +Queue continuation was explicitly requested. The upstream dependency `00001KW55B33B` is now closed after review, merge, validation, and cleanup. This Ticket is therefore unblocked and accepted for implementation. + +Plan: +- Create child implementation worktree: + - `/home/hare/Projects/yoi/.worktree/00001KW55B33H-workspace-companion-llm-worker` +- Branch: + - `work/00001KW55B33H-workspace-companion-llm-worker` +- Route implementation to a sibling Coder Worker with focused write scope. +- Route read-only review to a sibling Reviewer Worker after implementation. +- Orchestrator retains merge, final validation, Ticket completion, child worktree/branch cleanup, and final reporting. + +Review/implementation focus: +- Workspace Backend bootstraps `workspace_companion` as an executable Worker with real `worker` crate execution adapter. +- Worker list / Worker Console use the normal `runtime_id + worker_id` authority and Backend Worker input API. +- Console Send reaches real Worker execution path and uses `protocol::Event` / transcript projection, not Companion-specific fake/providerless messages. +- provider/model/secret/profile/authority absence returns typed diagnostic and does not present the Worker as input-capable. +- `/api/companion/messages`, if retained, must not return fake response and should be a thin normal Worker input path wrapper or non-authoritative compatibility path. +- Browser-facing API must not leak raw handles, sockets, session paths, credentials, secret refs, raw manifest paths, or broad authority internals. + +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 worktree/branch unless this is explicitly reauthorized. + +--- + + + +## State changed + +Queue continuation requested by user. Dependency `00001KW55B33B` is closed with merge and validation complete, so this Ticket has no remaining blockers. Accepting implementation before child worktree / role Pod side effects. + +---