complete_lesson
Record a lesson result for a learner AFTER grading its quiz/assignment. passed:true marks it done and advances; passed:false records the attempt without advancing (reteach). Always include a reflection when you have one — it's the signal that improves the course.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | The lesson slug just attempted. | |
| passed | No | Did they pass the quiz/assignment? Default true. false = reteach, don't advance. | |
| learner | Yes | Same EMAIL address used in start_session. | |
| reflection | No | What confused them, what landed, or what they want next (≤1000 chars). Feeds curriculum improvement. |