Orchestrator test monitor

From c9r-io/orchestrator · View interactive version

Orchestrator test monitor is an AI agent skill from the GitHub repository c9r-io/orchestrator. Monitor and evaluate orchestrator test execution plans end-to-end. Use when the user wants to run a test execution plan from docs/showcases/, observe the orchestrator's full-pipeline processing, and get a final assessment. Triggers on: "run test plan", "execute plan", "monitor orchestrator", "test t

How to use this skill

Skill file

Orchestrator Test Monitor

Observe and evaluate the orchestrator's execution of a test plan. You are a monitor, not a participant. Never modify code, fix bugs, or intervene in execution. Only observe, report, and assess.

Workflow

Phase 1: Plan Selection

  1. List all files under docs/showcases/ in the project working directory
  2. Present each plan with a one-line summary (read the "Task Goal" or opening section)
  3. Ask the user which plan to execute
  4. Read the selected plan thoroughly — extract:

Phase 2: Pre-Execution Setup — Build, Restart & Baseline

Ensure the daemon and CLI are built from the latest code and the daemon is running before launching any task.

2.1 Rebuild daemon & CLI
cargo build --release -p orchestratord -p orchestrator-cli

If the build fails, report the error to the user and stop — do NOT proceed with a stale binary.

2.2 Restart the daemon

IMPORTANT: Check CLAUDE.md for daemon lifecycle constraints first. If

orchestratord is managing this session (i.e., this skill was triggered BY the

orchestrator), you MUST NOT kill the daemon. In that case, skip the restart and reuse the

running daemon.

If it is safe to restart:

# Inspect and gracefully stop the old daemon
orchestrator daemon status
orchestrator daemon stop

# Start fresh daemon
nohup ./target/release/orchestratord --foreground --workers 2 > /tmp/orchestratord.log 2>&1 &

# Verify it's running (wait a moment for startup)
sleep 3
pgrep -f orchestratord

If the daemon fails to start, check /tmp/orchestratord.log and report the error.

2.3 Set up CLI environment

The CLI auto-discovers the default Unix Domain Socket under ~/.orchestratord/.

If the daemon uses an explicit data directory, set ORCHESTRATOR_SOCKET to that

directory's socket:

export ORCHESTRATOR_SOCKET="${ORCHESTRATORD_DATA_DIR}/orchestrator.sock"

Prefix all subsequent orchestrator commands with this env var, or export it once.

Verify connectivity: orchestrator task list.

2.4 Collect baseline state
  1. Note the current git state: git status, git log --oneline -3
  2. Note existing tasks: orchestrator task list
  3. Run any plan-specific baseline checks (e.g., grep for specific code patterns)
  4. Record the baseline state for later comparison

Phase 3: Task Launch

Directly execute the startup steps described in the selected plan — do NOT ask the user to run them.

  1. Run any plan-specific resource initialization commands (e.g., orchestrator delete, orchestrator init, orchestrator apply)
  2. Create the task using the exact command from the plan
  3. Record the returned task ID for monitoring
  4. Immediately proceed to Phase 4 (Live Monitoring)

Phase 4: Live Monitoring (OBSERVE ONLY)

Monitor the task using these commands in a loop:

orchestrator task watch <task_id>       # Real-time status panel
orchestrator task trace <task_id>       # Event timeline with anomaly detection
orchestrator task logs --follow <task_id>  # Stream logs
orchestrator task info <task_id>        # Detailed status snapshot
Monitoring Checklist

For each workflow step, verify:

Suspicious Indicators — Report Immediately

On suspicion: Immediately tell the user what you observed, which step/event triggered concern, and the raw evidence (log line, event, status).

Confirmed Anomaly — Record Ticket

If an anomaly is clearly a bug (not just suspicious), create a ticket file:

docs/ticket/YYYYMMDD-<short-slug>.md

Format:

# <Title>

- **Observed during**: <plan name>, step <step>, cycle <N>
- **Severity**: critical | major | minor
- **Symptom**: <what happened>
- **Expected**: <what should have happened>
- **Evidence**: <relevant log lines, events, or DB state>
- **Status**: open

Do NOT attempt to fix the anomaly. Only record it.

Phase 5: Post-Execution Verification

After the task reaches completed or failed:

  1. Check final task status:

```

orchestrator task info <task_id>

orchestrator task trace <task_id>

```

  1. Verify success criteria from the plan:
  1. Check artifacts:
  1. Run plan-specific validations:

Phase 6: Assessment Report

Produce a structured assessment:

## Test Execution Report

### Plan: <plan name>
### Task ID: <id>
### Duration: <start to end>
### Final Status: <completed/failed>

### Step-by-Step Results
| Step | Status | Duration | Notes |
|------|--------|----------|-------|
| ...  | ...    | ...      | ...   |

### Anomalies Detected
- <list anomalies with severity, or "None">

### Tickets Created
- <list ticket files, or "None">

### Success Criteria Evaluation
| Criterion | Met? | Evidence |
|-----------|------|----------|
| ...       | ...  | ...      |

### Overall Assessment
<Pass/Partial/Fail with explanation>

### Recommendations
<Actionable next steps, if any>

Rules

  1. NEVER modify source code, config files, or workflow definitions
  2. NEVER fix bugs — only record them as tickets
  3. ALWAYS report suspicious observations immediately, don't wait
  4. ALWAYS show raw evidence (log lines, events) when reporting issues
  5. If the orchestrator is stuck and you suspect it will not recover, inform the user with evidence and let THEM decide whether to intervene
  6. ALLOWED in Phase 2 only: cargo build (daemon/CLI rebuild), killing and restarting the daemon process, and orchestrator CLI commands for resource setup
  7. ALLOWED in Phase 3: running orchestrator CLI commands to initialize resources and create tasks
  8. NEVER run git commit, git push, or any git write operations
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.