Render verdict

From stevehuang0115/crewly · View interactive version

Render verdict is an AI agent skill from the GitHub repository stevehuang0115/crewly. Record a review verdict (verified/rejected) on a done_by_worker WorkItem, with the caller's identity attached so the backend accepts it.

How to use this skill

Skill file

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

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).

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.