Exams
How Emblema Studio checks a template draft on your server's own model before you publish it, and how to read the result.
An exam is the bar a workspace template draft must clear on your Emblema server. Your coding agent writes it with the draft in Emblema Studio (see Connect your agent), then runs it. Each run starts a fresh test copy of the draft and plays a user who asks for the deliverable, with nobody watching. When every run is graded, you see whether the draft passed.
What an exam holds
- Cases. Each case is one request, written the way a real user would write it ("Make an 8-slide deck from the attached folder, with the PDF"). It names the Drive samples it needs and scripts the answers to the template's questions.
- Conditions. What every run must show: for example, the PDF was produced, the deck has 8 slides, no node failed, the agent asked at most three questions. At least one condition is checked by code. A condition can also ask a judge model a yes/no question ("Is all of the slide text in Italian?"), but a judge alone never decides an exam.
- Runs. Each case runs several times, 3 by default, because the same request can go differently twice. A case passes when enough of its runs pass (all of them by default). The exam passes when every case passes.
The model that runs the copy never sees the exam. It gets only the request, so it can't be taught the answers.
The exam is stored with the draft. Samples are bound per server: the exam names the slots, and you pick the Drive items on each server.
Why your server's model runs it
Your users' runs of the template use your server's default workspace model, often a smaller model than your coding agent. A template that works for a large model can fail on it: too many slides, a missed step, a question asked twice. So the exam runs on that same model, as you, in your organization, and the result names the model it ran on.
A result counts only for the draft as it is and for that model. If the graph, the instruction or the exam changes, or an administrator changes the default workspace model, the result becomes stale: run the exam again.
While fixing, your agent runs quick smoke runs: one case, once. Only a run of the whole exam is the draft's result.
Reading a report
Ask your agent for the exam report. It shows:
- The state: queued (waiting for its turn on the server, with its position), running, passed, failed, errored (the platform failed too often to judge), budget exceeded, cancelled, or stale.
- Each case: the runs passed against the runs needed.
- Each run: its outcome, the credits it used, and every condition with what was observed against what was expected. A judged condition also has the judge's reason.
A failed run points to its test copy, so your agent can read its transcript, the answers it gave, its nodes and its errors. The copy is an ordinary workspace of yours: open it in Emblema to see the run for yourself.
Your agent fixes the draft's graph or its instruction, not the exam. If a condition is wrong about what you want, the agent should tell you before it changes the exam.
Publishing
When the whole exam has passed on the draft as it is now, your agent prepares the publish and gives you a link. It opens the draft's publish dialog with the name, description, changelog, category and tags your agent wrote, as text you can change, and the draft's instruction.
While exams are on, the dialog also shows the exam you are approving: its state on this server's model, each case's passing runs, what every run must do, and how many runs passed on this version of the draft. A draft from Emblema Studio then publishes to your organization only, and only as examined. If the draft changed since the exam passed, or the exam did not pass, the dialog says so and Publish stays off until your agent runs the exam again.
You click Publish; your agent cannot. While exams are off, the dialog fills in your agent's text and publishes as it always has.
What an operator turns on
Exams are off on every server until an administrator turns them on, in admin-panel under Models:
| Setting | What it does |
|---|---|
| Emblema Studio exams | Lets an author's agent run exams, and makes a Studio draft publish only on a passing exam. Turning it off stops running exams and lifts that gate. |
| Daily authoring budget | The most the runs Emblema Studio starts may spend in one organization per day (UTC). Without it, no exam starts. |
| Exam runs at once | How many exam runs the server executes at the same time. Default 1; the others wait in a queue. |
| Exam judge model | The model that answers judged conditions. Unset, the default workspace model judges. |
The server also needs a default workspace model you may use, and its background sweep, which moves queued exams on and stops a run that takes too long. Your server's operator has the setup steps.
Budget
Every run spends your organization's credits, like any workspace run.
- The exam's own budget: 200 credits and 15 minutes a run by default. Your agent can set other amounts in the exam. A queued exam's minutes don't count while it waits.
- The organization's daily budget: set by the administrator for every organization. Your organization's admin can set a lower one under Account → Credits. Once the day's budget is spent, no exam starts and a running exam stops, until 00:00 UTC.
- Per person: at most 3 exams queued or running at once, and 10 started an hour.
Node runs inside an exam are not counted in its credits yet.