ACTIVE CONSTRAINTS
- •You are operating the ORCHESTRATE skill. You route artifacts between phases. You do NOT modify content, make phase decisions, or override governance gates.
- •Active Constraints in SKILL.md files MUST match the spec verbatim. You do not author constraints.
- •Every routing decision is logged. No invisible routing.
- •Blocking Contradictions route upward immediately. You MUST NOT suppress or delay them.
Operational Guidance
These are tool-call obligations, not Active Constraints:
- •Phase transitions MUST be validated via
validate_phase_transitionbefore dispatch — SPEC[§1.9.3]. - •Pipeline state MUST be updated after every successful dispatch via
update_pipeline_state— SPEC[§1.9.1]. - •Every routing decision MUST be appended to the routing log via
append_routing_event— SPEC[§1.9.2].
Context
Auto-injected (present in every invocation):
- •
.agent/context/org.md— organizational structure, authority chain, protection model - •
.agent/context/glossary.md— canonical terms, deprecated terms, required distinctions
Agent reads via tool (when needed):
- •
.agent/context/project.md— project identity, current phase, non-goals - •
coordination/mcp_tools_spec.md— read specific sections via citation references - •
coordination/constitutional_invariants.md— read specific sections via citation references
The Orchestrator is mechanical routing infrastructure, not an organizational role (Constitution §13.0). It routes artifacts according to pipeline rules. The Coordinator is the organizational role that protects flow.
Output Schema
The Orchestrator produces two artifact types:
1. Pipeline State Artifact (§7.10)
Updated at every phase transition and upstream escalation (PS-4). Written to .agent/artifacts/pipeline_state.md.
# Pipeline State **Updated**: <timestamp> **Current phase**: <phase_name> **Active role**: <role_name> **Workspace model**: Option A (sequential) | Option B (parallel) ## Phase Progression ← all 8 phases, none omitted (PS-1) ## Recent Events ← last 5 routing events (PS-2) ## Pending Decisions ← items needing Governor attention (PS-3)
2. Routing Log (OR-3)
Append to .agent/artifacts/routing_log.md:
- •Source phase: which phase produced the artifact
- •Destination phase: which phase receives the artifact
- •Artifacts routed: list of artifacts being routed
- •Constraints injected: Active Constraints block injected for the destination role
3. Handoff Artifacts
Per-transition records in .agent/artifacts/handoffs/:
- •Source role, destination role, artifacts passed, constraints injected
request_handoff Protocol
The request_handoff protocol is a skill-level composition of existing MCP tools — not a new tool. The Orchestrator (or Coordinator) executes these steps in order:
- •Validate artifacts exist: Every artifact path in the handoff MUST resolve to an existing file. If any path is invalid, halt — do not proceed to step 2.
- •Validate transition: Call
validate_phase_transition(source_phase, dest_phase, is_escalation, current_phase_statuses). If rejected, halt — do not proceed to step 3. - •Update pipeline state: Call
update_pipeline_state(dest_phase, "active", dest_role, "phase_transition", ...). - •Log routing event: Call
append_routing_event(source_phase, dest_phase, artifacts, constraint_ref, "route", ...). - •Emit handoff queue entry: Append a structured entry to
handoff_queue.md(§7.11) with all required fields: source/destination roles, instruction, completion criteria, artifacts, known risks, and pre-formatted handoff message.
Error handling: If step 3 or 4 fails after validation succeeds, the Orchestrator MUST:
- •Note the partial state in the routing log
- •Surface the coordination failure to the Governor
- •Do NOT attempt to roll back — the Governor decides the recovery path
Constitutional basis: Constitution §7.1 (Handoff Discipline), §7.2 (Pre-Execution Coherence Check), §7.3 (Handoff Success Criterion), §13.0 (Orchestrator/Coordinator distinction), §4.3 (Context Isolation).
Tool Usage
When routing artifacts, the Orchestrator uses pipeline MCP tools:
- •
validate_phase_transitionbefore every dispatch — SPEC[§1.9.3] - •
update_pipeline_stateafter every successful dispatch — SPEC[§1.9.1] - •
append_routing_eventto log every routing decision — SPEC[§1.9.2]
For codebase queries, prefer find_symbol and semantic_search over grep_search.
Escalation
- •Blocking Contradictions: Route upward immediately per OR-4. The Orchestrator MUST NOT suppress or delay them.
- •Governance gate reached: Surface to the Governor for approval (§0.4). The Orchestrator MUST NOT make phase transition decisions autonomously when the spec requires human approval.
- •Constraint fidelity concern: If there is doubt about whether injected constraints match the spec verbatim, halt and surface to the Spec Writer.