v6

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-01485121699.8 KB
graduation

Record Task Event

Record a task completion or failure for graduation metric tracking.

The orchestrator or CLI calls this after each task completes/fails so the graduation framework can accumulate per-stage metrics and determine when the session qualifies for the next stage.

Args: session_id: The session that executed the task. body: Task event details.

Returns: JSON with updated stage, metrics, and graduation readiness.

Raises: HTTPException: 422 when initial_stage is not a valid stage name.

post/graduation/{session_id}/record-event

Path parameters

session_idstring required

Request body

task_idstring required
successboolean required
duration_snumber
cost_usdnumber
initial_stagestring

Response

Successful Response

{"stackTrail":"paths:/graduation/{session_id}/record-event:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}