spad.drift-repair ​
Apply a SpadDriftPlan by spawning a per-provider repair DAG
Thin router: loads plan → spawns provider DAG → waits → finalizes.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
plan_uuid | uuid | Yes | — | SpadDriftPlan.uuid to apply |
site_uuid | string | No | — | — |
organization_uuid | string | No | — | — |
trace_ref | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
plan_uuid | uuid | Yes | — | — |
site_uuid | string | Yes | — | — |
connection_type | string | No | — | — |
child_workflow_uuid | string | No | — | — |
final_status | string | No | — | — |
components_summary | dict | No | — | — |
initiated_at | string | Yes | — | — |
completed_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | — |
organization_uuid | string | No | — | Input field carried through workflow state |
trace_ref | string | No | — | Input field carried through workflow state |
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 |
initiated_by | string | No | — | State data written by workflow action |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | load | — |
awaiting_child | No | No | — | — | — |
dispatching | No | No | — | — | — |
finalizing | No | No | — | complete | — |
loading | No | No | — | dispatch | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | load | loading | — |
loading | dispatch | dispatching | — |
dispatching | await_child | awaiting_child | — |
dispatching | short_circuit | finalizing | — |
awaiting_child | child_done | finalizing | — |
awaiting_child | child_failed | finalizing | — |
finalizing | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.drift-repair",
"initial_data": {
"plan_uuid": "value"
}
}