feat(research): cut over canonical runtime and enforce agent budgets
This commit is contained in:
parent
ab08db82fd
commit
bbf0dd4453
103 changed files with 6138 additions and 3112 deletions
|
|
@ -717,7 +717,7 @@ describe('immutable retry failure history', () => {
|
|||
expect(host.textContent).toContain('Retry 1 · previous attempt 1');
|
||||
expect(host.textContent).not.toContain('No accepted manual retries');
|
||||
});
|
||||
test('history is lazy and renders empty/loading states then exact nullable failure snapshots', async () => {
|
||||
test('history renders loading/empty states, exact nullable failure snapshots and research agent authorship', async () => {
|
||||
const value = failure(0, 0);
|
||||
value.trials[0]!.error = null;
|
||||
await show(value);
|
||||
|
|
@ -728,6 +728,7 @@ describe('immutable retry failure history', () => {
|
|||
expect(host.textContent).toContain('No accepted manual retries for this trial');
|
||||
await flush(() => button('Refresh retry history for trial 1').click());
|
||||
const saved = receipt(value);
|
||||
saved.principal = 'agent:aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa';
|
||||
await flush(() => reply(request(historyPath()), { retries: [saved] }));
|
||||
expect(host.textContent).toContain('Retry 1 · previous attempt 0');
|
||||
expect(host.textContent).toContain('No error was recorded for this failure');
|
||||
|
|
@ -736,6 +737,7 @@ describe('immutable retry failure history', () => {
|
|||
expect(host.textContent).toContain(saved.completedAt!);
|
||||
expect(host.textContent).toContain(saved.recordedAt);
|
||||
expect(host.textContent).toContain(saved.reviewId);
|
||||
expect(host.textContent).toContain(saved.principal);
|
||||
expect(host.textContent).toContain('not a complete history of automatic recovery attempts');
|
||||
});
|
||||
test.each(['partial', 'foreign', 'unordered', 'duplicate', 'http'] as const)(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue