From 1ea10e02ce954e8f62667dfe55bff98acc49c4af Mon Sep 17 00:00:00 2001 From: Hare Date: Sat, 6 Jun 2026 06:26:56 +0900 Subject: [PATCH] ticket: close builtin yoi local backend config --- .../artifacts/.gitkeep | 0 .../artifacts/delegation-intent.md | 0 .../item.md | 4 +- .../resolution.md | 31 ++++++++ .../thread.md | 78 +++++++++++++++++++ .../thread.md | 22 ------ 6 files changed, 111 insertions(+), 24 deletions(-) rename work-items/{open => closed}/20260605-203006-builtin-yoi-local-ticket-backend-config/artifacts/.gitkeep (100%) rename work-items/{open => closed}/20260605-203006-builtin-yoi-local-ticket-backend-config/artifacts/delegation-intent.md (100%) rename work-items/{open => closed}/20260605-203006-builtin-yoi-local-ticket-backend-config/item.md (98%) create mode 100644 work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/resolution.md create mode 100644 work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/thread.md delete mode 100644 work-items/open/20260605-203006-builtin-yoi-local-ticket-backend-config/thread.md diff --git a/work-items/open/20260605-203006-builtin-yoi-local-ticket-backend-config/artifacts/.gitkeep b/work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/artifacts/.gitkeep similarity index 100% rename from work-items/open/20260605-203006-builtin-yoi-local-ticket-backend-config/artifacts/.gitkeep rename to work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/artifacts/.gitkeep diff --git a/work-items/open/20260605-203006-builtin-yoi-local-ticket-backend-config/artifacts/delegation-intent.md b/work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/artifacts/delegation-intent.md similarity index 100% rename from work-items/open/20260605-203006-builtin-yoi-local-ticket-backend-config/artifacts/delegation-intent.md rename to work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/artifacts/delegation-intent.md diff --git a/work-items/open/20260605-203006-builtin-yoi-local-ticket-backend-config/item.md b/work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/item.md similarity index 98% rename from work-items/open/20260605-203006-builtin-yoi-local-ticket-backend-config/item.md rename to work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/item.md index ad50bfa6..a6d4cc82 100644 --- a/work-items/open/20260605-203006-builtin-yoi-local-ticket-backend-config/item.md +++ b/work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/item.md @@ -2,12 +2,12 @@ id: 20260605-203006-builtin-yoi-local-ticket-backend-config slug: builtin-yoi-local-ticket-backend-config title: Builtin yoi_local Ticket backend config -status: open +status: closed kind: task priority: P1 labels: [ticket, backend, config] created_at: 2026-06-05T20:30:06Z -updated_at: 2026-06-05T21:10:22Z +updated_at: 2026-06-05T21:26:56Z assignee: null legacy_ticket: null --- diff --git a/work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/resolution.md b/work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/resolution.md new file mode 100644 index 00000000..69038671 --- /dev/null +++ b/work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/resolution.md @@ -0,0 +1,31 @@ +Implemented canonical Yoi local Ticket backend provider config. + +Final backend config schema: + +```toml +[backend] +provider = "builtin:yoi_local" +root = "work-items" +``` + +`provider = "builtin:yoi_local"` is the canonical spelling. Existing `kind = "local"` config is accepted as a short transitional alias so existing local workspaces/tests do not break during the migration, but docs now show the provider spelling. + +Default root behavior intentionally remains `/work-items` for missing config and for this transitional provider config. This ticket did not move storage to `.yoi/tickets`; that is owned by the follow-up `migrate-ticket-storage-to-yoi-tickets` ticket. + +Implementation commit was merged from branch `work/builtin-yoi-local-ticket-backend-config`. + +Validation after merge: +- `cargo test -p ticket config` +- `cargo test -p ticket` +- `cargo test -p pod ticket --lib` +- `cargo test -p yoi ticket` +- `cargo check --workspace --all-targets` +- `cargo fmt --check` +- `git diff --check HEAD~1..HEAD` +- `target/debug/yoi ticket doctor` +- `./tickets.sh doctor` +- `nix build .#yoi --no-link` + +External review approved with no requested changes. + +`migrate-ticket-storage-to-yoi-tickets` can proceed next. diff --git a/work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/thread.md b/work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/thread.md new file mode 100644 index 00000000..3233656e --- /dev/null +++ b/work-items/closed/20260605-203006-builtin-yoi-local-ticket-backend-config/thread.md @@ -0,0 +1,78 @@ + + +## Created + +Created by tickets.sh create. + +--- + + + +## Plan + +Preflight result: `implementation-ready` with transitional root behavior. + +`provider = "builtin:yoi_local"` should become the canonical backend spelling now, but this ticket must not move records yet. Until `migrate-ticket-storage-to-yoi-tickets` lands, missing config should continue to resolve the active root to `/work-items` so existing Ticket tools/CLI remain usable. + +Implementation should add provider parsing/diagnostics and update active docs/examples, while leaving storage migration and `tickets.sh` removal to follow-up tickets. + +Detailed delegation intent is recorded in `artifacts/delegation-intent.md`. + + +--- + + + +## Review: approve + +External reviewer approved the implementation. + +Review summary: +- No blocking issues found. +- `provider = "builtin:yoi_local"` is supported as the canonical backend spelling. +- Transitional `work-items` storage is preserved. +- Unsupported providers fail closed. +- Legacy `kind = "local"` is retained only as a documented transitional alias. +- Tests/docs were updated sufficiently for this ticket. + + +--- + + + +## Closed + +Implemented canonical Yoi local Ticket backend provider config. + +Final backend config schema: + +```toml +[backend] +provider = "builtin:yoi_local" +root = "work-items" +``` + +`provider = "builtin:yoi_local"` is the canonical spelling. Existing `kind = "local"` config is accepted as a short transitional alias so existing local workspaces/tests do not break during the migration, but docs now show the provider spelling. + +Default root behavior intentionally remains `/work-items` for missing config and for this transitional provider config. This ticket did not move storage to `.yoi/tickets`; that is owned by the follow-up `migrate-ticket-storage-to-yoi-tickets` ticket. + +Implementation commit was merged from branch `work/builtin-yoi-local-ticket-backend-config`. + +Validation after merge: +- `cargo test -p ticket config` +- `cargo test -p ticket` +- `cargo test -p pod ticket --lib` +- `cargo test -p yoi ticket` +- `cargo check --workspace --all-targets` +- `cargo fmt --check` +- `git diff --check HEAD~1..HEAD` +- `target/debug/yoi ticket doctor` +- `./tickets.sh doctor` +- `nix build .#yoi --no-link` + +External review approved with no requested changes. + +`migrate-ticket-storage-to-yoi-tickets` can proceed next. + + +--- diff --git a/work-items/open/20260605-203006-builtin-yoi-local-ticket-backend-config/thread.md b/work-items/open/20260605-203006-builtin-yoi-local-ticket-backend-config/thread.md deleted file mode 100644 index 8fe44ecd..00000000 --- a/work-items/open/20260605-203006-builtin-yoi-local-ticket-backend-config/thread.md +++ /dev/null @@ -1,22 +0,0 @@ - - -## Created - -Created by tickets.sh create. - ---- - - - -## Plan - -Preflight result: `implementation-ready` with transitional root behavior. - -`provider = "builtin:yoi_local"` should become the canonical backend spelling now, but this ticket must not move records yet. Until `migrate-ticket-storage-to-yoi-tickets` lands, missing config should continue to resolve the active root to `/work-items` so existing Ticket tools/CLI remain usable. - -Implementation should add provider parsing/diagnostics and update active docs/examples, while leaving storage migration and `tickets.sh` removal to follow-up tickets. - -Detailed delegation intent is recorded in `artifacts/delegation-intent.md`. - - ----