Take one sentence where a draft's list is asked for, so kimi's drafts decode
Before adoption: this commit came in with the history the project adopted, so no landing records it.
- Live on dev-oscabriel (914): `smoke --loop --draft` failed after three attempts, each spent as `schema` (draft steps 45, 52 and 41 s). Replaying the drafter's call through a scratch Worker's AI binding showed why: `@cf/moonshotai/kimi-k2.7-code` returned valid JSON in 30-55 s, but with `context` and `outOfScope` as strings where `DraftedAsk` wants arrays, with the schema bare under `json_schema` and named alike. Workers AI does not hold a model to the JSON Schema it asks for. - The fallbacks W9-D12 names don't help: `@cf/zai-org/glm-5.3` (200 s) and `@cf/openai/gpt-oss-120b` (157 s) both spent the 12,000-token output cap and sent JSON cut off mid-string (`unparseable`). DRAFT_MODEL stays kimi. - `DraftedReply` (drafted.ts) is `DraftedAsk` whose two lists of sentences also decode from one sentence, as a list of one; the drafter decodes replies with it and still asks for `DraftedAsk`'s JSON Schema. An empty string is still `schema`. - Test (red first by assertion): binding.test.ts "takes one sentence where the schema asks for a list of them, as a list of one".
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+59 added−3 removed
- tests:+25 added−0 removed
- other:+34 added−3 removed