67 lines
1.6 KiB
Markdown
67 lines
1.6 KiB
Markdown
---
|
|
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: <current timestamp>
|
|
```
|
|
|
|
### 4. Update Workflow State
|
|
```bash
|
|
python3 skills/guardrail-orchestrator/scripts/workflow_manager.py task <task_id> completed
|
|
python3 skills/guardrail-orchestrator/scripts/workflow_manager.py progress --tasks-completed <count>
|
|
```
|
|
|
|
### 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:
|
|
- <entity_id_1>
|
|
- <entity_id_2>
|
|
|
|
Next: /workflow:status to see remaining tasks
|
|
/workflow:complete --all to complete all approved tasks
|
|
```
|