fabro/tmp/implement-and-simplify.dot
Bryan Helmkamp 95be0206e5 Add implement-and-simplify workflow with full preflight checks
Run cargo check, clippy, and tests in preflight before starting implementation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 13:40:30 -04:00

26 lines
1.2 KiB
Text

digraph ImplementAndSimplify {
graph [
goal="Implement and simplify",
model_stylesheet="
* { backend: api; llm_model: claude-opus-4-6; llm_provider: anthropic; }
"
]
rankdir=LR
start [shape=Mdiamond, label="Start"]
exit [shape=Msquare, label="Exit"]
preflight [label="Preflight", shape=parallelogram, script="cargo check 2>&1 && cargo clippy -- -D warnings 2>&1 && cargo test 2>&1", max_retries=0]
implement [label="Implement", prompt="Read the plan file referenced in the goal and implement every step. Make all the code changes described in the plan."]
simplify [label="Simplify", prompt="@prompts/simplify.md"]
verify [label="Verify", shape=parallelogram, script="cargo clippy -- -D warnings 2>&1 && cargo test 2>&1", goal_gate=true, retry_target="fixup"]
fixup [label="Fixup", prompt="The verify step failed. Read the build output from context and fix all clippy lint warnings and test failures.", max_visits=3]
start -> preflight
preflight -> implement [condition="outcome=success"]
preflight -> exit
implement -> simplify -> verify
verify -> exit [condition="outcome=success"]
verify -> fixup
fixup -> verify
}