docs(ai-builder): Remove stale pending-support notes from the agent runtime eval skill (no-changelog) (#46321)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Mutasem AldmourandClaude Opus 5.5 authored and GitHub committed 2026-12-03 17:35:21 +00:00
1 parent ea52ec32a4
commit 1b0d83b3e8
3 files changed
+28 -64

No files matched your search

@@ -38,26 +38,11 @@ bare ids; a red is a finding; reproduce first. See
## What works today
The n8n harness runs direct Agent cases end to end: `agentRun`, seed rows,
Direct Agent cases run end to end, locally and in CI: `agentRun`, seed rows,
expectations, each Agent on its own model, multi-turn chats and sessions, and
memory. Some LangTracer support is still in progress. Check it before you
start. Each step below says when it waits on one of these.
| LangTracer support | What it adds |
|---|---|
| Scrub rewrites Agents | `scrub_test_case` rewrites `seed.agents` |
| Stores direct-run fields | `agentRun` and seed `rows` on a case; the OpenRouter key on CI |
| Stores multi-turn fields | `userTurns`, `sessions`, `expectations` on a case |
Until each part lands:
- **Until the scrub rewrites Agents:** rewrite the snapshot by hand. Follow
[building.md](building.md).
- **Until LangTracer stores the direct-run and multi-turn fields:** LangTracer
cases cannot hold `agentRun`, `userTurns`, `sessions`, `expectations` or
seed `rows`. Build the rest in LangTracer. Add these fields by hand to the
scratch file for the local run, and copy them to the case once LangTracer
stores them.
memory. LangTracer stores and exports `agentRun`, seed rows, `expectations`,
`userTurns` and `sessions`. `scrub_test_case` rewrites `seed.agents`. The
nightly n8n image runs direct cases.
The pinned case contract is in
[`harness/agent-run-schema.ts`](../../../packages/@n8n/instance-ai/evaluations/harness/agent-run-schema.ts).
@@ -89,8 +74,7 @@ run. Never commit it, and never push it with `eval:langtracer-push`.
4. **Add memory** where the Agent had it. See below.
5. **Clear `containsUserData`** once the leak check passes. See below.
6. **Save the seed rows** with `update_test_case` (`seed`) right after
that, once LangTracer stores seed rows. Until then, the rows stay in the
scratch file and only the local smoke run is possible. See
that. LangTracer refuses rows while the case is marked `containsUserData`. See
[building.md](building.md#3-seed-tables-and-rows).
7. **Calibrate and publish**: locally, then remotely. See
[calibrating.md](calibrating.md). Record model and Agent config lessons
@@ -5,18 +5,12 @@ LangTracer MCP tools, not as a file on disk:
```
create_test_case (drafts suite) → scrub_test_case → update_test_case
(scenarios, agentRun, tags) → review → update_test_case (rows, once stored) →
(scenarios, agentRun, tags) → leak check → update_test_case (rows) →
calibrate → move to "Agents — runtime"
```
The order matters. Each step uses the output of the one before it.
**Pending LangTracer support.** Today `create_test_case` and `update_test_case` do not
carry `agentRun`, `seed.dataTables[].rows`, `expectations`, `userTurns`, or
`sessions`. Until they do, write those parts in the local smoke-run file
([calibrating.md](calibrating.md#run-locally-smoke-test)), and copy them into
the LangTracer case once LangTracer stores them.
## 1. Snapshot → `seed.agents`
Map the snapshot to one seed entry: `{ id, config, skills }`.
@@ -62,9 +56,11 @@ Record the case id. Every later step edits this case.
Run `scrub_test_case` with the case id. It keeps the id and stores the
originals in `metadata.scrubbedFrom`.
**Pending LangTracer support.** `scrub_test_case` does not rewrite
`seed.agents` yet. Rewrite the Agent by hand with the rules below, and write it
back with `update_test_case` (`seed`).
`scrub_test_case` rewrites `seed.agents`: one rename map applied to every
field, synthetic ids and contacts, private MCP URLs and web search domains
replaced, prose rewritten in English, and seed rows dropped. It then runs a
structure check and a leak check. Read its issues, and check the result
against the rules below. Fix what it missed with `update_test_case` (`seed`).
The rules:
@@ -139,15 +135,11 @@ LangTracer refuses `rows` on a case marked `containsUserData`, and a case
with seeded Agents keeps that mark until you clear it after the leak check.
Until then, keep the rows in the local scratch file
([calibrating.md](calibrating.md#get-the-case-onto-disk)). A local smoke run
from the scratch file works at any time, before review and before LangTracer stores rows.
from the scratch file works at any time.
**Pending LangTracer support** for `rows`: LangTracer stores seed tables as
schema only today, so `update_test_case` cannot save rows yet. Once it stores
rows and you have
cleared `containsUserData`, write the rows with `update_test_case` (`seed`)
before any run that reads the case from LangTracer: a local run with
`--source langtracer`, and remote calibration. Until LangTracer stores rows, the rows
live only in the scratch file, and only the local smoke run is possible.
Once you have cleared `containsUserData`, write the rows with
`update_test_case` (`seed`) before any run that reads the case from
LangTracer: a local run with `--source langtracer`, and every remote run.
## 3b. Workflow tools
@@ -239,8 +231,7 @@ Things the run doesn't have:
just wrote. Grade the write call instead.
Write the scenarios with `update_test_case` (`scenarios`, the full set,
matched by name). **Pending LangTracer support** for `expectations`,
`userTurns`, and `sessions`.
matched by name).
## 5. `agentRun`
@@ -260,8 +251,7 @@ matched by name). **Pending LangTracer support** for `expectations`,
`credential` or end in `Model`, and `model` and `modelsByDifficulty`, are
refused. The resolver owns them.
Write it with `update_test_case`. **Pending LangTracer support** for
`agentRun` (`agent`, `configOverrides`).
Write it with `update_test_case`.
Direct mode rejects assistant-only fields: `conversation`,
`processExpectations`, `outcomeExpectations`, `messageBudget`, `promptVersion`,
@@ -2,10 +2,9 @@
The case lives in LangTracer ([building.md](building.md)). Run it locally
first to catch case errors. The local smoke run from the scratch file works
at any time, before review and before LangTracer stores seed rows. A run that
reads the case from LangTracer (`--source langtracer`, and every remote run)
needs the seed `rows` saved on the case, which needs LangTracer to store rows
and `containsUserData` to be cleared
at any time, before the leak check. A run that reads the case from LangTracer
(`--source langtracer`, and every remote run) needs the seed `rows` saved on
the case, which needs `containsUserData` to be cleared
([building.md](building.md#3-seed-tables-and-rows)). Rows left only in the
scratch file are not seen by those runs. Calibrate remotely, where every
provider and episodic memory work. Publish by adding the case to the suite. There is no push
@@ -55,9 +54,7 @@ with `--filter <case-name>` and no `--source`. This file is scratch:
- Copy every fix back to LangTracer with `update_test_case`. LangTracer is the
source of truth.
**Pending LangTracer support.** The export does not carry `agentRun`, seed `rows`,
`expectations`, `userTurns`, or `sessions` yet. Until it does, add them to the
scratch file by hand. The first run is the strict loader's check of the case.
The first run is the strict loader's check of the case.
Check:
@@ -71,27 +68,18 @@ Check:
## Run remotely (calibration)
Remote runs use the CI keys: Anthropic, OpenAI (also for embeddings), and
OpenRouter (pending on CI).
OpenRouter.
**Pending LangTracer support.** Until LangTracer carries `agentRun` and the multi-turn
fields, the exported case is not a direct case. If it carries `userTurns`,
`sessions` or `expectations` without `agentRun`, the strict loader refuses it.
Otherwise it runs as an assistant case, which is wrong. Do not calibrate
remotely before then.
1. Build an n8n image from the top of the stack:
1. Pick the image. The nightly image runs direct cases. To test a branch,
build an image from the top of the stack:
`gh workflow run docker-build-push.yml --ref <stack-head-branch> -f push_enabled=true`.
Rebuild after each change to the stack.
2. Start the run with `start_evaluation`. Set `configuration.image` to that
GHCR image. Select the case by id (`selection.kind: "cases"`). It does not
2. Start the run with `start_evaluation`. Set `configuration.image` to the
GHCR image when you test a branch. Select the case by id (`selection.kind: "cases"`). It does not
need to be in the suite yet. It must already hold its seed `rows`.
3. Run each new case 3–5 times. A runtime case uses real models and a
simulated user, so one green proves little.
Pin the image for every run of this suite until direct Agent runs, multi-turn
and memory support are in the nightly image. A direct case on an image
without direct Agent runs fails.
## Read the result
Read three things for each scenario, not just the verdict:
@@ -133,6 +121,8 @@ opening message, the run status and the `finishReason`.
| Every iteration fails in seconds with `400 ... "too_big", "maximum":2000 ... "path":["scenarioHints"]` and the case is "not verified" | The scenario's `dataSetup` is over 2000 characters. n8n receives it as `scenarioHints` and refuses longer ones | Shorten `dataSetup` below 2000 characters: write repeated fields once (a shared description template, short codes for status and priority) |
| The episodic-off control passes the recall expectations too | A tool result gives away what memory should supply (a deployment list that names the repo and branch) | Make the tool results carry nothing the user said in an earlier session, for example several projects and no git metadata |
| A "must not change X" expectation fails because the user asked to change X | The expectation contradicts the conversation | Fix the opening or the expectation, whichever is wrong |
| A pass reason says the evidence was "truncated" or "not visible" but "consistent" | The judge sees only the first 2,000 characters of each tool output and intercepted request. On images built before the harness shows full tool inputs, tool inputs are cut there too, so the end of a long email is not graded | Treat the pass as unproven. Check the expectation against the full tool input in `verifierInput.transcript` yourself. Ask the Agent to quote fewer rows, or grade a part the judge can see |
| A safety expectation fails on all iterations, but the Agent quoted the real values, compared them with the ranges and sent the final call to a professional | The expectation is stricter than the Agent's instructions ("give no verdict" against "do not diagnose, explain what a result means") | Write the expectation from the instruction's own words, then run again. A careless reply must still fail it: for example, a verdict with no values and no referral |
## Fix or keep each red