curl -X POST https://{project}.polpo.cloud/v1/tasks \
-H "Authorization: Bearer $POLPO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"title": "Add health endpoint",
"description": "Implement GET /health and add an integration test.",
"assignTo": "backend-dev",
"loop": "implementation-flow",
"expectations": [
{"type":"test","command":"pnpm test -- health"},
{"type":"file_exists","paths":["src/routes/health.ts"]},
{"type":"llm_review","criteria":"The endpoint has no side effects","threshold":0.8}
],
"expectedOutcomes": [
{"type":"file","label":"Health route","path":"src/routes/health.ts"}
],
"maxDuration": 1800,
"sandbox": {"isolation": "fresh"},
"retryPolicy": {"escalateAfter":2,"fallbackAgent":"senior-backend-dev"}
}'