Dos promote

From anthony-chaudhary/dos-kernel · View interactive version

Dos promote is an AI agent skill from the GitHub repository anthony-chaudhary/dos-kernel. Surface units held out of the pickable set with their typed HoldReason and derived unblock action, auto-applying only safe reclassifies. Use when work is stuck unpickable and a human needs the exact unblock move.

How to use this skill

Skill file

dos-promote — surface every held unit + its unblock action

Make the invisible pickable. The picker silently drops a unit it cannot

offer; /dos-promote does the inverse — it runs the pre-dispatch gate

(dos pickable) over every declared unit, and for each one that is HELD it

surfaces the unit, its typed hold reason, and the derived unblock action. The

hold reason → action routing is data, not a guess: a DRAFT_CLASS hold wants a

promotion, a SOAK_OPEN hold wants the clock, an OPERATOR_GATED hold wants a

decision. This is the operator-facing half of the shipped pickable primitive.

The shape: **enumerate the units → gate each → route each hold to its action →

auto-enact only the safe mechanical reclassify → surface the rest.** The gate and

the enumeration are kernel verbs (dos pickable, dos enumerate); the

reason→action routing is derivable from the HoldReason itself.

Inputs

Omitted = every declared unit the workspace can see.

Step 0 — Discover the layout

dos doctor --workspace . --json

Read paths.plans_glob (where the plan docs live), lanes (the taxonomy), and

lifecycle.classes (the declared class set — which class is the workspace's

"draft" / "active"). Use these; never hardcode a plan path or a class name.

Step 1 — Enumerate the declared units

For each plan doc under paths.plans_glob, enumerate the units it declares:

dos enumerate <plan-doc> --json

Read units (the universe), remaining (the not-yet-shipped), and drift — a

drift[kind=unparseable] is itself a held-by-UNPARSEABLE signal (the

picker-invisibility cure: a typed refusal, never a silent drop). Collect the

remaining units across all plans as the candidate set.

Step 2 — Gate each candidate (the pre-dispatch verdict)

For each remaining unit, run the pre-dispatch gate over the unit's host-gathered

state (its plan class, soak index, live claims):

dos pickable <UNIT> --state '<json>' --json

Branch on the exit code (the verdict IS the code — distinct per hold):

hold that clears on its own; surface as info, no action.

Step 3 — Route each hold to its unblock action (data, not a guess)

The action is derived from the typed HoldReason, not re-discovered per unit:

| Hold | Unblock action |

|---|---|

| DRAFT_CLASS | promote the plan draft→active (the workspace's lifecycle default→next class) |

| OPERATOR_GATED | raise an operator decision (dos decisions add) |

| SOAK_OPEN | wait for the soak to close — surface the deadline, do NOT promote |

| DEPENDENCY_UNMET | ship the named prerequisite first |

| UNPARSEABLE | inspect the deriver / backfill the doc's phase grammar |

A host may declare a richer reason→action map in dos.toml; absent one, this

default routing (documented on the HoldReason enum) is used.

Step 4 — Auto-enact ONLY the safe mechanical reclassify

The single auto-applied action is the DRAFT→active promotion of a plan whose

draft phases are demonstrably wanted — a mechanical plan-meta classification:

edit + ONE commit, gated. Read the trunk + ship grammar from dos doctor --json's

stamp; do not hardcode a commit prefix. Everything else — a decision, a

soak wait, a dependency, an unparseable doc — is surfaced for a human, never

auto-applied (those are real judgment calls).

Step 5 — Surface the rest

dos decisions add  # one row per held unit that needs a human

What this skill deliberately does NOT do (no silent gap)

auto; an OPERATOR_GATED / DEPENDENCY_UNMET hold is a human's call.

loop NEVER promotes past a soak (time is the only thing that un-gates it).

lifecycle.classes; a 2-class repo and a job-shaped repo both run this skill.

Anti-patterns

promoting it re-introduces the very drain-trap the typed hold prevents.

lifecycle.classes.

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.