Repository navigation
fix(research): accept object-shaped exploration queries and report failures - #531
Closed
tharunsridhar wants to merge 1 commit into
Closed
tharunsridhar wants to merge 1 commit into
tharunsridhar wants to merge 1 commit into
Conversation
…ilures
Exploration query generation declared queries as an array of strings. A
model that returned {query, aspect} objects failed schema validation, and
the swallowed exception turned every query for the file into [] with no
signal in the run stats.
Accept a bare string or an object with a query string, normalize both to
the query list the stage consumes and log each coerced item with its file
at debug level. Payloads with no extractable query are still rejected.
A failed call is now raised after the warning so it is counted in
query_generation_failures, which the early return for 'no queries' now
includes as well. The completion-token budget is unchanged.
test_returns_empty_on_llm_failure is replaced deliberately: it pinned the
silent empty list.
Fixes #515
tharunsridhar
force-pushed
the
fix/exploration-queries-515
branch
3 times, most recently
from
November 17, 2026 13:10
bba1790 to
97b8ad4
Compare
Collaborator
|
This issue was resolved in #532 Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #515
Exploration query generation declared
queriesas an array of strings. A model that answered with{query, aspect}objects failed schema validation, and the swallowed exception turned every query for that file into[]with nothing in the run stats.querystring (anyOf). Both are normalised to the list of strings the stage already consumes, and each coerced item is logged with its file at debug level. Payloads with no extractable query are still rejected.query_generation_failures. The early return for "no queries" now includes that counter too.test_returns_empty_on_llm_failureis replaced on purpose: it pinned the silent empty list this issue asks to remove. New tests cover string, object, mixed and unusable payloads and the failure accounting. 265 tests undertests/unit/researchpass.