Files
pruefwerk/compliance-agent
Sharang ParnerkarandClaude Opus 5.5 543a2b155d
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 8m24s
fix(triage): read imperfect batch answers and retry unanswered findings once
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
2026-10-05 19:46:45 +02:00
..