ticket: plan workspace ticket settings consolidation
This commit is contained in:
parent
983ffe6017
commit
724a5da67b
0
.yoi/tickets/00001KXK9507N/artifacts/.gitkeep
Normal file
0
.yoi/tickets/00001KXK9507N/artifacts/.gitkeep
Normal file
30
.yoi/tickets/00001KXK9507N/item.md
Normal file
30
.yoi/tickets/00001KXK9507N/item.md
Normal file
|
|
@ -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` が通る。
|
||||
51
.yoi/tickets/00001KXK9507N/thread.md
Normal file
51
.yoi/tickets/00001KXK9507N/thread.md
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<!-- event: create author: "yoi ticket" at: 2026-07-15T16:18:25Z -->
|
||||
|
||||
## 作成
|
||||
|
||||
LocalTicketBackend によって作成されました。
|
||||
|
||||
---
|
||||
|
||||
<!-- event: plan author: hare at: 2026-07-15T16:18:40Z -->
|
||||
|
||||
## 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.
|
||||
|
||||
|
||||
---
|
||||
|
||||
<!-- event: intake_summary author: hare at: 2026-07-15T16:18:40Z -->
|
||||
|
||||
## Intake summary
|
||||
|
||||
Marked ready by `yoi ticket state`.
|
||||
|
||||
---
|
||||
|
||||
<!-- event: state_changed author: "yoi ticket" at: 2026-07-15T16:18:40Z from: planning to: ready reason: cli_state field: state -->
|
||||
|
||||
## State changed
|
||||
|
||||
Marked ready by `yoi ticket state`.
|
||||
|
||||
|
||||
---
|
||||
Loading…
Reference in New Issue
Block a user