Render Verdict
Record an explicit review verdict on a done_by_worker WorkItem — the step
the escalation chain (#813/#819) asks the orchestrator to take once a
worker's completion has gone unverified by its Team Leader for too long.
Why not `curl` directly?
POST /api/task-pool/items/:id/verdict identifies its caller from the
X-Agent-Session request header (never from the request body — see
resolveTransitionActor in backend/src/utils/agent-caller.utils.ts). A raw
curl sends no such header, so the backend cannot tell who is calling and
refuses with 403 { code: "transition_not_reviewer" }. This skill runs the
same POST through api_call (config/skills/_common/lib.sh), which always
attaches X-Agent-Session: $CREWLY_SESSION_NAME — run it with
CREWLY_SESSION_NAME set to your own session (crewly-orc for the
orchestrator) and the backend recognizes the caller correctly.
Usage
CREWLY_SESSION_NAME=crewly-orc bash config/skills/orchestrator/render-verdict/execute.sh \
'{"workItemId":"abc-123","verdict":"verified","comment":"Meets the acceptance criteria","checks":[{"entry":0,"did":"opened report.md: covers the 3 asks","outcome":"pass"}]}'
Parameters
workItemId(required, aliastaskId) — thedone_by_workerWorkItem to verdict.verdict(required) —"verified"or"rejected".comment(optional) — reviewer's note; required in practice for a rejection so the worker knows what to fix.checks(required forverified, #1314) — what you checked:[{"entry":<index in the item's output.evidence, or null for a direct look>,"did":"<what you did and saw>","outcome":"pass"|"fail"}]. At least one must name an evidence entry when the worker sent any. Without it (or with afail) the server returns 400review_unchecked/review_check_failedand nothing is verified.
Output
The raw JSON response of POST /api/task-pool/items/:workItemId/verdict:
{"success":true,"data":<WorkItem>} on success, or a JSON error object on
stderr (400 invalid verdict, 403 not the reviewer, 404 not found, 409 not
done_by_worker).