fix: tighten handoff routing behavior

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-24 23:47:31 +01:00
co-authored by Copilot
parent f67fab0816
commit 2c972a063a
7 changed files with 20 additions and 5 deletions
+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');
});