Retry when the model provider fails a turn instead of calling it invalid JSON. A Codex turn that ends failed (9router "high demand" on lti-api !1388 and lti-web-client !859) left an empty answer that Labuh parsed as invalid JSON, answered with "Labuh rejected your verdict", and gave up within a minute. Now the turn error surfaces as ReviewerUnavailable, no rejection prompt is sent, the queue waits 2/4/8/16/32 minutes, and only then posts a manual-check comment that says the model could not be reached. An empty answer from a completed turn is reported as empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 18:02:52 +07:00
parent 710782b786
commit 2723f9b998
8 changed files with 111 additions and 11 deletions

View File

@@ -131,3 +131,4 @@ Detailed when it starts. Known shape: `depends_on` stored as data; a NO-GO propa
- 2026-11-06: v0.1 released as open source (AGPL-3.0); one Docker image, configuration in `LABUH_HOME`.
- 2026-11-06: the hosted reviewer runs in its own container without GitLab tokens, since Codex's sandbox cannot run inside Docker (Sen chose this over hosting without Docker).
- 2026-11-09: deploy setup (CI, Dockerfiles, compose, manifests) belongs to devops (rubric R13). Deploy findings tag the `devops` users from hub.json instead of asking the developer to change CI; the reviewer never suggests CI edits to the developer (Sen, after lti-api !1380).
- 2026-11-09: a turn the model provider fails (Codex `turn.status: failed`, e.g. 9router "high demand") is not a rejected verdict. The Hub throws `ReviewerUnavailable`, sends nothing back to the model, and the queue waits 2, 4, 8, 16 and 32 minutes before giving up with a comment that says the model could not be reached (lti-api !1388, lti-web-client !859).