Skip to content
Proud to collaborate with Microsoft for Startups

ticket.software-delivery.cost-record ​

Append immutable model, compute, storage, or provider spend with validated delivery/session/execution/artifact attribution.

Append one trusted actual or explicitly unpriced cost observation.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-tickets
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
delivery_uuidstringNo——
work_uuidstringNo——
idempotency_keystringYes——
categorystringYes——
pricing_statusstringYes——
amount_usdstringNo——
quantitystringNo——
unitstringNo——
source_typestringYes——
source_uuidstringYes——
actor_uuidstringNo——
session_uuidstringNo——
runner_execution_uuidstringNo——
model_namestringNo——
providerstringNo——
resource_typestringNo——
evidence_digeststringYes——
price_snapshotjsonNo——
metadatajsonNo——
usage_started_atdatetimeNo——
usage_ended_atdatetimeNo——
reservation_uuidstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
cost_entrydictNo——
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.
pricing_statusstringNo—Input field preserved in workflow state.
amount_usdstringNo—Input field preserved in workflow state.
quantitystringNo—Input field preserved in workflow state.
unitstringNo—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.
runner_execution_uuidstringNo—Input field preserved in workflow state.
model_namestringNo—Input field preserved in workflow state.
providerstringNo—Input field preserved in workflow state.
resource_typestringNo—Input field preserved in workflow state.
evidence_digeststringNo—Input field preserved in workflow state.
price_snapshotjsonNo—Input field preserved in workflow state.
metadatajsonNo—Input field preserved in workflow state.
usage_started_atdatetimeNo—Input field preserved in workflow state.
usage_ended_atdatetimeNo—Input field preserved in workflow state.
reservation_uuidstringNo—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-record",
  "initial_data": {
    "organization_uuid": "value",
    "idempotency_key": "value",
    "category": "value",
    "pricing_status": "value"
  }
}