feat(tasks): default the customer-prompt-task model to claude-sonnet-5#154
Conversation
The data-grounding rule's effectiveness is model-dependent (recoupable/chat#1833): on the same OneRPM/Apache CPM prompt, haiku-4.5 fabricated CPM/revenue and sent it twice, while sonnet-5 refused and grounded on real scraped data. customer-prompt-task passed taskConfig?.model unset → generateChat omits model → the API falls back to haiku-4.5. Default the headless task model to anthropic/claude-sonnet-5 so scheduled email tasks run the model that respects the no-fabrication rule; an explicit per-task model still overrides. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 55 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Part of recoupable/chat#1833 (high priority — fabrication is model-dependent). Base:
main.Why
On the same OneRPM/Apache "YouTube CPM" prompt, artist, and prod code — changing only the model (verified 2026-07-01):
$18.50CPM /$77.7Kweekly revenue and sent the report twice, then wrote "✅ PROJECT COMPLETE".customer-prompt-taskpassedtaskConfig?.model(usually unset) →generateChatonly setsbody.modelwhen defined → the API falls back toanthropic/claude-haiku-4.5. So the fabrication risk is live for every task on the default model.Fix
DEFAULT_TASK_MODEL = "anthropic/claude-sonnet-5"inconsts.ts.customerPromptTask:const model = taskConfig?.model ?? DEFAULT_TASK_MODEL;— an explicit per-task model still overrides.Tests (TDD)
customerPromptTask.test.ts: defaults toanthropic/claude-sonnet-5when the config omits a model; forwards an explicit model unchanged.tscclean.🤖 Generated with Claude Code
Summary by cubic
Default
customerPromptTasktoanthropic/claude-sonnet-5to prevent fallback toanthropic/claude-haiku-4.5and reduce fabrication risk in scheduled tasks (recoupable/chat#1833). Explicit per-taskmodelstill overrides; tests cover defaulting and pass-through.Written for commit f1c3032. Summary will update on new commits.