--- description: Mark approved task as completed allowed-tools: Read, Write, Bash --- # Complete Task Mark task "$ARGUMENTS" as completed. ## Prerequisites - Task must have `status: approved` - All acceptance criteria verified by reviewer ## Steps ### 1. Read Task First, get the version-specific tasks directory: ```bash TASKS_DIR=$(python3 skills/guardrail-orchestrator/scripts/version_manager.py tasks-dir) ``` Read `$TASKS_DIR/$ARGUMENTS.yml` ### 2. Verify Status - If `status` is NOT `approved`: STOP and report error - If `status` is `approved`: proceed ### 3. Update Task Update the task file with: ```yaml status: completed completed_at: ``` ### 4. Update Workflow State ```bash python3 skills/guardrail-orchestrator/scripts/workflow_manager.py task completed python3 skills/guardrail-orchestrator/scripts/workflow_manager.py progress --tasks-completed ``` ### 5. Update Manifest (if applicable) For each entity in `entity_ids`: - Update entity status to `IMPLEMENTED` in `project_manifest.json` ### 6. Check Workflow Completion Check if all tasks are now completed: ```bash python3 skills/guardrail-orchestrator/scripts/workflow_manager.py status ``` If all tasks completed, transition to implementation approval: ```bash python3 skills/guardrail-orchestrator/scripts/workflow_manager.py transition AWAITING_IMPL_APPROVAL ``` ### 7. Report ``` ✅ Task completed: $ARGUMENTS Entities implemented: - - Next: /workflow:status to see remaining tasks /workflow:complete --all to complete all approved tasks ```