Skip to content

create_node succeeds but persists zero properties: matrix scenario 4 drops the user's supplied values #1866

Closed

Description

@malibio

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, Organization vs Relationship Management, Organization, Node Creation) yet the outcome is identical, so routing choice is not the driver.
  • In some arms a follow-up update_node fires after the empty create_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_node discarding 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

Evidence: 9 results files + raw traces from the #1862 investigation.

Activity

  1. malibio commented on Aug 1, 2026

    @malibio
    CollaboratorAuthor

    Baseline (worktree issue-1866-create-node-empty-props): Frontend 170 test files passed, 4097 tests passed, 0 failed.

  2. self-assigned this
    on Aug 1, 2026
  3. malibio commented on Aug 1, 2026

    @malibio
    CollaboratorAuthor

    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=0 is a real reading, not a scraping artifact. The chain is sound end to end: exec_create_node derives property_count by re-fetching the stored node (tools.rs:1829), agent_loop.rs:1306 maps it to result_field_count, aichat.ts:241 emits [fields=N], and runner.ts:117 parses 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:

    • a value for a declared schema field persists;
    • a value for a field the schema never declared also persists — normalize_flat_properties_to_namespace namespaces unknown keys, it does not filter them;
    • zero is reported only when the arguments were genuinely empty.

    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=0 can only mean the model called create_node with 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:

    "I have logged the laser cutter checkout record. Please note that I used a placeholder for the year and day in checkout_date... Also, this schema does not currently support logging replacement costs; we can add it if needed!"

    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.jsonl predate 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:

    1. Scenario 3 under-declares. Partly a model-capability issue, and single-run counts here are inside the documented 6–7 noise band.
    2. A supplied value with no matching field is silently lost. Structural, deterministic, and independent of scenario 3 — it will bite any user who mentions something their schema doesn't cover. The user is told it worked.

    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.

  4. malibio commented on Aug 1, 2026

    @malibio
    CollaboratorAuthor

    Fix pushed for measurement — 4b66ec4f

    What changed. Both surfaces that tell the model how to fill properties now state the missing rule:

    • skill_pipeline.rs — new VALUES WITH NO MATCHING FIELD section in the Node Creation guidance.
    • tools.rs — the create_node tool schema's properties description 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, not replacement_cost: 2400). Contaminating the guidance with the scenario's own value would let the model pass by pattern-matching the example instead of generalizing — and guidance_is_not_contaminated_by_eval_prompts enforces 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 the fieldCount reading is trustworthy in both directions.
    • 2 new guidance regression tests in skill_pipeline.rs, pass.
    • nodespace-agent lib: 403 passed, 0 failed.
    • Frontend baseline: 170 files / 4097 tests, unchanged.

    One pre-existing flake, not from this change. core-plugins.test.ts > should resolve viewer components times out at the 5000ms default in this worktree. It is the only test that awaits a real lazy .svelte import; given --testTimeout=60000 it 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:agent against E4B @ n_ctx 32768, purged DB, daemon and CLI rebuilt from 4b66ec4f, NODESPACE_HOME-isolated (served_db_path verified 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.

  5. malibio commented on Aug 1, 2026

    @malibio
    CollaboratorAuthor

    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_path verified), new guidance confirmed present in the seeded nodes before scoring.

    Run Total Scenario 4 create_node fieldCount
    1 6/12 PASS 1
    2 7/12 FAIL 0
    3 7/12 PASS 2

    Scenario 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

    create_schema  → id "equipment_item"
    create_node    → node_type: "Equipment Item Tracker"   ← display name, invented
    

    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_node tool 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 (holding replacement_cost) and Checkout Record (holding the dates) — then instantiated only checkout_record. Scenario 4's assertion passed on the date, but 2400 was never stored, create_relationship between the two types errored, and scenario 5's search_nodes queried equipment_item and got count: 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_query in 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_schema rejected 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 to node_type: "text", where "by Miles Davis" had nowhere to go. Worth its own issue.
    • One genuine sign the guidance is working: in run 1 scen 8d the model stated it could not store the email rather than silently dropping it and claiming success — the anti-silent-loss behavior this change targets.

    Recommendation

    I'd land the change on its merits and not close this issue on it:

    • The storage-exoneration tests are unambiguously worth keeping — they make fieldCount diagnostic in both directions, which is what let all of the above be told apart.
    • The guidance gap was real and is closed; silent loss is strictly better handled than before.
    • But scenario 4 is now gated on two other defects (type-id fidelity; one-concept-split-into-two-schemas) that are squarely in schema-creation territory, not property-passing. Chasing them here would turn this issue into a general agent-accuracy ticket.

    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.

  6. malibio commented on Aug 1, 2026

    @malibio
    CollaboratorAuthor

    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:

    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_node with property_count=0. Telling them apart required reading args_preview for the node_type actually passed. Anyone debugging a zero-property create_node should check the type id before assuming values were dropped.

    The recurring malformed-create_schema rejection 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.

  7. malibio commented on Aug 1, 2026

    @malibio
    CollaboratorAuthor

    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_node with property_count=0) is worth remembering — check args_preview's node_type before assuming a future zero-property report is this same class of bug.

  8. malibio commented on Aug 1, 2026

    @malibio
    CollaboratorAuthor

    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 and update_schema rejects — and the guidance simultaneously routed the model away from update_schema, the one place that rule is enforced. Since the motivating failure was a text node, 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_node is 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions