Commit 2271d55
committed
fix(setup): detect existing provider config before mutating
v4 Shade dogfood (2026-04-13) surfaced LEARNING #9: the skill blindly
ran `task-master models --set-main sonnet --claude-code` on a machine
that already had `gemini-cli / gemini-3-pro-preview` configured as
main. The prose documentation made the child think "I should configure
this" even though the user's config was already valid. Scope violation.
Rewrite phases/SETUP.md Step 3 with explicit detect-first logic:
- READ task-master models output before running any --set-* commands
- If Main/Research/Fallback are all populated with a supported provider:
SKIP Step 3 entirely, proceed to probe test
- If partial: only set the missing roles, never overwrite what exists
- If empty: full configure
- If unsupported/deprecated: ask the user before mutating
Add a decision table mapping model output states to actions. Preserves
the recommended-stack documentation but gates it behind detection.
A user whose config already works wants the skill to leave them alone
in that dimension and focus on the actual work.
Fixes: LEARNING #9
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 332c147 commit 2271d55
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
52 | 63 | | |
53 | 64 | | |
54 | 65 | | |
| |||
0 commit comments