Skip to content
Proud to collaborate with Microsoft for Startups

ticket.software-delivery.cost-reserve ​

Reserve a bounded USD amount against one immutable delivery-policy budget while accounting for concurrent active reservations.

Atomically reserve delivery budget before starting billable work.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-tickets
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
delivery_uuidstringNo——
work_uuidstringNo——
idempotency_keystringYes——
categorystringYes——
amount_usdstringYes——
source_typestringYes——
source_uuidstringYes——
actor_uuidstringNo——
session_uuidstringNo——
reservation_secondsintegerNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
reservationdictNo——
cost_summarydictNo——
createdbooleanNo——
organization_uuidstringNo—Input field preserved in workflow state.
delivery_uuidstringNo—Input field preserved in workflow state.
work_uuidstringNo—Input field preserved in workflow state.
idempotency_keystringNo—Input field preserved in workflow state.
categorystringNo—Input field preserved in workflow state.
amount_usdstringNo—Input field preserved in workflow state.
source_typestringNo—Input field preserved in workflow state.
source_uuidstringNo—Input field preserved in workflow state.
actor_uuidstringNo—Input field preserved in workflow state.
session_uuidstringNo—Input field preserved in workflow state.
reservation_secondsintegerNo—Input field preserved in workflow state.
failed_atstringNo—ISO-8601 timestamp when action_fail recorded the failure
failure_reasonstringNo—Human-readable failure reason from action_fail
failure_typestringNo—Engine-stamped failure category
failed_actionstringNo—Engine-stamped action that raised
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerstringNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—executeAccepted
executingNoNo—completeApplying the mutation
completedNoYesYes—Done
failedNoYesNo—Failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedexecuteexecutingRun the mutation
executingcompletecompletedFinalize
* (any state)failfailedCatch-all failure

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "ticket.software-delivery.cost-reserve",
  "initial_data": {
    "organization_uuid": "value",
    "idempotency_key": "value",
    "category": "value",
    "amount_usd": "value"
  }
}