Check each AI task's schema compiles before it ships #300
Labels
No labels
accessibility
area:accounts
area:ai-evals
area:look
area:maps
area:platform
area:rides-progress
area:riding
area:today-plan-coach
area:ui-shell
bot:blocked
bot:failed
bot:pr
bot:waiting
bot:working
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
later
now
owner-check
parked
question
ready
session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/trainer#300
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#299: chat's output schema stopped compiling (grammar too large) and nobody saw it for a week. A check per task (generate, replan, chat, ride feedback, ride chat, End chat summary) that sends buildBody with max_tokens tiny and low effort and fails on a 400: the 400 comes before generation, so it costs almost nothing. Needs ANTHROPIC_API_KEY in CI, or run it in the dependency check and after any schema change.
Headroom on 2026-11-20 (extra required {enum, number} fields before the 400): replan 19, generate 16, chat 16, End chat summary 8 (it hits the 16 union-parameter limit). Locally, a unit test could cap the documented counts (24 optional, 16 union parameters) as a cheap proxy; the real limit is internal, so only the API call is proof.