Skip to main content
Teaching happens over the same endpoint as live traffic. A call whose body contains the minicor envelope with teach: true is a teaching call: it creates or updates a sample, and it never touches live traffic.

Shape

Everything outside minicor is the sample input, exactly as your product would send it on a live call.

Fields

What a teach call does

  1. The first teach call to an unknown method and path creates the job in the Learning state and starts the builder.
  2. Every teach call records a sample: the input, the intent, and the checks derived from it.
  3. The builder runs until this sample and every existing sample pass.
  4. If the job is already Live, the work happens on a new version and production traffic is untouched until you go live again.
The response acknowledges the lesson and points at the build, which you can follow on the job page or poll at GET /_builds/:id.
Send the payload your product actually produces, not a cleaned-up version. The sample is the contract for live calls, and the job is only as honest as its inputs.