1#!/usr/bin/env bash2# workflow.sh3# Walks the agent through the azure-validate workflow, one step at a time.4#5# Usage:6# ./workflow.sh --workspace-path <path> [--completed-step <step>]7#8# Options:9# --workspace-path <path> Path to the workspace being validated (required).10# --completed-step <step> The workflow step the agent just completed. Omit11# on the first call to start the workflow. The12# script records the value in13# .azure/validate-status.json and returns the next14# action to take, along with the value to pass as
117 echo "Action: Populate **Section 7: Validation Proof** in the plan with the commands run and their results."
118 echo "Next: re-run workflow.sh with --completed-step RecordProof after completing the action."
119 echo "Reference: \`.azure/deployment-plan.md"
120 ;;
121 RecordProof)
122 # Step 7: Resolve Errors
123 echo "Action: Fix any validation failures before proceeding."
124 echo "Next: re-run workflow.sh with --completed-step ResolveErrors after completing the action."
125 echo "Reference: See the recipe's errors.md."
126 ;;
127 ResolveErrors)
128 # Step 8: Update Status
129 echo "Action: Only after ALL checks pass, set the plan status to \`Validated\`."
130 echo "Next: re-run workflow.sh with --completed-step UpdateStatus after completing the action."
131 echo "Reference: \`.azure/deployment-plan.md"
132 ;;
133 UpdateStatus)
134 # Step 9: Deploy (workflow complete)
135 echo "Action: The azure-validate workflow is complete. If the user explicitly requested deployment, invoke azure-deploy. Otherwise STOP and report the validation results."