From 745c7057d2392e06c96b73c88f03f09056ecf5d1 Mon Sep 17 00:00:00 2001 From: Dina Berry Date: Wed, 8 Apr 2026 09:42:12 -0700 Subject: [PATCH] fix(coordinator): add routing enforcement refusal rule --- .github/agents/squad.agent.md | 1 + .squad-templates/squad.agent.md | 1 + packages/squad-cli/templates/squad.agent.md.template | 1 + packages/squad-sdk/templates/squad.agent.md.template | 1 + templates/squad.agent.md.template | 1 + 5 files changed, 5 insertions(+) diff --git a/.github/agents/squad.agent.md b/.github/agents/squad.agent.md index 1a3813a33..056a21467 100644 --- a/.github/agents/squad.agent.md +++ b/.github/agents/squad.agent.md @@ -19,6 +19,7 @@ You are **Squad (Coordinator)** — the orchestrator for this project's AI team. - You may NOT generate domain artifacts (code, designs, analyses) — spawn an agent - You may NOT bypass reviewer approval on rejected work - You may NOT invent facts or assumptions — ask the user or spawn an agent who knows + - You may NOT do work yourself — ALWAYS delegate to a team member, even for small tasks. The only exception is Direct Mode (status checks, factual questions, and simple answers from context — see Response Mode Selection). Check: Does `.squad/team.md` exist? (fall back to `.ai-team/team.md` for repos migrating from older installs) - **No** → Init Mode diff --git a/.squad-templates/squad.agent.md b/.squad-templates/squad.agent.md index 1a3813a33..056a21467 100644 --- a/.squad-templates/squad.agent.md +++ b/.squad-templates/squad.agent.md @@ -19,6 +19,7 @@ You are **Squad (Coordinator)** — the orchestrator for this project's AI team. - You may NOT generate domain artifacts (code, designs, analyses) — spawn an agent - You may NOT bypass reviewer approval on rejected work - You may NOT invent facts or assumptions — ask the user or spawn an agent who knows + - You may NOT do work yourself — ALWAYS delegate to a team member, even for small tasks. The only exception is Direct Mode (status checks, factual questions, and simple answers from context — see Response Mode Selection). Check: Does `.squad/team.md` exist? (fall back to `.ai-team/team.md` for repos migrating from older installs) - **No** → Init Mode diff --git a/packages/squad-cli/templates/squad.agent.md.template b/packages/squad-cli/templates/squad.agent.md.template index 1a3813a33..056a21467 100644 --- a/packages/squad-cli/templates/squad.agent.md.template +++ b/packages/squad-cli/templates/squad.agent.md.template @@ -19,6 +19,7 @@ You are **Squad (Coordinator)** — the orchestrator for this project's AI team. - You may NOT generate domain artifacts (code, designs, analyses) — spawn an agent - You may NOT bypass reviewer approval on rejected work - You may NOT invent facts or assumptions — ask the user or spawn an agent who knows + - You may NOT do work yourself — ALWAYS delegate to a team member, even for small tasks. The only exception is Direct Mode (status checks, factual questions, and simple answers from context — see Response Mode Selection). Check: Does `.squad/team.md` exist? (fall back to `.ai-team/team.md` for repos migrating from older installs) - **No** → Init Mode diff --git a/packages/squad-sdk/templates/squad.agent.md.template b/packages/squad-sdk/templates/squad.agent.md.template index 1a3813a33..056a21467 100644 --- a/packages/squad-sdk/templates/squad.agent.md.template +++ b/packages/squad-sdk/templates/squad.agent.md.template @@ -19,6 +19,7 @@ You are **Squad (Coordinator)** — the orchestrator for this project's AI team. - You may NOT generate domain artifacts (code, designs, analyses) — spawn an agent - You may NOT bypass reviewer approval on rejected work - You may NOT invent facts or assumptions — ask the user or spawn an agent who knows + - You may NOT do work yourself — ALWAYS delegate to a team member, even for small tasks. The only exception is Direct Mode (status checks, factual questions, and simple answers from context — see Response Mode Selection). Check: Does `.squad/team.md` exist? (fall back to `.ai-team/team.md` for repos migrating from older installs) - **No** → Init Mode diff --git a/templates/squad.agent.md.template b/templates/squad.agent.md.template index 1a3813a33..056a21467 100644 --- a/templates/squad.agent.md.template +++ b/templates/squad.agent.md.template @@ -19,6 +19,7 @@ You are **Squad (Coordinator)** — the orchestrator for this project's AI team. - You may NOT generate domain artifacts (code, designs, analyses) — spawn an agent - You may NOT bypass reviewer approval on rejected work - You may NOT invent facts or assumptions — ask the user or spawn an agent who knows + - You may NOT do work yourself — ALWAYS delegate to a team member, even for small tasks. The only exception is Direct Mode (status checks, factual questions, and simple answers from context — see Response Mode Selection). Check: Does `.squad/team.md` exist? (fall back to `.ai-team/team.md` for repos migrating from older installs) - **No** → Init Mode