[Core] Flag pipelines with no terminal output stage in PipelineConfig.validate() (#6291)

Signed-off-by: m0g3r <87276771+m0g3r@users.noreply.github.com>
This commit is contained in:
m0g3r authored and GitHub committed 2026-08-30 21:33:06 +00:00
1 parent 71748388f8
commit 8fe913e461
3 files changed
+47 -1

No files matched your search

+5
View File
@@ -327,6 +327,11 @@ class PipelineConfig:
errors.append(f"Stage {stage.stage_id} references itself")
if not any(not s.input_sources for s in self.stages):
errors.append("No entry point (stage with empty input_sources)")
# Request completion and client-visible output are both driven by stages
# that declare ``final_output`` (see ``Orchestrator._route_output``). A
# pipeline without one can never emit a result, so every request hangs.
if not any(s.final_output for s in self.stages):
errors.append("No terminal stage (stage with final_output=True)")
return errors