Approve an aictrl workflow step
approve_workflow_stepApprove or reject the manual quality gate currently pausing a workflow run, bound to the exact expected code revision (and optionally the approval digest of the reviewed outputs). Every decision records an approval receipt that downstream nodes can read; rejection cancels the run. Only the run owner or an organization admin may decide.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional gate-decision audit note. | |
| run_id | Yes | Workflow run ID returned by start_workflow or list_workflow_runs. | |
| decision | Yes | Explicit gate decision. | |
| expected_gate | No | The gate being decided, from get_workflow_run requiredAction (afterWave, gateIndex). A decision for a gate the run is no longer paused on is rejected with gate_changed. | |
| expected_digest | No | Optional approvalDigest shown by get_workflow_run requiredAction. Binds the decision to the exact upstream outputs reviewed; a stale digest is rejected with digest_mismatch. | |
| organization_id | Yes | AICtrl organization ID returned by list_organizations. | |
| expected_revision | Yes | Exact 40-character Git revision shown by get_workflow_run. |