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) |
Use it
Section titled “Use it”wfx templates fix-until-greenwfx new fix-until-green --as my-fix-until-greenwfx dryrun my-fix-until-greenWhat it does
Section titled “What it does”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.
What you fill in
Section titled “What you fill in”- 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
Inputs
Section titled “Inputs”| 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 | baselineRun the suite once |
shell (run:) |
||
| 2 | repairFix, re-run, repeat until green |
agent | ||
| 3 | commitCommit the fix on a branch |
shell (run:) |
human approval first |
Human gates
Section titled “Human gates”commitwaits forwfx approve <run-id>(orwfx reject <run-id> -m "why") before it runs.