Repository navigation
Description
Split out of #1862, where it was measured as a standing failure rather than that window's regression.
Symptom
Agent-matrix scenario 4 ("Log a laser cutter checked out on the 12th, replacement cost 2400") calls create_node, the call succeeds, and it persists zero property values. The date and the replacement cost the prompt supplies are both dropped.
create_node fieldCount=0 isError=false
The node is created as a bare shell. The user is told it worked:
The laser cutter has been logged as checked out.
Why it matters beyond the assertion
minProperties: 1 exists on this scenario precisely because a bare shell is indistinguishable from a correct call on tool name alone. The particulars silently not reaching storage is the actual defect — scenarios later in the chain key on the 2400 value and cannot resolve it, which is how this surfaces as a cascading failure rather than a local one.
Measurement
9/9 runs fail, across three builds (c98169c5, c98169c5 minus a schema rule, a38ea9b4), purged DB + rebuilt daemon per run, NODESPACE_HOME-isolated, E4B @ n_ctx 32768.
Not a regression: #1862 originally flagged this as the one genuine like-for-like regression in its window, because the assertion was identical on both sides. The three-arm run refuted that — it fails 0/3 in the pre-#1859 build too.
Notes for whoever picks this up
- Routing differs across arms (
Schema Creation, Relationship Management, OrganizationvsRelationship Management, Organization, Node Creation) yet the outcome is identical, so routing choice is not the driver. - In some arms a follow-up
update_nodefires after the emptycreate_node— the model appears aware something is missing without repairing it. - Related in mechanism to create_node discards user-supplied schema field values: instances persist as bare shells (guidance/prose, not tool schema) #1841 (
create_nodediscarding user-supplied field values because guidance referenced a structure absent from the prompt). Worth checking whether this is the same class of no-referent defect at a different call site — the fix there was to make the named structure actually present in the prompt. - One run showed three consecutive empty iterations, so this may interact with the degenerate-empty-generation path.
Acceptance criteria
- Determine why
create_nodepersists no properties when the prompt supplies two - Fix so supplied particulars reach storage
- Scenario 4 passes across repeated runs (n high enough to clear the 6–7 noise band Agent matrix 10/12 -> 6/12 does not reproduce: fixture change plus single-run variance, not a regression #1862 measured)
Evidence: 9 results files + raw traces from the #1862 investigation.
Activity
malibio commentedon Aug 1, 2026
Baseline (worktree issue-1866-create-node-empty-props): Frontend 170 test files passed, 4097 tests passed, 0 failed.
malibio commentedon Aug 1, 2026
Diagnosis: storage is exonerated; the value is discarded before the tool call
Investigated the whole chain — instrumentation, tool exec path, ops layer, storage normalization — and the defect is not where the issue's leading hypothesis put it.
The instrumentation is truthful
fieldCount=0is a real reading, not a scraping artifact. The chain is sound end to end:exec_create_nodederivesproperty_countby re-fetching the stored node (tools.rs:1829),agent_loop.rs:1306maps it toresult_field_count,aichat.ts:241emits[fields=N], andrunner.ts:117parses it anchored to line start. Nothing here can manufacture a false zero.The storage path preserves everything it is handed
Added
packages/core/tests/create_node_property_persistence_test.rs(3 tests, all pass) to close this off rather than argue it from reading:normalize_flat_properties_to_namespacenamespaces unknown keys, it does not filter them;The middle case matters most: it means "schema omitted the field" and "model omitted the value" do not collapse into the same reading. So
fieldCount=0can only mean the model calledcreate_nodewith no properties.What the model actually did
The raw trace for scenario 4 is explicit — it isn't silently dropping the value, it's consciously discarding it:
And scenario 3 one turn earlier created the schema with
fieldCount=3—status,checkout_date,due_date. No cost field. The model then correctly observed that cost had nowhere to go and threw it away.Note the attached
results-e4b.json/.trace.jsonlpredate the fixture fix in 756243a (their scenario 3 prompt lacks the cost clause). But I verified both measured builds (c98169c5,a38ea9b4) do carry the corrected prompt, so the 9/9 failures are real and postdate it — the older evidence still identifies the mechanism, which the corrected prompt narrows rather than eliminates: scenario 3 is asked for cost, and scenario 4 fails when it doesn't deliver it.So this is not the same class as #1841
#1841 was guidance naming a structure absent from the prompt. Here the guidance is present and accurate; the schema is missing a field. The Node Creation skill (
skill_pipeline.rs:309) is already emphatic about filling values — but it only ever tells the model what to do with a user value that matches a listed field. It is silent on a supplied value with no matching field, which is exactly scenario 4. Faced with that gap, discarding is a defensible reading of the instructions as written.There are therefore two separable defects, and the second is the one worth fixing:
Proposed fix — proceeding unless redirected
Close the gap at (2): give the model an explicit instruction for the no-matching-field case, so a supplied particular is never silently dropped. Concretely, extend the Node Creation guidance so a value with no matching schema field is still recorded (namespaced per ADR-063, which the storage layer already supports — proven by the test above) rather than discarded, and so the reply says plainly what was and wasn't stored.
This is the fix that holds regardless of whether the model gets scenario 3 right, and it makes the failure non-silent either way. I'll then measure scenario 4 across enough runs to clear the noise band the acceptance criteria call out.
Flagging one scope question: fully fixing scenario 3's field coverage is a prompt-tuning problem against a known-noisy suite, and arguably belongs with the schema-creation work rather than here. I'm treating (2) as this issue's deliverable and will report scenario 3's measured behavior separately.
malibio commentedon Aug 1, 2026
Fix pushed for measurement —
4b66ec4fWhat changed. Both surfaces that tell the model how to fill
propertiesnow state the missing rule:skill_pipeline.rs— newVALUES WITH NO MATCHING FIELDsection in the Node Creation guidance.tools.rs— thecreate_nodetool schema'spropertiesdescription now says extra keys are allowed.Both surfaces, not just the skill, because scenario 4's traces show routing varying across arms while the empty-call outcome stayed identical — guidance alone would leave the gap open on exactly the paths that were failing.
The rule also forbids "call create_schema first" as a workaround: the Node Creation skill's own tool whitelist doesn't offer those tools, so that path would dead-end. A test pins the guidance and the whitelist together so they can't drift apart.
Examples are deliberately neutral (
weight: 40kg, notreplacement_cost: 2400). Contaminating the guidance with the scenario's own value would let the model pass by pattern-matching the example instead of generalizing — andguidance_is_not_contaminated_by_eval_promptsenforces this repo-wide. It passes.Tests.
packages/core/tests/create_node_property_persistence_test.rs— 3 new tests, pass. These are the ones that exonerate storage, so thefieldCountreading is trustworthy in both directions.skill_pipeline.rs, pass.nodespace-agentlib: 403 passed, 0 failed.One pre-existing flake, not from this change.
core-plugins.test.ts > should resolve viewer componentstimes out at the 5000ms default in this worktree. It is the only test that awaits a real lazy.svelteimport; given--testTimeout=60000it passes in 2.7s, and it passes on the pristine primary checkout. This change is Rust-only and cannot affect it. Same machine-load-sensitive class already documented for this suite — flagging rather than fixing, since it's out of scope here.Measurement in progress. Running
eval:agentagainst E4B @ n_ctx 32768, purged DB, daemon and CLI rebuilt from4b66ec4f,NODESPACE_HOME-isolated (served_db_pathverified as the temp DB), and the new guidance confirmed present in the seeded nodes before scoring started. Given the documented 6–7/12 noise band, I'll report scenario 4 across repeated runs rather than a single count, and post raw traces.malibio commentedon Aug 1, 2026
Post-fix measurement: 3 runs. Scenario 4 is 2/3 — criterion NOT met
E4B @ n_ctx 32768 (matching the baseline exactly), purged DB + daemon/CLI rebuilt from
4b66ec4f,NODESPACE_HOME-isolated (served_db_pathverified), new guidance confirmed present in the seeded nodes before scoring.create_nodefieldCountScenario 4: 2/3 passing, vs 0/9 before. Totals (6/7/7, mean 6.7) sit inside the documented 6–7 noise band, so the headline count is unchanged — as expected, since this fix targets one scenario.
The honest read: the criterion is not met
"Scenario 4 passes across repeated runs (n high enough to clear the noise band)" is not satisfied at 2/3. n=3 is also too small to distinguish 2/3 from the noise band on its own. I'm not going to call this fixed.
What did change is real but narrower than the criterion: the specific mechanism I diagnosed — model discards a supplied value because no listed field covers it, then reports success — did not recur in any of the 3 runs. The run-2 failure is a different mechanism.
Run 2's failure is a type-id defect, not a property defect
The model addressed a type that does not exist, so there was no schema for any value to land against. Zero properties follows mechanically. This is the type-id-fidelity failure the
create_nodetool schema already warns about at length ("copy the id exactly … never shorten, singularize, paraphrase"), and my change does not touch it.Run 1 showed a third, separate mechanism: the model split the request into two schemas —
Equipment Item(holdingreplacement_cost) andCheckout Record(holding the dates) — then instantiated onlycheckout_record. Scenario 4's assertion passed on the date, but 2400 was never stored,create_relationshipbetween the two types errored, and scenario 5'ssearch_nodesqueriedequipment_itemand gotcount: 0. So a green scenario 4 does not imply the chain is healthy.Scenario 6 failed 3/3 — and it is not this issue
Never reached
resolve_queryin any run. Consistent with the #1835 finding (model comprehension of the indirect-reference instruction), and independently, scenario 6 keys on 2400 — which the chain still fails to persist for the reasons above. Not caused by this change; not fixed by it.Also measured
create_schemarejected as malformed in 3 separate places (run 1 scen 8a, run 3 scen 3/8a/8b) — a recurring validation failure that cascades. Run 1's 8c "failure" is downstream of it: no album type existed, so the model fell back tonode_type: "text", where "by Miles Davis" had nowhere to go. Worth its own issue.Recommendation
I'd land the change on its merits and not close this issue on it:
fieldCountdiagnostic in both directions, which is what let all of the above be told apart.Proposing: keep this issue open on the acceptance criterion, or split the two mechanisms above into their own issues and close this one on the diagnosis + guidance fix. Happy to go either way — flagging rather than deciding, since it changes what "done" means here.
malibio commentedon Aug 1, 2026
Follow-ups filed for the two mechanisms still blocking scenario 4
Both measured in the 3-run post-fix measurement above, neither addressed by this issue's change:
create_nodeaccepts a nonexistentnode_type(display name instead of schema id) and silently persists zero properties. This is run 2's failure.Worth noting for triage: #1895 and the defect fixed here are indistinguishable by tool name and field count alone — both present as a successful
create_nodewithproperty_count=0. Telling them apart required readingargs_previewfor thenode_typeactually passed. Anyone debugging a zero-propertycreate_nodeshould check the type id before assuming values were dropped.The recurring malformed-
create_schemarejection I flagged is already covered by #1872 and #1876 — not filed again.That leaves this issue with the diagnosis, the storage-exoneration tests, and the guidance fix. The acceptance criterion (scenario 4 across repeated runs) remains unmet at 2/3, and is now gated on #1895 and #1896 rather than on anything in this change.
malibio commentedon Aug 1, 2026
Closing this one on the diagnosis + fix, per the open question above.
This is genuinely strong work: the storage-exoneration test is the right way to settle "did storage drop it or did the model never send it" instead of arguing it from reading code, and it's reusable for the whole cluster going forward. The guidance fix for the no-matching-field case is real and independently valuable (silent-loss → stated-loss is strictly better, confirmed live in run 1 scenario 8d). And refusing to call the acceptance criterion met at 2/3 — then continuing to dig instead of stopping at a comfortable-looking number — is exactly right; it's what surfaced that run 1's "pass" was a false green (2400 never stored, scenario 5 broken downstream) and turned up two more distinct mechanisms (#1895, #1896) that would otherwise have stayed hidden inside "scenario 4 is flaky."
Closing here rather than carrying the unmet criterion forward: the criterion is now entirely gated on #1895 (type-id fidelity) and #1896 (split-into-orphaned-schemas), both filed with their own root cause and their own tracking. Keeping this open wouldn't add anything — it would just be a third place watching the same two numbers #1895/#1896 already own.
Also flagging for anyone reading this later: the note that #1895 and this issue's original defect are indistinguishable by tool name/field count alone (both show as a successful
create_nodewithproperty_count=0) is worth remembering — checkargs_preview'snode_typebefore assuming a future zero-property report is this same class of bug.malibio commentedon Aug 1, 2026
Scope note + review follow-up
Code review of PR #1897 surfaced a defect in the fix itself, now corrected in
8b5a00f9: the guidance told the model to key an undeclared value bare, unconditionally. On a core type (text/task/date) that is exactly what ADR-063 prohibits andupdate_schemarejects — and the guidance simultaneously routed the model away fromupdate_schema, the one place that rule is enforced. Since the motivating failure was atextnode, that was the default path.Left as-is, this would have traded 'value silently discarded' for 'value silently written under a key the schema layer would have refused' — worse in one respect, because the value looks stored. Both surfaces now scope the rule to type ownership (bare on user-defined,
custom:-prefixed on built-in).Scope of this issue as closed: acceptance criteria 1 and 2. Criterion 3 (scenario 4 across repeated runs) was measured at 2/3 and is NOT met. Recording that explicitly so it isn't inherited as settled — it is now tracked entirely by #1895 and #1896.
Also filed from the review: #1899 — tool-call guidance living in a single skill body is unreachable on turns routed to other skills.
create_nodeis whitelisted only on Node Creation, yet this issue's own traces show the empty call happening on turns routed elsewhere, where only the (weaker) tool-schema description carries the rule. That is a plausible explanation for 2/3 rather than 3/3, and is distinct from #1895/#1896.One measurement caveat worth recording: the 3 runs used a purged DB + rebuilt daemon, so they validate the new-install path. Seeding is content-versioned (
_seed.version,SeedTier::System), so a reworded skill body does propagate — but only on daemon restart, since seeding runs at startup. A long-running daemon serves stale guidance until restarted.Stop create_node from silently discarding user values with no matchin…
Reject create_node against a nonexistent node_type (closes #1895) (#1902