Status progression

From jpicklyk/task-orchestrator · View interactive version

Status progression is an AI agent skill from the GitHub repository jpicklyk/task-orchestrator. Navigates role transitions for MCP work items: shows the current role, gate status, missing notes and the right trigger; use when a user says: advance this item, move to work, start this task, complete this item, what's the next status, why can't I advance, unblock this, cancel this item, reopen thi

How to use this skill

Skill file

Status Progression

Guides role transitions for a work item: identify it, read its gate status, fill missing notes, advance, and recover from a blocked or failed transition. Shapes are in CODE0 (advance transition); semantics are in current/docs/api-reference.md ("advance" and "items_read"). Ids below are 8-hex shorts and any id field also takes the full UUID. Read every answer through the envelope: ok, then data.results[0] (ok or error) and data.summary {ok, failed}. When a write element fails, the call-level error is only partial_failure (no detail, no fix): read code, kind (retry class), detail and fix from data.results[0].error. A read (select) call reports its failure in the call-level error.

Director mode

Director mode is the session state entered by /task-orchestrator:director (or by running as the hardened director agent). Here the director-safe reads are items_read get and blocked (they show the role, the block reason, a decisionId and whether the item is resumable), and on the orchestration connection context (the gate state; the director profile does not serve it). Never run advance or notes_write in director mode: the guard denies them. Answering an open decision goes through /task-orchestrator:director. Every transition, a resume once the item is resumable included, is delegated: SendMessage the run's orchestrator when the item is a member of an open or paused run, otherwise dispatch ONE background Agent (run_in_background: true, model set) that runs the steps below. The agent reports the item id, the role before and after, and one line on any gate or block, never note bodies. A background agent dispatched by a director is not in director mode: it runs the steps below.

Step 1: Identify the item

Resolve $ARGUMENTS to an id with a search; if several match, show them via AskUserQuestion. With no argument, ask for an id or a title fragment.

{"tool": "items_read", "select": "search", "args": {"query": "OAuth login", "kinds": ["item"], "limit": 5}}

Step 2: Read the state

{"tool": "items_read", "select": "context", "args": {"itemId": "4b7d0e19"}}

Render a status card from the answer:

* "Implement authentication module"
  Role:     work
  Gate:     BLOCKED - 2 required notes missing
  Missing:  implementation-notes (work), session-tracking (work)
  Guidance: "A delta record for the next reader, not a change log..."
  Next:     start -> review

| Field | Show |

|---|---|

| item.role | the role (absent for a lifecycle-free item: no card, it has no lifecycle) |

| gateStatus.canAdvance | open or blocked (seat enforcement and claim ownership are not checked, so a member of an open run can still answer seat_forbidden) |

| gateStatus.missing, missingBySeat | each missing note key and role, and which seat owns it |

| gateStatus.blockedBy | first failing gate: table, dependency, note, lease |

| guidanceKey | resolve its text with items_read schema (fields: ["guidance"]) and show it as Guidance |

| transitions | the allowed triggers and the role each leads to |

| item.blockedReason, item.decisionId | for a blocked item: why it is blocked (below) |

| decisions[] | the item's decisions, withdrawn ones excluded: id, class, status, and the chosen option once answered |

A schema-free item has an open gate: the schema read answers {schemaFree: true}.

Step 3: Fill missing notes

If canAdvance is false because of notes, fill them from the conversation; ask the user when the content cannot be inferred. Send them in one call, an upsert element per note:

{"tool": "notes_write", "op": "upsert", "args": {"itemId": "4b7d0e19", "key": "implementation-notes", "role": "work", "body": "No deviations; nothing a reader of the diff would miss."}}

Re-read context and confirm canAdvance is true. Only one guidanceKey is returned at a time (the first unfilled required note); schema[] lists all of them.

Step 4: Advance

{"tool": "advance", "op": "transition", "args": {"itemId": "4b7d0e19", "trigger": "start", "summary": "Implementation finished"}}

Report from data.results[0]:

OK queue -> work
  Cascade: "Feature: Auth System" also moved queue -> work
  Unblocked: "Write integration tests"
  Next phase notes: implementation-notes (work), session-tracking (work)

| Field | Report |

|---|---|

| previousRole, newRole | the transition |

| cascades | parents that moved, or were suppressed (applied: false, with blocked or reason) |

| unblocked | items now actionable |

| expectedNotes | notes the new phase expects |

Omit a line when its field is empty.

Triggers

| Trigger | From | To | Notes |

|---|---|---|---|

| start | queue, work, review | work, review, terminal | review to terminal; work to terminal when the schema has no review notes. Gates the current phase |

| complete | any non-terminal, non-blocked | terminal | checks required notes of every phase |

