Skip to content

Exercises

How an exercise changes a real case on a branch of its own, how the agent helps, and how it is checked.

Applies to EngineCloud
View as Markdown
On this page
  1. The life of an exercise
  2. With the agent
  3. When it is done
  4. Which repository

An exercise asks you to change something real: add a case, name a failure, write the test of an ending. It happens on a branch of its own, so your app keeps working while you learn.

The life of an exercise

StateWhat it means
startedthe branch learn/<lesson> exists, with the brief in LEARN.md
checkingthe checks are running on your last commit
failedat least one check did not pass; each one says what to fix
passedevery check passed: the lesson is done
abandonedyou stopped it; the branch is deleted, the lesson stays open

You can check as many times as you like. Nothing counts against you.

With the agent

You can do the exercise alone, or ask the agent in App or in your terminal. It knows the lesson and your level:

  • Starter: it explains the step, proposes the change and waits for your approval. You decide; it writes.
  • Builder: it points to what to change and explains the code it writes.
  • Developer and senior: it gives a hint only after a failed check, or when you ask.

The agent never runs learn check as a way to guess an answer, and it cannot mark a lesson as done: only passing checks do.

When it is done

The branch stays in your repository. Choose:

  • Keep it: learn finish --keep removes LEARN.md and opens a pull request. Ana keeps «Cancel an order until 10 am» in her bakery’s app.
  • Let it go: learn finish --drop deletes the branch. The lesson stays done.

Learn never merges anything into your main branch.

Which repository

Your projectWhere the branch goes
in Sypnia Gitthe project’s repository
in GitHub or another git hostthe same repository, through your git remote, from the CLI
none (the sample)your own copy of La Espiga in your organization
  1. The life of an exercise
  2. With the agent
  3. When it is done
  4. Which repository

    Search pages, sections and terms