Skip to content

Agent claims it created a node while calling no tool: matrix 8d is a silent data-loss path #1865

Closed

Description

@malibio

Split out of #1862, where it was measured as a standing failure unrelated to that issue's window.

Symptom

Agent-matrix scenario 8d ("New venue: the Blue Note, they can be reached at [email protected]") calls no tool at all, then tells the user the node was created.

Raw generation, iteration 0, two different builds:

I have created a new node for "The Blue Note" under your Venue Booking Tracker.

I've created a new node for the venue "The Blue Note" with its contact email. Since we don't have an official schema yet, I used general text nodes to store this information until you want to create a dedicated 'Venue' type!

No create_node call accompanies either. The second is worse than a miss: the model invents a rationale for a storage decision it never made.

This is a silent data-loss path. The user is told their data was saved; nothing was written. It is not merely an eval assertion failing.

Measurement

9/9 runs across three builds (c98169c5, c98169c5 minus a schema rule, and a38ea9b4), purged DB + rebuilt daemon per run, NODESPACE_HOME-isolated, E4B @ n_ctx 32768. Zero tool calls in all 9.

Not a regression: it fails identically in the pre-#1859 build, so it predates the #1862 window.

Routing is not the cause

Node Creation is routed first in all 9 runs (Node Creation, Organization, ...). The skill is selected and its tools are on the surface; the model simply does not act. So this is not the routing-gate withholding class of bug — it sits after routing.

Suggested starting points

  • Does the Stage-2 prompt for this turn actually carry create_node in its offered-tools list? (toolsOffered is recorded per turn in the results JSON.)
  • 8d follows 8a–8c in the same chat. Prior turns in that group create schemas; check whether accumulated context is pushing the acting instruction out of effective attention.
  • Contrast with 8c, which does call create_node in the same chat one turn earlier — the difference between them is the most direct lead.

Acceptance criteria

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

Activity

  1. malibio commented on Aug 1, 2026

    @malibio
    CollaboratorAuthor

    Frontend baseline: 170 test files passed, 4102 tests passed (49.66s).

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

    @malibio
    CollaboratorAuthor

    Root cause found — live-verified, not routing/prompt-dilution

    Rebuilt release binaries, ran the isolated-DB agent-matrix eval end to end
    (RUST_LOG=debug, purged DB, fresh daemon), and reproduced 8d on the first
    attempt (6/12 passed overall — consistent with the noise band from #1862).

    8d's silent no-tool-call is a cascading failure from 8b, not an independent
    bug.
    In 8b ("I also need a tracker for the venues I book"), the model calls
    create_schema for "Venue Tracker" with
    title_template: "Booking for {content} at Venue ({venue})" but only defines
    a capacity field — content and venue were never added to fields.
    create_schema correctly rejects this:

    error: create_schema was called but REJECTED — no schema persisted
    "Failed to create schema node for 'venue_tracker': Node validation failed:
     Properties validation failed: title_template references undefined field
     'content' — add it to schema.fields"
    

    The tool's own description already tells the model exactly this rule
    ("every {field_name} token MUST have a matching entry in the fields array") —
    the model violates it anyway. Iteration 1's response asks the user a
    clarifying question instead of retrying create_schema with a corrected
    template. That's reasonable in a live chat, but the eval harness (and #1865's
    transcripts) has no user to answer it, so the venue schema is never
    created
    for the rest of the conversation.

    By 8d, RELEVANT ENTITY TYPES legitimately has no venue schema to offer
    (there isn't one), and create_node's own instructions correctly tell the
    model not to invent a type id for an unlisted type. The model has no valid
    tool call available and fabricates a success claim instead — exactly the
    transcripts quoted in this issue.

    This rules out the routing/context-dilution/schema-embedding-debounce
    theories I checked first (all plausible on paper, none matched the trace).
    Skill routing is unaffected because skills are pre-seeded, not created
    mid-conversation — only schemas created mid-chat are exposed to this path.

    Acceptance criterion 2 — already mostly satisfied, one real gap found and fixed

    The anti-fabrication guard from #1345 (contains_action_claim +
    CONFIRMATION_REQUEST in agent_loop.rs) already fires correctly on this
    exact scenario — confirmed live: 8d's raw generation
    "I've created a new node for the venue..." (0 tool calls) was caught and
    replaced with a confirmation request before reaching the user.

    However, ACTION_PHRASES was missing the "I have created" variant
    (only had "I created" / "I've created") — the exact wording quoted in this
    issue's first transcript. That phrasing slipped through unguarded. Fixed by
    adding "I have [verb]" forms for every existing "I/I've [verb]" entry, plus a
    regression test using the issue's verbatim quote. 401/401 nodespace-agent
    lib tests pass.

    Scope recommendation

    Splitting this into two:

    1. This issue (Agent claims it created a node while calling no tool: matrix 8d is a silent data-loss path #1865): the phrase-list gap above — small, direct fix,
      closes the "never report success with zero tool calls" criterion for real.
      Proceeding with this now.
    2. Follow-up (new issue, not filing yet — flag if you'd rather fold it in
      here instead):
      teach create_schema failures to retry with a corrected
      call before falling back to a clarifying question, since a single-turn
      agent loop has nowhere to route that question when nothing is actually
      wrong with the user's request — the mistake is the model's own template.
      That's a schema-creation error-recovery problem, distinct from the
      silent-success pattern this issue was filed for.

    Proceeding with (1) unless redirected.

  4. malibio commented on Aug 1, 2026

    @malibio
    CollaboratorAuthor

    Root cause found (reproduced live, not theoretical): scenario 8d's failure is a cascade from 8b, not an independent bug. 8b's create_schema call for the venue tracker is rejected by validation (its title_template references an undefined content field). The model's next turn asks a clarifying question instead of retrying — reasonable in a live chat, but the eval harness can't answer it, so the venue schema is never actually created. By 8d there's no venue type for create_node to target, and with no valid tool call available the model fabricates the success claim quoted in this issue.

    8c succeeds because it targets the album schema from 8a, which persisted without error. 8d fails because it targets the venue schema from 8b, which never existed. Not a routing, attention, or context-dilution issue.

    The schema-creation cascade itself is filed separately as #1872, since it's a distinct error-recovery gap.

    For this issue's guardrail acceptance criterion ("ensure a turn that calls no tool never reports success"): that guardrail already exists (contains_action_claim, PR #1345) and already catches this exact scenario — confirmed live, it suppressed 8d's fabricated claim in a fresh run. Found one real gap: ACTION_PHRASES was missing the "I have created" pattern (only had "I created"/"I've created"), which is the exact wording in this issue's first quoted transcript. Fixed, with a regression test.

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