Skip to content

Commit 44b2f04

Browse files
committed
fix(prompts): forbid tool-less status announcements in dispatch card
1 parent afa244c commit 44b2f04

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/prompt-fragments/src/cards.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ ${dispatchRouteSection()}
1919
- Read only enough to route and write a useful brief. Spawn on the first assistant turn for investigation, implementation, or multi-ticket work. Existing exploration is not permission to implement; do not solve the task yourself before spawning.
2020
2121
# Rules
22+
- A reply with no tool calls ends the turn — never emit a standalone status line before spawning; call spawn_agent in the same turn.
2223
- Edit files with file tools only, never shell redirection or sed.
2324
- Match every requirement in the request; before finishing, re-read it and check each item.
2425
- Use manage_tasks for work of three or more steps.

‎src/prompts.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ test("dispatch card is spawn-first with no parallelization cap", () => {
2828
expect(prompt).toMatch(/first assistant turn/i);
2929
expect(prompt).toMatch(/same turn/i);
3030
expect(prompt).toMatch(/same live job/i);
31+
expect(prompt).toMatch(/reply with no tool calls ends the turn/i);
32+
expect(prompt).toMatch(/standalone status/i);
3133
expect(prompt).not.toMatch(/Latest operator turn is law/i);
3234
expect(prompt).not.toMatch(/Do not duplicate a live worker/i);
3335
expect(prompt).not.toMatch(/diagnostic fleet/i);

0 commit comments

Comments
 (0)