Skip to content

resolve_query never fires on matrix scenario 6 even when Graph Editing routes first; update_node errors instead #1867

Closed

Description

@malibio

Split out of #1862. That issue proposed this as hypothesis H1 (the routing gate withholding the tool); the three-arm run showed H1 was untestable by that design and rescoped the question here.

Symptom

Agent-matrix scenario 6 ("The 2400 one came back — set it to returned") expects [resolve_query, update_node]. resolve_query never fires — in any of 9 runs, across three builds.

What happens instead varies by build:

Build Tool calls
c98169c5 none at all (3/3 runs)
c98169c5 − schema rule update_node ×2 erroring, then one succeeding (3/3)
a38ea9b4 update_node erroring, or nothing (3/3)

So the model either does nothing, or skips straight to update_node on a target it never resolved — and those calls error.

Why the obvious explanation is not sufficient

#1855 deliberately withholds resolve_query on the fail-open path, because the tool's node_type parameter tells the model to copy an id from a context block fail-open never renders. That is the natural explanation, and #1862 assumed it.

But Graph Editing routes first in 8 of 9 runs (Graph Editing, Schema Creation, Research & Search) — i.e. the scoped, non-fail-open path, where #1855's own commit message says the score gate that permits the tool also renders its guidance. On that path the tool should be offered with its context, and it still never fires.

That leaves at least three live possibilities, and the data here doesn't separate them:

  1. resolve_query is not actually reaching the offered-tools surface even on the scoped path (check toolsOffered in the results JSON).
  2. It is offered, but the model prefers update_node — a guidance/ordering problem, not a gating one.
  3. The gate's score threshold isn't being cleared even though Graph Editing ranks first.

Not a regression

Fails 0/3 in the pre-#1859 build as well, so it predates the #1862 window. #1855 is an ancestor of all three arms tested (git merge-base --is-ancestor 82326f14 a38ea9b4 → YES), which is exactly why the commit-contrast design could not attribute anything to it.

What would actually answer it

A gate-on / gate-off arm — not a commit contrast. Build with resolve_query forced onto the surface regardless of routing score, and compare against stock. That distinguishes possibility 1 from 2/3 directly.

Note also that #1861 (d0eb795a, landed after the #1862 window) rewrote resolve_query's sub-prompt to render field descriptors via render_shape(). That was deliberately excluded from #1862's arms to avoid a fourth variable, so current main has not been measured on this scenario — a stock run of HEAD is worth doing before deeper investigation.

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, 4097 tests passed.

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

    @malibio
    CollaboratorAuthor

    Root cause found and fixed in #1893

    resolve_query was never withheld by the routing gate's design (ADR-038's fail-open exclusion) — it was withheld because find_skills read every skill node's description/tool_whitelist/node_types flat off node.properties, but skill is a core-schema type whose fields NodeService hoists under properties.skill.* on write. Every seeded skill's tool_whitelist decoded empty regardless of retrieval score, so the tool surface silently fell back to the full (resolve_query-excluded) list on every turn while routing still looked functional in logs.

    Answers to this issue's acceptance criteria:

    1. Was resolve_query offered on the scoped path? No — confirmed via toolsOffered in live eval trace files, 0/9 pre-fix runs, including all 8 where Graph Editing routed first.
    2. Withheld vs. offered-but-not-chosen? Withheld — a data bug, not a model preference.
    3. Fix so an indirect-target update resolves before it mutates: partially done. Fix find_skills reading skill node properties flat instead of hoisted properties.skill.* #1893 fixes the tool-availability half — resolve_query now reaches toolsOffered when Graph Editing routes and clears the mutating-skill score bar (verified live, never observed pre-fix). But even now correctly offered, the model still doesn't call it — it fabricates a node id and reports false success instead. That's a separate, model-guidance problem, filed as resolve_query is offered but not called for indirect-target updates (model-guidance gap) #1894.
    4. Scenario 6 passes across repeated runs: not yet — blocked on resolve_query is offered but not called for indirect-target updates (model-guidance gap) #1894.

    Re-scoping this issue to track #1894's resolution rather than closing it, per the PR review's recommendation, so "scenario 6 passes" keeps a tracked owner.

  4. malibio commented on Aug 1, 2026

    @malibio
    CollaboratorAuthor

    Fix merged: #1893 (commit 69a4f90). Leaving this issue open, re-scoped to track #1894 (the remaining model-behavior gap) rather than closing — see the earlier comment for the full acceptance-criteria breakdown.

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