fix: tighten handoff routing behavior

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David KayaandCopilot committed 2026-03-24 23:47:31 +01:00
1 parent f67fab0816
commit 2c972a063a
7 files changed
+20 -5

No files matched your search

+2 -1
View File
@@ -91,7 +91,8 @@ describe('pattern validation', () => {
const handoff = createBuiltinPatterns(BUILTIN_TIMESTAMP).find((pattern) => pattern.mode === 'handoff');
expect(handoff).toBeDefined();
expect(handoff?.agents[0].instructions).toContain('Do not do the specialist work yourself');
expect(handoff?.agents[0].instructions).toContain('hand off before inspecting files');
expect(handoff?.agents[0].instructions).toContain('Do not claim that you delegated');
expect(handoff?.agents[1].instructions).toContain('own the substantive answer');
expect(handoff?.agents[2].instructions).toContain('own the substantive answer');
});