Skip to content

Commit 5911198

Browse files
committed
Remove unnecessary calls
1 parent bdacd99 commit 5911198

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

render_machine/state_machine_config.py

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,23 @@ def get_processing_unit_tests_states(
137137
],
138138
}
139139

140-
def get_postprocessing_conformance_tests_states(self) -> Dict[str, Any]:
140+
def get_postprocessing_conformance_tests_states(self, use_agent: bool = False) -> Dict[str, Any]:
141+
# The conformance-tests summary (SummarizeConformanceTests -> the
142+
# /summarize_finished_conformance_tests endpoint) only feeds the legacy,
143+
# non-agentic conformance-test generator. The agentic renderer never reads
144+
# the summary back (it explores the repo with its own tools), so entering the
145+
# SUMMARY step there is a wasted LLM call per FR. Skip it by starting the
146+
# postprocessing chain at the COMMIT step when the agentic renderer is on;
147+
# the SUMMARY child stays defined (and reachable in legacy mode) but is never
148+
# entered under the agent.
149+
initial_step = (
150+
States.CONFORMANCE_TESTS_READY_FOR_COMMIT.value
151+
if use_agent
152+
else States.CONFORMANCE_TESTS_READY_FOR_SUMMARY.value
153+
)
141154
return {
142155
"name": States.POSTPROCESSING_CONFORMANCE_TESTS.value,
143-
"initial": States.CONFORMANCE_TESTS_READY_FOR_SUMMARY.value,
156+
"initial": initial_step,
144157
"children": [
145158
States.CONFORMANCE_TESTS_READY_FOR_SUMMARY.value,
146159
States.CONFORMANCE_TESTS_READY_FOR_COMMIT.value,
@@ -167,7 +180,7 @@ def get_processing_conformance_tests_states(self, render_context: RenderContext)
167180
self.get_processing_unit_tests_states(
168181
render_context, render_context._on_unit_test_limit_exceeded_in_conformance_tests
169182
),
170-
self.get_postprocessing_conformance_tests_states(),
183+
self.get_postprocessing_conformance_tests_states(use_agent=render_context.use_agent),
171184
],
172185
}
173186

0 commit comments

Comments
 (0)