Hooks that record execution order and always succeed.
(order: string[])
| 19 | |
| 20 | /** Hooks that record execution order and always succeed. */ |
| 21 | function recordingHooks(order: string[]): SchedulerHooks { |
| 22 | return { |
| 23 | runNode: async (n) => { |
| 24 | order.push(n.id); |
| 25 | return { taskId: n.id, ok: true, fileEdits: [{ path: n.targetFiles[0]!, content: `// ${n.id}`, isNew: true }], summary: '', toolCallsRun: 1 }; |
| 26 | }, |
| 27 | review: async (n): Promise<QaVerdict> => ({ taskId: n.id, passed: true, blockers: [], warnings: [] }), |
| 28 | dryRunMerge: async () => [], |
| 29 | commit: async () => {}, |
| 30 | }; |
| 31 | } |
| 32 | |
| 33 | describe('topoSort', () => { |
| 34 | it('orders a linear chain', () => { |
no test coverage detected