Skip to content

Fix the skill routing and follow-up misses the re-themed decision eval surfaced #3560

Closed

Description

@malibio

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_creation and adds_to_an_existing_list_keep_a_skill_that_can_create. Amended from "skill-type-request-direct and skill-type-request-indirect lead 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_schema is still called in every rep. Asserted in a_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_prompts passes

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

Activity

  1. malibio commented on Oct 4, 2026

    @malibio
    CollaboratorAuthor

    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".

    • Items 1, 3 and 5 persist under the neutral name, so the record's name was not their cause. Item 1's two prompts never named the record.
    • Item 2 is smaller than first reported. "search stored knowledge for Kestrel Gateway sign off date" scores Research & Search 0.810, Node Deletion 0.801, Schema Creation 0.774. Conflict Journal no longer places; that part was the name. The margin over Node Deletion is still 0.009, against 0.033 on the old fixture.
    • Item 3 quotes are from the earlier name; the reply on the current one is the same ("I'm not sure what you mean by 'Say that again more simply'"), 3 of 3.

    A sixth finding, from main and not from the fixture. Two #[ignore] Stage-1 golden tests, stage1_routes_a_knowledge_question_as_a_lookup and stage1_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:

    • "How do we onboard a new sponsor?" → route_query("onboard a new sponsor"). This prompt is unchanged from main.
    • "How do we decide which cycle a slipped spec moves into?" → 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.

  2. malibio commented on Oct 4, 2026

    @malibio
    CollaboratorAuthor

    This overlaps #3533 (developer-domain adds and a bare 'start tracking' that end with nothing created): the same skill descriptions in skill_pipeline.rs and the same live guards in live_skill_retrieval_stability.rs. Work the two in one PR so a description is reworded once and measured once.

  3. malibio commented on Oct 5, 2026

    @malibio
    CollaboratorAuthor

    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.

  4. malibio commented on Oct 5, 2026

    @malibio
    CollaboratorAuthor

    Frontend: 318 test files passed (5770 tests)

  5. self-assigned this
    on Oct 5, 2026
  6. malibio commented on Oct 5, 2026

    @malibio
    CollaboratorAuthor

    Outcome (PR #3621)

    gemma-4-e4b-q4km, isolated daemon, database purged between reps, before and after built from the same main.

    # Finding Outcome Before After
    1 A new kind of record leads with Graph Editing Recorded, not fixed skill-type-request-direct 0/3, -indirect 0/3 0/3, 0/3
    2 A record-field lookup nearly loses Research & Search Fixed in the lookup retrieval query "Kestrel Sync sign off date" -0.001, "Kestrel Gateway sign off date" +0.009; scenario 3/3 +0.024, +0.032; scenario 3/3
    3 A follow-up that is not a question loses its answer Fixed: a suppressed clarification retrieves in context 0/3 3/3
    4 "How do we onboard a new reviewer?" routed as a write Fixed by a rule in the loop, not by wording live Stage 1 file 10/13 13/13
    5 schema-shared-name-signed asserts a decision a correct turn does not make Assertion changed to the reply 0/3 under the old assertion 3/3

    Finding 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_schema with 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 a route_query for 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-first moved to a pass. Still failing on both builds and outside this issue: entity-no-match-is-a-create and declarative-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_type failed on main on a byte-for-byte query comparison (the type line makes Stage 1 drop articles); it now compares content words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions