ISSUE DESCRIPTION [Filters] Backend do not accept conditional groups Describe the issue…
- User
ISSUE DESCRIPTION
[Filters] Backend do not accept conditional groups
Describe the issue
HTTP 400 is returned at a simple conditional group filter query.
Reproduction
- Navigate to the Executions view
- Add a new conditional group to the default set of filters
- Keep the
ORoperator - Add a new filer - e.g. labels
foo:bar - HTTP 400 response with:
Invalid query filters: Provided query filters are invalid: Field TIME_RANGE is not supported for resource EXECUTION. Supported fields are QUERY, SCOPE, FLOW_ID, START_DATE, END_DATE, STATE, LABELS, TRIGGER_EXECUTION_ID, CHILD_FILTER, NAMESPACE, KIND, PARENT_ID
Environment
- Kestra Version: develop
Interface
No new interfaces are introduced.
ADDITIONAL ADVICE
Since you are given a git repository, you can use git commands to simplify your work. For example, if you made a mistake and want to revert your changes, you can use
git checkout <file>to restore the file to its original state. You can also reset all changes in the repository usinggit reset --hardcommand. Additionally, you can usegit stashandgit stash popto temporarily save your changes and restore them later. Finally, you can see the changes that you've made (which will be submitted when you callsubmit) usinggit statusorgit diffcommands. However you don't need to usegit addorgit commitbefore submitting your changes. In fact,submitonly submits currently unstaged changes because it usesgit diffto get the changes that need to be submitted.CHECKLIST
Before submitting your solution, please go over the following checklist and make sure you've done everything:
- If an error was reported in the issue description, I have successfully reproduced it.
- If an error was reported in the issue description, I have confirmed that my fix resolves the error.
- I have thought about edge cases and made sure my fix handles them as well.
- I have run existing tests in the repository that might have been affected by the change I made and confirmed that they pass. I want you to list every bullet from this checklist and write your reasoning for why you think you did it or didn't need to.
Assistant
Let me explore the repository structure to understand the codebase and find relevant files related to the issue.
Assistant
This is a Java project (Kestra). The issue is about conditional group filters - when adding a conditional group (with OR operator), the backend returns HTTP 400 with an error about TIME_RANGE field not being supported. Let me search for relevant files.
Assistant
Let me look at the QueryFilter class and understand the structure of filters and conditional groups.
Assistant
Now I understand the structure. The
QueryFiltercan be a leaf (field + operation) or a node (logical + children). The validation logic incollectValidationErrorshandles nodes by recursing into children. Let me look at where the validation happens and where the error message comes from. The error message says "Field TIME_RANGE is not supported for resource EXECUTION". This means the validation is happening somewhere, but the TIME_RANGE field is being included in the filter. Let me look at the error message more closely.The error message format "Provided query filters are invalid: Field TIME_RANGE is not supported for resource EXECUTION. Supported fields are..." - let me find where "Provided query filters are invalid" is thrown.
Assistant
So the validation does handle nodes. But the error mentions TIME_RANGE. Let me understand the flow. The issue is that when a conditional group (node) is added, the backend receives filters. Let me look at how filters are processed in the ExecutionController and how the validation happens. Let me trace the flow. Let me look at the ExecutionController to find the search endpoint.
Assistant
Now let me trace the flow. The error mentions TIME_RANGE, but the user adds a conditional group with OR and a labels foo:bar filter. The default set of filters probably includes a TIME_RANGE filter. When adding a conditional group, the frontend probably wraps the existing filters into a group, or the issue is that the validation isn't happening against the right resource.
Actually, wait. The error says TIME_RANGE is not supported for EXECUTION. Looking at the supported fields for EXECUTION: QUERY, SCOPE, FLOW_ID, START_DATE, END_DATE, STATE, LABELS, TRIGGER_EXECUTION_ID, CHILD_FILTER, NAMESPACE, KIND, PARENT_ID
TIME_RANGE is indeed not in there. But TIME_RANGE is part of the default filters (probably for the time range picker). So when no conditional group is present, the TIME_RANGE filter works fine. But when a conditional group is added, the validation fails on TIME_RANGE.
Wait, but the validation in
collectValidationErrorschecks both nodes and leaves. For a leaf, it checksresource.supportedField().contains(filter.field()). TIME_RANGE is not in EXECUTION's supported fields. So why does it work without a conditional group?Let me look at where
validateQueryFiltersis called and where the TIME_RANGE filter is handled specially.Assistant
So the
filtermethod callsvalidateQueryFilters. The validation logic incollectValidationErrorshandles nodes by recursing. So for a node, it recurses into children. But the issue is that TIME_RANGE is the default filter that is added at the top level, NOT inside the conditional group. So when the user adds a conditional group, the default TIME_RANGE filter is still at the top level (as a leaf).Wait, but the validation checks each leaf. If TIME_RANGE is not in EXECUTION's supported fields, then validation should always fail, even without a conditional group. Unless... the validation only runs when there's a conditional group?
Let me look more carefully. Maybe the
filtermethod is the JDBC path. But the ExecutionController might use a different path. Let me look at the ExecutionController search endpoint.Assistant
Let me look at the QueryFilterUtils.replaceTimeRangeWithComputedDateFilter method.
Assistant
Let me look at TimeLineSearch.extractFrom to understand how it processes the filters and whether it handles conditional groups (nodes).
Assistant
Now I see the issue. In
TimeLineSearch.extractFrom, it iterates overfiltersand accessesfilter.field(). For a conditional group (node), is . There's a check which skips nodes. So that's fine.Assistant
Let me look at the frontend filter handling to understand the structure sent to the backend.
Assistant
Let me look at the filter component to understand how conditional groups are formed and sent.
Assistant
Let me search for the filter component that has the conditional group feature. It might be in a different naming.
Assistant
The frontend might use a design system component. Let me search for "Filter" component in the design system or look at how filters are submitted. Let me look at the executions view filter setup. Actually, maybe the UI is in the
@kestra-io/design-systempackage. Let me focus on the backend instead, since the issue is an HTTP 400 from the backend validation.The key question: when the user adds a conditional group, what's the structure of filters sent to the backend? The default filters include TIME_RANGE. Let me look at the executionFilter.ts configuration.
Assistant
The frontend uses the design system's Filter component. The conditional group is a feature of the design system filter. Let me check the design system package to see how conditional groups are structured when sent to backend. Let me look in node_modules.
Assistant
The node_modules aren't installed. Let me focus on the backend, which is where the HTTP 400 is happening. Let me reproduce the issue first by examining the validation flow more carefully.
The search endpoint (line 250):
QueryFilterUtils.replaceTimeRangeWithComputedDateFilter(filters, dateFilter).Let me look at the search endpoint more closely (lines 240-280).
Assistant
Assistant
So the binder does parse conditional groups into nested QueryFilter nodes. So the structure can have nested nodes. The TIME_RANGE could be inside a group.
Now let me look at the test for the binder to understand the expected structure with conditional groups.
Assistant
Now let me look at how the frontend sends the conditional group with the default filters. Let me look at how the executions view submits filters. Let me search for where the search query is built with filters in the executions list.
Actually, the key insight is clear. Let me reproduce the issue with a test. Let me write a quick test to verify that when a TIME_RANGE is inside a conditional group, the validation fails.
But first, let me check the QueryFilterFormatBinder test for a case with timeRange inside an OR group. Let me search.
Assistant
Now let me understand the full picture. Let me look at the execution repository
findmethod to see how it processes the filters and wherefilter()is called.Assistant
Assistant
The frontend probably uses the design system Filter component, which builds the filters query string with the conditional groups. Let me look at how the design system builds the query string. Let me search for where the filter component transforms its state to query params. Since node_modules isn't installed, let me check git for the design system or look at the build output.
Actually, this is a backend issue primarily. Let me focus on reproducing and fixing the backend. The frontend sends
filters[or][0][timeRange][EQUALS]=PT168H&filters[or][0][labels][EQUALS][foo]=baror similar when a conditional group wraps everything.Actually, let me reconsider the issue scenario. The user "adds a new conditional group to the default set of filters". This means the default filters are at the top level, and a new empty conditional group is added. Then they add labels foo:bar INSIDE the conditional group. So the structure is:
Top level:
- TIME_RANGE (default)
- scope (default)
Assistant
Now let me reproduce. The scenario: TIME_RANGE inside a conditional group. Let me build the query URL that simulates the conditional group with the default filters. Let me think about what the frontend sends.
When the design system Filter has a conditional group (OR), and within it there's a TIME_RANGE and labels, the URL would be:
filters[or][0][timeRange][EQUALS]=PT168H&filters[or][0][labels][EQUALS][foo]=barBut actually, the issue says "Add a new conditional group to the default set of filters" and "Add a new filter - e.g. labels foo:bar". So the conditional group only contains labels. But the default TIME_RANGE is still there. Let me reconsider.
Hmm, wait. Let me re-read: "Add a new conditional group to the default set of filters. Keep the OR operator. Add a new filter - e.g. labels foo:bar."
So the conditional group has OR operator and contains labels foo:bar. The default filters (TIME_RANGE, scope, state) remain at the top level.
In that case, replaces the top-level TIME_RANGE → START_DATE. The OR group with labels passes through. Validation:
Assistant
Assistant
Now let me write a reproduction test. Let me create a quick test that simulates the conditional group scenario and check that the validation fails. I'll add it to the QueryFilterUtilsTest temporarily.
Actually, let me reproduce with a standalone approach. Let me write the reproduction test:
@Test void timeRangeInsideConditionalGroup_isReplaced() { QueryFilter labels = QueryFilter.builder() .field(QueryFilter.Field.LABELS) .operation(QueryFilter.Op.EQUALS) .value(java.util.Map.of("foo", "bar")) .build(); QueryFilter timeRange = QueryFilter.builder() .field(QueryFilter.Field.TIME_RANGE) .operation(QueryFilter.Op.EQUALS) .value("PT24H") .build(); QueryFilter orGroup = QueryFilter.builder() .logical(QueryFilter.Logical.OR) .children(List.of(timeRange, labels)) .build(); var filters = List.of(orGroup); var result = QueryFilterUtils.replaceTimeRangeWithComputedDateFilter(filters, DateFilter.START_DATE); // Now validate QueryFilter.validateQueryFilters(result, QueryFilter.Resource.EXECUTION); }This should fail with the validation error currently. Let me write this test and run it.
Let me check how to run a single test in this gradle project.
Assistant
Let me first add a reproduction test to the QueryFilterUtilsTest, run it, confirm the failure, then implement the fix.
Actually, I shouldn't add tests that I'll leave. But I can add a temporary test, run it, then remove it. The instructions say not to add tests to the repo, but I can create a temporary test and remove it. Actually, the existing test file is fine to temporarily modify. But to be safe, let me create a separate temporary test file.
Let me create a temporary test file in the webserver test directory.
Assistant
The test failed as expected, confirming the bug. Let me look at the actual failure message.
Assistant
Assistant
The design system is in the repo (ui/packages/design-system). Let me look at how the filter builds the query string with conditional groups. Let me look at the composables for filter actions and route sync.
Assistant
Assistant
Assistant
Let me look at the
getConditionOnFieldfor START_DATE/END_DATE to understand how it processes a START_DATE inside a group. Let me look at the beginning of getConditionOnField.Assistant
Assistant
Assistant
Let me look at the routeDecoder to understand how the topLogical is parsed back from the route, and confirm the structure. Let me look at how a top-level OR with multiple units is decoded. Actually, this is the design system concern.
Assistant
OK, this confirms the structure. Now let me implement the backend fix. Let me focus on the backend.
Let me re-examine the actual frontend encoding once more to be sure about the structure. The key question: when there's a wrapper group at the top level alongside a default leaf group, both get the
filters[or][N]prefix (orfilters[and][N]if topLogical is AND). So the binder wraps them all in a top-level node. The timeRange (default) is inside that top-level node.Wait, but what if topLogical is AND (the more sensible default for the executions view)? Then the URL is
filters[and][0][timeRange]...&filters[and][1][or][0][labels].... The binder produces AND(timeRange, OR(labels)). The timeRange is inside the top-level AND node. My fix handles this too.So regardless of AND/OR, the timeRange is inside a node. My recursive fix handles it.
Now, let me make sure I'm not missing something. Is topLogical really OR by default? Let me check if the executions view sets it. Actually, this doesn't matter for the backend fix. Let me just implement the recursive replacement.
Let me now write the fix. I'll edit
TimeLineSearch.extractFromto recurse, andQueryFilterUtilsto recurse.Let me start with TimeLineSearch.java.
Assistant
Now let me edit
TimeLineSearch.extractFromto recurse into children. I'll change the loop to handle nodes by recursing.Assistant
Let me just rewrite the TimeLineSearch.extractFrom method properly using the edit tool. Let me open the file.
Assistant
Now let me edit
QueryFilterUtils.javato makeupdateFilters,updateFiltersForEndDate, andrewriteTriggerDateFiltersrecursive. Let me open the file.Assistant
Assistant
Now let me update
rewriteTriggerDateFilters. Let me scroll to it.Assistant
Now there's a subtle issue. In
createUpdatedDateFilter, it callsisTimeRangeFilter(filter). For a node... no,createUpdatedDateFilteris only called with leaf filters (frommapStartDateFilter/mapEndDateFilterafter the isNode check, or with null). So no NPE. But wait,createUpdatedDateFilteris also called in the!hasDateFilterbranch withnullfilter: . In : . If filter is null, the first is false, so it returns . Good, no NPE.Assistant
So
findDistinctFieldValuescallsfilter(filters, null, resource)which callsvalidateQueryFilters. So if the distinct-field-values endpoint is called with a TIME_RANGE inside a group (without the replacement), it would also fail. But that endpoint doesn't callreplaceTimeRangeWithComputedDateFilter. Hmm. So even at top level, a TIME_RANGE sent tofindDistinctFieldValueswould fail validation? Let me check the original behavior.Actually wait, the distinct-field-values endpoint is used for autocomplete when you type in a filter field. The frontend sends the current filters. If the current filters include a TIME_RANGE (top-level), then validation in
findDistinctFieldValueswould fail because TIME_RANGE is not supported for EXECUTION. But this endpoint presumably worked before for top-level TIME_RANGE...Assistant
The reproduction test now passes. Now let me think about the actual frontend scenario more thoroughly. Let me extend my ReproTest to also test:
- The exact URL encoding the frontend produces (via the binder).
- END_DATE mode.
- START_OR_END_DATE mode.
- Nested groups.
- Trigger date filters.
Let me also test that the top-level TIME_RANGE still works (backward compat) and that the validation error message for an unsupported field inside a group is still caught (e.g., TRIGGER_ID inside a group).
Let me write a more comprehensive reproduction to verify the actual frontend URL. Let me construct the URL the frontend would send and run it through the binder + replaceTimeRange + validate.
Assistant
There's a compilation error. Let me see the actual error.
Assistant
getQueryFiltersis package-private (VisibleForTesting) andReproTestis in a different package (io.kestra.webserver.utilsvsio.kestra.webserver.converters). Let me just move the binder-based test out, or use a different approach. Let me simplify: I'll drop the binder-based test and just construct the filters manually (mimicking the binder output). Actually, let me just place the parse helper by using the binder via the same package... that's complicated. Let me simplify the test to construct the structure that the binder produces directly.The binder, for the URL
filters[or][0][timeRange][EQUALS]=PT168H&filters[or][1][or][0][labels][EQUALS][foo]=bar, produces OR(timeRange, OR(labels)). Let me construct that directly.Actually, I traced earlier that it produces OR(timeRange, OR(labels)). Let me just build that structure manually. Let me remove the binder-based test and the
parsemethod.Assistant
All 7 tests pass. Now let me also verify the actual binder produces the structure I assumed. Let me write a quick test in the converters package (where getQueryFilters is accessible) to confirm the binder produces OR(timeRange, OR(labels)) for the actual frontend URL. Actually, this is for my own verification. Let me put it in the converters test dir temporarily.
Assistant
The binder output matches my assumption exactly:
[OR([TIME_RANGE(EQUALS, PT168H), OR([LABELS(EQUALS, {foo=bar})])])]So the structure is OR(timeRange, OR(labels)). My fix correctly handles this and validation passes.
Now let me also run an end-to-end test via the actual HTTP endpoint to confirm the HTTP 400 is gone. Let me look at the ExecutionControllerTest to see if I can run a test that uses the /search endpoint with conditional groups. Actually, I can't add tests to the repo. But I can run the existing ExecutionControllerTest to make sure nothing breaks. But that test requires a full micronaut context and H2. Let me check if there's a simpler way.
Actually, let me run the existing tests for QueryFilterUtils and TimeLineSearch and QueryFilter to make sure I didn't break anything.
Let me remove my temp test files first, then run the relevant existing tests.
Actually, let me keep the temp tests for now while I run the existing ones to confirm no regressions, then remove them before submitting.
Let me run the existing tests:
- :webserver: QueryFilterUtilsTest, TimeLineSearchTest
- :core: QueryFilterTest
- :jdbc: AbstractJdbcRepositoryTest
Assistant
All existing tests pass. Now let me run the JDBC repository test and the binder test to make sure nothing broke there.
Assistant
The binder test passes (15 tests). The AbstractJdbcRepositoryTest is in the
:jdbcmodule, not:jdbc-h2. Let me find it.Assistant
This test is in the
:jdbcmodule. It's a pure unit test (extends AbstractJdbcRepository directly). Let me run it with the:jdbcmodule test.Assistant
Assistant
Good. Now let me also check the
Searchabletest that validates operations, since there's aSearchableTest.javamentioned earlier. Let me check if my changes affect theSearchableinterface or the validation flow there. Actually, theSearchableTestis about validating operations. Let me check it doesn't reference my changed methods.Actually, let me look at the
Searchableinterface andQueryFilterUtilsusage to ensure I haven't missed a place where conditional groups need handling. Let me search for other callers ofreplaceTimeRangeorTimeLineSearch.extractFromorupdateFilters.Actually, the main concern is whether there are OTHER endpoints that process TIME_RANGE without the recursive replacement. Let me search for all callers of
replaceTimeRangeWithComputedDateFilter,replaceTimeRangeWithComputedStartDateFilter, andrewriteTriggerDateFilters.Assistant
All callers go through
replaceTimeRangeWithComputedDateFilter,replaceTimeRangeWithComputedStartDateFilter,rewriteTriggerDateFilters, orTimeLineSearch.extractFrom. My fix handles all of these recursively now:replaceTimeRangeWithComputedDateFilter→updateFilters/updateFiltersForEndDate(recursive now).replaceTimeRangeWithComputedStartDateFilter→replaceTimeRangeWithComputedDateFilter.rewriteTriggerDateFilters(recursive now).TimeLineSearch.extractFrom(recursive now).
Assistant
Assistant
All passing. Now let me also run the LogController and TriggerController tests? Those are integration tests requiring context. Let me check if there are unit tests for triggers with date filters. Actually, the trigger date filter rewrite is tested in
AbstractTriggerRepositoryTestwhich uses TIME_RANGE. Let me check the trigger test.Let me look at the existing trigger repository tests that use TIME_RANGE (line 126 in AbstractTriggerRepositoryTest). Let me check if my change to rewriteTriggerDateFilters affects them. The test at line 126 uses
QueryFilter.builder().field(Field.TIME_RANGE).value("test").operation(Op.EQUALS).build(). Let me look at that test.Assistant
Assistant
Good, the temp files are removed (grep returned non-zero because no matches). Now let me run the ExecutionControllerTest badQueryFilters to confirm the controller validation path still works. Let me check the test class setup first.
Assistant
The
badQueryFilterstest passes (the controller still returns 400 for unsupported fields). Now let me run a broader set of the execution search tests to confirm the search endpoint works. Let me look for a test that does a successful search with filters. Let me look at the ExecutionControllerTest for search-related tests.Actually, let me run a broader ExecutionControllerTest to be sure nothing broke. But that may take a while. Let me run the full ExecutionControllerTest.
Actually, let me be selective. Let me look for tests in ExecutionControllerTest that test the search endpoint with filters (not just badQueryFilters). Let me grep.
Assistant
There's a search test around line 361-417 (distinct-field-values) and badQueryFilters at 446. Let me look at the test method that uses
/searchwith filters successfully. Let me look around line 340-420.Assistant
Let me run these distinct-field-values tests to confirm the controller path works with filters and conditional groups. Let me run the full ExecutionControllerTest - it's about 7s per test with the context. Let me run all tests in ExecutionControllerTest to confirm no regression (since they exercise the search and distinct-field-values endpoints which use my changed code).
Actually, the full ExecutionControllerTest might be large and slow. Let me run the full test class to be thorough. Let me check the time.
Assistant
All 23 ExecutionControllerTest tests pass. Now let me also run the LogController tests and TriggerController tests since they use my changed methods (replaceTimeRangeWithComputedStartDateFilter and rewriteTriggerDateFilters). Let me check if these tests exist and run them.
Let me look for TriggerControllerTest and LogControllerTest.
Assistant
All LogController (27) and TriggerController (18) tests pass.
Now let me also run the DashboardControllerTest since it uses
TimeLineSearch.extractFrom. Let me run it.Assistant
All tests pass. Now let me also run the trigger repository tests (AbstractTriggerRepositoryTest) which are run by the jdbc-h2 module. Let me check which module runs them.
Actually, the AbstractTriggerRepositoryTest is in core, and it's an abstract class extended by jdbc-h2 tests. Let me run the jdbc-h2 trigger tests to confirm no regression with the trigger date filters. But those might require a running H2. Let me check.
Actually, my change to
rewriteTriggerDateFiltersis in the controller layer (QueryFilterUtils). The repositoryfindvalidation is unchanged. The TriggerControllerTest (which uses the controller) already passed. So the trigger path is covered.Let me now do a final review of my changes with git diff.
Assistant
Assistant
Assistant
Assistant
Only my 2 source files are modified, no temp test files left.
Let me do one final review of the complete QueryFilterUtils.java to ensure correctness.
Assistant
The code looks good. The
createUpdatedDateFilterchecksfilter != nullbefore callingisTimeRangeFilter(filter), so the null case (default added) is safe.Now, let me reconsider one potential issue: in
mapStartDateFilter, when a leaf START_DATE is processed, it callscreateUpdatedStartDateFilter(filter, resolvedStartDate)→createUpdatedDateFilter(filter, ..., START_DATE). Inside,filter != null(it's a START_DATE leaf), so it checksisTimeRangeFilter(filter)→ false → usesfilter.operation(). So the START_DATE keeps its original operation. Good - this preserves the original behavior (START_DATE → START_DATE with same op).Wait, but there's a subtle behavior difference. Originally,
updateFiltersfor a top-level START_DATE leaf:isStartDateFilter(filter) || isTimeRangeFilter(filter)→ true →createUpdatedStartDateFilter(filter, resolvedStartDate). Same as mymapStartDateFilter. So the behavior is identical for leaves. Good.Now let me verify the whole flow once more by re-reading the final file completely.
Assistant
Assistant
Now let me re-run the reproduction tests (recreate them temporarily) plus the existing tests to make sure everything still passes after the sed edit. Actually, let me just re-run the existing QueryFilterUtilsTest, TimeLineSearchTest, and my repro scenario via a quick temp test.
Let me re-add a quick repro test to confirm the fix still works after the sed edit.
Assistant
All pass. Let me remove the temp repro testnow.
Assistant
Let me do a final review of both files to ensure correctness.
Assistant
Both files look correct. Let me do a final compile + the key existing tests one more time to be 100% sure, then submit.
Actually, I've already verified compilation is clean and the relevant tests pass. Let me run the full webserver utils + converters + core QueryFilterTest + jdbc AbstractJdbcRepositoryTest once more in a single command to confirm everything is green together.
Actually I already ran all those. Let me just do a final compile check and then submit.
Let me also reconsider: the
collectDatePartsfor a node checksfilter.children() != null. For a valid node, children is non-null (constructor enforces non-empty). But the defensive check is harmless. Good.One more consideration: the
default -> {}in the switch. The original switch only had 3 cases (START_DATE, END_DATE, TIME_RANGE) and no default. With the recursive approach, a leaf could be any field (e.g., LABELS). The original code's switch would fall through silently for other fields (since Java switch with arrow syntax and no default just does nothing for non-matching cases). My explicitdefault -> {}makes it clear. Both are equivalent. Good.I'm confident the fix is correct and complete. Let me do a final full compile of the webserver module (main + test) to be safe, then submit.
Assistant
Everything compiles cleanly. Let me summarize the changes and the checklist before submitting.
Summary of the root cause: The issue: When a conditional group (AND/OR) is added to filters in the Executions view, the default
TIME_RANGEfilter ends up nested inside the conditional group node. The backend'sQueryFilterUtils.replaceTimeRangeWithComputedDateFilterandTimeLineSearch.extractFromonly processed top-level filters, so the nestedTIME_RANGEwas never converted to aSTART_DATE/END_DATE. TheTIME_RANGEfield then reachedQueryFilter.validateQueryFilters, which rejects it (TIME_RANGE is not in EXECUTION's supported fields), returning HTTP 400.The fix: Made the date-filter resolution recursive so it descends into conditional groups (nodes):
TimeLineSearch.extractFrom→collectDatePartsrecurses into node children to find START_DATE/END_DATE/TIME_RANGE anywhere.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.