From 041486400ea14822849aa4fb589bcd8828caccf4 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Sun, 8 Mar 2026 20:47:30 -0400 Subject: [PATCH] Add toolchain check step before preflight in implement-and-simplify workflow Co-Authored-By: Claude Opus 4.6 --- tmp/implement-and-simplify.dot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tmp/implement-and-simplify.dot b/tmp/implement-and-simplify.dot index e4f7ee777..d834de030 100644 --- a/tmp/implement-and-simplify.dot +++ b/tmp/implement-and-simplify.dot @@ -10,6 +10,7 @@ digraph ImplementAndSimplify { start [shape=Mdiamond, label="Start"] exit [shape=Msquare, label="Exit"] + toolchain [label="Toolchain", shape=parallelogram, script="cargo --version 2>&1", max_retries=0] preflight_compile [label="Preflight Compile", shape=parallelogram, script="cargo check 2>&1", max_retries=0] preflight_lint [label="Preflight Lint", shape=parallelogram, script="cargo clippy -- -D warnings 2>&1", max_retries=0] fix_lints [label="Fix Lints", prompt="The preflight lint step failed. Read the build output from context and fix all clippy lint warnings.", max_visits=3] @@ -19,7 +20,9 @@ digraph ImplementAndSimplify { 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_compile + start -> toolchain + toolchain -> preflight_compile [condition="outcome=success"] + toolchain -> exit preflight_compile -> preflight_lint [condition="outcome=success"] preflight_compile -> exit preflight_lint -> preflight_tests [condition="outcome=success"]