n8n-create-instance-ai-eval
Create an Instance AI eval
Each eval is one JSON case. Author workflow cases in
packages/@n8n/instance-ai/evaluations/data/workflows/. Author standalone Agent
cases in packages/@n8n/instance-ai/evaluations/data/agents/ and follow the
create-agent-builder-eval skill.
The disk loader auto-discovers *.json in both directories. A LangTracer suite
is the durable home. Cases validate against
harness/schema.ts
(.strict() — unknown keys fail at load). The eval
README is the
exhaustive field reference; this skill is the opinionated *how*.
**Committing new case JSONs into the repo is no longer the recommended
approach.** Author the file locally (uncommitted), calibrate it against a real
build, then push it to a lang-tracer suite with eval:langtracer-push(see Push to a lang-tracer suite) —
the suite the driver chose (see
Ask for the target suite first) —
baseline for the consolidated corpus n8n CI runs, or a dedicatedcapability suite like agents.The suite is the home for the case; the eval CLI reads it back via
--source langtracer. You still write the JSON file — it's just the input tothe push, not a committed artifact.
Seeded cases. An inline seed pushes with the case — the case-write APIstores it verbatim, so the suite is its home like any other case. Only a
seed.mode: "replay"case is refused (listed underskipped:): it's
reconstructed from a LangSmith trace at run time, so it dies when that trace is
pruned and has no durable home. Don't commit a replay case either — derive a
synthetic case from it. See case-shapes.md.Ask for the target suite first
**Before you source, draft, or run anything, ask the driver which LangTracer
suite receives every eval you create in this session.** Ask this in both
autonomy levels, including autonomous mode. Never pick the suite yourself and
never default silently. A case pushed to the wrong suite runs in the wrong CI
lane and alerts the wrong team.
Ask the suite question and the autonomy question together, in one message.
Recommend baseline:
baseline(recommended): the general corpus. The Instance AI (INS) team
monitors it, and it runs nightly.
- Any other suite, such as
agentsornode-gauntlet: calllist_suitesand
offer the live list. Do not use a hardcoded list, because suites are added
and retired.
Rules:
- The driver's answer applies to all cases in the session. Do not ask again per
case.
- If the driver already named a suite in the request, state it back in one line
and continue. Do not ask again.
- Check that the suite kind matches the case. Push a case with a wrong build
(capability_gap) only into a suite that allows that kind. If the suite does
not allow it, tell the driver and ask again.
- Put the chosen suite slug in the final decision log, as a link.
Set the autonomy level first
**Before you source, draft, or run anything, decide how hands-on the driver
wants to be — and say it back.** This skill runs at one of two autonomy levels.
If the request makes the level clear ("just author and calibrate it yourself" vs.
"stop me at each step", or an explicit mode), adopt it, state it in one line, and
note how to override (e.g. "say 'stop me at calibration' to add a checkpoint").
If it's not clear, ask the driver one question offering the two levels
*before* doing any work.
The skill has four natural decision gates — selection (which real
failure to encode), shape + expectations (archetype, must-haves, scope
trim), calibration (classify each red and resolve keep/loosen/drop), and
push (kind + tier). The level decides what happens at each gate:
| Level | Who decides when to stop | Behaviour |
|---|---|---|
| autonomous | agent | Runs all four gates start-to-finish; reports a decision log at the end for the driver to review — with the pushed case, its suite, and the source thread as links (Share links, never bare ids); includes the observation id when the driver opted to record one; and includes a Linear ticket proposal for any kept capability-gap red (Capability gap → propose a Linear ticket). |
| checkpoint | driver, per gate | Stops at each gate with a compact proposal + recommendation; driver says "go" or redirects. At the calibration gate, hands the driver a link to the just-built thread on the live instance plus login credentials so they can review the real conversation and workflow themselves before confirming (below). |
Calibration is special-cased at both levels. A calibration verdict that
flips a case's *meaning* — a real capability-gap red vs. a harness-caused red, or
any loosening that would let a known-bad build pass — is surfaced explicitly
(interactively in checkpoint; in the decision log in autonomous), never silently
committed. It's the one call where a quiet mistake corrupts the suite, so it
never fully auto-commits.
Recording a source observation is optional, not a fifth gate. After a real
thread passes selection, offer to save why it was selected and what the developer
observed with LangTracer's create_observation tool (see
[sourcing-cases.md](sourcing-cases.md#optional-record-the-selection-as-an-
