Skip to content

Re-theme the decision eval's scenarios and seeded workspace into NodeSpace's developer-workflow domain #3513

Closed

Description

@malibio

Overview

The decision eval (bun run eval:decisions, scripts/eval/fixtures/decisions.ts) is still scored in a small-business domain: companies we sell to, event venues, sponsorship deals, a blender warranty claim. #1977 re-themed the agent matrix into NodeSpace's developer-workflow domain and #3189 did the same for the routing fixture. The decision fixture was added later and was never re-themed. This issue does the same re-theme for it.

Problem Statement

The fixture seeds a workspace with two custom types, company_sold_to and event_venue, and one record, Northwind Trading. Its prompts include:

  • "Add Contoso Ltd to the companies we sell to."
  • "Which companies did we sign this year?"
  • "Northwind Trading has moved their booking to April."
  • "Northwind can seat 200 people now."
  • "Sponsors aren't something we can record yet — set that up, with a tier and a renewal date."
  • "How do we decide which venue gets a deposit refund?"
  • "File a warranty claim for the Aurora blender, its motor failed, filed today."

The decision eval is what skill descriptions, schema selection and operation selection are tuned against. A description reworded to win "add Contoso Ltd to the companies we sell to" is tuned on business nouns, not on what the product is for. #3268 hit this directly: one of its three failures (skill-instance-request) is a decision-fixture scenario, and the first wording that fixed it named "company" and "person". Whether "add Contoso Ltd to the companies we sell to" leads with Node Creation says little about whether "add the offline-sync spec to the Q4 plan" does.

A few scenarios are already in the developer domain (API key rotation, the retry policy for failed uploads, the scheduler split, the billing rollout plan) and can stay as they are.

Proposed Solution

Follow the decision recorded in ../nodespace-docs/development/agent-eval.md ("Scenario domain"): re-theme in place, not a second fixture. Replace the seeded workspace and every business-domain prompt with NodeSpace's working domain (specs and their sign-off state, architecture decisions, planning cycles, tasks tied to the feature or decision that constrains them), consistent with the vocabulary the agent matrix and routing fixture already use, and change nothing else.

