Skip to content

Task commands: escalate, next, return

The Task Verbs escalate, next, return as CLI commands, with inputs, result, refusals and an example.

Reference for Task, one group of Task commands.

Task.escalate

Escalate moves a Task to the Role its current Role escalates to, with the reason attached. Verb page.

Text
npx startup-builder do Task.escalate --json '<input>' [--try | --send | --do]

Emits Task.escalated.

Inputs

InputTypeRequiredDescription
taskTaskrequiredThe Task to escalate.
reasontextrequiredWhy the current Role cannot finish it.

Returns

OutputTypeRequiredDescription
taskTaskrequiredThe Task, assigned upward.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.
The record is not in a state that allows this Verb, so the call is refused.refusedRead the record, run the Verb that moves it to an allowed state, then retry.None.

Example

Terminal
npx startup-builder do Task.escalate --json '{"task":"task_tVPKjporKn","reason":"Example reason"}'

Task.next

Next returns the oldest open Task the calling Worker’s Roles may claim, without claiming it. Verb page.

Text
npx startup-builder do Task.next --json '<input>' [--try | --send | --do]

Emits Task.offered.

Inputs

None.

Returns

OutputTypeRequiredDescription
taskTaskThe Task to claim next; empty when the queue is drained.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

Terminal
npx startup-builder do Task.next

Task.return

Return hands an offered Task back to its sender, unchanged, with the reason the receiver cannot take it. Verb page.

Text
npx startup-builder do Task.return --json '<input>' [--try | --send | --do]

Emits Task.returned.

Inputs

InputTypeRequiredDescription
taskTaskrequiredThe Task to hand back.
reasontextrequiredWhat is missing, or why the Task is outside the receiver’s lane.

Returns

OutputTypeRequiredDescription
taskTaskrequiredThe Task, back with its sender.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

Terminal
npx startup-builder do Task.return --json '{"task":"task_tVPKjporKn","reason":"Example reason"}'