-
Notifications
You must be signed in to change notification settings - Fork 1
Pipeline Plan 56
The plan has been written to .claude/pipeline-artifacts/plan.md. Here's the summary:
10 files to modify, 10 implementation tasks, across 4 core scripts + 4 templates + 2 test files.
-
sw-intelligence.sh— Two new functions:-
intelligence_stage_defaults(stage, complexity)— maps stage × complexity band → model (haiku/sonnet/opus) -
escalate_model(current)— chain: haiku→sonnet→opus
-
-
sw-pipeline.sh— Two modifications:-
run_stage_with_retry()(~L6755): escalate model on each retry attempt -
run_pipeline()(~L7267): invert A/B gate — intelligent routing becomes default (80%), opus becomes control group (20%)
-
-
sw-loop.sh(~L2150) — WhenCONSECUTIVE_FAILURES >= 2, escalate model (e.g., sonnet→opus) -
sw-cost.sh— Newcost_pipeline_summary()readsmodel-routing.log+costs.jsonfor per-stage cost breakdown -
4 pipeline templates (
standard,full,autonomous,deployed) — Add per-stageconfig.modeldefaults (intake→haiku, plan→opus, build→sonnet, etc.) -
Tests — Unit tests in
sw-intelligence-test.sh+ smoke tests insw-e2e-smoke-test.sh
Tasks 1-2 (intelligence functions) → Tasks 3-5 (pipeline/loop integration) → Task 6 (cost summary) → Task 7 (templates) → Tasks 8-9 (tests) → Task 10 (full suite validation)