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
- Index documents with multi-level nesting (e.g.,
Vectorless Architecture Guide > Performance).
- Query "How does multi-hop reasoning performance compare?"
- Upon seeing the keyword hint
Performance, the worker executes cd Performance.
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.rs — resolve_target() and resolve_target_extended()
rust/src/agent/prompts.rs — SEARCH STRATEGY section
rust/src/agent/worker/planning.rs — format_keyword_hints()
Description
When the ReasoningIndex's keyword hint points to a deep node (e.g.,
root/Vectorless Architecture Guide/Performance), the LLM attempts to executecd Performancefrom the root. However,resolve_target()only checks the immediate children of the current node, causing the match to fail.Reproduction Steps
Vectorless Architecture Guide > Performance).Performance, the worker executescd Performance.resolve_target("Performance", root)fails because Performance is not a direct child of root.Expected Behavior
resolve_targetshould 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 thefindcommand for navigation rather than directly usingcd.Related Code
rust/src/agent/command.rs—resolve_target()andresolve_target_extended()rust/src/agent/prompts.rs— SEARCH STRATEGY sectionrust/src/agent/worker/planning.rs—format_keyword_hints()