n8n/packages/@n8n
Arvin Ansari 390b697cd7
feat(core): Grade the agent's context state in Instance AI evals (no-changelog)
Eval cases had two grading surfaces: `processExpectations`, judged on the build
conversation, and `outcomeExpectations`, judged on the built workflow. Neither
observes the memory subsystem, so a memory comparison could only be measured
end-to-end — a score delta was not attributable to retrieval rather than to a
luckier build.

Add a third kind, `memoryExpectations`, graded against context state the harness
already captured and discarded: run debug is stashed on every build, and
`parseSystemPromptForDisplay` / `parseUsageSummary` already parse it. No product
change is needed.

It gets its own judge call with its own rubric, whose only inputs are the final
compressed observation block, the raw message window the model received, and the
final system prompt. The conversation judge is handed the full transcript, which
would let it satisfy "the agent still knew X" from the turn where X was first
said — the confound this kind exists to remove. The raw window is not the
transcript: evicted messages are absent from it, which is why it can be trusted
as a record of what the agent still had.

A fact counts as retained if it appears in any of the three tiers. The Observer
only compresses past a token threshold, so on a short thread the observation
block is legitimately empty while every fact sits in the raw window; grading on
the block alone would fail every memory expectation for a structural reason on
exactly the short threads the suite is mostly made of.

Verdicts carry `kind: "memory"` on every path — judged, ungraded and
judge-error — since the report badge and `eval-results.json` filter on it.

`stashBuildExpectations` previously early-returned once any expectation was
ungraded. With three kinds a case can legitimately have ungraded memory
expectations and gradable outcome ones at once, so the verdict sets are now
merged; the early return would have dropped the latter and shrunk the pass-rate
denominator. `stashRunDebug` now runs just before it at all three call sites, so
the memory judge can read the capture.
2026-08-20 11:51:54 +02:00
..
agents fix(core): Validate chat models and recover from execution failures (#36550) 2026-08-19 16:46:31 +00:00
ai-node-sdk 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
ai-utilities fix(MCP Server Trigger Node): Emit tool schemas as JSON Schema 2020-12 (#36490) 2026-08-19 07:52:36 +00:00
ai-workflow-builder.ee 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
api-types feat(API): Add Git connections public API (no-changelog) (#36272) 2026-08-20 07:28:36 +00:00
backend-common feat(core): Add policy infrastructure module scaffold (no-changelog) (#36613) 2026-08-19 14:43:12 +00:00
backend-network chore: Bundle/2.x (#36558) 2026-08-19 07:57:44 +03:00
backend-test-utils 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
benchmark 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
blob-storage 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
chat-hub 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
cli feat: Add git-connections commands to the n8n CLI (no-changelog) (#36287) 2026-08-20 08:09:57 +00:00
client-oauth2 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
codemirror-lang 🚀 Release 2.31.0 (#34117) 2026-07-14 07:18:45 +00:00
codemirror-lang-html 🚀 Release 2.31.0 (#34117) 2026-07-14 07:18:45 +00:00
codemirror-lang-sql 🚀 Release 2.31.0 (#34117) 2026-07-14 07:18:45 +00:00
computer-use 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
config feat(core): Add generic feature flag overrides via environment variable (#36643) 2026-08-20 06:14:39 +00:00
constants feat(core): Add Git connections module and service (no-changelog) (#36270) 2026-08-19 13:46:51 +00:00
crdt 🚀 Release 2.32.0 (#34600) 2026-07-21 07:14:52 +00:00
create-node 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
db fix(core): Add project:manageUsers scope to gate project membership changes (#36243) 2026-08-19 18:43:35 +00:00
decorators feat(core): Add policy check contract, decorator and registry (#36532) 2026-08-19 08:25:20 +00:00
di 🚀 Release 2.32.0 (#34600) 2026-07-21 07:14:52 +00:00
engine feat(engine): Map iterations across loop edges (no-changelog) (#36524) 2026-08-19 12:32:15 +00:00
errors 🚀 Release 2.32.0 (#34600) 2026-07-21 07:14:52 +00:00
eslint-config feat(editor): Promote v2 Pagination to core, removed legacy CSS (#36522) 2026-08-18 17:02:25 +00:00
eslint-plugin-community-nodes 🚀 Release 2.35.0 (#36006) 2026-08-11 07:16:06 +00:00
expression-runtime chore: Bundle/2.x (#36558) 2026-08-19 07:57:44 +03:00
extension-sdk 🚀 Release 2.34.0 (#35487) 2026-08-04 07:14:55 +00:00
imap 🚀 Release 2.32.0 (#34600) 2026-07-21 07:14:52 +00:00
instance-ai feat(core): Grade the agent's context state in Instance AI evals (no-changelog) 2026-08-20 11:51:54 +02:00
json-schema-to-zod 🚀 Release 2.32.0 (#34600) 2026-07-21 07:14:52 +00:00
local-gateway chore: More Typescript 7 migrations (#34228) 2026-07-16 07:44:11 +00:00
mcp-apps 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
mcp-browser fix(core): Fail fast on browser actions against unactionable targets (no-changelog) (#36608) 2026-08-19 14:59:45 +00:00
mcp-browser-extension feat: Restyle and simplify Browser Use connection view (no-changelog) (#36611) 2026-08-20 07:02:55 +00:00
node-cli fix: Return list-search pagination token as a string in github-issues template (#36657) 2026-08-20 06:56:45 +00:00
node-engine-compatibility refactor(engine): Extract the engine runtime wiring into a factory (no-changelog) (#36504) 2026-08-19 08:39:38 +00:00
nodes-langchain fix(core): Surface agent failures with a useful message and original cause (#36603) 2026-08-20 08:11:56 +00:00
permissions feat(API): Add Git connections public API (no-changelog) (#36272) 2026-08-20 07:28:36 +00:00
scan-community-package 🚀 Release 2.35.0 (#36006) 2026-08-11 07:16:06 +00:00
scheduler 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
stylelint-config chore: Migrate the rest of packages/@n8n to typescript 7 (#34332) 2026-07-17 10:45:58 +03:00
syslog-client 🚀 Release 2.34.0 (#35487) 2026-08-04 07:14:55 +00:00
task-runner 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
task-runner-python refactor: Assign task runner IDs from n8n (#35494) 2026-08-10 11:20:37 +00:00
telemetry 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
tournament chore: Bundle/2.x (#36558) 2026-08-19 07:57:44 +03:00
typeorm 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
typescript-config 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
utils Merge tag 'n8n@2.36.0' 2026-08-18 09:41:33 +00:00
vitest-config 🚀 Release 2.36.0 (#36483) 2026-08-18 08:24:56 +00:00
workflow-sdk fix(core): Correct chainLlm structured-output shape in eval verifier guidance (no-changelog) (#36283) 2026-08-19 11:07:12 +00:00