Repository navigation
Description
Problem
Three eval scenarios fail on main, measured on Gemma 4 E4B (gemma-4-e4b-q4km). None has an open issue. One of them is covered by a fix that was closed as done (#2855).
They are grouped because they were found together, share one fixture weakness, and the first step for each is the same: find what changed.
1. schema-on-menu-company (eval:decisions) — regressed
Prompt: "Add Northwind Trading to the companies we sell to." The record already exists. #2855 closed this with a deterministic guard: a create_node matching a resolved entity is refused and the user is asked.
Build of main |
Condition | Result |
|---|---|---|
d9f89741 |
scenario alone | pass (1 of 1) |
d9f89741 |
after another chat created the types | pass (1 of 1) |
9dbc8040 |
after another chat created the types | fail, 0 of 3 |
On 9dbc8040 the model's first call never reaches the guard. Its arguments are malformed:
create_node {"content":"Northwind Trading","field_values":{"name":"Northwind Trading`, signed_date:"}}
→ invalid arguments for tool create_node: missing field `node_type`
and the turn ends on "I'm sorry, I encountered an error while trying to add Northwind Trading. It seems like the node type was missing…". The commits between the two builds are #3493, #3494, #3496 and #3497.
The failing condition is the one a full fixture run produces: the chat's two setup turns find the types already exist and reply "couldn't complete the schema creation". After #3480 the same condition passes 1 of 3.
Reproduce (about 6 minutes per rep):
bun run eval:decisions e4b out.json --runs 3 --only op-list-by-type,schema-on-menu-company2. ambiguous-client-contacts (eval:routing)
Prompt: "organize my design docs". Expected: a clarifying question (schema or collection). On 9dbc8040, 0 of 3: Stage 1 routes it as a query, Organization leads, and Stage 2 calls search_semantic, finds nothing, and asks in prose ("Could you provide more context, like a collection name or the topic of the documents?"). The scorer wants the clarification without the search.
It passed in some full runs earlier the same day on builds of older main, with the same Stage 1 decision and the same candidates, so it is either newly regressed or was passing on a coin flip. ambiguous-manage-projects passes 3 of 3 in the same run.
bun run eval:routing e4b out.json --runs 3 --only ambiguous-client-contacts,ambiguous-manage-projects3. declarative-fact-report-resolved (eval:decisions)
Prompt: "Northwind Trading has been a customer of ours for a long time." Expected: no tool call. It fails in every run measured: create_relationship on d9f89741, create_node on builds since. This is the control for declarative-state-change-resolved, which passes, so the agent is writing on declarative mood rather than on intent. #2825 named the problem and left no issue for it.
The fixture weakness under all three
The decision fixture runs each scenario in its own chat as two setup turns plus the scenario, all against one database. From the second chat on, the setup turns meet types that already exist. Three things follow:
- The scenario's history then holds two failed setup turns, which is the condition in which scenario 1 fails.
- Sometimes the model replies "that type already exists" without calling
create_schema. The harness counts the setup as failed, blocks the group, and reports its scenarios as "excluded (degenerate empty generation)". They are not empty generations. A full run lost between zero and five scenarios this way. - A scenario's result depends on which chats ran before it, so a
--onlyrun and a full run can disagree.
Acceptance criteria
- The commit that regressed
schema-on-menu-companyis identified, and the scenario passes onmainin a full fixture run, 3 of 3. -
ambiguous-client-contactsis either fixed, or its expectation is changed with the reason recorded in the fixture (a search before the question may be acceptable; that is a decision, not a default). -
declarative-fact-report-resolvedhas a decision recorded: a fix, or a documented known failure in the fixture, as the ADR-056 scenarios have. - Setup turns no longer depend on what earlier chats did: an existing type satisfies the setup, or each chat's setup is isolated.
- A setup the model declined is not reported as a degenerate empty generation.
- Results before and after are posted from full runs of both fixtures.
Activity
malibio commentedon Oct 2, 2026
Baseline — Frontend: 309 test files passed, 5606 tests passed
Keep an answer a second lookup grounded when the first lookup failed (#…
Seed Northwind's name field with its title (#3500)
Set the decision workspace back before every chat, not once per rep (#…
malibio commentedon Oct 3, 2026
Results — before and after (PR #3504)
All runs:
gemma-4-e4b-q4km, n_ctx 32768, isolatedNODESPACE_HOME, no Metal out-of-memory in any daemon log. "After" runs purge the database and restart the daemon between reps.main3a4fe4e, its own fixture (setup turns)main3a4fe4eThe issue's scenarios
schema-on-menu-company--onlyrun; the one pass wrote a garbagenameinto the existing record)ambiguous-client-contactsdeclarative-fact-report-resolvedcreate_node, refused by the duplicate guard)Regressing commit — none. Bisected with prompt dumps across
d9f89741,1e6e4061(#3496),fccf5d97(#3493) andmain. The malformed first call (create_nodewith the title,"name": "Northwind Trading\, signed_date:"and nonode_type) tracked the workspace, not the build: every broken call was made with a second venue type in the workspace (event_placebesideevent_venue, named by two chats' setup turns), and the well-formed one without it. Stage-2 prompt diffs between a passing and a failing run differ only in those workspace-derived lines. Confirmed directly:main`'s own build on the seeded fixture passes 3/3 with a well-formed call. #3497 is cleared too (the #3493 build fails the same way).ambiguous-client-contacts— expectation decision. A search before the question is accepted, recorded in the fixture: it routes as a query, Organization leads, Stage 2 searches, finds nothing, and asks. The failure was the scorer, not the turn — it knew only "could you clarify", so "Could you provide more context…?" read as no question. A clarification now counts when Stage 1 asks or the reply puts a question to the user in the sentence ending in?, and never after a write. Re-scoring every recorded routing turn with it changes no verdict but this one. Note: the no-write rule now applies to every clarify scenario, soambiguous-manage-projectsis scored more strictly; it passed 3/3 under it.declarative-fact-report-resolved— decision: kept as scored, no fix. As the first turn of its own chat it passes 3/3, but in two of three the model's reply claimed a change it had not made and the agent replaced it with a request to confirm. The user is never written to; the model still does not read a report as a report. Recorded in the fixture's comment.What else changed the numbers
op-read-then-writemoved Northwind's date to April andoutcome-record-field-is-answered, later in the same rep, answered April and was scored wrong.create_nodenaming a mentioned record and no type is refused as a duplicate and the user asked; a failed graph lookup is recovered by any later successful lookup (a refusedsearch_nodesfilter followed by asearch_semanticthat found the record had replaced the correct answer with the first call's error).namefield is set to its title. The type declaresname, and an empty one made a name-filtered search find nothing. This affectsoutcome-record-field-is-answered's comparability with any run before it.Still failing, not caused here
skill-instance-request(0/3 after; passes onmain's fixture). Skill retrieval for "Add Contoso Ltd to the companies we sell to." is a near-tie — Bulk Import 0.742, Organization 0.741, Node Creation 0.737 — and the old setup turns tipped it to Organization. The turn still callscreate_nodeand creates the record correctly. Left failing rather than loosening its assertion: it is a retrieval fragility the setup turns were hiding.outcome-list-types(0/3; failed in the before run too). The reply is the "confirm what you'd like me to do" stand-in after a successfulsearch_nodes.indirect-schema-freelance(routing; 0/3 after, failed before too). "start tracking our planning cycles" retrieves Graph Editing / Relationship Management / Node Creation, not Schema Creation.Seed the decision fixture's types per rep instead of by setup turns, …
Refuse a create that names an existing record but no type as a duplic…
Score a clarify scenario on whether the turn asked without writing, n…
Resolve the rebase onto the record-fields change in the workspace seed (
Wait for a skill's vector, not its stale embedding row, and record th…
Keep an answer a second lookup grounded when the first lookup failed (#…
Seed Northwind's name field with its title (#3500)
Set the decision workspace back before every chat, not once per rep (#…