Repository navigation
Add the tasks eval and fix the eval graph capture (#3763) - #3783
Conversation
|
Known gaps from the baseline are tracked in #3784. |
Code Review SummaryVerdict: REQUEST CHANGES (one blocker, small fix; everything else is solid). The change does what #3763 asks: it adds a graph-graded FindingsCritical Issues
Suggested Improvements
Nitpicks
Requirements check (#3763)Seeding the entity tier and one scenario per bullet with wording-independent outcomes: met. Baseline recorded as 3 reps; full smoke run deliberately skipped by the author; failing scenarios tracked in #3784. Not re-reported here. RecommendationREQUEST CHANGES. Fix the QUERY_LIMIT clamp (500 + paging or a |
malibio
left a comment
There was a problem hiding this comment.
Review posted above. Verdict: REQUEST CHANGES. Blocker: QUERY_LIMIT=5000 is silently clamped to 500 by the daemon (MAX_ROW_LIMIT), so the truncation guard never fires and a type over 500 nodes is still read short.
Review addressed (commit 86fc712)Addressed
Skipped
Scripts tier: 1526 pass. Re-Review DecisionDecision: RE-REVIEW NEEDED Rationale: The critical finding was fixed with new logic in the shared harness (paging, a retry, a new exported helper), not a wording change, and it is the same code that every graph-graded fixture runs through. 🤖 Generated with Claude Code |
Re-Review (commit 86fc712)Review Type: Re-Review Previous recommendations
New issuesNone blocking.
RecommendationAPPROVE. The blocker is fixed correctly and tested; the remaining items are optional polish. |
malibio
left a comment
There was a problem hiding this comment.
Re-review verdict: APPROVE. Query paging blocker fixed and tested; only non-blocking suggestions remain (see comment above).
Re-review addressed (commit 9c81536)Addressed
Scripts tier: 1529 pass. Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: The reviewer approved the previous commit. This one only narrows a tolerance toward stricter (a failure that was swallowed now fails the capture), is covered by two new tests, and otherwise removes a fallback and adds tests. 🤖 Generated with Claude Code |
Note on the baselineThe 3-rep baseline above was measured on the previous scenario content (a vendor contract, a launch invite, a pricing page, an offline mode request). Commit b857449 rewrites that content to developer-workflow subjects (a query engine rewrite with a migration guide, a release branch, an index design, and a declined GraphQL API), following the decision to keep eval content on the dev-workflow use case. Scoring, ids and the shape of every scenario are unchanged and covered by the same unit tests. The numbers describe the old wording and have not been re-measured on the new one. A 1-rep confirmation on the rewritten scenarios will be posted on the issue once this lands, because another PR's gate is holding the GPU and the contention check does not pass yet. Review: re-review APPROVE on 86fc712; the follow-up commits (9c81536, b857449) only tighten a tolerance, add tests and change eval wording. |
…on the graph (closes #3763) Five end-state scenarios on a seeded entity-tier workspace: a visible bug becomes a ready task, an unseen one writes nothing, a declined request creates nothing, a stopping question becomes a task for its owner blocking the stopped task, and a waiting question is put to the user. The graph capture walks the type-declared relations a fixture names, and the seed helpers are shared with the grounding fixture. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…loses #3763) captureSnapshot read schema ids from a nodes array that schema list does not emit, so no type was ever queried and every nothing-was-written clause passed vacuously. It also pulled 200 nodes per type, fewer than the text nodes a fresh database seeds, so a written note fell off the list. The schema reader now lives in graph.ts, the limit is raised, and a type that fills it fails the capture. The waiting-question scenario now requires the reply to name the question. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…eclared relations (closes #3763) A run now checks at the start of each rep that the snapshot sees schemas and nodes, and aborts on the first capture failure instead of scoring it as a model failure. The relations a fixture names are skipped on node types that do not declare them; any other relationship failure still fails the capture. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…lamp (closes #3763) - The daemon clamps a node query to 500 rows without saying so, so the 5000 limit and its guard never fired. A type is now read a page at a time by --offset until a page comes back short; a later page that fails or a type past 100 pages fails the capture. - One retry of a capture that failed, so a single CLI hiccup does not void a multi-rep run; a defect fails twice and still voids it. - The blind-snapshot decision is a pure helper with tests, the paging has fake-CLI tests (including a failing later page), and the fake CLI temp dirs are removed. - The question-task scoring text no longer claims the stopped task's assignee is asserted; it is not (an edge on a seeded node, which is not walked). Skipped: requiring route_clarify for the asks-user scenario (it is only in the tool surface when the right skill leads, so it would be unwinnable and count routing twice); exact node_type comparisons in the fixture (fixtures assert concrete types like tests do); edges between two seeded nodes (documented limit). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ema names A transient failure reading the first page of a real type dropped the whole type from the snapshot with no capture error, so its writes went unseen. Only a type the schema list does not name may be absent now. Also removes the optional-chaining fallback in the runner's capture helper and adds paging tests for exactly two pages and for a failing first page. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The seed and prompts named a vendor contract, a launch invite and a pricing page, and a graph test used an invoice type, against the decision to keep eval content on NodeSpace's dev-workflow use case. The workspace is now a query engine rewrite with a migration guide, a release branch, an index design and a declined GraphQL API; scoring is unchanged. The predicted-type paging test now has the fake CLI refuse the type, so it reaches the tolerance branch it names. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
b857449 to
1b6daf7
Compare
Summary
Adds
bun run eval:tasks: five end-state-graded scenarios for the Creating a Task and Answering a Question procedures, on a seeded entity-tier workspace (project, three people with the owner as "me", tasks assigned throughperson.tasks, an accepted decision, a done task with an unticked box, a question task waiting on the owner). The daemon seeds the queues and skills itself; the fixture adds instance data only.bug-created-readybug-not-reproducibledeclined-requestquestion-blocks-taskanswer-asks-userHarness defects found and fixed on the way
Three pre-existing defects made every end-state verdict in
graph.ts-graded fixtures (includingeval:agent) vacuous. Verified by a first run in which a task the agent said it created was absent from the recorded diff.captureSnapshotread schema ids from anodesarray;schema listemitsschemas. No type was ever queried, soexpectNoWritespassed over every write andcreatedNodecould never pass. The reader now lives once ingraph.ts(decisions fixture imports it).textnodes, so a written note fell off the list. Limit raised, and a type that fills it now fails the capture.assignee,blocks, ...) errors on node types that do not declare it. Only that refusal is tolerated; any other failure still fails the capture.The runner now also checks at the start of each rep that the snapshot sees schemas and nodes, and aborts on the first capture failure rather than scoring it as a model failure.
graph.relationsis a new optional fixture field. Seed CLI helpers shared with the grounding fixture moved tofixtures/seed-helpers.ts.Any
eval:agentbaseline recorded before this was measured under the blind capture and should not be compared against.Baseline (E4B,
gemma-4-e4b-q4km, 3 reps, purged daemon between reps, commit 8e5bf74)pass^3: 1/5. Per rep 1/5, 1/5, 1/5. Contention checked before launch (no other generative model resident; some CPU load from another build, see latency note).
bug-not-reproduciblecreate_node, which errored every rep; passes because the write was refused, not because the agent held back. A weak passbug-created-readyget_nodeonly. Reps 2-3: ran to the 240s turn limit, with anupdate_nodethat added a stray property to the projectdeclined-requestcreate_node, no search for a decisionquestion-blocks-taskcreate_relationshipwith no question task created (first call errored); rep 2 also changed a taskanswer-asks-usersearch_semanticonly; never found the waiting question and asked for contextKnown gaps (recorded, procedure text not changed)
The failures are not wording of the procedures. For all five prompts the routed skill list led with generic Graph Editing / Node Creation / Schema Creation, with Creating a Task or Answering a Question present only as a lower-ranked candidate (or absent:
bug-created-readyrouted to Implementing a Task), and the agent did ad-hoc graph edits instead of following the procedure. Rewording a shipped skill description to win these prompts would be tuning to the eval, so it is left as a measured gap. The next step is a routing or resident-prompt change evaluated against the whole confusion matrix, not edits here.Not covered: the Codex/other-harness runs; the guidance read-back (
guidance seeded: none found) is a separate pre-existing gap,node queryno longer exposes_seedmetadata, so provenance cannot be read back (the daemon under test was a fresh build of this branch).Latency note:
bug-created-readyhit the 240s turn limit in 2 of 3 reps while a workspace build ran on the same machine, so those two turns may be shorter-limit artifacts; the scenario also failed in the rep that did not time out.The runbook entry (
development/agent-eval.md) is updated in nodespace-docs, including the filteredRUST_LOGthat keeps the daemon log from rotating several times inside one turn.Test plan
bun run test:scripts(1519 pass), including unit tests for each scenario's scoring, the fake-CLI capture tests, and the schema-list shapeguidance_is_not_contaminated_by_eval_promptseval:agentsmoke run under the corrected capture (pending)🤖 Generated with Claude Code