Repository navigation
Description
Overview
Re-theming the decision eval into NodeSpace's working domain (#3513) moved four scenarios from passing to failing, each 3 of 3 on the old fixture and 0 of 3 on the new one, on the same daemon build. The re-theme changed vocabulary only, so these are what the agent does with the product's own nouns. This issue collects them so they can be fixed and measured together.
Problem Statement
All numbers are from gemma-4-e4b-q4km, database purged and daemon restarted before each rep, nothing else loaded.
1. A request for a new kind of record leads with Graph Editing, not Schema Creation (skill-type-request-direct, skill-type-request-indirect)
| Request as Stage 1 routed it | Schema Creation | Graph Editing |
|---|---|---|
| "set up Sponsors with a tier and renewal date record type" (old) | 0.905 | 0.850 |
| "set up Postmortems with a severity and review date" | 0.856 | 0.864 |
| "keep track of incident postmortems with severity and review date" | 0.868 | 0.889 |
The turn still called create_schema in all three reps, because Schema Creation was second and its tools were offered. The lead matters for what is declared on the write tools, which comes from the top candidates only. The second request even opens with "keep track of", which Schema Creation's description names.
2. A lookup about a record's date nearly loses Research & Search (outcome-record-field-is-answered, prior turn of both follow-ups)
"search stored knowledge for Kestrel Sync sign off date" scored Node Deletion 0.801, Research & Search 0.800, Conflict Journal 0.799. The old equivalent ("Northwind Trading signing date") had Research & Search at 0.829 with the next skill at 0.796. The scenario still passes, on a 0.001 margin.
3. A follow-up that is not a question loses its answer (outcome-follow-up-statement-keeps-its-answer)
After "When did we sign off Kestrel Sync?" and "Which spec was that about?", the message "Say that again more simply." got "I'm not sure what you mean by 'Say that again more simply.' Could you please clarify which part of our conversation or previous answer I should rephrase?" in 3 of 3. This is the reply the scenario exists to catch. Routing was clarify_suppressed on both fixtures; on the old one the seeded type led the candidates (0.813), on the new one it did not place (0.723).
4. A question-shaped request about onboarding is routed as a write (found re-measuring live_stage1_golden_prompts.rs)
"How do we onboard a new reviewer?" came back as route_query("onboard a new reviewer") in 3 of 3, alone and after unrelated turns. "How do we onboard a new sponsor?" is routed as a lookup. The live test keeps the sponsor wording so it stays green; the reviewer wording is the failing case to fix.
5. One scenario asserts a decision a correct turn no longer makes (schema-shared-name-signed)
"When did we sign off Kestrel?" is answered correctly (the reply gives 2025-03-14 and links the record) through search_semantic, which names no type, so the schema assertion fails 3 of 3. On the old fixture the model used search_nodes with the type. This may be the assertion to change, not the agent: it is the same shape as the fix once made to schema-field-disambiguates.
Proposed Solution
Treat 1, 2 and 4 as description and routing-wording work, measured before and after on the re-themed fixture with a full 3-rep run, and with the cost-side controls in live_skill_retrieval_stability.rs. Do not reword a description to win one sentence. Decide 3 on its trace: whether the follow-up is lost in routing or in the reply. Decide 5 by changing what the scenario asserts or leaving it as a recorded miss.
Acceptance Criteria
- Each of the five findings is either fixed, with its before and after 3-rep rates, or recorded as accepted with the reason
- The lead on a request for a new kind of record is measured and recorded, without Schema Creation taking the lead on the single-record requests in
updates_to_one_record_do_not_lead_with_schema_creationandadds_to_an_existing_list_keep_a_skill_that_can_create. Amended from "skill-type-request-directandskill-type-request-indirectlead with Schema Creation": the request shape leads with Schema Creation where its nouns are no other skill's (by 0.012 to 0.036) and with Graph Editing or Play Authoring where they are ("incident postmortems with severity": 0.889 to 0.868). No wording of the descriptions, Graph Editing's exclusion or the Stage 1 query changed that without a cost on the single-record controls, so both scenarios stay at 0 of 3 as a recorded miss;create_schemais still called in every rep. Asserted ina_new_kind_of_record_with_named_details_leads_or_places_schema_creation - "How do we onboard a new reviewer?" is added to the lookup golden tests and passes
- No scenario that passes 3 of 3 on the re-themed fixture today regresses
-
guidance_is_not_contaminated_by_eval_promptspasses
Technical Specifications
- Fixture:
scripts/eval/fixtures/decisions.ts - Skill descriptions:
packages/agent/src/skill_pipeline.rs - Routing tools:
packages/agent/src/local_agent/routing.rs - Live tests:
packages/agent/tests/it/live_skill_retrieval_stability.rs,packages/agent/tests/it/live_stage1_golden_prompts.rs - Eval method:
../nodespace-docs/development/agent-eval.md
Related Issues
- Re-theme the decision eval's scenarios and seeded workspace into NodeSpace's developer-workflow domain #3513 (the re-theme that surfaced these)
- Chat 'what schemas do we have' still fails, plus two skill-retrieval misses on plain requests (type listing, 'start tracking', single-instance add) #3268 (the earlier single-sentence tuning this must not repeat)
Activity
malibio commentedon Oct 4, 2026
Corrections after review of #3561. The fixture's seeded record is now "Kestrel Gateway" (it was "Kestrel Sync", which shares a word with Conflict Journal's description), and the absent record is "Lantern Autosave".
A sixth finding, from main and not from the fixture. Two
#[ignore]Stage-1 golden tests,stage1_routes_a_knowledge_question_as_a_lookupandstage1_routes_a_question_as_a_lookup_after_unrelated_turns, passed on the #3561 branch before main was merged into it and fail after. The merge brought in the Play Authoring skill and its tools (#3551). Both failing messages are routed as a query, 3 of 3:route_query("onboard a new sponsor"). This prompt is unchanged from main.route_query("slipped spec move into cycle decision process").That makes item 4 ("How do we onboard a new reviewer?") one instance of this, not a separate case. I have not bisected it to #3551; it is the change in the merge that touches routing.
malibio commentedon Oct 4, 2026
This overlaps #3533 (developer-domain adds and a bare 'start tracking' that end with nothing created): the same skill descriptions in
skill_pipeline.rsand the same live guards inlive_skill_retrieval_stability.rs. Work the two in one PR so a description is reworded once and measured once.malibio commentedon Oct 5, 2026
Two things to fold in from the pinned-chat work (PR #3575): (1) the routing and decisions evals were not re-run for that PR. Chats without pins take an unchanged path under unit test, but this issue's re-run on current main is the first full confirmation. (2) No eval scenario covers a chat with pins. Worth adding one for a play's Edit chat: open it from a play, pick an option such as 'Change a condition', and check that the turn is given the Play Authoring skill and is held to the play type.
malibio commentedon Oct 5, 2026
Frontend: 318 test files passed (5770 tests)
malibio commentedon Oct 5, 2026
Outcome (PR #3621)
gemma-4-e4b-q4km, isolated daemon, database purged between reps, before and after built from the same main.skill-type-request-direct0/3,-indirect0/3schema-shared-name-signedasserts a decision a correct turn does not makeFinding 1. About twenty variants were measured across Schema Creation's description, Graph Editing's description and exclusion, and Stage 1's query wording. The shape leads with Schema Creation for neutral nouns (Retrospectives, vendor contracts, customer interviews: +0.012 to +0.036) and not for nouns that are another skill's subject (incident and severity read as Graph Editing, 0.889 to 0.868; runbooks as Play Authoring). The one variant that won "set up Postmortems…" lifted Schema Creation on every kind of request and took the lead on "add Lantern Autosave to specs we keep" and "move the offline sync spec's review to next week". The turn calls
create_schemawith both fields in every rep. The second acceptance criterion is amended to this outcome.Finding 4. Five wordings of the Stage 1 prompt and
route_lookup's description each fixed the questions and broke another control (questions about the agent, the compound split, or a find request). The loop now reads aroute_queryfor a question about the workspace as a lookup of the message. On unchanged main, four such questions failed, the sponsor one included.Regression check. One round of the whole fixture: 20 of 25 before, 21 of 25 after, no pass turned into a fail.
outcome-question-searches-firstmoved to a pass. Still failing on both builds and outside this issue:entity-no-match-is-a-createanddeclarative-fact-report-resolved. The scenarios outside the table above were run once, not three times.Also in the PR:
stage1_type_line_routes_requests_that_name_a_known_typefailed on main on a byte-for-byte query comparison (the type line makes Stage 1 drop articles); it now compares content words.