# Multi Turn Operator Skill

Use when a multi_turn challenge pack run agent is awaiting human input and you need to check turn status or submit an operator message with agentclash run turn. Also use it to record calibration reviews of turns and votes for arena tasks.

Source: https://www.agentclash.dev/docs/agent-skills/agentclash-multi-turn-operator
Markdown export: https://www.agentclash.dev/md/docs/agent-skills/agentclash-multi-turn-operator

Canonical source: `web/content/agent-skills/agentclash-multi-turn-operator/SKILL.md`

Markdown export: `/docs-md/agent-skills/agentclash-multi-turn-operator`

## Use This Skill When

Use when a multi_turn challenge pack run agent is awaiting human input and you need to check turn status or submit an operator message with agentclash run turn. Also use it to record calibration reviews of turns and votes for arena tasks.

## Full SKILL.md

````markdown
---
name: agentclash-multi-turn-operator
description: Use when a multi_turn challenge pack run agent is awaiting human input and you need to check turn status or submit an operator message with agentclash run turn. Also use it to record calibration reviews of turns and votes for arena tasks.
metadata:
  agentclash.role: multi-turn
  agentclash.version: "1"
  agentclash.requires_cli: "true"
---

# AgentClash Multi-Turn Operator

## Purpose
Operate human takeover phases in multi-turn challenge packs: detect when a run agent awaits operator input and submit the next user message so the eval can continue.
Also record human scores for run agent turns (calibration reviews) and votes for arena tasks.

## Use When
- A multi_turn pack includes a `human` phase in its user simulator manifest.
- CLI or UI shows a run agent waiting for human input mid-run.
- An operator must reply as the end user during live eval observation.
- An operator must score a turn or select the winner of an arena task.

## Do Not Use When
- The pack is single-turn or fully scripted/LLM-simulated, and the task is a human turn — no human turns exist.
- The run has not started — use `agentclash-eval-runner` first.
- The task is authoring multi-turn pack YAML — see `/docs-md/challenge-packs/multi-turn` and challenge-pack skills.

## Inputs Needed
- Workspace ID and run ID.
- Run agent ID (from `agentclash run agents <runId> --json`).
- Human message text for the awaiting turn.
- Pack must use `execution_mode: multi_turn` with a human phase.

## Environment
```bash
export AGENTCLASH_API_URL="https://api.agentclash.dev"
agentclash workspace use <WORKSPACE_ID>
agentclash run get <RUN_ID> --json
agentclash run agents <RUN_ID> --json
```

## Procedure
1. Confirm the run is `running` and the target run agent exists.
2. Check `agentclash run turn status <runAgentId> --run <runId>`.
3. If `awaiting_human` is true, read `turn_index`, `phase_id`, and optional `prompt_hint`.
4. Submit the operator message with `agentclash run turn submit`.
5. Re-check status or follow run events until the agent completes the turn.

## Commands
```bash
agentclash run turn status <RUN_AGENT_ID> --run <RUN_ID>
agentclash run turn status <RUN_AGENT_ID> --run <RUN_ID> --json

agentclash run turn submit <RUN_AGENT_ID> --run <RUN_ID> --message "I still want a full refund, not store credit."
agentclash run turn submit <RUN_AGENT_ID> --run <RUN_ID> --message "..." --json
```

API paths (for debugging):
- Status: `GET /v1/workspaces/{ws}/runs/{run}/run-agents/{runAgent}/turns/status`
- Submit: `POST /v1/workspaces/{ws}/runs/{run}/run-agents/{runAgent}/turns` with `{"message":"..."}`

Structured status fields:
- `awaiting_human` — boolean
- `turn_index` — current turn number when awaiting
- `phase_id` — manifest phase identifier
- `prompt_hint` — optional operator guidance from the pack

## Expected Output
- Status with no wait: `Awaiting human: no`
- Status when blocked: `Awaiting human: yes` plus turn index and phase
- Submit success: `Human turn submitted` (human) or `{"status":"submitted"}` (JSON)

## Failure Modes
- Missing `--run` → both commands require `--run <RUN_ID>`.
- Missing `--message` on submit → required non-empty string.
- Agent not awaiting human → API may reject submit; check status first.
- Wrong run agent ID → list agents on the run before submitting.

## Calibration Reviews and Arena Votes

Use the workspace of the run agent or arena task. Use a turn index of 0 or more and a score from 1 to 5. The server keeps two decimal places of the score.

```bash
agentclash calibration create --run-agent <RUN_AGENT_ID> --turn 0 --score 4.5
agentclash calibration list
agentclash calibration list --json --query '.items[] | select(.run_agent_id == "<RUN_AGENT_ID>")'
```

The server returns the 100 most recent reviews at most. The query selects reviews from those results.

List the pending tasks and use one of the two winner flags. You can give one `--rubric-score key=value` flag for each rubric key.

```bash
agentclash arena tasks
agentclash arena vote <TASK_ID> --winner left --rubric-score recovery=4.5
```

The server returns up to 20 tasks. If the task is not in the list, give the run agent UUID of the winner with `--winner-run-agent`.

```bash
agentclash arena vote <TASK_ID> --winner-run-agent <RUN_AGENT_ID>
```

If the API returns `arena_task_not_pending`, the CLI exits with code 1. Use `agentclash arena tasks` to see the current list.

- No CLI command deletes a calibration review or an arena vote. Record one only when the operator gives the score or the winner.
- If `calibration create` exits `75`, run `agentclash calibration list` before a retry. The first request can have recorded the review, and a retry records a second review.
- One vote completes an arena task. If `arena vote` exits `75`, the server can have recorded the first vote. Then the task is not in the pending list. A retry with `--winner` exits `64`, and a retry with `--winner-run-agent` exits `1` with `arena_task_not_pending`.

## Safety Notes
- Operator messages become part of the eval transcript — avoid real customer PII.
- Human turns affect scoring and calibration; confirm message intent with the operator when ambiguous.

## Report Back Format
```text
Run: <run_id>
Run agent: <run_agent_id> (<label>)
Awaiting human: <yes/no>
Turn index: <n or n/a>
Phase: <phase_id or n/a>
Message submitted: <yes/no>
Prompt hint: <summary or n/a>
Next: agentclash run events <run_id>
```

## Related Skills
- `agentclash-hub`
- `agentclash-eval-runner`
- `agentclash-scorecard-reader`
- `agentclash-challenge-pack-planner`

## Related Docs
- `/docs-md/challenge-packs/multi-turn`
- `/docs-md/getting-started/first-eval`
- `/docs-md/reference/cli`
````