Repository navigation
Re-theme the decision eval into NodeSpace's developer-workflow domain - #3561
Conversation
Pragmatic Code Review: PR #3561
SummaryThe re-theme is done carefully and is a clear improvement. I compared the old and new fixtures programmatically: all 25 scenarios keep their What I am asking to change is about measurement validity, which is what this fixture is for. Two reworded prompts change what their scenarios measure, one seeded name breaks a rule the fixture states for itself, one comment quotes a pass rate the PR's own run contradicts, and the PR description overstates part of the comparison. None of these needs a full re-run. What I ran: Requirements Check
Code Review Findings🟡 Important1. The new prompt is "Follow up on the Aurora renderer bug report: its fix landed late, so change Kestrel Sync's signed-off date…". The old one mentioned the claim as an aside and named none. The new one names a specific bug report and gives a fact about it. It also makes the score depend on an earlier chat. The Aurora renderer report exists only if The 2 of 2 in the PR shows it can pass, not that this path is closed. Recommendation: keep the bug report in the lead position, since that is what got the turn held, but give the model nothing to record about it. For example: "That date is wrong. Following up on the Aurora renderer bug report showed it: change Kestrel Sync's signed-off date to the 2nd of May 2025." Then re-run this one scenario. If the current wording stays, say in the comment that a bug-report write fails the scenario and why that is accepted. Principle: a scenario must not score correct behaviour red (the "Winnability" section of 2. "Add X to our feature specs." names the seeded type; "the companies we sell to" did not The PR says the new frame "restates the type the way 'the companies we sell to' did". Mechanically it does not. The three scenarios that use the frame ( Recommendation, either of:
Principle: a re-theme changes vocabulary, not the path a scenario exercises (the issue's "what each scenario measures does not change"). 3. The seeded record's name carries a word from a built-in skill's description Conflict Journal's description ends "…duplicates, or sync collisions". The fixture states its own rule at There is evidence it matters. #3560 item 2 records Conflict Journal at 0.799 against Research & Search at 0.800 on the Kestrel Sync date lookup, where the old equivalent had a 0.033 margin. This PR records Conflict Journal leading the first Recommendation, either of:
Principle: control the confound the fixture already names. 4. A comment quotes a pass rate the PR's own run contradicts
Recommendation: replace it with what this run saw, or mark it as measured on the earlier wording and build. Principle: a comment that cites a measurement must be true of the code beside it. 5. The PR description goes further than its data in three places The description is open that criterion 8 is not met, which is the right thing to do. Three statements still need correcting:
Also, Principle: report what was measured, at the confidence it was measured. 🟢 Suggestions6. Historical measurements now read as if taken on the new prompts Genericising the quotes was the right call. A side effect is that "Measured: … 3 of 3", " 7. "Kestrel Sync has moved its end date to April": 8. Doc comment on "…and a request for one more of a kind that exists has scored several skills inside 0.005 of each other. Of those four Node Creation and Graph Editing can create the record, and Schema Creation cannot." The middle clause has no referent now, and Bulk Import, second in the ranking, is not classified. Suggest: "Node Creation and Graph Editing can create the record; Bulk Import and Schema Creation cannot." Nitpicks
What is done well
RecommendationREQUEST CHANGES. Address findings 1 to 5. Findings 1 and 2 need at most four scenarios re-run. Findings 3 to 5 can be closed with text if the names stay. The rest is optional. |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: REQUEST CHANGES (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Review addressed (commit
|
| # | Finding | Outcome |
|---|---|---|
| 1 | held-off-menu-node asked for a write the scenario scores red |
Fixed. The request now opens "Follow up on the Aurora renderer bug report: change …" and states nothing about the report, so there is no change to it to make. Held 3 of 3, nothing written. The reviewer's suggested wording (report as an aside, "showed it") was tried first and held only 1 of 3. |
| 2 | "our feature specs" names the seeded type | Fixed. The frame is "Add X to the specs we keep.", which does not match feature_spec. The three scenarios pass 3 of 3 on it, so the improvement did not depend on the type line. The PR now marks those rows as not established, since the old side is one rep. |
| 3 | "Kestrel Sync" shares a word with Conflict Journal's description | Fixed. Renamed to "Kestrel Gateway", and "Lantern Export" to "Lantern Autosave". The rule is written beside SEEDED_SPEC_TITLE. The four regressions persist under the neutral names, so the name was not their cause; #3560 is updated. |
| 4 | Comment quoted "passes 3 of 3" against a prompt that fails | Fixed. It now says the 3 of 3 was on the earlier wording and records 0 of 3 on this one. |
| 5 | PR description overstated the comparison | Fixed. Rewritten: the six skipped scenarios are unmeasured, not unaffected; a column says which rows are established; the build is named. The reduced comparison is recorded on #3513. |
| 6 | Historical measurements read as current | Fixed with a header note, and the one sentence that was no longer true of its prompt. |
| 7 | Cross-type field in op-read-then-write |
Fixed with a note that it is intended. |
| 8 | Hard-to-follow doc comment | Fixed, with re-measured scores. |
| nit | Test name, stale "model-derived" comment | Fixed. |
| nit | Build the test's needle from exported constants | Skipped. The literal is stricter than the mechanism, which is safe, and exporting fixture constants for one assertion is not worth it. |
| nit | Old prompt quoted in local_agent/tools.rs |
Skipped. Outside the files the issue names, and a true record of what was measured. |
Re-measured for these changes: one pass of the 19 scenarios, two more reps of the seven the rewordings bear on, three reps of held-off-menu-node, the contamination guard, and the live retrieval tests.
One new observation, not caused by this PR: two #[ignore] Stage-1 golden tests pass before main is merged in and fail after, on a prompt this PR does not touch. Details are in the PR description and #3560.
Re-Review Decision
Decision: RE-REVIEW NEEDED
Rationale: Three of the fixes change scenario prompts and the seeded record, which is the substance of this PR, and the reviewer's first two findings were about exactly that kind of change.
Pragmatic Code Review: PR #3561
Previous Review Summary
What I checked, and what I did notChecked from the code:
Not checked: I ran no cargo build, live test or eval. The pass rates, the retrieval scores in the doc comments and the Previous findings
New findingsA. 🟡 Important: The new comment says the cross-type field is intended. A comment on #3513, written before this work started, says the opposite about this scenario: "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." It was measured: 3 of 3 reps wrote a partial date, validation refused it, and the reply asked for the day. The re-themed prompt, "Kestrel Gateway has moved its end date to April.", keeps both problems: a spec has no This one is on me as much as the author. Finding 7 of my first review called the prompt a faithful mirror and asked for a comment saying it is intended. I had not read that issue comment. The scenario is scored on the first operation, so its score is not wrong. What is wrong is that the fixture now records as a decision something the issue recorded as a defect, and the issue's "Winnability holds" constraint is not met for this prompt. Recommendation, either of:
The second needs no re-review. The first needs only that scenario re-measured. Principle: winnability ( B. 🟢 Suggestion: The Aurora renderer bug report exists only if Recommendation: add one line to the comment saying the report exists only after Principle: a scenario's score should not depend on the chats before it (the fixture's own "Workspace" comment). C. 🟢 Suggestion: say which build the final-wording pass rates are from, next to the retrieval scores The eval pass rates are from the branch-point build, which has no Play Authoring skill. The doc comment's scores are from the merged branch, where Play Authoring is fourth on the add request, 0.004 behind Node Creation. The description discloses the build, so nothing is misstated. A reader comparing the two should be told they are not the same build. One sentence in the description is enough. RecommendationAPPROVE. The five findings that blocked the first review are fixed, and I verified the two that mattered most (the add frame and the record names) against the code, not the author's summary. Settle finding A before merge, in either of the two ways given. B and C are optional. |
malibio
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review (re-review): APPROVE (posted as a comment — GitHub blocks self-approval). Full findings in the review comment above.
Re-review addressed (commit
|
772924d to
d8201a2
Compare
Closes #3513.
What changed
The decision eval's seeded workspace and every business-domain prompt are now in NodeSpace's working domain. Nothing else about the fixture changed: every scenario
id,expectedshape and flag is the same.namefield and a datecompany_sold_to(signed_date)feature_spec(signed_off_date)nameevent_venue(booking_date,capacity)planning_cycle(end_date,capacity)warranty_claimbug_reportAlso in this PR:
decisions.test.tsmoved to the new vocabulary.skill_pipeline.rs,live_skill_retrieval_stability.rs,live_stage1_golden_prompts.rs) are re-measured on the new prompts or reworded so they cite no prompt the fixture no longer holds.agent-eval.md"Scenario domain" now covers all three fixtures (already onnodespace-docsmain).One thing the issue's vocabulary criterion cannot fully meet: the id
schema-on-menu-companystill contains "company", because ids must not change.Eval comparison
This is not the 3-rep full comparison the issue asks for. At the maintainer's request it was cut to one pass of 19 scenarios on each fixture, then extra reps only where the two differed or a prompt was reworded. What that does and does not establish:
skill-find-request,skill-question-how,skill-question-what,skill-question-explain,op-own-skills-no-search,outcome-find-own-skill) have unchanged prompts but a changed workspace, since the workspace is seeded before every chat. They are unmeasured, not unaffected.gemma-4-e4b-q4km, database purged and daemon restarted before each rep, no other model loaded. That build is the branch point (4aad201f), before main was merged in; main has since added a skill (see the last section).Passed on both fixtures, one rep a side:
op-list-by-type,outcome-list-types,outcome-question-searches-first,outcome-record-field-is-answered,outcome-follow-up-keeps-its-answer,schema-field-disambiguates,declarative-state-change-resolved,held-on-menu-type,held-off-menu-type.Everything else:
skill-type-request-directcreate_schema.skill-type-request-indirectoutcome-follow-up-statement-keeps-its-answerschema-shared-name-signedsearch_semantic, which names no type.declarative-fact-report-resolvedskill-instance-requestcreate_nodewas retrieved.schema-on-menu-companyentity-no-match-is-a-createcreate_schemawas called,create_nodenot offered.op-read-then-writeheld-off-menu-nodeThe four established regressions are filed together as #3560. No skill description or guidance is changed here.
Prompts reworded after measuring
Each of these was a defect in my wording, not a model finding. The table above is for the final wording.
feature_specoutright, which puts the type into the Stage-1 prompt where "the companies we sell to" did not (review finding 2). The final frame, "Add X to the specs we keep.", restates the type without naming it: 3 of 3 on each of the three.held-off-menu-node. With the bug report mentioned as an aside, routing dropped it, a built-in skill led, and the turn was not held in 11 of 12. A wording that held it also stated a fact about the bug report, which would have made a write to that report a correct answer the scenario scores red (review finding 1). The final wording opens by asking for the follow-up on a named bug report and says nothing about it: held 3 of 3.op-read-then-write. The winnability note on Re-theme the decision eval's scenarios and seeded workspace into NodeSpace's developer-workflow domain #3513 asked that the record hold the field the message changes and that the message carry a full value. My first re-theme mirrored the old prompt and kept both problems. It is now "Kestrel Gateway has moved its sign-off to the 2nd of April 2025.", and the update lands with2025-04-02(2 of 2). Without the year the model wrote 2004.Verification
bun run test:changed: passes on the branch merged with main (scripts tier, generated-types drift,node-types.mdcheck, Rust workspace).guidance_is_not_contaminated_by_eval_prompts: passes on the final prompts.lookups_route_research_and_search,updates_to_one_record_do_not_lead_with_schema_creation,adds_to_an_existing_list_keep_a_skill_that_can_create): pass on the final prompts, on the merged branch; their doc comments carry the new scores. Those scores are from the merged branch, which has the Play Authoring skill; the eval pass rates above are from the branch-point build, which does not. The two are not the same build.To revisit
The fixture seeds a custom
feature_spectype. ADR-092 makes spec, plan and decision core types (#3542, open). The id does not collide with a corespec, but once that lands the prompts' "spec" will name a core type, and the fixture should move to it.A live test that fails on the merged branch, not because of this PR
stage1_routes_a_knowledge_question_as_a_lookupandstage1_routes_a_question_as_a_lookup_after_unrelated_turns(both#[ignore], not in any gate) passed on this branch before main was merged in, and fail after. The failing messages are "How do we onboard a new sponsor?", which this PR does not touch, and the re-themed "How do we decide which cycle a slipped spec moves into?". Both are routed as a query, 3 of 3. The merge brought in the Play Authoring skill and its tools. Recorded in #3560.🤖 Generated with Claude Code