Skip to content

Three eval scenarios fail on main, one of them a regression of a closed fix; the decision fixture's setup depends on earlier chats #3500

Closed

Description

@malibio

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-company

2. 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-projects

3. 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 --only run and a full run can disagree.

Acceptance criteria

  • The commit that regressed schema-on-menu-company is identified, and the scenario passes on main in a full fixture run, 3 of 3.
  • ambiguous-client-contacts is 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-resolved has 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

  1. added
    bug
    on Oct 2, 2026
  2. self-assigned this
    on Oct 2, 2026
  3. malibio commented on Oct 2, 2026

    @malibio
    CollaboratorAuthor

    Baseline — Frontend: 309 test files passed, 5606 tests passed

  4. malibio commented on Oct 3, 2026

    @malibio
    CollaboratorAuthor

    Results — before and after (PR #3504)

    All runs: gemma-4-e4b-q4km, n_ctx 32768, isolated NODESPACE_HOME, no Metal out-of-memory in any daemon log. "After" runs purge the database and restart the daemon between reps.

    Build / harness Reps Result
    decisions — before main 3a4fe4e, its own fixture (setup turns) 1 19/23
    decisions — after this branch (cf14ff3 harness behaviour, final build) 3 pass^3 22/24, 22/24 every rep, 0 flipped
    routing — before main 3a4fe4e 1 17/19
    routing — after this branch 3 pass^3 18/19, 0 flipped

    The issue's scenarios

    Scenario Before After
    schema-on-menu-company fail (1/3 in a 3-rep --only run; the one pass wrote a garbage name into the existing record) 3/3
    ambiguous-client-contacts fail 3/3
    declarative-fact-report-resolved fail (create_node, refused by the duplicate guard) 3/3 — see the decision below

    Regressing commit — none. Bisected with prompt dumps across d9f89741, 1e6e4061 (#3496), fccf5d97 (#3493) and main. The malformed first call (create_node with 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, so ambiguous-manage-projects is 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

    • Setup turns are gone (acceptance criterion 4). The fixture seeds its two types and Northwind, and sets them back before every chat. Without that, op-read-then-write moved Northwind's date to April and outcome-record-field-is-answered, later in the same rep, answered April and was scored wrong.
    • Exclusions name their cause (criterion 5): empty generation, tool never offered, or group setup failed. A void bisect step run with the wrong harness showed the old label exactly: two blocked scenarios reported as "degenerate empty generation".
    • Skill-index wait: it counted stale embedding rows, so with no setup turns to fill the time the held-turn scenarios ran ~30s before their linked skills were embedded (0/3 → 3/3 once fixed).
    • Agent, two guards: a create_node naming 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 refused search_nodes filter followed by a search_semantic that found the record had replaced the correct answer with the first call's error).
    • Seed: Northwind's name field is set to its title. The type declares name, and an empty one made a name-filtered search find nothing. This affects outcome-record-field-is-answered's comparability with any run before it.

    Still failing, not caused here

    • skill-instance-request (0/3 after; passes on main'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 calls create_node and 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 successful search_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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

backendbugnlptesting

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions