SEZ9 opened a new issue, #13416: URL: https://github.com/apache/seatunnel/issues/13416
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Bug%22) and found no similar issues. No open PR changes the validation loop in `Orchestrator`. ### What happened A config the engine rejects is still delivered as a successful result, and never reaches the repair step. `seatunnel_cli/agents.py`, the validation loop: ```python for round_num in range(3): validation = self._run_validator(config) # LLM verdict ... if validation.startswith("PASS"): # Phase 4: Dry-run validation (engine-level) dryrun = dry_run_config(config) dryrun_note = "" if dryrun["phase2_check"] and dryrun["phase2_check"] != "PASS": dryrun_note = f"\n\n**Dry-run note:** {dryrun['phase2_check']}" elif dryrun["valid"]: dryrun_note = "\n\n**Dry-run:** PASSED" ... return {"type": "config", "config": config, ...} # delivered either way # only an LLM FAIL gets here fix_result = self._run_fix(config, validation, ...) ``` Two consequences follow from the ordering: 1. `dry_run_config()` — the engine `--check` — runs **after** the LLM validator has already passed the config, and its outcome only becomes a note appended to the explanation. A config that fails the engine check is returned with `"type": "config"` exactly like one that passed. 2. `_run_fix()` is only ever called with the LLM validator's text. The structured engine result (`phase1_local` / `phase2_check` / `phase3_api`) is never passed to repair, so an engine error cannot drive a fix even when it is the only thing that detected the problem. So the deterministic check that *can* be trusted is advisory, while the LLM verdict is the gate. ### What you expected to happen The engine dry-run should gate delivery: - if the engine check fails, the config should enter the repair loop with the engine's error, not be delivered; - if the repair budget is exhausted and the config still fails the engine check, the result should say so plainly rather than being returned as a normal config with a note. ### SeaTunnel Version dev (`a76348f1f9`) ### SeaTunnel Config ```conf Not a job config problem: this is in the CLI's validation loop. ``` ### Running Command ```shell # Any request whose generated config parses but is rejected by the engine, # e.g. a required option that only the engine's OptionRule knows about: sh bin/seatunnel-ai.sh "write the users table from MySQL into Elasticsearch" ``` ### Error Exception ```log **Dry-run note:** <engine --check failure> (config still returned to the user as the delivered result) ``` ### Zeta or Flink or Spark Version Zeta (the dry-run uses the engine's `--check`). ### Java or Scala Version Not applicable (Python CLI). ### Screenshots _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
