name: induct description: Teleport an entry to an operator-chosen stage (works from Blocked, Cancelled, or any pipeline stage)
Induct
Move an entry to a chosen stage. Universal teleport — works from Blocked, Cancelled, Final (revoke Final-status), or any pipeline stage to go backwards.
Input
/deskwork:induct <slug> --to <Stage>
/deskwork:induct <slug> # uses default destination
Defaults:
- From Blocked:
- From Cancelled:
- From Final: Drafting (one stage back)
- From any pipeline stage: refuse without --to (induction backwards is intentional; require explicit target)
Steps
- Resolve
<slug>→ entry uuid via.deskwork/entries/. - Run
deskwork induct <uuid> [--to <Stage>] [--reason "<reason>"](the underlying CLI helper). Induct is now an atomic operation that:- Applies the default-stage logic when
--tois omitted (Blocked/Cancelled →priorStage; Final →Drafting; any other pipeline stage → refuses without explicit--to, because backward induction must be intentional). - Validates the target is a linear-pipeline stage (refuses
--to Blockedand--to Cancelled; use/deskwork:blockor/deskwork:cancelfor those). - Updates the sidecar (
currentStage→ target; clearspriorStagewhen leaving an off-pipeline stage; preservespriorStageotherwise). - Appends a
stage-transitionjournal event (withreasonwhen supplied). - Regenerates
calendar.md.
- Applies the default-stage logic when
- Run
deskwork doctorto validate.
Error handling
--toomitted on a linear-pipeline stage. CLI refuses with--to is required when inducting from a linear-pipeline stage. Backward / sideways induction requires explicit operator intent.--to Blockedor--to Cancelled. CLI refuses withTarget must be a linear-pipeline stage. Pointer:deskwork block/deskwork cancel.--tomatches current stage. CLI refuses withCannot induct: entry is already at <stage>.- No
priorStageon Blocked/Cancelled entry. CLI refuses withCannot induct ... without --to: ... no priorStage is recorded.(Happens only for hand-edited sidecars; normal flow always recordspriorStagewhen transitioning to Blocked/Cancelled.)