11 KiB
Created
Created by LocalTicketBackend create.
Decision
Decision: remove standalone preflight concept; use return-to-planning
Do not preserve preflight as a separate workflow concept, operation, or long-lived routing bucket.
The desired model is:
- Intake/Planning prepares a Ticket until it can become
ready. - Orchestrator reads queued/ready work and may find that implementation cannot be planned safely yet.
- In that case, Orchestrator records the missing information/decision and returns the Ticket to
planningwith a visible reason. - There is no separate
preflight_neededstate, no separate preflight lane, and no Intake-authoredneeds_preflightgate.
Responsibility split:
- Intake/Planning owns requirements clarification and Ticket shaping.
- Orchestrator owns routing and may reject/return work to planning when the Ticket lacks required decisions, constraints, or implementation intent.
- Planning owns resolving that returned reason.
Workflow/documentation implications:
- Remove
needs_preflightfrom Intake-facing concepts. Intake may recordrisk_flags, open questions, and readiness, but should not decide that a future Orchestrator preflight operation is required. - Replace Orchestrator
preflight_neededclassification with a planning-return classification such asplanning_needed/return_to_planning/requirements_sync_needed. - Remove or fold
ticket-preflight-workflowinto the planning workflow/docs. The useful content is the checklist for deciding whether a Ticket has enough binding decisions and implementation intent; it should not be exposed as a separate operation/lane. - Risk flags are reviewer/orchestrator attention markers, not stop gates.
- If Orchestrator cannot name a concrete missing decision/information item, it should not return the Ticket to planning merely because the area is risky; it should proceed with an IntentPacket plus escalation/reviewer focus.
Acceptance impact:
- The implementation should update workflow-state terminology, prompts/workflows, panel labels/actions, and tests so missing implementation readiness is represented as a return to
planning, not aspreflight_needed. - Existing mentions of
preflight_neededshould be removed, renamed, or treated as migration/legacy compatibility only where needed.
Intake summary
Existing Ticket was refined as an implementation-ready planning-state replacement task. The binding direction is to replace the user-facing intake workflow state with a planning-oriented state/lane, preserve the Intake role name as separate terminology, and remove standalone preflight / needs_preflight concepts from the user-facing workflow. Orchestrator missing-readiness routing should record a concrete reason and return the Ticket to planning, not create a separate preflight lane. Implementation should update state parsing/normalization or migration, transition graph, panel labels/actions, role/workflow prompts/docs, Ticket tools/CLI surfaces, and tests. Risk flags for routing/review attention: workflow-state, migration, panel-ux, orchestrator-routing, prompt-workflow-docs. No separate preflight gate remains; risk flags are attention markers, not blockers.
State changed
Ticket has enough binding decisions, invariants, acceptance criteria, and validation expectations for Orchestrator routing. Marking ready for user queueing; implementation must not start until the user/panel performs ready -> queued and Orchestrator accepts it.
State changed
Ticket を workspace-panel が queued にしました。
Decision
Routing decision: implementation_ready
Reason:
- Ticket body and thread contain the binding product decision: replace the user-facing
intakeworkflow state/lane with a planning-oriented state and remove standalonepreflight/needs_preflightconcepts. - The Intake summary explicitly marks this as implementation-ready and separates the Intake Pod role name from workflow-state terminology.
- Remaining uncertainty is implementation scope management across model parsing, transition graph, Panel labels/actions, routing/workflow prompts, docs, and tests; these are bounded engineering tasks with clear reviewer criteria.
Evidence checked:
- Ticket body requirements and acceptance criteria.
- Thread decision: remove standalone
preflightconcept and use return-to-planning. - Thread intake summary and latest
ready -> queuedevent. - Workspace state: no matching branch/worktree exists; only this Ticket record is dirty from queue/intake updates.
- Code/workflow map search for
TicketWorkflowState,workflow_state,intake,planning,preflight_needed,needs_preflight, transition graph, Panel derivation, and workflow docs. - Ticket doctor: 0 errors; existing warnings are unrelated legacy closed-Ticket diagnostics.
IntentPacket:
Intent:
- Replace user-facing Ticket workflow state
intakewith a planning-oriented state/lane and make Orchestrator missing-readiness routing return Tickets visibly to planning rather than using standalone preflight concepts.
Binding decisions / invariants:
- Use a planning-oriented workflow state; prefer
planningunless implementation finds a stronger concise name. - Keep the Intake role/profile/persona name separate from workflow state naming.
- Do not preserve
preflightas a separate workflow state, lane, or long-lived operation. - Remove Intake-authored
needs_preflightas a stop gate; risk flags/open questions remain attention markers. - Orchestrator may return
queuedorreadyTickets toplanningonly with a concrete missing decision/information reason. - If Orchestrator cannot name a concrete missing item, it should not return solely because the area is risky; it should proceed with IntentPacket plus escalation/reviewer focus.
- Preserve auditability through typed state-change/routing events.
- Do not redesign implementation worktree/coder/reviewer mechanics except where routing returns to planning.
- Existing
workflow_state: intakemust be handled compatibly and normalized/emitted according to a clear policy.
Requirements / acceptance criteria:
- Replace
TicketWorkflowState::Intakeuser-facing/model output with planning-oriented state. - Define and implement legacy
intakeparsing/migration behavior. - Update transition graph to
planning -> ready -> queued -> inprogress -> doneand support return-to-planning fromready/queuedwith reason. - Update Ticket tools, CLI, Panel labels/actions, prompts/workflows/docs, and tests that treat
intakeas workflow state. - Remove or fold standalone
preflight_neededrouting/workflow language into planning return / requirements-sync language. - Panel should show planning/clarification/preflight-preparation terminology and launch path when no claimed Planning/Intake Pod exists.
- If a claimed live/restorable Intake/Planning Pod exists, Orchestrator return-to-planning should notify/send it the reason where a suitable existing path exists or add a clear follow-up if not practical in the first implementation.
- Tests must cover state parsing/normalization, transition graph, Panel action derivation, and return-to-planning behavior.
Implementation latitude:
- Coder may implement legacy
intakeas an accepted input alias normalized toplanning, or migrate fixtures/records where safe; avoid broad unrelated Ticket rewrites. - Coder may keep internal role strings and Pod names containing
intakewhere they refer to the Intake role, not workflow state. - Coder may stage removal of
ticket-preflight-workflowby updating active references/guidance and leaving compatibility files only if removing them would break workflow discovery unexpectedly; report the boundary. - Coder may choose exact helper names and test split.
Escalate if:
- Removing
needs_preflightrequires a storage migration beyond typed metadata compatibility. - Workflow discovery cannot tolerate removing/renaming
ticket-preflight-workflowwithout a separate migration. - Notifying claimed Planning/Intake Pods requires a new durable relation/notification mechanism rather than existing local role-session claims and peer notification paths.
- Parser normalization would make existing Tickets ambiguous or doctor-invalid without a broad migration.
Validation:
- Ticket crate tests for workflow-state parsing/normalization and transition graph.
- Tool tests for workflow transitions, including return-to-planning from ready/queued and stale transition rejection.
- Panel tests for planning labels/actions and no heuristic fallback to intake.
- Prompt/workflow/doc search ensuring
preflight_needed/needs_preflightare removed or explicitly marked legacy compatibility. - Focused CLI/tool tests selected by coder.
cargo fmt --check.git diff --check.cargo run -q -p yoi -- ticket doctor.- Because Ticket schema/tools/Panel/prompts/workflows are touched, final merge-completion should include
nix build .#yoi.
Current code map:
crates/ticket/src/lib.rsandcrates/ticket/src/tool.rs:TicketWorkflowState, transition graph, tools, doctor/tests.crates/tui/src/workspace_panel.rsandcrates/tui/src/multi_pod.rs: Panel row derivation/actions and queue/return flows.crates/yoi/src/ticket_cli.rs: CLI parsing/display/scaffold tests.crates/client/src/ticket_role.rs: role launch guidance and terminology..yoi/workflow/ticket-intake-workflow.md,.yoi/workflow/ticket-orchestrator-routing.md,.yoi/workflow/ticket-preflight-workflow.md,.yoi/workflow/multi-agent-workflow.md: active workflow guidance.resources/promptsif active prompt text refers to workflow-state intake/preflight.
Critical risks / reviewer focus:
- Do not confuse Intake role identity with planning workflow state.
- Legacy
workflow_state: intakemust not break existing Tickets. - Return-to-planning must require a concrete reason and remain auditable.
- Removing preflight language must not remove the useful checklist for missing binding decisions/invariants; it should be folded into planning/readiness guidance.
- Panel must not infer state from labels/readiness/needs_preflight heuristics.
State changed
Accepted queued implementation after reading the Ticket, workspace state, and workflow-state code map. This acceptance precedes worktree creation and coder/reviewer Pod spawning.