Repository navigation
Trim the lookup request: drop duplicated skill and schema text - #3717
Conversation
Code Review SummaryNet positive and small. Both edits remove text that really is duplicated in the same request, no code path changes, and nothing in the repo asserts the removed text (the only consumer is the FindingsCritical IssuesNone. Suggested Improvements
Nitpicks
VerdictAPPROVE (comment-only, since self-approval is blocked). Merge is the user's call. Suggested follow-up inside this PR if cheap: restore the |
malibio
left a comment
There was a problem hiding this comment.
Verdict: APPROVE with minor improvements; no blockers. Full review in the comment above (run_query path/filters text on the surfaces without search_nodes; measurements consistent but not independent evidence for run_query sufficiency).
Address-review summaryReview verdict was APPROVE with minor improvements. Addressed all four points. Addressed
Not changed
Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: Three description strings restored, one test assertion added, one comment reworded, and the PR text corrected; no logic changed. |
…rten run_query's copy of the filter schema (refs #3704) The Research & Search reference restated search_semantic's parameter descriptions and search_nodes' own summary; run_query sent search_nodes' long filter explanations a second time in the same request. On the local model a lookup turn's first request goes from 6.77K to 6.33K prompt tokens (system 11.5K to 10.3K bytes, tools 16.6K to 15.7K) and its median time to first token from 10.3s to 9.9s. The seven lookup scenarios pass 3 of 3. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Y6xprEu6D5YSLfMUWqZsoj
…very filter description (refs #3704) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Y6xprEu6D5YSLfMUWqZsoj
ee19481 to
2d2b513
Compare
What
A lookup turn's first request is the cost that is left on the local model: its prefill is almost all of the turn's model time. This trims what that request carries where the same thing was already said twice.
search_semantic's parameter descriptions (the schema carries them) orsearch_nodes' own one-line summary.run_querycopiedsearch_nodes' filter item, so the long explanations oftype,value,pathwent out twice in one request. Its copy keeps the structure and the rules a model breaks most, each text standing alone because the surface can offerrun_querywithoutsearch_nodes.Measured (local gemma-4-e4b, lookup turns, first request)
The token cut is deterministic. The time difference is within noise: 5% fewer tokens predicts about half a second, and run-to-run spread is wider than that. Claim the token figure, not a latency one.
The seven lookup scenarios of the grounding eval pass 3 of 3 (21 of 21). None of them calls
run_querywithfilters, so they show no regression from the seed trim and say nothing about the shortened filter text; that text was kept self-sufficient instead, and a registration test pins that every filter field has a description.This is a small cut by design: both edits remove duplicated text only. The first request is still ~6.4K tokens; going further means dropping capability (search_semantic's rarely used parameters, or tools from the lookup surface), which needs its own decision.
refs #3704
🤖 Generated with Claude Code
https://claude.ai/code/session_01Y6xprEu6D5YSLfMUWqZsoj