spad.drift-detect ​
Detect infrastructure drift for a SPAD site and persist a plan
Read-only drift detector. Produces a SpadDriftPlan row and optionally chains into spad.drift-repair.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | string | Yes | — | SpadSite.id to inspect |
organization_uuid | string | No | — | Organization that owns the site |
components | list | No | — | Optional subset of components (provider-specific) |
auto_apply | boolean | No | True | If True, chain directly into spad.drift-repair on drift |
trace_ref | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | string | Yes | — | — |
plan_uuid | string | No | — | — |
status | string | Yes | — | — |
components_summary | dict | No | — | — |
repair_workflow_uuid | string | No | — | — |
initiated_at | string | Yes | — | — |
completed_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | — |
organization_uuid | string | No | — | Organization that owns the site |
components | list | No | — | Optional subset of components (provider-specific) |
auto_apply | boolean | No | — | If True, chain directly into spad.drift-repair on drift |
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 |
cloud_connection_uuid | string | No | — | State data written by workflow action |
components_filter | json | No | — | State data written by workflow action |
connection_type | string | No | — | State data written by workflow action |
gate_blocked | boolean | No | — | State data written by workflow action |
gate_owner_workflow_uuid | string | No | — | State data written by workflow action |
initiated_by | string | No | — | State data written by workflow action |
slug | string | No | — | State data written by workflow action |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | detect | — |
detecting | No | No | — | finalize | — |
finalizing | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | detect | detecting | — |
detecting | finalize | finalizing | — |
finalizing | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.drift-detect",
"initial_data": {
"site_uuid": "value"
}
}