A batch triage answer was only accepted as a bare JSON array (fences at the
very start stripped), with strict field types. Prose around the array,
trailing commas, a wrapping object, an answer cut off at max_tokens, or a
single field such as "id": 1, "confidence": "7" or "rationale": null failed
the whole chunk, and every finding in it went through untriaged.
- parse_triage_response: tolerant, pure parser (fences/prose, trailing
commas, wrapper object, single verdict object, truncated array salvage);
verdicts stay positional, the first unreadable one ends the list
- TriageResult: lenient fields (null, numeric strings); the unused echoed
id is no longer deserialized
- findings a chunk got no verdict for are retried once in chunks half the
size; whatever is still unanswered stays as reported (never dropped)
- warn lines name how many findings are affected; a 500-char sample of an
unreadable answer goes to DEBUG, the prompt never does
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p