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:
@@ -99,3 +99,8 @@ test('evidence must exist; ok without evidence is dropped; failing pipeline hold
|
||||
const escape: Verdict = { verdict: 'no_go', reason: 'Tahan', post_deploy: [], findings: [{ kind: 'bad', text: 'keluar repo', evidence: [ev({ path: '../../etc/hosts', line: 1 })] }] };
|
||||
assert.match((await check(escape, ctx)).errors.join(), /does not exist/);
|
||||
});
|
||||
|
||||
test('an empty answer is reported as empty, not as invalid JSON', async () => {
|
||||
const { shapeErrors } = await import('../src/contract.ts');
|
||||
assert.deepEqual(shapeErrors(' ').errors, ['The answer is empty.']);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user