Skip to main content

Evals

Evals let you define conversation test cases and re-run them after changes, so important chat workflows do not quietly break. Find them under App Blueprint → Evals. Use them for critical paths (invite, core intake, “where is my order”), not for every small tweak. Skip evals for one-off experiments and cosmetic page edits that never touch chat behavior. After a Usage-Driven fix, an eval can lock the original pain point so it does not regress (see Usage-Driven Development).

How to verify

  1. Create or open a set under App Blueprint → Evals. The list shows each set’s last run status and date so you can see what is still green without opening every set.
  2. Run before a risky Build and again after the version lands.
  3. Open the run detail; fix failures in Build; re-run until green enough to ship.
  4. Still Preview as for interactive pages; evals are not a full QA suite.

What you work with

How you mark a case as passing can grow over time. Treat a case as “this conversation should still succeed for this role and intent,” and read the run for pass, fail, and what failed.

Example case

Runs start from an empty throwaway database. Ask in Building chat to put starter rows in the set (for example job 1042) so the prompt can ask about that job. The set calls that starter step seed code.

Example run readout

After you change how clients learn status, re-run the same set. If chat starts inventing status, the run fails. Fix in Build, then run again before you treat the version as safe. Pair this with Preview as for the interactive check; evals catch regressions when you are not clicking every path by hand.

How to run them in practice

  1. Create an eval set under App Blueprint → Evals.
  2. Add cases for the few flows that would embarrass you if they broke.
  3. Run before a risky Build, and again after the version lands.
  4. Open the run detail; fix failures in Build; re-run until green enough to ship.
  5. Keep the set short so you actually run it.

What a run actually does

Each run gets a throwaway database: empty except for the tables from your app’s migrations, including unpublished ones, and isolated from live project data. Optional seed code on the eval set is a short script that runs once at the start and can insert starter rows. Cases in that run share the same throwaway database, so later cases can see rows earlier cases wrote. Ask in Building chat to clear those rows at the start of that script if you want a clean slate before inserting the rows for this run. A case cannot start a background job, since the job would run against live project data instead of the throwaway database. The agent is told background tasks are not available in a test run. Check long jobs in Preview and Executions instead. Notifications, Signals, invites, and hook notify are not delivered. The run records those outbound calls on the result (kind, name, and a short snapshot of arguments) so you can inspect what would have been sent. Open the run detail and expand a case to see Outbound calls (not sent). A case that tests Building uses the role of the builder who started the run, including from Builder MCP, checked on every step. A case that tests Chat runs as the role you test with and never with builder access, so it cannot change who has access or export data, even as an Owner. Only a builder can start a run. Cases copied from feedback or signals hold your customers’ messages. Opening an eval set’s cases, a run’s results, or a run comparison needs Editor or above, and each opening is recorded in the Access log. Viewers still see the list of eval sets. That capture does not fake web requests or web search. Preview as still sends those for real. Trying a page from Building uses the same capture for notices: they are not sent. They are stored on an eval run only when the try happened inside an eval case.

Limits (be honest with yourself)

  • Model variability: the same case can flake if the prompt is vague. Prefer concrete user messages and clear success criteria.
  • Not a full QA suite: pages, schedules, and inbound webhooks need Preview, Executions, and manual checks too.
  • Credits: runs consume AI usage. Keep cases focused; do not mirror your entire chat history.