Skip to content

fix-until-green

Fix until green — bounded agent repair loop with a human gate

Runs the test suite; if it is red, an agent fixes the first failure and the suite runs again, round after round, until it is green or four rounds are spent. Every round is recorded. A person approves the branch before it is pushed.

Source templates/fix-until-green/workflow.yaml
Category development
Trigger manual (wfx run)
Steps 3
Human approval before commit
Providers named default (WFX_DEFAULT_PROVIDER)
Terminal window
wfx templates fix-until-green
wfx new fix-until-green --as my-fix-until-green
wfx dryrun my-fix-until-green

Bounded repair loop. Baseline the suite; when red, repeat {agent fix → re-run suite} until the suite passes (max 4 rounds), each round persisted and visible; then a human approves committing the fix to a branch.

  • test_command: the command that runs the suite (default: go test ./…)
  • a provider for the fix step if the default model is not one you trust with edits
Input Type Default Required Meaning
repo_path string
test_command string "go test ./..."
branch string "fix/until-green"
isolate boolean true
# Step Kind Skills Gates
1 baseline
Run the suite once
shell (run:)
2 repair
Fix, re-run, repeat until green
agent
3 commit
Commit the fix on a branch
shell (run:) human approval first
  • commit waits for wfx approve <run-id> (or wfx reject <run-id> -m "why") before it runs.