Constraints the re-theme must keep:

  • Every scenario id stays the same, so a baseline recorded before the re-theme still joins against a run after it.
  • Every scenario's expected shape and flags stay the same (adr056, ambiguous, instanceVsType, loadBearing, entityResolution, declarative, knowledgeQuestion, linkedSkills, and priorTurns). Only vocabulary and the regexes that match it change; what each scenario measures does not.
  • The seeded workspace keeps its structure. Two custom types and one named record, seeded through seedWorkspace, not through setup turns. The properties the scenarios rely on must survive: both types carry a date, only one carries a numeric field (so a message about that number can only mean one type), one type has no name field (its record's name is its title), and the type ids keep an underscore (the listing scenario depends on a custom id the model may escape).
  • Winnability holds. Every later prompt may name only values the seeded types can hold (see "Winnability" in agent-eval.md).
  • Ambiguous scenarios stay ambiguous, and the instance-vs-type pairs stay a pair: a request for a new kind of thing, and a request for one more of an existing kind, in the same vocabulary.
  • The absent record stays absent. The scenario that names a record not in the seeded workspace must still name one that is not seeded.
  • The linked-skill scenarios keep their shape: a seeded skill linked to a type, a request inside that type, and a request for a type outside the held set.

Architecture Impact

Extends the "Scenario domain" decision in ../nodespace-docs/development/agent-eval.md (re-theme in place, keep ids) from the agent matrix and routing fixture to the decision fixture. No ADR is reversed. Companion docs change: that section says "both fixtures"; update it to cover all three, and update the "Seeded state, not setup turns" paragraph if the seeded types' description changes (commit straight to nodespace-docs main).

Acceptance Criteria

  • seedWorkspace and seedLinkedSkills in scripts/eval/fixtures/decisions.ts seed developer-domain types, a developer-domain record and developer-domain skills, with the structural properties listed above unchanged
  • Every prompt and priorTurns entry is in NodeSpace's working domain, with no company, customer, venue, booking, sponsor, warranty, blender, Northwind, Contoso or Tailspin vocabulary left in the fixture
  • Every scenario id, expected shape and flag is unchanged; only the vocabulary-matching regexes and seeded constants (COMPANY_TYPE, VENUE_TYPE, SEEDED_COMPANY_TITLE, SEEDED_COMPANY_SIGNED_IN_REPLY) change
  • The scenario descriptions, the per-scenario comments and the file's header comment match the new prompts
  • scripts/eval/fixtures/decisions.test.ts is updated to the new vocabulary and passes
  • New prompts pass guidance_is_not_contaminated_by_eval_prompts (packages/agent/src/agent_guidance.rs)
  • Rust comments and live retrieval tests that quote the old prompts as their measured evidence (packages/agent/src/skill_pipeline.rs, packages/agent/tests/it/live_skill_retrieval_stability.rs, packages/agent/tests/it/live_stage1_golden_prompts.rs) are re-measured on the new prompts or reworded so they no longer cite a prompt the fixture does not hold
  • A 3-rep eval:decisions run of the re-themed fixture is compared against a 3-rep run of the old fixture on the same build, database purged and daemon restarted between reps, with no other model loaded, and the PR names every scenario whose pass rate moved
  • ../nodespace-docs/development/agent-eval.md "Scenario domain" says it covers all three fixtures
  • bun run test:scripts passes and code passes bun run quality:fix

Technical Specifications

Reference Files

  • Decision fixture: scripts/eval/fixtures/decisions.ts — scenarios, Expected, DecisionScenario flags, seedWorkspace, seedLinkedSkills
  • Decision fixture tests: scripts/eval/fixtures/decisions.test.ts
  • Precedents: scripts/eval/fixtures/routing.ts and scripts/eval/fixtures/agent-matrix.ts — the re-themed vocabulary to stay consistent with
  • Contamination guard: packages/agent/src/agent_guidance.rs (guidance_is_not_contaminated_by_eval_prompts) — parses prompt: literals out of every file in scripts/eval/fixtures/
  • Eval docs: ../nodespace-docs/development/agent-eval.md — setup (isolate with NODESPACE_HOME), "Scenario domain", "Winnability", "Seeded state, not setup turns", --runs and --between-runs

Implementation Details

  • Run the old-fixture baseline first, on the commit the work branches from, and keep its results file: the comparison needs it and it cannot be reproduced after the fixture changes.
  • Re-theme the seeded workspace first, then the prompts that refer to it, since which prompts are answerable depends on what the seeded types hold.
  • A scenario whose pass rate moves is a finding, not a failure of the re-theme. Record it in the PR. Do not reword skill descriptions in the same PR to recover it: that tuning needs its own before/after measurement on the new fixture.

Related Issues

Non-Goals

  • Changing what any scenario measures, adding scenarios, or changing the scoring functions
  • Retuning skill descriptions or agent guidance against the new prompts

Activity

  1. malibio commented on Oct 4, 2026

    @malibio
    CollaboratorAuthor

    A winnability note for the re-theme, measured on main at 7d0698f. op-read-then-write asks "Northwind Trading has moved their booking to April." Northwind is seeded as a company_sold_to, which has a name and a signed date and no booking field, and the message gives a month with no day. In 3 of 3 reps the model called update_node with signed_date: "2026-04-XX", validation refused it, and the reply correctly asked for the day. The scenario is scored on the operation chosen, so it passes; the write it asks for cannot succeed as worded. When this scenario is re-themed, the record it names should hold the field the message changes, and the message should carry a value that field can take.

  2. malibio commented on Oct 4, 2026

    @malibio
    CollaboratorAuthor

    Until this lands, treat eval:decisions as non-gating. Its seeded workspace and most of its scenarios are in a small-business domain, so: do not tune a seeded skill description or agent guidance against one of its sentences, do not spend a full three-rep run on it to accept a change, and read a failure in it as a prompt to check whether the same shape reproduces on a developer-domain request, not as a work item in itself. #3268 spent most of its time here: a description was tuned to one of this fixture's sentences and then reverted, and a full run was used where a targeted one was enough. Failures that do reproduce in the developer domain are tracked in #3533.

  3. malibio commented on Oct 4, 2026

    @malibio
    CollaboratorAuthor

    Affected by ADR-092 (https://github.com/NodeSpaceAI/nodespace-docs/blob/main/decisions/092-spec-plan-and-decision-are-core-types.md): once #3542 lands, spec, plan and decision are core types in every database, with checkbox criteria and an in_review task status. A developer-workflow fixture should use those core types and not seed custom types with the same names, which would collide. If this is worked before #3542, pick type names that will not clash and expect to revisit the fixture afterwards.

  4. malibio commented on Oct 4, 2026

    @malibio
    CollaboratorAuthor

    Baseline — Frontend: 315 test files passed, 5690 tests passed

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

    @malibio
    CollaboratorAuthor

    The eval comparison in PR #3561 is narrower than this issue's criterion, at the maintainer's request: one pass of 19 scenarios on each fixture, then extra reps only where the two differed or a prompt was reworded, in place of 3 full reps a side. Four regressions are established at 3 reps a side and are filed in #3560. The six scenarios with unchanged prompts were not run.

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