From cb565477a665f6a99d70eaae21c46eb0b937bc59 Mon Sep 17 00:00:00 2001 From: Hare Date: Sun, 14 Jun 2026 04:02:24 +0900 Subject: [PATCH] ticket: report panel planning return implementation --- .yoi/tickets/00001KV09X0XC/item.md | 2 +- .yoi/tickets/00001KV09X0XC/thread.md | 35 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/.yoi/tickets/00001KV09X0XC/item.md b/.yoi/tickets/00001KV09X0XC/item.md index 2c07e954..45ae6159 100644 --- a/.yoi/tickets/00001KV09X0XC/item.md +++ b/.yoi/tickets/00001KV09X0XC/item.md @@ -2,7 +2,7 @@ title: 'Panel から ready Ticket を指示付きで planning に戻して Intake を再開できるようにする' state: 'inprogress' created_at: '2026-06-13T10:54:34Z' -updated_at: '2026-06-13T18:41:25Z' +updated_at: '2026-06-13T19:01:36Z' assignee: null readiness: 'implementation_ready' risk_flags: ['panel-action', 'ticket-lifecycle', 'role-session', 'authority-boundary'] diff --git a/.yoi/tickets/00001KV09X0XC/thread.md b/.yoi/tickets/00001KV09X0XC/thread.md index c251c7b6..36499fb8 100644 --- a/.yoi/tickets/00001KV09X0XC/thread.md +++ b/.yoi/tickets/00001KV09X0XC/thread.md @@ -69,4 +69,39 @@ Validation: Ticket evidence、relation records、orchestration plan、workspace state を確認した。Blocking relation はなく、implementation-ready。実装 side effect の前に inprogress acceptance を記録する。 +--- + + + +## Implementation report + +Commit: `f74146c6` (`tui: return ready tickets to planning from panel`) + +Files changed: +- `crates/tui/src/multi_pod.rs` + +What changed: +- Added a separate Panel path for selected `ready` Ticket rows when the composer target is Ticket Intake and the user submits non-empty refinement instructions. +- The action rereads the Ticket through the typed local Ticket backend and records a typed `ready -> planning` `state_changed` event with the user's refinement instruction in the Ticket thread. +- The action does not invoke Queue, `queued -> inprogress`, worktree creation, or implementation-role spawning. +- After the state change it attempts the Intake continuation path: + - launch and claim a new Intake Pod when no local Intake claim exists, + - notify a live claimed Intake Pod, + - open/restore a restorable claimed Intake Pod, + - or leave a visible diagnostic for stale claims without launching a duplicate. +- Added focused tests for stale-state rejection, state/event recording, action dispatch selection, launch-after-mutation followup, and role-session claim recording for post-launch Intake Pods. + +Validation: +- `cargo test -p tui planning_return` +- `cargo test -p tui intake_registry` +- `cargo test -p tui workspace_panel` +- `cargo test -p ticket` +- `cargo fmt --check` +- `git diff --check` + +Residual risks: +- No real terminal/PTTY Panel E2E was run; coverage is focused unit/action-path validation. +- The existing Panel composer model exposes this via Ticket Intake target + selected ready row + non-empty text, rather than adding a new visible button/menu surface. + + ---