lightsout work-order
Manage the record that ties a ticket to its plans and branch — add plans, choose one plan or several, and say when the ticket should ship.
When to reach for it
Reach for it whenever work is started, gains a plan or changes shape. new is the one command that writes a work order’s name — give it --ticket <ref> and the engine reads that ticket’s title from the tracker and summarises it, or --title <words> and the words are taken as handed; the name is written once and never again, and a label another work order already holds is refused rather than suffixed. add-plan starts the next plan and prints its address; mode moves a ticket between one plan supplying the implementation and several implementing in numeric order; request-ship is how a human declares a multiple-plan ticket finished, and exclude-plan takes a plan out of that work for good; retitle-plan changes only what a plan is called; show reads the record, and sync settles a record that moved on two machines at once. With a ticket-tracker block configured, every change is published to the ticket, so another machine restores the record and its plans.
How to run it
lightsout work-order newlightsout work-order add-plan --name <work-order-name> --slug <slug>lightsout work-order mode --name <work-order-name> --set single-plan|multiple-planlightsout work-order request-ship --name <work-order-name>lightsout work-order exclude-plan --name <work-order-name> --plan <id> --reason <text>lightsout work-order retitle-plan --name <work-order-name> --plan <id> --title <title>lightsout work-order show --name <work-order-name>lightsout work-order sync --name <work-order-name>
- --ticket <ref>
- The tracker ticket this work is for. The engine reads that ticket's title and summarises it into the work order's name — nobody hands it one. A harness that cannot answer leaves a mechanical cut of the title instead, and a repository with no
ticket-trackerblock refuses the flag.Left out: Nothing is read from a tracker; give --title instead to name the work yourself. - --title <words>
- The words to name this work when no tracker names it — taken exactly as typed, and slugged into the label and the branch.Left out: Nothing is named from words; give --ticket instead to take the name from a tracker ticket.
- --name <work-order-name>
- The ticket to act on, named by its branch — which is also its folder under .lightsout/work-orders/, never one plan's address.Required
- --slug <slug>
- The new plan's fixed slug: lowercase letter-and-digit words joined by single hyphens, at most 40 characters.Required
- --title <title>
- The plan's first display title, which stays changeable.Left out: The slug is used as the title.
- --name <work-order-name>
- The ticket to act on, named by its branch — which is also its folder under .lightsout/work-orders/, never one plan's address.Required
- --set single-plan|multiple-plan
- How this ticket organises its plans: single-plan means plan 001 alone supplies the implementation, multiple-plan means its plans implement in numeric order on one branch.Required
- --approve
- Carry out a switch to single-plan mode, excluding every later plan.Left out: The switch is previewed and nothing is changed.
- --name <work-order-name>
- The ticket to act on, named by its branch — which is also its folder under .lightsout/work-orders/, never one plan's address.Required
- --plans <id,id>
- Every plan the request approves, as full ids or bare numbers — it must name each plan the ticket still includes.Left out: Nothing is requested; give --withdraw instead to take a pending request back.
- --withdraw
- Take a pending ship request back, leaving the ticket open.Left out: Nothing is withdrawn; give --plans instead to record a request.
- --name <work-order-name>
- The ticket to act on, named by its branch — which is also its folder under .lightsout/work-orders/, never one plan's address.Required
- --plan <id>
- The plan to exclude, as its full id or its number on its own.Required
- --reason <text>
- Why this plan is out of the ticket's work — the record's only account of the decision.Required
- --implementation-removed
- Declare this plan's implementation taken off the branch, which the repository's own gates then verify on that branch's checkout.Left out: The exclusion records no removal, and the plan's implementation stays where it is.
- --name <work-order-name>
- The ticket to act on, named by its branch — which is also its folder under .lightsout/work-orders/, never one plan's address.Required
- --plan <id>
- The plan to retitle, as its full id or its number on its own.Required
- --title <title>
- The plan's new display title. Its id, its folder and any pending ship request are untouched.Required
- --name <work-order-name>
- The ticket to act on, named by its branch — which is also its folder under .lightsout/work-orders/, never one plan's address.Required
- --name <work-order-name>
- The ticket to act on, named by its branch — which is also its folder under .lightsout/work-orders/, never one plan's address.Required
- --keep local|published
- Which copy wins when this machine and the ticket have both changed the record.Left out: The ordinary sync: the ticket’s copy is taken when only it moved, and this machine’s is sent when only it did.
- --cwd <path>
- Any checkout of the repository; the record is found in its primary checkout.Left out: The process working directory.