test: supply holdDeferKeepIndex to the CEO routing mocks and follow split-overflow into the marathon lane

The registered-callback fixtures mock ceo-mode-option and lacked the new
export; the split fixtures asserted the periodic tier; the registered-budget
check looked for split-overflow only in the periodic manifest.
This commit is contained in:
garrytan committed 2026-09-29 21:33:13 +00:00
1 parent bf4667146c
commit 958d1ceba6
6 files changed
+14 -8

No files matched your search

+8 -3
View File
@@ -168,9 +168,14 @@ test('explicit allocation keeps its timer across load scheduling', () => {
});
test('single-slice manifest retains all registered files with one allocation', () => {
const m = buildRunManifest({ tier: 'periodic', sliceCount: 1, evalsAll: true, env: { EVALS_ALL: '1' } });
expect(m.entries.filter(e => e.status === 'planned').every(e => e.slice === 1)).toBe(true);
for (const budget of FINDING_RETRY_BUDGETS) expect(m.entries.find(e => e.file === budget.file)?.budget).toEqual(resolvePaidShardBudget([budget.file]));
// A registered file runs in exactly one scheduled lane: periodic, or the marathon lane for full flows.
const manifests = (['periodic', 'marathon'] as const).map(tier => buildRunManifest({ tier, sliceCount: 1, evalsAll: true, env: { EVALS_ALL: '1' } }));
for (const m of manifests) expect(m.entries.filter(e => e.status === 'planned').every(e => e.slice === 1)).toBe(true);
for (const budget of FINDING_RETRY_BUDGETS) {
const entries = manifests.flatMap(m => m.entries.filter(e => e.file === budget.file && e.status === 'planned'));
expect(entries, budget.file).toHaveLength(1);
expect(entries[0]!.budget).toEqual(resolvePaidShardBudget([budget.file]));
}
});
test('current detach supervision covers the live-census floor', () => {