Skip to content
Proud to collaborate with Microsoft for Startups

audit.workflow-health.scan ​

Audit an organization's workflow-execution health (failed / stuck / deprecated-type runs) and emit trackable findings.

Audit the organization's workflow-execution health.

Applies the workflow-health rules (failed runs, stuck runs, deprecated types) over the org's recent runs and upserts findings — bumping last-seen and auto-resolving cleared conditions rather than duplicating. Returns the audit run id and a per-severity summary.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-audit
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization whose workflow runs are audited
sincestringNo—ISO 8601 lower bound of the scan window (default 7d ago)
untilstringNo—ISO 8601 upper bound of the scan window (default now)
workflow_type_prefixesjsonNo—Optional list of workflow_type prefixes to scope the scan
rule_keysjsonNo—Optional subset of rule keys to run (default: all)
triggerstringNo—manual
stuck_threshold_minutesintegerNo—Age past which a non-terminal run is 'stuck' (default 60)
deprecated_typesjsonNo—Optional list of workflow_types to flag as deprecated
workflow_run_idstringNo—Engine-stamped parent DAG run id when invoked as a Step target

Output Schema ​

FieldTypeRequiredDefaultDescription
audit_run_uuiduuidNo——
statusstringNo——
new_findingsintegerNo——
updated_findingsintegerNo——
resolved_findingsintegerNo——
total_findingsintegerNo——
scanned_runsintegerNo——
by_severityjsonNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—scan—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingscancompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
scannedSUCCESSWorkflow health scan completedaudit_run_uuid, total_findings
failedFAILUREAudit workflow failedfailure_reason

API Usage ​

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

{
  "workflow_type": "audit.workflow-health.scan",
  "initial_data": {
    "organization_uuid": "value"
  }
}