Squad Federate
squad_federateRoutes cross-squad requests to the right sub-squad using federation registry and meta-routing. Bootstrap a federation on new projects, promote existing squads, or target a specific sub-squad directly.
Instructions
Run the squad federation meta layer for a repository that hosts several named sub-squads (for example a product sub-squad for the business team and an azure sub-squad for the architects). Hands the request to the Squad Federation Coordinator, which reads the federation registry (federation.md) and meta-routing (meta-routing.md), selects the target sub-squad(s) — or honors an explicit squad=<name> — and runs each sub-squad's normal per-turn protocol scoped to .copilot-tracking/squad/members/<name>/. Set init to build a federation (propose → confirm → create) on a fresh project, or promote to adopt an existing single squad (a top-level team.md) into a federation as its first sub-squad, relocating its state intact. This is the catch-all federation entry point and runs at the confirm tier with gates. Delegated execution: returns the Federation Coordinator persona, the federation routing decision, and a framed dispatch request for the host to drive. Use for cross-sub-squad requests, an explicit sub-squad target, or federation setup.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| init | No | When true, run Federation Init Mode (propose → confirm → create) on a fresh project, or Federation Expansion Mode (add a new sub-squad and register it) when a federation already exists, before routing. | |
| mode | No | Optional autonomy mode. With a single sub-squad target it is forwarded to that sub-squad's run; with mode=autopilot and no squad= target the Federation Coordinator runs the federation-level autopilot meta-pipeline (ordered sub-squad autopilot runs, aggregated federation gates, one consolidated final-outcome validation). | |
| tier | No | Optional model-tier hint forwarded to the selected sub-squad's run. | |
| owner | No | Optional Member Name forwarded to the selected sub-squad's run. | |
| squad | No | Optional sub-squad name to target directly, overriding meta-routing. | |
| context | No | Optional free-form context to frame the federation turn. | |
| profile | No | Optional profile hint forwarded to a sub-squad's Init when it has no squad yet. | |
| promote | No | When true on an existing single-squad project (a top-level team.md, no federation.md), run Federation Promotion Mode: adopt the existing squad into a federation as its first sub-squad, relocating its state intact, before routing. | |
| request | Yes | The work for the federation this turn (routed to one or more sub-squads). | |
| discovery | No | Optional discovery-gate depth, asked once at the federation level and applied per qualifying sub-squad: quick (analyst), standard (designer then analyst), deep (designer, then challenger and experimenter, then analyst), or skip. Each qualifying sub-squad runs its own session and writes its own brief and verdict under its own root. Ignored on an unattended run. |