spad.compensation.noop ​
Record an intentionally empty compensation action for a SPAD DAG layer
Record that a DAG layer has no executable compensation action
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
compensation_reason | string | No | — | Why this DAG layer has no executable compensation step |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine |
workflow_run_id | string | No | — | Parent workflow run ID stamped by the DAG engine |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
compensation_reason | string | No | — | — |
workflow_run_uuid | string | No | — | — |
compensated | boolean | Yes | — | — |
skipped | boolean | Yes | — | — |
completed_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | — |
workflow_run_id | string | No | — | Parent workflow run ID stamped by the DAG engine |
error | string | No | — | Engine-stamped failure metadata |
error_type | string | No | — | Engine-stamped failure metadata |
failed_at_state | json | No | — | Engine-stamped failure metadata |
failed_layer | json | No | — | Engine-stamped failure metadata |
failed_step | json | No | — | Engine-stamped failure metadata |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | run | — |
run | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | run | run | — |
run | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.compensation.noop",
"initial_data": {
"compensation_reason": "value",
"workflow_run_uuid": "value",
"workflow_run_id": "value"
}
}