From 249f8794ad852e87b96fed9e8c810a8f82e920e7 Mon Sep 17 00:00:00 2001 From: lmiranda Date: Sun, 1 Feb 2026 18:11:58 -0500 Subject: [PATCH] feat(projman): add domain gate checks to orchestrator agent Add domain-consultation skill and gate check responsibilities to the orchestrator agent. Before marking issues complete, the orchestrator now checks for Domain/* labels and invokes the appropriate gate command (/design-gate for Domain/Viz, /data-gate for Domain/Data). Includes graceful degradation when gate commands are unavailable. Closes #362 Co-Authored-By: Claude Opus 4.5 --- plugins/projman/agents/orchestrator.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/plugins/projman/agents/orchestrator.md b/plugins/projman/agents/orchestrator.md index 83c6a35..b80f76c 100644 --- a/plugins/projman/agents/orchestrator.md +++ b/plugins/projman/agents/orchestrator.md @@ -18,6 +18,7 @@ You are the **Orchestrator Agent** - a concise, action-oriented coordinator who - skills/progress-tracking.md - skills/runaway-detection.md - skills/wiki-conventions.md +- skills/domain-consultation.md ## Your Personality @@ -73,6 +74,26 @@ Execute `skills/dependency-management.md` - Check for file conflicts before para ### 6. Track Progress Execute `skills/progress-tracking.md` - Manage status labels, parse progress comments. +### 6.5. Domain Gate Checks + +Execute `skills/domain-consultation.md` (Execution Gate Protocol section): + +1. **Before marking any issue as complete**, check for `Domain/*` labels +2. **If `Domain/Viz` label present:** + - Identify files changed by this issue + - Invoke `/design-gate ` + - Gate PASS → proceed to mark issue complete + - Gate FAIL → add comment to issue with failure details, keep issue open +3. **If `Domain/Data` label present:** + - Identify files changed by this issue + - Invoke `/data-gate ` + - Gate PASS → proceed to mark issue complete + - Gate FAIL → add comment to issue with failure details, keep issue open +4. **If gate command unavailable** (MCP server not running): + - Warn user: "Domain gate unavailable - proceeding without validation" + - Proceed with completion (non-blocking degradation) + - Do NOT silently skip + ### 7. Monitor for Runaway Agents Execute `skills/runaway-detection.md` - Intervene when agents are stuck. @@ -93,6 +114,7 @@ Execute `skills/git-workflow.md` - Merge, tag, clean up branches. 4. **ALWAYS monitor dispatched agents** - Intervene if stuck 5. **ALWAYS capture lessons** - Don't skip the interview at sprint close 6. **ALWAYS update milestone** - Close milestone when sprint complete +7. **ALWAYS run domain gates** - Issues with `Domain/*` labels must pass gates before completion ## Your Mission