aiworkhub_supervisor_loop_status
Derive a task's supervisor state and error class from queue checks for runner/topic mismatch, missing artifacts, collisions, stale tasks, and validation failure—without mutating queue/audit state.
Instructions
READ-ONLY: derive supervisor_state + error taxonomy for a task_id.
Use this for the derived supervisor state and error class of one task; use aiworkhub_agent_task_status for the raw launched request and its card.
Implements the B08 contract's 7-step derivation over the LIVE queue (task_mcp_supervisor_loop_status_tool_b08_v1.json): fetch_status via core.show_task, then runner_topic_mismatch / missing_artifact / collision / stale_task / failed_validation checks, falling through to a read-only lifecycle_state -> supervisor_state mapping when none trip.
FROZEN READ-ONLY CONTRACT -- no write-gate toggle, no mutation parameters. Never calls taskctl done/review/start/auto-pickup/add-card. Never mutates queue or audit state. Never launches agents or processes. Writes remain default-off regardless of input values.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task_id": "<task_id>"
},
"name": "aiworkhub_supervisor_loop_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No | Topic to check against the runner/topic allowlist for review; omit both runner and topic to skip the check. | |
| runner | No | Runner to check against the runner/topic allowlist for review; the check runs when runner or topic is given, and a mismatch blocks the reply. | |
| task_id | Yes | Id of the task card to derive the supervisor state for; an unknown id returns state not_found. | |
| previous_snapshot | No | Earlier card snapshot as {status, worker_status}; if the live card differs the reply is blocked as stale_task. Omit to skip the check. | |
| supervisor_request_id | No | Caller correlation id echoed back in the reply; omit if you have none. | |
| reported_validation_verdict | No | Validation verdict you observed elsewhere; only failed matters and blocks the reply as failed_validation. This tool never runs validation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||