From 724a5da67bfb5ed8d38a231da755cff032b9bfca Mon Sep 17 00:00:00 2001 From: Hare Date: Thu, 16 Jul 2026 01:19:19 +0900 Subject: [PATCH] ticket: plan workspace ticket settings consolidation --- .yoi/tickets/00001KXK9507N/artifacts/.gitkeep | 0 .yoi/tickets/00001KXK9507N/item.md | 30 +++++++++++ .yoi/tickets/00001KXK9507N/thread.md | 51 +++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 .yoi/tickets/00001KXK9507N/artifacts/.gitkeep create mode 100644 .yoi/tickets/00001KXK9507N/item.md create mode 100644 .yoi/tickets/00001KXK9507N/thread.md diff --git a/.yoi/tickets/00001KXK9507N/artifacts/.gitkeep b/.yoi/tickets/00001KXK9507N/artifacts/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/.yoi/tickets/00001KXK9507N/item.md b/.yoi/tickets/00001KXK9507N/item.md new file mode 100644 index 00000000..bb674f63 --- /dev/null +++ b/.yoi/tickets/00001KXK9507N/item.md @@ -0,0 +1,30 @@ +--- +title: 'Consolidate Ticket configuration into Workspace settings' +state: 'ready' +created_at: '2026-07-15T16:18:25Z' +updated_at: '2026-07-15T16:18:40Z' +assignee: null +--- + +## 背景 + +`.yoi/ticket.config.toml` は現在、Ticket backend root/provider、Ticket record language、orchestration defaults、固定 role launch config を持っている。Worker Ticket tools は Workspace backend 経由の Ticket authority に寄せ始めており、Ticket 専用 config file が Workspace settings から独立している状態は設定境界として不自然になっている。 + +local backend の listen address、DB path、runtime store、remote runtime endpoint などの local-only operational settings は project/workspace の Ticket policy とは分けたまま、Ticket に関する durable policy を Workspace settings に統合する。 + +## 要件 + +- tracked な Workspace project settings を Ticket configuration の durable authority として導入または再利用する。 +- Ticket backend provider/root、Ticket record language、orchestration defaults、固定 role launch config を Workspace settings namespace 配下へ移す。 +- local-only backend/runtime settings と tracked project/workspace Ticket policy を混ぜない。 +- Ticket CLI、Worker Ticket feature setup、workspace-server Ticket backend endpoint、Panel / role launch code、関連 tests が Workspace settings authority から Ticket settings を解決するように更新する。 +- `.yoi/ticket.config.toml` は必要なら移行用に narrow な read-only fallback として読むが、長期的な active authority として残さない。 +- workspace-server の Ticket backend endpoint が `.yoi/tickets` を hard-code せず、設定された Ticket backend root を尊重する。 + +## 受け入れ条件 + +- Ticket backend root、language、orchestration defaults、role slots の Workspace settings loading を tests で確認している。 +- 既存の Ticket CLI と Worker Ticket tools が default では同じ `.yoi/tickets` data に対して動作し続ける。 +- Workspace settings で non-default Ticket backend root を設定した場合、direct CLI/local path と workspace-server-backed Worker Ticket tools の両方で尊重される。 +- `.yoi/ticket.config.toml` が obsolete/replaced であることを docs または migration note / in-code note に残している。 +- affected crates の `cargo test` と `nix build .#yoi` が通る。 diff --git a/.yoi/tickets/00001KXK9507N/thread.md b/.yoi/tickets/00001KXK9507N/thread.md new file mode 100644 index 00000000..d133a722 --- /dev/null +++ b/.yoi/tickets/00001KXK9507N/thread.md @@ -0,0 +1,51 @@ + + +## 作成 + +LocalTicketBackend によって作成されました。 + +--- + + + +## Plan + +Background: +- `.yoi/ticket.config.toml` currently owns Ticket backend root/provider, Ticket record language, orchestration defaults, and fixed role launch config. +- Workspace backend / Runtime / Worker Ticket tools are moving toward Workspace-owned Ticket authority, so a separate Ticket-specific config file is no longer the right durable settings boundary. +- Local backend operational settings such as listen address, DB path, runtime store, and remote runtime endpoint should remain local/backend settings, not project Ticket policy. + +Requirements: +- Introduce or reuse a tracked Workspace project settings file as the durable authority for Ticket configuration. +- Move Ticket backend provider/root, Ticket record language, orchestration defaults, and fixed role launch config under a Workspace settings namespace. +- Keep local-only backend/runtime settings separate from tracked project/workspace Ticket policy. +- Update Ticket CLI, Worker Ticket feature setup, workspace-server Ticket backend endpoint, Panel/role launch code, and tests to resolve Ticket settings from the Workspace settings authority. +- Preserve a narrow read-only migration path from `.yoi/ticket.config.toml` only if needed for transition, but do not keep it as the long-term active authority. +- Ensure workspace-server Ticket backend endpoint honors the configured Ticket backend root instead of hard-coding `.yoi/tickets`. + +Acceptance criteria: +- New/updated tests cover Workspace settings loading for Ticket backend root, language, orchestration defaults, and role slots. +- Existing Ticket CLI and Worker Ticket tools continue to work against the same `.yoi/tickets` data by default. +- A non-default Ticket backend root configured in Workspace settings is respected by both direct CLI/local paths and workspace-server-backed Worker Ticket tools. +- Documentation or in-code migration notes state that `.yoi/ticket.config.toml` is obsolete/replaced. +- `cargo test` for affected crates and `nix build .#yoi` pass. + + +--- + + + +## Intake summary + +Marked ready by `yoi ticket state`. + +--- + + + +## State changed + +Marked ready by `yoi ticket state`. + + +---