skills/task-priorities.md

Task priority and selection

Both tracks use the required frontmatter field priority, with this order:

Priority Meaning
urgent Needs attention before other eligible work.
high Important work ahead of normal tasks.
normal Ordinary planned work; proposed value for a new task.
low Can wait behind other eligible work.

Confirm the proposed priority with the developer during definition, before ready. The 0.5.0 release migration set normal on every earlier task that had none, by developer decision. Outside that migration, never infer a missing priority. A missing or invalid value remains visible as unknown; do not backfill or rewrite records during lookup, reporting or selection. The 0.6.0 release migration added depends_on and the other header fields to earlier tasks; outside it, a missing header field stays missing.

Order pending work

Use the same ordering for delivery and the task overview. Resolve identities through task IDs, and consider only the requested track for track-specific delivery. A task is eligible for new work only if it is ready, has valid identity/kind/priority, is not locked by another session, and passes these checks on its header:

  • Every task in depends_on is done.
  • Code: implements is null, or names a done design task whose approval.revision matches implements.revision.
  • Design: reviewer and approach are set.

ready itself is the recorded definition approval: code define sets it only on developer approval, and design define only after independent definition review and developer approval to execute, each with its log line. A missing header field or inaccessible evidence is a blocker, not an inferred approval. Do not change statuses to make a task eligible.

Sort eligible tasks by urgent, high, normal, low; break ties by ID prefix in ascending order (DEV before DSGN) and then numeric suffix as an integer, not lexical filename order. Across tracks this is a deterministic tie-break, not creation chronology. If a ready task in the selected track has unknown priority, ambiguous identity/kind or a missing header field, report the incomplete ranking and do not choose automatically; ask for an explicit selection or metadata decision. For an all-track recommendation, either track's incomplete ready-task ranking prevents a global recommendation. Known blocked tasks remain listed but cannot outrank eligible work into execution.

The bundled overview script implements this ordering and these checks for the task overview and for automatic selection in delivery. Change it together with this section.

An explicit task ID overrides the suggested ordering, not status, identity, approval or dependency gates. Explain when it bypasses higher-priority eligible work; do not silently reprioritize it. An explicitly requested task with unknown priority needs a developer priority decision before new execution, not a guessed value. Building, reviewing, checking, waiting-for-approval, blocked and done tasks follow their existing resume or human-decision rules; never restart them as new ready work.

Reassess after handoff

When definition or a review/handoff introduces follow-up tasks, propose their priorities and show the resulting pending order. Inform the developer of any newly urgent work; do not interrupt active delivery, launch another task, change an existing priority, or infer execution approval. Priority alone never satisfies a dependency.

For a developer-approved priority-only edit, acquire the task's existing storage lock, re-read it, change only priority, and add a log line. Preserve status, scope, history and exact approval evidence; do not invent or renew approval. Definition changes still follow the owning track's redefinition/review rules. Bulk backfill is release migration work, not this procedure.

Original Markdown, including metadata
# Task priority and selection

Both tracks use the required frontmatter field `priority`, with this order:

| Priority | Meaning |
| --- | --- |
| `urgent` | Needs attention before other eligible work. |
| `high` | Important work ahead of normal tasks. |
| `normal` | Ordinary planned work; proposed value for a new task. |
| `low` | Can wait behind other eligible work. |

Confirm the proposed priority with the developer during definition, before ready. The [0.5.0 release migration](../docs/migrations/0.5.0-release.md) set `normal` on every earlier task that had none, by developer decision. Outside that migration, never infer a missing priority. A missing or invalid value remains visible as `unknown`; do not backfill or rewrite records during lookup, reporting or selection. The [0.6.0 release migration](../docs/migrations/0.6.0-release.md) added `depends_on` and the other header fields to earlier tasks; outside it, a missing header field stays missing.

## Order pending work

Use the same ordering for delivery and the [task overview](tasks/SKILL.md). Resolve identities through [task IDs](task-ids.md), and consider only the requested track for track-specific delivery. A task is eligible for new work only if it is ready, has valid identity/kind/priority, is not locked by another session, and passes these checks on its [header](task-record.md#header):

- Every task in `depends_on` is `done`.
- Code: `implements` is `null`, or names a `done` design task whose `approval.revision` matches `implements.revision`.
- Design: `reviewer` and `approach` are set.

`ready` itself is the recorded definition approval: code `define` sets it only on developer approval, and design define only after independent definition review and developer approval to execute, each with its log line. A missing header field or inaccessible evidence is a blocker, not an inferred approval. Do not change statuses to make a task eligible.

Sort eligible tasks by `urgent`, `high`, `normal`, `low`; break ties by ID prefix in ascending order (`DEV` before `DSGN`) and then numeric suffix as an integer, not lexical filename order. Across tracks this is a deterministic tie-break, not creation chronology. If a ready task in the selected track has unknown priority, ambiguous identity/kind or a missing header field, report the incomplete ranking and do not choose automatically; ask for an explicit selection or metadata decision. For an all-track recommendation, either track's incomplete ready-task ranking prevents a global recommendation. Known blocked tasks remain listed but cannot outrank eligible work into execution.

The bundled [overview script](tasks/overview.mjs) implements this ordering and these checks for the task overview and for automatic selection in delivery. Change it together with this section.

An explicit task ID overrides the suggested ordering, not status, identity, approval or dependency gates. Explain when it bypasses higher-priority eligible work; do not silently reprioritize it. An explicitly requested task with unknown priority needs a developer priority decision before new execution, not a guessed value. Building, reviewing, checking, waiting-for-approval, blocked and done tasks follow their existing resume or human-decision rules; never restart them as new ready work.

## Reassess after handoff

When definition or a review/handoff introduces follow-up tasks, propose their priorities and show the resulting pending order. Inform the developer of any newly urgent work; do not interrupt active delivery, launch another task, change an existing priority, or infer execution approval. Priority alone never satisfies a dependency.

For a developer-approved priority-only edit, acquire the task's existing [storage lock](storage.md), re-read it, change only `priority`, and add a [log line](task-record.md#log). Preserve status, scope, history and exact approval evidence; do not invent or renew approval. Definition changes still follow the owning track's redefinition/review rules. Bulk backfill is release migration work, not this procedure.