Skip to content

Bug: Worker Fails to cd to Deep Node Because resolve_target Only Matches Immediate Children #88

@zTgx

Description

@zTgx

Description

When the ReasoningIndex's keyword hint points to a deep node (e.g., root/Vectorless Architecture Guide/Performance), the LLM attempts to execute cd Performance from the root. However, resolve_target() only checks the immediate children of the current node, causing the match to fail.

Reproduction Steps

  1. Index documents with multi-level nesting (e.g., Vectorless Architecture Guide > Performance).
  2. Query "How does multi-hop reasoning performance compare?"
  3. Upon seeing the keyword hint Performance, the worker executes cd Performance.
  4. resolve_target("Performance", root) fails because Performance is not a direct child of root.

Expected Behavior

resolve_target should support deep lookups (via NavigationIndex or find path) for nodes that appear in keyword hints. Alternatively, the worker prompt should place stronger emphasis on using the find command for navigation rather than directly using cd.

Related Code

  • rust/src/agent/command.rsresolve_target() and resolve_target_extended()
  • rust/src/agent/prompts.rs — SEARCH STRATEGY section
  • rust/src/agent/worker/planning.rsformat_keyword_hints()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions