Repository navigation
Description
The dev-workflow matrix harness has three defects that corrupt or block scoring. All three live in scripts/eval/. None are product bugs, and none are addressable by prompt or skill-description tuning — the models call the right tools and write the right values; the harness reads them incorrectly or refuses to start.
Found while re-running #2239 against d393ad19 (the #2254 fix) with DeepSeek V4 Pro, 3 reps.
1. Nested properties are never matched (corrupts every score recorded to date)
What happens
The daemon serialises node properties nested under a type key:
{"feature_write_up": {"_schema_version": 1, "estimated_days": 8, "signed_off": true}}toSnapshotNode passes that object through unchanged (scripts/eval/graph.ts:132), and both matchers then read the top level:
matchesNodelooks upnode.properties[k](scripts/eval/end-state.ts:216). The top level holds only the type key, so every keyed property assertion misses.populatedCountcountsObject.values(props)(scripts/eval/end-state.ts:198). It always returns1— the wrapper — so anyminProperties >= 2assertion fails by construction.
Evidence (DeepSeek V4 Pro, d393ad19, 3 reps)
Scenario 9 asserts some property = 8. The node has estimated_days: 8. It failed 0/3 reps:
✗ 9. Set property on existing node tools=[update_node]
↳ no existing node was updated to match [content~"offline sync", some property = 8]
— nodes modified this turn: feature_write_up:"Offline sync"
{feature_write_up={"_schema_version":1,"estimated_days":8,"signed_off":true}}
Scenario 10b asserts due_date=<any value> on a task. The node has due_date: "2026-08-06". Failed 0/3 reps:
✗ 10b. Set a defined-but-unset core field tools=[update_node]
↳ no existing node was updated to match [type=task, due_date=<any value>]
— nodes modified this turn: task:"Swap the image resizer over to the new pipeline"
{task={"_schema_version":1,"due_date":"2026-08-06","status":"open"}}
Scenario 13 asserts >=2 property value(s). The node has two written properties plus bookkeeping. Failed 0/3 reps:
✗ 13. Indirect reference tools=[search_nodes, search_nodes, update_node]
↳ no existing node was updated to match [content~"search index corruption", >=2 property value(s)]
— nodes modified this turn: incident_report:"search index corruption"
{incident_report={"_schema_version":1,"on_call":"rowan","resolved":true}}
In each case the model found the correct node, called the correct tool, and persisted the correct values. The harness scored it FAIL.
Why this is worse than uniform noise
The bug fires only on typed nodes with nested properties, so it does not shift all models equally — a model that writes more schema-typed data is penalised harder. Every score recorded on #2239 is therefore depressed by an unknown, non-uniform amount:
| arm | recorded | commit |
|---|---|---|
| Gemma 4 E4B | 11/20 pass^3 | 0fe6ffea |
| Nemotron Ultra | 14/20 | 0fe6ffea |
| DeepSeek V4 Pro | 17/20 | d0ed2bde |
| DeepSeek V4 Pro | 16/21 pass^3 | d393ad19 (this run) |
The cross-model ranking in #2239 should not be treated as decision-grade until these are re-run.
Scale on this run
Of 5 non-passing scenarios, 3 are pure harness artifacts (9, 10b, 13 — all 0/3, all correct writes). One is a genuine model flake (8c, created a spurious text node in 1 of 3 reps). One is a genuine miss (12d — nodes modified this turn: (none)), though plausibly downstream of the mis-scored setup in defect 3.
Corrected for defect 1, DeepSeek's d393ad19 score is approximately 19/21, not 16/21.
Fix
Unwrap the type key before matching, and exclude _schema_version from populatedCount — it is bookkeeping the model did not write, and counting it inflates minProperties results once unwrapping lands.
2. The preflight skill-index gate can never pass (blocks every run, every model)
What happens
awaitSkillIndex compares a numerator and a denominator that take opposite branches of should_skip_scope_filter (packages/core/src/ops/search_ops.rs:57):
| probe | is_enumerate |
scope bypass | result |
|---|---|---|---|
numerator — search "update an existing node" --type skill |
false |
no → Knowledge allowlist drops skill |
always 0 |
denominator — search "" --type skill |
true |
yes | 8 |
The default Knowledge scope allowlist is text/header/code-block/schema/table. skill is not a member, and the CLI exposes no --scope override (packages/cli/src/commands/search.rs documents the omission). The gate reports 0/8, waits its full 120s timeout, then exits 2 before any scenario runs.
Evidence — verified against a warm, fully-embedded index
sqlite3: SELECT COUNT(*) FROM node WHERE node_type='skill' → 8
sqlite3: skill nodes JOIN embedding → 8 (all embedded)
nodespace search "update an existing node" --type skill --threshold 0.01 → count: 0
nodespace search "Graph Editing" --type skill --threshold 0.01 → count: 0 ← exact title
nodespace search "" --type skill --limit 100 → count: 8
An exact-title query returning 0 rules out threshold and semantic-drift explanations. --type skill returns nothing for any non-empty query.
This is not a regression in d393ad19
That commit's only change to skill_ops.rs was fn mentions_phrase → pub(crate) fn mentions_phrase, a visibility edit. preflight.ts was added in the same commit and has never completed a successful run — the defect shipped with the gate.
The obvious fix does not work
Swapping the numerator to an empty query would make the gate vacuous. enumerate_nodes (packages/core/src/ops/search_ops.rs:218) queries rows by type and never consults embeddings, so it returns all 8 the instant the daemon boots — passing immediately on a cold index, which is exactly the state the gate exists to catch (and which its own docstring at preflight.ts:271 says it must detect). The probe must assert embedding presence, not row existence.
Stopgap currently in the tree
NS_SKILL_INDEX_PROBE_DB counts embedded skill rows via SQL at the single call site (scripts/eval/runner.ts:749); inert unless the env var is set. Verified to return 8 on a warm index and 0 on an unreadable DB, so it still fails closed. This unblocked the run above and should be removed once the real probe lands.
3. Mis-scored setup turns cascade into dependent scenarios
Setup turns are graded with the same broken matcher from defect 1, so a correct setup is marked failed — and the harness then runs the dependent scenario anyway, after printing its own warning that the result is meaningless:
⊙ 12b. create_node
↳ no node matching [content~"checkout rewrite", some property = 9] was created
— nodes created this turn: build_job:"checkout rewrite"
{build_job={"_schema_version":1,"estimated_days":9}}
⚠ setup did not establish its state — later scenarios in this group may be unwinnable
...
✗ 12d. Comparative reference (0/3 reps)
12d's failure is not cleanly attributable to the model. Fixing defect 1 resolves most of this, but the harness should still exclude scenarios whose setup did not verify — the way it already excludes unrouted turns via ⊗ — rather than scoring them as model failures. Scoring a scenario the harness has itself declared unwinnable produces a number that looks like model behaviour and is not.
Acceptance criteria
- Property matching unwraps the type key before comparison
-
_schema_versionexcluded frompopulatedCount - Regression test: a nested-property write satisfies both
minProperties: 2and a keyedpropertiesassertion - Preflight probe asserts embedding presence, not row existence
- Test covering the cold-index case, so a vacuous gate cannot regress in unnoticed
- Scenarios whose setup did not verify are excluded rather than scored as model failures
-
NS_SKILL_INDEX_PROBE_DBstopgap removed fromscripts/eval/runner.ts - Evaluate Ornith 1.5 and Qwen 3.6 on the dev-workflow matrix (prior rejections predate the current stack) #2239 arms (E4B, Nemotron Ultra, DeepSeek) re-run after the fix
- Pre-fix scores on Evaluate Ornith 1.5 and Qwen 3.6 on the dev-workflow matrix (prior rejections predate the current stack) #2239 annotated as unreliable
Reproduction
# Defect 2 — blocks immediately, any model
bun run scripts/eval/agent-matrix.ts <label> <out.json> --runs 1
# Defects 1 and 3 — with the stopgap set, watch scenarios 9, 10b, 13
NS_SKILL_INDEX_PROBE_DB=<eval-db> bun run scripts/eval/agent-matrix.ts <label> <out.json> --runs 1Full results from the run described above: deepseek-post2254.json (3 reps, zero API errors, d393ad19 + stopgap patch).
Activity
malibio commentedon Aug 24, 2026
Two additions from a fuller pass over the results file.
Trajectory data independently confirms defect 1
The results file records a trajectory verdict alongside the outcome verdict. Across all 3 reps there are 21 disagreements, and every one runs the same direction — trajectory PASS, outcome FAIL:
Zero disagreements in the opposite direction. Model error would produce a mix; a systematically blind matcher produces exactly this. That is independent corroboration of the nested-property bug from a signal that does not depend on reading the emitted log lines.
12d is an unwinnable fixture, not a model failure (correction)
12d was described above as a genuine miss. It is not — it is a fixture defect, and it belongs in this issue rather than being attributed to the model.
12d's prompt is "Whichever is the biggest job — that one's signed off now". The model's reply:
The model ranked three estimates correctly, resolved the right node, and then declined to fabricate a field that does not exist. That is the desired behaviour.
The cause is in the group's own setup. 12a's prompt is:
which establishes
estimated_daysand nothing else — sobuild_jobhas no sign-off field for 12d to set. The fixture's comment atscripts/eval/fixtures/agent-matrix.ts:1409anticipates precisely this class of failure for this group:The same reasoning applies to the sign-off field, which the setup prompt does not mention.
Fix: extend 12a's prompt so the type it creates carries a sign-off field (mirroring how scenario 3 names its downstream fields), or retarget 12d at a property
build_jobactually has.Revised failure attribution for this run
textnode)Of five non-passing scenarios, four are harness or fixture defects. Corrected for them, DeepSeek V4 Pro scores approximately 20/21 on
d393ad19rather than the reported 16/21.This strengthens the point in defect 1 about prior scores: the harness was suppressing results substantially, and non-uniformly across models.