From f3538dcd1fecf896f6a9e546f7823ffb37e2cff5 Mon Sep 17 00:00:00 2001 From: Hare Date: Fri, 26 Jun 2026 01:45:30 +0900 Subject: [PATCH 1/2] ticket: route runtime bundle and console blockers --- .../artifacts/orchestration-plan.jsonl | 1 + .yoi/tickets/00001KVZ9JGK0/item.md | 2 +- .yoi/tickets/00001KVZ9JGK0/thread.md | 29 +++++++++++++++++++ .../artifacts/orchestration-plan.jsonl | 1 + .yoi/tickets/00001KVZQHPNY/item.md | 2 +- .yoi/tickets/00001KVZQHPNY/thread.md | 29 +++++++++++++++++++ 6 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 .yoi/tickets/00001KVZ9JGK0/artifacts/orchestration-plan.jsonl create mode 100644 .yoi/tickets/00001KVZQHPNY/artifacts/orchestration-plan.jsonl diff --git a/.yoi/tickets/00001KVZ9JGK0/artifacts/orchestration-plan.jsonl b/.yoi/tickets/00001KVZ9JGK0/artifacts/orchestration-plan.jsonl new file mode 100644 index 00000000..39afc0a4 --- /dev/null +++ b/.yoi/tickets/00001KVZ9JGK0/artifacts/orchestration-plan.jsonl @@ -0,0 +1 @@ +{"id":"orch-plan-20260625-164513-1","ticket_id":"00001KVZ9JGK0","kind":"blocked_by","related_ticket":"00001KVZSGT0Q","note":"Queue routing checked after Dashboard Queue. Backend internal Companion Runtime/Web Console depends on embedded worker-runtime Backend Registry connection `00001KVZSGT0Q`, which is still queued and itself blocked by earlier worker-runtime/core/Backend foundation dependencies. Do not start MVP implementation until that dependency chain is completed.","author":"yoi-orchestrator","at":"2026-06-25T16:45:13Z"} diff --git a/.yoi/tickets/00001KVZ9JGK0/item.md b/.yoi/tickets/00001KVZ9JGK0/item.md index ed2d026d..e04d7157 100644 --- a/.yoi/tickets/00001KVZ9JGK0/item.md +++ b/.yoi/tickets/00001KVZ9JGK0/item.md @@ -2,7 +2,7 @@ title: 'Backend内蔵Companion RuntimeとWeb Console MVP' state: 'queued' created_at: '2026-06-25T11:45:17Z' -updated_at: '2026-06-25T16:44:45Z' +updated_at: '2026-06-25T16:45:24Z' assignee: null queued_by: 'workspace-panel' queued_at: '2026-06-25T16:44:45Z' diff --git a/.yoi/tickets/00001KVZ9JGK0/thread.md b/.yoi/tickets/00001KVZ9JGK0/thread.md index 6b4614cd..aa345624 100644 --- a/.yoi/tickets/00001KVZ9JGK0/thread.md +++ b/.yoi/tickets/00001KVZ9JGK0/thread.md @@ -30,4 +30,33 @@ Marked ready by `yoi ticket state`. Ticket を `workspace-panel` が queued にしました。 +--- + + + +## Decision + +Routing decision: blocked_by_dependency_or_missing_authority + +Reason: +- Dashboard Queue による routing 許可を受けて Ticket / relations / orchestration plan / queue state を確認した。 +- 本 Ticket は `00001KVZSGT0Q` (`Backend RuntimeRegistryにembedded worker-runtimeを接続する`) に `depends_on` relation を持つ。 +- `00001KVZSGT0Q` は現在 `queued` で、さらに `00001KVZKSV6C` / `00001KVZBCQH4` の依存 chain により blocked と判断済み。 +- Backend internal Companion Runtime / Web Console MVP は Backend RuntimeRegistry 上の embedded worker-runtime connection を前提にするため、基盤確定前に開始しない。 + +Evidence checked: +- Ticket body: Backend internal Companion runtime、conversation/transcript model、Web API、Web Console UI、Runtime/LLM integration、Safety/authority、Non-goals。 +- Relations: outgoing `depends_on -> 00001KVZSGT0Q`。 +- Orchestration plan: blocker record `orch-plan-20260625-164513-1` を追加。 +- Queue state: queued は本 Ticket を含む6件。inprogress は worker-runtime core `00001KVZBCQH4` 1件。 +- Workspace state: core implementation is under reviewer Worker; dependent Backend Registry work is not accepted yet。 + +Next action: +- 本 Ticket は queued のまま待機。 +- `00001KVZSGT0Q` が accepted/completed して Backend embedded runtime connection が使えるようになった後、再 routing する。 + +Escalate if: +- Companion MVP を `00001KVZSGT0Q` 完了前に独立 spike する human decision がある。 +- Backend internal Runtime foundation の scope が Companion MVP requirements を満たさない。 + --- diff --git a/.yoi/tickets/00001KVZQHPNY/artifacts/orchestration-plan.jsonl b/.yoi/tickets/00001KVZQHPNY/artifacts/orchestration-plan.jsonl new file mode 100644 index 00000000..797945f2 --- /dev/null +++ b/.yoi/tickets/00001KVZQHPNY/artifacts/orchestration-plan.jsonl @@ -0,0 +1 @@ +{"id":"orch-plan-20260625-164457-1","ticket_id":"00001KVZQHPNY","kind":"blocked_by","related_ticket":"00001KVZBCQH4","note":"Queue routing checked after Dashboard Queue. Profile/config bundle sync depends on worker-runtime core `00001KVZBCQH4`, which is currently inprogress and under review. Do not start sync implementation until core CreateWorkerRequest/Profile boundary is reviewed/merged/done.","author":"yoi-orchestrator","at":"2026-06-25T16:44:57Z"} diff --git a/.yoi/tickets/00001KVZQHPNY/item.md b/.yoi/tickets/00001KVZQHPNY/item.md index 76e65f19..a7df9195 100644 --- a/.yoi/tickets/00001KVZQHPNY/item.md +++ b/.yoi/tickets/00001KVZQHPNY/item.md @@ -2,7 +2,7 @@ title: 'RuntimeへProfile/config bundleを同期する' state: 'queued' created_at: '2026-06-25T15:49:30Z' -updated_at: '2026-06-25T16:44:39Z' +updated_at: '2026-06-25T16:45:08Z' assignee: null queued_by: 'workspace-panel' queued_at: '2026-06-25T16:44:39Z' diff --git a/.yoi/tickets/00001KVZQHPNY/thread.md b/.yoi/tickets/00001KVZQHPNY/thread.md index cd193280..c72f834a 100644 --- a/.yoi/tickets/00001KVZQHPNY/thread.md +++ b/.yoi/tickets/00001KVZQHPNY/thread.md @@ -30,4 +30,33 @@ Marked ready by `yoi ticket state`. Ticket を `workspace-panel` が queued にしました。 +--- + + + +## Decision + +Routing decision: blocked_by_dependency_or_missing_authority + +Reason: +- Dashboard Queue による routing 許可を受けて Ticket / relations / orchestration plan / queue state を確認した。 +- 本 Ticket は `00001KVZBCQH4` (`worker-runtime core crateと組み込みRuntime APIを作る`) に `depends_on` relation を持つ。 +- `00001KVZBCQH4` は現在 `inprogress` で、implementation/package fix commits はあるが reviewer review 中。merge / Orchestrator validation / done ではない。 +- Config bundle sync は worker-runtime core の `CreateWorkerRequest` / Profile selector / `ConfigBundleRef` boundary に依存するため、core API 確定前に implementation side effect を開始しない。 + +Evidence checked: +- Ticket body: config bundle model、Runtime sync API、Worker creation integration、Backend responsibility、Plugin/host policy boundary、Non-goals。 +- Relations: outgoing `depends_on -> 00001KVZBCQH4`; incoming related `00001KVZSGT14`。 +- Orchestration plan: blocker record `orch-plan-20260625-164457-1` を追加。 +- Queue state: queued は本 Ticket を含む6件。inprogress は `00001KVZBCQH4` 1件。 +- Workspace state: orchestration worktree is clean at queue commit; core implementation is under reviewer Worker. + +Next action: +- 本 Ticket は queued のまま待機。 +- `00001KVZBCQH4` が reviewer approve / merge / validation / done になった後、再 routing する。 + +Escalate if: +- core の `CreateWorkerRequest` / `ConfigBundleRef` placeholder が bundle sync requirements を満たさない。 +- bundle sync のために REST server / FS store / Plugin manager 実装を同時に要求する形になりそうな場合。 + --- From fb6f0ce068893f3d1db018bd0374b1a85b42fe74 Mon Sep 17 00:00:00 2001 From: Hare Date: Fri, 26 Jun 2026 01:46:23 +0900 Subject: [PATCH 2/2] ticket: request worker runtime lifecycle fix --- .yoi/tickets/00001KVZBCQH4/item.md | 2 +- .yoi/tickets/00001KVZBCQH4/thread.md | 31 ++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/.yoi/tickets/00001KVZBCQH4/item.md b/.yoi/tickets/00001KVZBCQH4/item.md index b20cdb02..75094ed1 100644 --- a/.yoi/tickets/00001KVZBCQH4/item.md +++ b/.yoi/tickets/00001KVZBCQH4/item.md @@ -2,7 +2,7 @@ title: 'worker-runtime core crateと組み込みRuntime APIを作る' state: 'inprogress' created_at: '2026-06-25T12:17:05Z' -updated_at: '2026-06-25T16:37:25Z' +updated_at: '2026-06-25T16:46:17Z' assignee: null queued_by: 'workspace-panel' queued_at: '2026-06-25T16:20:10Z' diff --git a/.yoi/tickets/00001KVZBCQH4/thread.md b/.yoi/tickets/00001KVZBCQH4/thread.md index 57da4e3a..d6d3f080 100644 --- a/.yoi/tickets/00001KVZBCQH4/thread.md +++ b/.yoi/tickets/00001KVZBCQH4/thread.md @@ -524,3 +524,34 @@ Residual notes: - merge / close / cleanup は未実施。 --- + + + +## Review: request changes + +Review result: request_changes + +主なブロッカー: + +- `stop_worker` / `cancel_worker` の terminal lifecycle が不安定です。 + `Runtime::transition_worker` は「同じ status への再実行」だけを idempotent 扱いし、既に `Stopped` の Worker に `cancel_worker`、既に `Cancelled` の Worker に `stop_worker` を呼ぶと、terminal state を別の terminal state に上書きできます。 + - 該当: `crates/worker-runtime/src/runtime.rs:209-235`, `353-385` + - 現状ロジック: `worker.status == status` の場合のみ早期 return、それ以外は `worker.status = status` + - 影響: stop/cancel が terminal lifecycle として安定せず、summary の `stopped_worker_count` / `cancelled_worker_count` や event history が後続操作で意味を変えられる。 + - テストも `stop` と `cancel` を別 Worker で確認しているだけで、`stop -> cancel` / `cancel -> stop` の不変条件を覆っていません。 + - 期待: terminal Worker への反対側 terminal 操作は拒否するか、既存 terminal state を保持する idempotent 応答にし、該当テストを追加してください。 + +確認した範囲: + +- `crates/worker-runtime` は workspace / default-members / workspace.dependencies に追加済み。 +- crate 依存は `serde` / `thiserror` のみで、HTTP/WS/FS/provider 依存の追加は見当たりません。 +- API は `management`, `catalog`, `interaction`, `observation`, `diagnostics`, `identity` に分離されています。 +- `Runtime` は concrete entity として実装され、Worker 操作は `WorkerRef { runtime_id, worker_id }` を要求しています。pod/socket/session path を authority とする API は見当たりません。 +- event cursor/subscription placeholder は `runtime_id` 検証、bounded `read_events`、`PollOnly` subscription として概ね意図に合っています。 +- `CreateWorkerRequest` は `WorkerIntent`, `ProfileSelector`, optional `ConfigBundleRef`, requested capabilities, workspace/mount refs を保持しています。 +- tools-less 作成と diagnostics のテストは存在します。 +- `package.nix` の `cargoHash` 更新コミットは確認しました。 +- `git diff --check f8d3b1cc..HEAD` は成功。 + cargo/nix の再実行は、read-only 指示と上記 blocker があるため実施していません。 + +---