Request paths
What happens when you open a lesson, start an exercise, check it, ask for an explanation, and get an offer.
Opening a lesson
Starting an exercise
POST /lessons/{id}/exercises asks Git to create learn/<lesson> from your default branch and commit LEARN.md to it, then records the exercise as started. From the CLI with a local folder, the branch is created on your machine and pushed when you check.
Checking
Explaining
POST /explain reads the item with your token, replaces secret values and masked columns, and asks Sypnia AI for an explanation at your level and in your language. The answer streams back and is not stored.
Offering a lesson
Products publish events (a scope error in Cases, a failed check, a production deploy, a new problem in Telemetry). Learn matches each one to a lesson you have not done, applies the rules (once per trigger, at most one an hour and three a day), and records an offer that App shows.