Repository navigation
chore: SCO-212 move AI call sites from Sonnet 4.6 to Sonnet 5.5 - #394
Merged
Merged
Conversation
Sonnet 5.5 rejects forced tool_choice, thinks by default (counting toward max_tokens), recalibrates effort, and can decline with stop_reason "refusal". Extraction routes now ask for the tool call in the prompt, each route sets its effort and a cap with room for thinking, and logUsage flags refusals with their category. SCO-212 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
claude-sonnet-5-5. That's the Stitch turn (STITCH_MODEL), both org agent executor calls, the SMS/WhatsApp agent, the inbound email parser and the line sheet parser.tool_choice. The email intake and line sheet parsers now useautoand ask for the tool call in the prompt. Both already fail cleanly when no tool call comes back (an error for email intake, a 422 for line sheets).mediumfor the tool loops (Stitch turn and org agents),lowfor SMS chat and both extractors. The levels are recalibrated on 5.5, so nothing is left on the default.max_tokens. The Stitch turn and org agents go from 4096 to 16000, email intake from 4096 to 16000, and SMS from 1024 to 4096. The line sheet parser stays at 16384.logUsageflagsstop_reason: "refusal"as a newmodel_refusaldegraded kind with itsstop_details.category. Every Claude call reports throughlogUsage, so this covers all endpoints.Why
Move from Sonnet 4.6 to Sonnet 5.5. It's cheaper per token ($2/$10 against $3/$15) and stronger at multistep tool use. The changes above are the Sonnet 5.5 breaking changes that apply to this codebase. The rest of the migration checklist doesn't apply here: no
budget_tokens, no disabled thinking, no sampling parameters, no computer use, no advisor tool, and no history editing (the loops only append and pass assistant content back unchanged).Verification
bun run lintpassesbun run checkpasses (0 errors)bun run test:runpasses (2032), including a new test for refusal reportingclaude-sonnet-5-5using the new request shapes:autotool choice at effortlowreturned the tool call with the correct order data.medium, passing content back unchanged, completed the round trip and ended normally.Test plan
ai-degradedevents of kindmodel_refusalormax_tokensafter deployFollow-ups
fallbacks: "default") needs an Anthropic SDK upgrade from 0.82Closes SCO-212
🤖 Generated with Claude Code