Check each AI task's schema compiles before it ships #300

Open
opened 2026-11-20 13:54:21 +00:00 by chris-kreidl · 0 comments
chris-kreidl commented 2026-11-20 13:54:21 +00:00 (Migrated from github.com)

#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.

#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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/trainer#300
No description provided.