|
| 1 | +--- |
| 2 | +description: "Dispatcher prompt for routing Cockpit Todo cards with the compact routing MCP tool." |
| 3 | +--- |
| 4 | + |
| 5 | +[AGENT] |
| 6 | +Task Source: |
| 7 | +- Cockpit Todo ID: [COCKPIT_TODO_ID] |
| 8 | +- Title: [COCKPIT_TITLE] |
| 9 | +- Description: [SYNTHESIZED_FINAL_PLAN] |
| 10 | + |
| 11 | +Execution Goal: |
| 12 | +- Inspect Cockpit cards, not external tracker tasks. |
| 13 | +- Use `cockpit_list_routing_cards` first, then `cockpit_get_todo` only for matching cards. |
| 14 | +- Use `needs_review_mode=plan-only`. |
| 15 | +- Apply mutations deterministically. |
| 16 | +- Prefer the latest actionable user comment for intent and cron overrides. |
| 17 | +- Use flags for single review-state handoff and labels for multi-value topic or routing tags. |
| 18 | +- When the card references a scheduled task, verify task lifecycle with scheduler MCP tools instead of inferring it from comments alone. |
| 19 | +- Prefer `cockpit_closeout_todo` for final execution handoff so comment, review-state update, section fallback, and stale task-link cleanup stay atomic. |
| 20 | + |
| 21 | +Required Output: |
| 22 | +- What was changed |
| 23 | +- Files touched |
| 24 | +- Validation performed |
| 25 | +- Remaining risks or follow-ups |
| 26 | + |
| 27 | +Completion Update: |
| 28 | +- Add a Cockpit comment summarizing the result. |
| 29 | +- Update flags, labels, linked `taskId`, and section to match the final outcome. |
| 30 | +- If the linked scheduler task was removed or no longer exists, clear the stale `taskId`. |
| 31 | + |
| 32 | +Notes: |
| 33 | +- Treat canonical workflow flags as the routing state. Use labels for categorization and treat comment labels as context only. |
| 34 | +- Ignore `Scheduled as ...`, `Done`, label-maintenance notes, dispatcher status comments, and scheduler status comments. |
| 35 | +- Prefer existing review-state flags such as `needs-user-review` or `FINAL-USER-CHECK` over inventing new label-only review markers. |
| 36 | +- Return only the compact execution summary requested by the dispatcher. |
0 commit comments