| cancel | any non-terminal | terminal | statusLabel cancelled; bypasses note gates, not claim ownership |

| block / hold | any non-terminal, non-blocked | blocked | take reason (below) |

| resume | blocked | previous role | clears the reason |

| reopen | terminal | queue | clears statusLabel, bypasses note gates (not claim ownership), and is a pin point (the item is re-pinned to the current config) |

Blocked items

block and hold take an optional reason: awaiting_decision, dependency, resource or manual (default). reason: awaiting_decision requires a decisionId naming an open or acknowledged decision on that item. Get one by raising with block: true (runs_write raise), which raises and blocks in one unit; do not send a bare block for a decision (see references/decisions.md). A decisionId with any other reason, or reason/decisionId on a trigger other than block/hold, is invalid_request:

{"tool": "advance", "op": "transition", "args": {"itemId": "4b7d0e19", "trigger": "block", "reason": "awaiting_decision", "decisionId": "7c9e6679"}}

Troubleshooting

gate_blocked. data.results[0].error.detail.missing[] lists the notes. Fill them (Step 3) and retry. Also read detail.violations[].gate: missing and violations may both be present, and a review-pending or independence violation is not cleared by filling notes.

seat_forbidden. The item is a member of an open or paused run whose schema declares seats, and the caller may not send that trigger. detail.allowedSeats names who may (it always starts with coordinator). The run's orchestrator resends with its run token as top-level seatToken; otherwise leave the transition to the run, and never retry it token-less. This also covers resume of a decision-blocked run member: the orchestrator sends it with its token, and a member seat may resume only if its seat transitions: list resume. Or close the run first.

run_paused. A start under a token of a run paused on its attempt limit or by a manual pause. Read detail.pauseReason and detail.pauseDecisionId (absent on a manual pause); the answer comes from the user or the director, through the board's decision inbox. Do not retry.

Blocked by a dependency (dependency_unmet). Find the blockers; advance them first, then this item appears in their unblocked:

{"tool": "items_read", "select": "blocked", "args": {"ancestorId": "98d452e9"}}

Use /dependency-manager to view or change the edges.

Item is in the blocked role and start fails. start is not valid from blocked. Read blockedReason first. A pending decision (awaiting_decision, not resumable) must be answered, not resumed. Otherwise send resume (see Triggers), re-read context, then start.

Skip the review phase. complete jumps from work straight to terminal but checks every phase's required notes; fill what is missing or use cancel.

resource_unavailable (kind transient). A shared resource the item declares through a trait is held by another item. This is not a note gate: do not fill notes and do not spin-retry. Report data.results[0].error.detail.resources[] and data.results[0].error.retryAfterMs, work a different item, and retry later. To see the holder, read context resourceLeases (holderItemId, expiresAt); an operator can clear a stuck lease with DELETE /api/v1/resources/leases/{key} (admin). See Workflow Guide, Resource Leasing.

A parent cascaded unexpectedly. Cascades are by design: the first child starting moves a queued parent to work; the last child reaching terminal moves the parent to terminal. The cascades list shows each parent and why. A parent in review is never moved by that cascade (applied: false, review-pending): it needs its own explicit complete (or its review, then start).

invalid_transition. Read data.results[0].error.detail.fromRole and .allowed. A terminal item allows only reopen; a lifecycle-free item (fromRole: none) allows nothing.

Item is terminal and should be worked again. Send reopen; it returns to queue and its terminal parent returns to work.

What next? The next ready item, ranked by priority (limit defaults to 1):

{"tool": "items_read", "select": "next", "args": {"role": "queue", "limit": 3}}

An empty answer with a reason (claim_held, dependency_unmet) means wait; no reason means nothing matches.

For work inside an open run, the run's frontier is the authoritative ready list (ready, with inFlight and waiting beside it):

{"tool": "runs_read", "select": "frontier", "args": {"runId": "7c41e0a2"}}

Example: gated flow

  1. context shows role: queue, canAdvance: false, missing: ["feature-summary"].
  2. Resolve its guidance, draft the note from the conversation, notes_write upsert it with role: "queue".
  3. context again: canAdvance: true.
  4. advance transition start answers newRole: work and expectedNotes for the work phase. Fill those as work proceeds, then return control; the orchestrator advances to review or terminal.

Quick decision guide

| Situation | Action |

|---|---|

| In queue, no gate | start |

| In queue, notes missing | fill them, then start |

| In work, ready for review | start |

| In work, skip review | complete (checks all phases) |

| In review, verified | start (lands terminal) |

| Needs pausing | block or hold with a reason |

| In blocked, decision pending | have it answered (director), then resume once resumable |

| In blocked, any other reason | resume |

| Abandon | cancel |

| Terminal, needs rework | reopen |

| Blocked by another item | advance the blocker first |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.