Review a program draft
review_program_draftServer-side checklist for a DRAFT training program. Call it with the same WorkoutDocument you intend to import BEFORE presenting the draft to the user: it verifies day references resolve, every exercise is identifiable, rep ranges make sense, and — in 'coached' mode — that each exercise has a starting weight (or calibration note), matches the user's equipment and respects session length / weekly days.
Pass program_mode='preserve' when the document is the user's OWN program brought in from a file. The same structural errors are refused, but a missing weight is accepted as a fact about their program, and an equipment or schedule mismatch comes back as a warning to show them rather than a violation to fix. Use the same mode you will pass to import_document.
Returns {ok, mode, violations, warnings, unresolved, notes}. unresolved lists fields
the file never stated — ask about those; never fill them in. Saves nothing, and creates
nothing: reviewing somebody's file is not the start of a coaching relationship.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | ||
| program_mode | No | coached |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||