Skip to content

Request paths

What happens when you open a lesson, start an exercise, check it, ask for an explanation, and get an offer.

Applies to EngineCloud
View as Markdown
On this page
  1. Opening a lesson
  2. The lesson and you
  3. Your project
  4. Rendered
  5. Starting an exercise
  6. Checking
  7. Queued
  8. Run
  9. Results
  10. Explaining
  11. Offering a lesson

Opening a lesson

  1. The lesson and you

    GET /lessons/failures-have-names?project=la-espiga loads the current version of the lesson, your level from your profile and your language.

  2. Your project

    The binder answers each uses selector by reading your project with your token: the map from Cases, the table names from Data, preview traces from Telemetry. What it found is kept for 10 minutes.

  3. Rendered

    Level blocks for other levels are dropped, the slots are filled, and the answer names the items it chose.

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

  1. Queued

    POST /exercises/{id}/check records a run and sends a job to the runner: the repository, the commit, the checks and a 10-minute limit.

  2. Run

    The runner clones that commit into a sandbox and runs each check. A telemetry check waits for the branch’s preview to send the expected trace.

  3. Results

    The runner sends the results back, signed. When every check passes, the lesson is marked done, a note is written in your memory, and the run appears as a span of the case check-exercise in Telemetry.

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.

  1. Opening a lesson
  2. The lesson and you
  3. Your project
  4. Rendered
  5. Starting an exercise
  6. Checking
  7. Queued
  8. Run
  9. Results
  10. Explaining
  11. Offering a lesson

    Search pages, sections and terms