chore(workflows): use Claude Opus

This commit is contained in:
Bryan Helmkamp 2026-07-30 07:01:23 -04:00
parent 2cb796c636
commit e80be78c81
No known key found for this signature in database
3 changed files with 8 additions and 8 deletions

View file

@ -8,12 +8,12 @@ digraph ImplementPlan {
toolchain [label="Toolchain", shape=parallelogram, script="command -v cargo >/dev/null || { curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && sudo ln -sf $HOME/.cargo/bin/* /usr/local/bin/; }; cargo --version 2>&1", max_retries=0]
preflight_compile [label="Preflight Compile", shape=parallelogram, script="cargo check -q --workspace 2>&1", max_retries=0]
preflight_lint [label="Preflight Lint", shape=parallelogram, script="cargo +nightly-2026-04-14 clippy -q --workspace --all-targets -- -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.", model="anthropic/claude-fable-5", provider="openrouter", reasoning_effort="xhigh", max_visits=3]
fix_lints [label="Fix Lints", prompt="The preflight lint step failed. Read the build output from context and fix all clippy lint warnings.", model="claude-opus", provider="openrouter", reasoning_effort="xhigh", max_visits=3]
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. Use red/green TDD.", model="openai/gpt-5.6-sol", provider="openrouter", reasoning_effort="xhigh"]
simplify_fable [label="Simplify (Claude Fable 5)", prompt="@prompts/simplify.md", model="anthropic/claude-fable-5", provider="openrouter", reasoning_effort="xhigh"]
simplify_opus [label="Simplify (Claude Opus)", prompt="@prompts/simplify.md", model="claude-opus", provider="openrouter", reasoning_effort="xhigh"]
simplify_sol [label="Simplify (GPT-5.6 Sol)", prompt="@prompts/simplify.md", model="openai/gpt-5.6-sol", provider="openrouter", reasoning_effort="max"]
verify [label="Verify", shape=parallelogram, script="git fetch origin main 2>&1 && git merge --no-edit --no-stat origin/main 2>&1 && cargo +nightly-2026-04-14 fmt --all 2>&1 && cargo dev docs refresh 2>&1 && cargo +nightly-2026-04-14 fmt --check --all 2>&1 && { command -v rg >/dev/null 2>&1 || { echo 'rg is required for verify'; exit 127; }; } && ! rg -n 'AuthMode::Disabled|RunAuthMethod|RunSubjectProvenance|\bActorRef\b|\bActorKind\b|AuthenticatedSubject|AuthenticatedService|AuthorizeRunScoped|AuthorizeRunBlob|AuthorizeStageArtifact|AuthorizeCommandLog|auth_method\s*==\s*\"disabled\"' lib/crates apps lib/packages docs/public/api-reference/fabro-api.yaml 2>&1 && cargo +nightly-2026-04-14 clippy --workspace --all-targets -- -D warnings 2>&1 && cargo nextest run --workspace --status-level slow --profile ci 2>&1 && cargo dev docs check 2>&1 && bun install --frozen-lockfile 2>&1 && (cd apps/fabro-web && bun run typecheck) 2>&1 && (cd apps/fabro-web && bun run test) 2>&1 && (cd lib/packages/fabro-api-client && bun run typecheck) 2>&1 && cargo dev build -- -p fabro-cli --release 2>&1", timeout="20m", goal_gate=true, retry_target="fixup"]
fixup [label="Fixup", prompt="The verify step failed. Read the build output from context and fix all format, clippy, Rust test, docs, TypeScript typecheck/test, and build failures.", model="anthropic/claude-fable-5", provider="openrouter", reasoning_effort="xhigh", max_visits=3]
fixup [label="Fixup", prompt="The verify step failed. Read the build output from context and fix all format, clippy, Rust test, docs, TypeScript typecheck/test, and build failures.", model="claude-opus", provider="openrouter", reasoning_effort="xhigh", max_visits=3]
start -> toolchain
toolchain -> preflight_compile [condition="outcome=succeeded"]
@ -23,7 +23,7 @@ digraph ImplementPlan {
preflight_lint -> implement [condition="outcome=succeeded"]
preflight_lint -> fix_lints
fix_lints -> preflight_lint
implement -> simplify_fable -> simplify_sol -> verify
implement -> simplify_opus -> simplify_sol -> verify
verify -> exit [condition="outcome=succeeded"]
verify -> fixup
fixup -> verify

View file

@ -1,7 +1,7 @@
digraph PrSimplify {
graph [
goal="Run the simplify code-review pass on PR #{{ inputs.pr }}: review the changes for reuse, quality, and efficiency, apply the fixes, and update the existing PR in place.",
default_model="claude-fable-5",
default_model="claude-opus",
rankdir=LR
]

View file

@ -8,11 +8,11 @@ _version = 1
#
# Required input — the PR number — is passed at run time:
#
# fabro run pr-simplify -I pr=547 # defaults to Fable
# fabro run pr-simplify -I pr=547 # defaults to Opus
# fabro run pr-simplify -I pr=547 --model gpt-55 # override the model
#
# The graph sets default_model=claude-fable-5, so every stage (orchestrator +
# review subagents) runs on Fable unless you pass --model, which wins over the
# The graph sets default_model=claude-opus, so every stage (orchestrator +
# review subagents) runs on Opus unless you pass --model, which wins over the
# default (configured model / --model beats the graph default_model, which
# beats the catalog default). The apply stage reads the model it is actually
# running as and labels the PR `simplify:<that-model>`, so the label always