QA Loop Template
Harness Engineering template: this showcase demonstrates one concrete capability slice of orchestrator as a control plane for agent-first software delivery.
Purpose: QA test → fix → retest cycle — demonstrates multi-step workflows and capability-based agent selection.
Use Cases
- Automated QA testing against project documentation or code
- Automatic ticket creation, issue fixing, and regression verification
- Standard QA → ticket_scan → fix → retest pipeline
Prerequisites
orchestratordis running- Database initialized (
orchestrator init) - Project has
docs/qa/anddocs/ticket/directories (can be empty)
Steps
1. Deploy Resources
bash
orchestrator apply -f docs/workflow/qa-loop.yaml --project qa-loop2. Create and Run a Task
bash
orchestrator task create \
--name "qa-run" \
--goal "Run QA cycle" \
--workflow qa_loop \
--project qa-loop3. Inspect Results
bash
orchestrator task list --project qa-loop
orchestrator task logs <task_id>Workflow Steps
qa (qa-agent) → ticket_scan (builtin) → fix (fix-agent) → retest (fix-agent)- qa — Scans documents under
qa_targets, executes test scenarios - ticket_scan — Built-in step, scans
ticket_dirfor ticket files - fix — Resolves issues found during QA
- retest — Regression verification to confirm fixes
Capability Matching
qa-agenthasqacapability → assigned to the qa stepfix-agenthasfix+retestcapabilities → assigned to fix and retest steps
Customization Guide
Enable Loop Mode
Change loop.mode from once to fixed with max_cycles for multi-round iteration:
yaml
loop:
mode: fixed
max_cycles: 3Add a Loop Guard
Append a loop guard step so an agent decides whether to continue:
yaml
- id: loop_guard
type: loop_guard
required_capability: review
enabled: true
repeatable: trueReplace with Real Agents
See Hello World Customization Guide.
Further Reading
- Full QA Execution — Production-grade full QA workflow with CEL prehook safety filtering
- Workflow Configuration — Step execution model and loop strategies