Add an acceptance criterion
POST /v1/chat/sessions/:id/goal/subgoals — Append an acceptance criterion to the standing goal. The judge and the next-turn prompt both carry the criteria. Works o
POST /v1/chat/sessions/:id/goal/subgoals
Append an acceptance criterion to the standing goal. The judge and the next-turn prompt both carry the criteria. Works on an active or paused goal.
| Method | POST |
| Path | /v1/chat/sessions/:id/goal/subgoals |
| Auth | Authorization: Bearer <token> required when GATEWAY_AUTH_TOKEN is set |
| Category | chat |
Request body
{ "criterion": "all tests pass" }Response body
{ "ok": true, "goal": { "subgoals": ["all tests pass"] } }