Skip to content

Commit 957353c

Browse files
chore(daily-regen): switch default model from haiku to sonnet (#7286)
## Summary - Flip `daily-regen.yml` default model from `haiku` to `sonnet` for higher implementation quality on the scheduled regen wave. - Pre-flight LLM steps (spec polish + cross-library similarity audit) **stay hardcoded to Haiku** — they're cheap classification tasks where Haiku is the right tier. The comment at line 175 already documents this. - Manual `workflow_dispatch` can still pick any tier (haiku / sonnet / opus) via the `model` input. ## Diff 4 places updated: - `run-name` default - Header comment ("Default model is Sonnet for higher implementation quality") - Trigger comment ("schedule → Sonnet") - `inputs.model` choice default - `MODEL` env fallback in the dispatch step ## Test plan - [ ] CI green - [ ] Next scheduled run shows `Scheduled regen (… / sonnet)` in the workflow name - [ ] `bulk-generate.yml` receives `model=sonnet` on the scheduled dispatch 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8ee8155 commit 957353c

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/daily-regen.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "Scheduled: Regen oldest specs"
2-
run-name: "Scheduled regen (${{ github.event.inputs.specification_id || github.event.inputs.count || '1' }} / ${{ github.event.inputs.model || 'haiku' }})"
2+
run-name: "Scheduled regen (${{ github.event.inputs.specification_id || github.event.inputs.count || '1' }} / ${{ github.event.inputs.model || 'sonnet' }})"
33

44
# Picks the N oldest specs (by most-recent implementation `updated` timestamp)
55
# and re-dispatches `bulk-generate.yml` for each. Default N=1 per cron tick.
@@ -10,11 +10,10 @@ run-name: "Scheduled regen (${{ github.event.inputs.specification_id || github.e
1010
# All other UTC hours run, giving 20 ticks per day.
1111
#
1212
# bulk-generate is serialised via its own concurrency group. Default model is
13-
# Haiku, so a single spec completes well within an hour, leaving the user
14-
# window clean. The model can be overridden per manual run.
13+
# Sonnet for higher implementation quality; can be overridden per manual run.
1514
#
1615
# Triggers:
17-
# - schedule: 20× daily (UTC, every hour except 18:00–21:00 UTC) → Haiku
16+
# - schedule: 20× daily (UTC, every hour except 18:00–21:00 UTC) → Sonnet
1817
# - workflow_dispatch: manual, with inputs for spec id, model, count, dry-run
1918

2019
on:
@@ -30,7 +29,7 @@ on:
3029
description: "Claude model to use across all generate / review / repair steps"
3130
required: false
3231
type: choice
33-
default: 'haiku'
32+
default: 'sonnet'
3433
options:
3534
- haiku
3635
- sonnet
@@ -281,7 +280,7 @@ jobs:
281280
env:
282281
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
283282
SPEC_ID: ${{ matrix.spec_id }}
284-
MODEL: ${{ inputs.model || 'haiku' }}
283+
MODEL: ${{ inputs.model || 'sonnet' }}
285284
CHANGE_REQUESTS: ${{ steps.collect.outputs.change_requests }}
286285
run: |
287286
echo "::notice::Dispatching bulk-generate for ${SPEC_ID} (all libs, model=${MODEL})"

0 commit comments

Comments
 (0)