fix: repair frontier eval budgets and workflow instructions

Preserve frontier models and quality thresholds while fixing truncated judge output, ordered section expansion, consent checks, QA scoring, and ship audit gates. Add regression coverage and refresh generated docs.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
This commit is contained in:
Garry Tan
2026-09-09 04:11:19 +00:00
co-authored by OpenAI Codex
parent 0cbccc1c6c
commit a9f9ec5f08
43 changed files with 916 additions and 518 deletions
+16
View File
@@ -24,6 +24,22 @@ describe('frontier Claude judge compatibility', () => {
{ type: 'text', text: '{"score":4}' },
] } as never);
expect(await callJudge('score this', 'claude-fable-5-1')).toEqual({ score: 4 });
expect(create.mock.calls[0][0].max_tokens).toBe(8192);
});
test('preserves an explicit output budget', async () => {
create.mockResolvedValue({ content: [{ type: 'text', text: '{"score":5}' }] } as never);
await callJudge('score this', 'claude-sonnet-4-6', { max_tokens: 2048 });
expect(create.mock.calls[0][0].max_tokens).toBe(2048);
});
test('rejects token exhaustion even when a partial answer contains valid JSON', async () => {
create.mockResolvedValue({
stop_reason: 'max_tokens',
content: [{ type: 'text', text: '{"score":4}' }],
} as never);
await expect(callJudge('score this', 'claude-fable-5-1', { max_tokens: 1024 }))
.rejects.toThrow('Judge response truncated at max_tokens=1024');
});
test('keeps text-only responses and explicit model options working', async () => {