Repository navigation
[Test][CLI] Add opt-in paraphrase benchmark suite - #12241
Conversation
Signed-off-by: Goutam Adwant <workwithgoutam@gmail.com>
DanielLeens
left a comment
There was a problem hiding this comment.
What Problem Does This PR Solve?
The seatunnel-cli AI benchmark harness measures how accurately different LLMs generate SeaTunnel job configs from natural-language prompts, using a fixed 100-task corpus. That corpus has always used one fixed wording per task, so it can't tell whether a model's accuracy is sensitive to how a request happens to be phrased versus the underlying task difficulty.
This PR adds a second, strictly opt-in "paraphrase" suite: 12 alternative-wording variants of 12 existing baseline tasks (routing, CDC prerequisites, connector options/mode selection, including one Chinese-language prompt). Each variant inherits its parent task's assertions and execution fixtures verbatim and is pinned to the parent by a SHA-256 fingerprint, so a change to the parent task is caught instead of silently drifting the paraphrase's expected behavior. The default 100-task suite and its results are untouched.
A Simple Example
Before this PR:
python -m benchmark.runner --provider openai --model gpt-4o --suite paraphrase
# argparse: error: argument --suite: invalid choice (flag did not exist)After this PR:
python -m benchmark.runner --provider openai --model gpt-4o --suite paraphrase
# Task suite: paraphrase (public alternative wording)
# Running 12 tasks × 1 models × 1 trial(s), gates: l1 → l2 → l3, max repairs: 2Omitting --suite (or passing --suite baseline, the default) runs the same 100 tasks as before, byte-identical in content and ordering.
1. Code Change Review
1.1 Core Logic Analysis
Files changed: seatunnel-cli/benchmark/paraphrases.py (new), seatunnel-cli/benchmark/runner.py (load_tasks, run_benchmark, main), seatunnel-cli/benchmark/tasks/paraphrase.json (new, 12 variants), seatunnel-cli/tests/test_benchmark_paraphrases.py (new), docs.
benchmark/paraphrases.py::load_paraphrases(parents):
- Loads
tasks/paraphrase.json, rejects anything that isn't a nonempty list under a"paraphrases"key. - Each variant record must contain exactly
parent_id,parent_sha256,prompt— no other keys are accepted (set(variant) != {...}check), so a variant can't smuggle in anexpect/executionoverride. - Recomputes
sha256(json.dumps(parent, sort_keys=True, ...))and compares it to the storedparent_sha256; any parent edit invalidates the pin and raisesValueError(f"...review and repin {parent_id}"). - Rejects a paraphrase whose wording equals the parent's (guards against a no-op "variant").
- Builds the final task via
copy.deepcopy(parent)+task.update(variant, id=parent_id + "_p1"), so the variant carries every parent field (assertions, execution fixtures, tier, category, etc.) plusparent_id/parent_sha256and its ownprompt/id.
benchmark/runner.py::load_tasks(tiers, task_ids=None, suite="baseline"):
suite="baseline"(default) path is untouched byte-for-byte from before this PR — only the function signature grew a new optional parameter.suite="paraphrase"loads all baseline tasks across all three tiers first (load_tasks(list(TIER_FILES)), ignoring the caller'stiersfilter for this inner call), runs them throughload_paraphrases, and only then filters by the requestedtiers. This is necessary because a variant's fingerprint is computed against the full parent record regardless of which tier the caller asked for.- Validates
tiers/task_idsstrictly (must be non-empty, distinct, in-range) before returning.
main() was reordered so tasks = load_tasks(...) runs, and any ValueError/OSError from it is turned into parser.error(...) (exit code 2, no traceback), before build_models_from_args(args) — which is where provider credentials get pushed into environment variables and, for --models <file>, a JSON file gets parsed. The net effect: a bad --suite/--tasks/--tiers selection now fails before any provider/credential setup happens, matching the PR's documented claim.
Key findings:
- I independently recomputed the SHA-256 fingerprint for all 12
parent_ids inparaphrase.jsonagainst the currenttier1_simple.json/tier2_medium.json/tier3_complex.jsoncontents — all 12 match exactly (verified with a standalone script, not the runner's own code, to avoid circular validation). - The doc's claimed variant breakdown (4 routing / 4 CDC / 4 connector-option-mode, 2/6/4 tier split, 1 Chinese prompt) matches the actual
paraphrase.jsoncontents and the new test's assertions (test_selection_is_opt_in_and_tier_filtered). run_benchmark's newtask_entry.update(parent_id=..., parent_sha256=...)is purely additive — it only runsif "parent_id" in task, so baseline task entries inresults.jsonare unchanged, andcompare.py/report.pyonly ever readtask_sha256, never touching the new fields, so old and new result files stay mutually comparable through the existing code path.- The reordering in
main()doesn't change baseline behavior: the baseline branch ofload_tasksnever raisesValueError(an unmatched--tasksfilter silently returns[], same as before), soparser.erroris unreachable for baseline and the pre-existing "No tasks selected." +sys.exit(1)path afterbuild_models_from_argsis preserved exactly.
Runtime path (this is Python CLI tooling in seatunnel-cli/benchmark, not seatunnel-engine/seatunnel-api — it drives the CLI's Orchestrator as a black box and never touches job scheduling, checkpointing, or serialization, so I'm describing the harness's own pipeline rather than the engine runtime):
argparse (main)
-> load_tasks(tiers, task_ids, suite) # fails closed here for bad selections
baseline: read tier{1,2,3}.json verbatim
paraphrase: load ALL baseline tasks -> load_paraphrases() -> fingerprint-check -> filter by tier/id
-> build_models_from_args(args) # provider/credential setup, now runs AFTER task validation
-> run_benchmark(models, tasks, ...)
-> run_task_with_repairs() (unchanged) -> evaluate_layers()/score_task() (unchanged)
-> task_entry built; parent_id/parent_sha256 appended iff present
-> write_reports() / compare.py # unchanged, read task_sha256 only
I confirmed via the new tests that a paraphrase task flows through the exact same score_task/run_task_with_repairs machinery as a baseline task (test_same_config_receives_same_verdict_for_every_family, test_only_variant_wording_reaches_generation_and_skipped_gate_is_not_pass) — there's no parallel/duplicated scoring path for variants, which is the main risk in this kind of "inherit fixtures" design and it's handled correctly.
1.2 Compatibility Impact
Fully backward compatible.
--suitedefaults to"baseline"; every existing invocation without--suitebehaves identically.test_baseline_stays_identical_and_does_not_load_paraphrasesasserts the 100 baseline tasks are byte-identical (including a fingerprint comparison) to what the un-suitedload_tasks([1,2,3])produces.- The two new fields written into
results.json(parent_id,parent_sha256) are additive and only appear on paraphrase-suite entries;compare.pyandreport.pydon't inspect them, so old result files remain comparable against new ones with no format migration needed. - No config option, public API, or CLI flag was renamed or had its default changed.
1.3 Performance / Side-Effect Analysis
Negligible. This is offline JSON parsing and SHA-256 hashing over ~100 small dict records — no network I/O, no locking, no concurrency, no retries introduced. The one added cost on the paraphrase path is loading all three tier files regardless of the requested --tiers (needed for fingerprinting against the full parent record); at 100 tasks total this is microseconds and doesn't affect the baseline suite's cost at all.
1.4 Error Handling and Logging
All validation failures raise ValueError with a specific, actionable message (unknown parent, changed parent fingerprint, duplicate/empty/invalid selection, malformed corpus) and are surfaced via parser.error() → exit code 2, no stack trace leaked to the user, no exception swallowed. No credentials or secrets are logged; build_models_from_args pushes the API key into an env var but that's pre-existing, unchanged behavior.
No blocking issues found in this section. Two low-severity nits raised as formal issues below.
2. Code Quality Assessment
2.1 Coding Standards
Issue 1: main() reordering has no explanatory comment — Location: seatunnel-cli/benchmark/runner.py:587-590 — The swap of load_tasks(...) ahead of build_models_from_args(args) is a deliberate, documented (in the PR description and docs) behavior change — "fail before provider setup" — but there's no inline comment at the call site saying so. A future edit could easily flip the order back "to match the old code shape" without realizing it silently reintroduces provider-setup-before-validation. — Potential risk: silent regression of the fail-fast guarantee in a later refactor. — Suggested improvement: a one-line comment above the try: block, e.g. "Validate task selection before touching provider credentials/env, so a bad --suite/--tasks value never triggers credential setup." — Severity: Low — Raised by another reviewer: No.
Issue 2: black --check was only run on the new files, and runner.py is not black-clean after this PR's edits — Location: seatunnel-cli/benchmark/runner.py:70-71, 79-91 (the new load_tasks signature and the paraphrase-branch conditionals) — I confirmed runner.py was already not black-compliant on dev before this PR (pre-existing debt, not introduced here), but the new code added by this PR also doesn't match black's formatting (multi-line function signature, boolean-expression wrapping). The PR description's black --check command deliberately scopes to paraphrases.py and the new test file only, so this wasn't overlooked so much as out of scope by design. — Potential risk: none functionally; purely cosmetic drift, same as the file's pre-existing state. — Suggested improvement: run python -m black benchmark/runner.py while touching it, or leave as-is if the project doesn't enforce black on runner.py today (worth confirming there's no CI gate that will catch this on a future PR). — Severity: Low — Raised by another reviewer: No.
Everything else is well-documented: paraphrases.py has a clear module docstring and inline comments explaining the fingerprint/repin contract, and the new test file is exceptionally well-organized with descriptive test names that double as documentation.
2.2 Test Coverage and Test Stability
The 52 new offline tests in tests/test_benchmark_paraphrases.py are thorough and well-targeted:
- Round-trips the byte-identical-baseline guarantee, aliasing safety of
load_paraphrases(mutating a returned task must not mutate the shared parent — verified attest_variants_inherit_the_complete_task_without_aliasing:121-123), every rejection path (unknown/duplicate parent, changed fingerprint for each individual field, malformed/empty corpus, identical wording), the "fails before provider setup" CLI-level contract (including a realsubprocess.run(..., "-S", ...)invocation asserting exit code 2 with no third-party imports at all, which is a strong fail-fast proof), and end-to-end saved-result comparison/report parity between paraphrase and legacy (no-provenance) result files. - I ran
pytest tests/test_benchmark_paraphrases.pydirectly: 52 passed. I also ran the fulltests/directory; the only failures (20, later 17 after installing more optional deps) were all intest_llm_provider_bedrock_mantle.py/test_llm_provider_orcarouter.py/test_cli_provider_routing.py— none of which this PR touches — and traced to missing/mismatched third-party SDK versions (rich,openai) in my sandbox, not to this diff.black --checkandruff checkboth pass clean on the PR's own new files. - No
time.sleep/hard waits, no nondeterministic assertions, no unreleased resources (everything usestmp_path/monkeypatchfixtures with automatic teardown), no order dependence (each test builds its own isolated state), no floating-point comparisons.
Rating: Stable — no flaky patterns identified.
2.3 Documentation Updates
docs/en/ai-cli/benchmark.md, docs/zh/ai-cli/benchmark.md, and seatunnel-cli/benchmark/README.md were all updated in parallel, and I checked the English/Chinese versions for consistency and cross-checked the described behavior (12 tasks, 4/4/4 category split, 2/6/4 tier split, 1 Chinese prompt, "fails before provider setup", additive parent_id/parent_sha256 fields, unchanged report.py/compare.py contract) against the actual code and data — everything matches. This is genuinely good documentation: it explicitly calls out what the benchmark does not prove (generalization, semantic equivalence) rather than overselling the feature.
3. Architectural Soundness
3.1 Elegance of the Solution
Precise fix / clean feature addition. The "inherit-and-pin" design (variant only supplies parent_id + parent_sha256 + prompt, everything else comes from the parent via deepcopy) is the right shape for this problem: it makes it structurally impossible for a paraphrase variant to sneak in different assertions than its parent, and the fingerprint means silent drift is caught by validation rather than by a stale expected-result diff months later.
3.2 Maintainability
Good. The new suite is entirely additive and isolated to a load_tasks(..., suite=...) dispatch plus one new small module; nothing in the baseline path was restructured. The set(variant) != {...} closed-key check in load_paraphrases is a nice guard against future scope creep in the corpus format without needing a schema library.
3.3 Extensibility
A third suite (e.g. a different perturbation axis) would follow the same pattern cleanly — add a branch in load_tasks, a sibling loader module, and a JSON corpus. The explicit if suite not in ("baseline", "paraphrase") allowlist means a typo in --suite fails loudly rather than silently falling through.
3.4 Historical-Version Compatibility
N/A in the sense that this is a benchmark tool with no persisted job state, checkpoints, or wire protocol — the only "historical" artifact is results.json, and I confirmed above that old result files remain readable/comparable by the unchanged compare.py/report.py code.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| 1 | main() task/provider reordering lacks an explanatory comment |
seatunnel-cli/benchmark/runner.py:587-590 |
Low |
| 2 | New load_tasks code in runner.py isn't black-formatted (file was already non-compliant pre-PR) |
seatunnel-cli/benchmark/runner.py:70-91 |
Low |
5. Merge Recommendation
Conclusion: Ready to merge
- Blockers — must be fixed: None.
- Recommended fixes — non-blocking: Issues 1 and 2 above — a one-line comment on the reordering, and optionally running black over the touched
runner.pyhunks for consistency.
Overall this is a careful, well-tested, purely additive feature. I independently re-derived and verified the SHA-256 parent fingerprints rather than trusting the code's own self-check, ran the new test module directly (52/52 pass), confirmed the unrelated full-suite failures in my sandbox are pre-existing dependency-version gaps and not caused by this diff, and traced that paraphrase tasks reuse the exact same scoring/execution pipeline as baseline tasks with no parallel code path. Docs are accurate against the code on both the English and Chinese pages. Nice work — good instinct to make invalid selections fail before touching provider credentials, and to make the corpus format reject anything that isn't a pure wording change.
|
@SEZ9 please help review this PR, thank you~ |
SEZ9
left a comment
There was a problem hiding this comment.
Thanks for picking this up, @goutamadwant. I wrote the original harness in #11553, so this lands squarely in an area I care about — and it addresses a real structural weakness rather than adding surface area.
To make the value explicit for other reviewers: the 100-task corpus has fixed, publicly visible wording. The improvement roadmap behind #11616 is mostly prompt and metadata work (connector option injection, golden examples for conditional routing, CDC prerequisites, wide-DAG wiring rules). Without a paraphrase suite, a score increase from that work cannot be separated from the model having memorized the exact task phrasing. This suite gives that A/B a second dimension. Notably the variant distribution lines up with the measured all-model failure clusters — 4 of 12 are t3_cr_* conditional routing and 4 are t2_cdc_* — which is where the ambiguity between "learned the wiring rule" and "matched the wording" matters most.
What I like
load_paraphrasesfails closed everywhere it can: the strict key whitelist (set(variant) != {"parent_id", "parent_sha256", "prompt"}), unknown parent, empty/malformed corpus, and a variant whose prompt equals its parent's all raise rather than degrade.copy.deepcopy(parent)withtest_variants_inherit_the_complete_task_without_aliasingguarding it. Shallow-copying here would have silently shared assertion lists between parent and variant.- The parent fingerprint uses the same canonicalization as
task_fingerprintsinrun_benchmark(sort_keys=True,separators=(",", ":")), so the two hashing schemes stay consistent. - Moving
load_tasksahead ofbuild_models_from_argsso an invalid selection fails before provider setup, i.e. before any billable call. - The docs are honest in the places that are easy to oversell: "not an unseen holdout", "this command calls a model, even with
--level l1", and the explicit warning not to compare parent IDs against variant IDs or combine their rates as independent evidence. That last line is exactly the misuse I would have worried about.
Suggestions
1. Record the suite in the run metadata. all_results in run_benchmark carries levels, max_repairs, trials, cli and models, and this PR adds parent_id/parent_sha256 per task entry — but there is no run-level suite marker, so a results file is not identifiable as a paraphrase run without inspecting task entries. I checked compare.py and this is not a correctness problem: a cross-suite comparison hits excluded(..., f"missing {side} task") for every task, so no bogus delta is produced. But the operator gets 12–100 exclusion rows instead of one clear error. Adding all_results["suite"] = suite plus a check in _run_issues would enforce in code what the docs currently only advise.
2. One variant per parent is a hard ceiling. task_id = parent_id + "_p1" means a second wording for the same parent raises Duplicate paraphrase task ID, and test_identical_prompt_and_duplicate_parent_are_rejected shows that is deliberate rather than an oversight. Was an index-based scheme (_p1, _p2, …) considered, or is the ceiling intentionally left for a follow-up? Conditional routing is the highest-failure cluster, and it is the one where two or three phrasings would be most informative.
3. Repinning has no tooling. The 12 parent_sha256 values are maintained by hand. One planned item on the roadmap is adding semantic verification probes to the ~96 tasks that lack them; that single change invalidates all 12 pins at once and requires recomputing each hash manually. A small --repin mode on benchmark.paraphrases that recomputes and writes the fingerprints back would keep the maintenance cost from making this suite rot. The review gate stays intact as long as repinning is an explicit, reviewable diff.
Nits, take or leave
- The
task_idsvalidation (non-empty, distinct, known) exists only on the paraphrase path. On baseline,--tasks does-not-existstill silently yields nothing and reports "No tasks selected." Hoisting the check would benefit both. any(t not in TIER_FILES for t in tiers)is unreachable from the CLI, since argparse'schoices=[1, 2, 3]already validates each element of--tiers; only the duplicate check is new there.- A variant's own
task_sha256includesparent_sha256, so rewording a parent's prompt alone forces a repin, which changes the variant's fingerprint, which makescompare.pyexclude it as a changed contract — even though the variant's own prompt, assertions and fixtures are unchanged. Narrow case, low priority; excluding the provenance keys from the variant's fingerprint would avoid it.
One thing that is on me, not on this PR
These tests will not run in CI. setup-python at .github/workflows/backend.yml:160 only feeds the change-detection script, no workflow invokes pytest, and the benchmarks path filter matches seatunnel-benchmarks/** and tools/benchmarks/** rather than seatunnel-cli/benchmark/**. So the 52 new offline cases here, and the ~181 pre-existing CLI tests, are verified only on the contributor's machine. That gap came in with #11553 and is mine to fix — I will open a separate issue to wire seatunnel-cli tests into CI. Please do not expand this PR's scope for it; I am noting it so the "how was this tested" section is read correctly, since the fork Build passing does not cover any of this.
Overall this is a well-scoped, well-tested addition and I do not see a blocker. Happy to approve once the suite marker in (1) is addressed, and (2) answered either way.
|
Thanks @SEZ9 for the deep look here, and good context on the failure-cluster overlap with #11616 — that makes the motivation much clearer for anyone reading this PR cold. On the CI point: agreed that's pre-existing debt from #11553 rather than something this PR introduces or should be scoped to fix, and it doesn't change my read of the diff — I independently re-derived the 12 parent SHA-256 fingerprints myself (not via the runner's own check, to avoid circular validation) and ran Suggestion 1 ( None of your suggestions or nits change my own conclusion: still Ready to merge, no blockers from my side. |
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks for the ping via the new commit — I re-reviewed the full diff against the current head (7eab81a) rather than just the delta, retracing the whole harness (load_tasks, load_paraphrases, run_benchmark, compare.py, main()) from scratch. My conclusion from last round stands, and the new commit is a genuinely good, correctly-implemented addition on top of it.
What Problem Does This PR Solve?
Same as last round: the CLI benchmark's 100-task corpus has fixed, publicly visible wording, so an accuracy improvement can't be distinguished from the model having memorized the exact phrasing. This PR adds a second, strictly opt-in 12-task "paraphrase" suite — alternative wordings of 12 existing tasks, each inheriting its parent's assertions/fixtures verbatim and pinned to the parent by a SHA-256 fingerprint. The default 100-task suite and its results format are untouched.
What's new since my last review: the prior round surfaced one real, if narrow, gap — @SEZ9's review pointed out that a saved paraphrase-suite results.json carried no run-level marker distinguishing it from a baseline run, so a cross-suite comparison would silently produce 12–100 "excluded" rows instead of one clear error. I'd agreed in my own follow-up comment that this was worth folding in. The new commit (7eab81a, "[Fix][CLI] Identify benchmark suites before comparing runs") does exactly that, and does it well.
1. Code Change Review
1.1 Core Logic Analysis
What changed in this commit: runner.py, compare.py, plus doc updates and two new/extended test files (test_benchmark_comparison.py, test_benchmark_paraphrases.py).
run_benchmark() now stamps the run:
all_results = {
"suite": suite,
"levels": levels,
...
}and a fail-closed guard was added right above it:
if any(("parent_id" in task) != (suite == "paraphrase") for task in tasks):
raise ValueError("Task provenance does not match the selected suite")so run_benchmark itself refuses to run if the caller passes a suite argument that doesn't match the task list's actual provenance (baseline tasks never carry parent_id; paraphrase tasks always do) — this is a good belt-and-suspenders check independent of the CLI's own --suite/load_tasks wiring.
compare.py's _run_issues() gained two checks:
suite = run.get("suite", "baseline")
if suite not in ("baseline", "paraphrase"):
issues.append(f"{name}: suite metadata invalid")
...
if isinstance(tasks, list) and any(
isinstance(task, dict) and ("parent_id" in task) != (suite == "paraphrase")
for task in tasks
):
issues.append(f"{name}: suite metadata does not match task provenance")
...
if baseline.get("suite", "baseline") != candidate.get("suite", "baseline"):
issues.append("suite differs between runs")Key findings:
run.get("suite", "baseline")on both the metadata-validity check and the cross-run check means aresults.jsonpredating this PR (nosuitekey at all) is treated exactly as"baseline"— preserving backward compatibility with every result file saved before this commit. I confirmed this directly againsttest_legacy_baseline_results_compare_with_explicit_baseline_suite.- The provenance-vs-suite-marker cross-check (does every task's
"parent_id" in taskmatch what thesuitelabel claims) means a hand-edited or corruptedresults.jsonthat claimssuite="baseline"but actually contains paraphrase-shaped task entries (or vice versa) is caught as an explicit issue rather than silently mis-comparing tasks — this directly closes the gap SEZ9 raised. - I traced
write_reports/report.pyare still untouched, and — more convincingly than just reading the diff — the new testtest_saved_variants_compare_by_identity_and_keep_provenancebuilds a real result, strips only the per-taskparent_id/parent_sha256fields (leaving the top-level"suite"key in place), and asserts the renderedsummary.md/summary.csvare byte-identical between the two. That's a stronger backward-compatibility proof than a static read of the code would give me: it shows the new top-levelsuitekey and the per-task provenance fields are both genuinely inert as far as report rendering is concerned. main()'s dispatch order (validate--suite/--tasks/--tiersviaload_tasksbeforebuild_models_from_args) is untouched by this commit — still correct, still fails closed before any provider/credential setup.
Runtime path (unchanged shape from last round, now with the suite marker flowing through):
argparse (main) -> load_tasks(tiers, task_ids, suite) [fails closed here]
-> build_models_from_args(args)
-> run_benchmark(models, tasks, ..., suite=args.suite)
-> guards: suite in {"baseline","paraphrase"}; task provenance matches suite
-> all_results["suite"] = suite
-> per-task: parent_id/parent_sha256 appended iff present (unchanged)
-> write_reports() / compare.py
-> compare.py now reads run.get("suite", "baseline") and cross-checks
it against per-task parent_id presence before pairing tasks
In-depth correctness analysis: the new checks activate only when compare_results() is called on two saved result files — they don't touch task selection, scoring, or generation at all, so there's no risk to the actual benchmark run itself, only to how two runs are compared afterward. The one edge case worth naming explicitly: if suite is present but is a non-string type (the new tests exercise None, "unknown", [], {} via test_invalid_suite_metadata_is_not_scored), the comparison equality suite == "paraphrase" still evaluates safely (just False), so this doesn't crash — it correctly falls through to also reporting a provenance mismatch alongside "suite metadata invalid" for a doubly-malformed file, which is the right conservative behavior (report more information, not less, on a clearly-corrupt input).
1.2 Compatibility Impact
Fully backward compatible, and slightly more provably so than last round. The two new top-level/per-run checks in compare.py are additive and default-tolerant (run.get("suite", "baseline")); no existing field was renamed, no default changed, and the byte-identical-report test above is direct evidence, not just an inference from reading the diff.
1.3 Performance / Side-Effect Analysis
Negligible, same as last round — this is a few extra dict lookups and a loop over already-in-memory task lists during offline comparison; no I/O, no new dependencies.
1.4 Error Handling and Logging
All new failure paths append a specific, actionable string to the existing issues list rather than raising — consistent with compare.py's existing pattern of collecting all issues and reporting them together rather than failing on the first one. run_benchmark's new guard raises ValueError with a specific message, consistent with the rest of the module's fail-closed style. No credentials or secrets touched by this commit.
No blocking issues found in this section.
2. Code Quality Assessment
2.1 Coding Standards
Both Low-severity items from my last review are still open and still non-blocking (unchanged by this commit, and I'm not asking for them to be addressed now):
main()'s task/provider reordering still has no inline comment explaining the fail-fast intent (runner.py, thetry: tasks = load_tasks(...)block).- The new
load_taskscode inrunner.pystill isn't black-formatted (pre-existing debt from last round, and the PR's ownblack --checkcommand is still deliberately scoped away fromrunner.py).
The new code in this commit is clean and consistent with the surrounding style; compare.py's new block uses the same "collect issues into a list, explain each in one line" idiom as the rest of the function.
2.2 Test Coverage and Test Stability
Four new test functions in test_benchmark_comparison.py, plus one new assertion in the existing test_runner_saved_results_compare_without_changing_legacy_reports, plus the byte-identical-report check in test_benchmark_paraphrases.py I called out above:
test_legacy_baseline_results_compare_with_explicit_baseline_suite— backward compatibility with un-suite-tagged old files.test_cross_suite_comparison_is_rejected_before_task_pairing— the exact scenario SEZ9 raised.test_invalid_suite_metadata_is_not_scored(parametrized overNone,"unknown",[],{}) — malformed input handling.test_suite_and_task_provenance_must_agree(parametrized) — the cross-check between the label and the actual task shape.
I traced each of these against the actual compare.py logic rather than taking the assertions at face value, and they match. All are deterministic: fixed dict fixtures, no I/O, no timing, no ordering dependence, no floating-point/string-normalization concerns.
Stability rating: Stable. No flaky patterns in either the new test code or the modified production code.
2.3 Documentation Updates
docs/en/ai-cli/benchmark.md, docs/zh/ai-cli/benchmark.md, and seatunnel-cli/benchmark/README.md were all updated to describe the new suite marker and its backward-compatibility guarantee. I cross-checked the specific claims — "New results record the run-level suite; cross-suite comparisons are rejected before task pairing. Older unmarked baseline results remain compatible, but unmarked paraphrase results need a fresh run" — against the actual code and they're accurate on both language pages, consistently worded between EN and ZH.
3. Architectural Soundness
3.1 Elegance of the Solution
This is exactly the right shape of fix for the gap SEZ9 identified: a single additive field plus a cross-check, no restructuring of the comparison logic, no change to how tasks are scored or how reports render. Precise fix.
3.2 Maintainability
Good — the new checks live in the same function (_run_issues) using the same pattern as the rest of the file, so a future third suite would extend cleanly the same way.
3.3 Extensibility
Unchanged assessment from last round: a third suite would follow the same load_tasks(..., suite=...) dispatch pattern, and now also gets a "for free" run-level marker in its results without needing its own bespoke comparison logic.
3.4 Historical-Version Compatibility
Confirmed more rigorously this round via the byte-identical-report test: old results.json files (no suite key, no per-task provenance) remain fully readable and comparable by the updated compare.py/report.py.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| 1 | main() task/provider reordering still lacks an explanatory comment (carried forward, unaddressed, non-blocking) |
seatunnel-cli/benchmark/runner.py |
Low |
| 2 | New load_tasks code in runner.py still isn't black-formatted (carried forward, pre-existing debt, non-blocking) |
seatunnel-cli/benchmark/runner.py |
Low |
No new issues from this commit. Both carried-forward items are the same Low-severity, non-blocking notes from my previous review.
5. Merge Recommendation
Conclusion: Ready to merge
- Blockers — must be fixed: None.
- Recommended fixes — non-blocking: Issues 1 and 2 above, unchanged from last round.
@SEZ9's Suggestion 1 (run-level suite marker) is now implemented, and implemented well — it goes slightly beyond a minimal label by also cross-validating the marker against actual per-task provenance, which catches a corrupted/hand-edited results file that a bare label wouldn't. The other two suggestions from that review (an index-based _p1/_p2 scheme for multiple wordings per parent, and --repin tooling) remain open design questions for a future iteration, not blockers for this PR, and I don't think either needs to hold this up.
CI: the fork's Build (run 34556120482+34556120474, matching head 7eab81a) reports SUCCESS, consistent with the apache-side Build check showing SUCCESS. Sync status: ahead_by a small number of commits, behind_by normal dev churn — no indication of a stale-branch problem, and the CI evidence above is already from the current head, so I don't see a reason to ask for a resync.
Nice follow-through on this one — closing the loop on review feedback with a well-tested, backward-compatible fix rather than just a comment reply is exactly what I'd want to see here.
Signed-off-by: Goutam Adwant <workwithgoutam@gmail.com>
|
@DanielLeens Pushed b0f2312 with the requested formatting and a clarification of why task validation precedes provider credential checks. The Python AST is unchanged and all 126 focused tests pass. Fresh CI has been triggered. |
SEZ9
left a comment
There was a problem hiding this comment.
Re-reviewed at b0f2312fd. Approving. Before the review itself, a correction to something I wrote in my first pass that has since become false — @DanielLeens repeated it in good faith, so it is worth clearing up for both of you.
Correction: these tests do run in CI now
In my first review I wrote that the tests here would not run in CI, that backend.yml's benchmarks filter matches seatunnel-benchmarks/** and tools/benchmarks/** rather than seatunnel-cli/benchmark/**, and that I would open a separate issue to wire seatunnel-cli tests in. DanielLeens then thanked me for keeping that out of this PR's scope.
That gap is now closed, and it went further than an issue — it was fixed and merged. #12300 landed on 2026-09-15 as a51712781, adding .github/workflows/cli.yml, which triggers on paths: ['seatunnel-cli/**', '.github/workflows/cli.yml'] for both pushes to dev and pull requests, and runs ruff check . (pinned at ruff==0.16.7) plus python -m pytest tests on Python 3.10 and 3.13.
Your own PR is the proof, and I should have noticed before you had to say "fresh CI has been triggered" — run 35172939502 on this head reports:
Lint pass
Test with Python 3.10 pass
Test with Python 3.13 pass
So the 52 offline cases added here, and the ~181 pre-existing CLI tests, are now verified by CI rather than only on your machine. Please read my earlier "how was this tested" caveat as withdrawn. The one thing that remains true is that the fork's Build status still does not cover any of this — the coverage comes from the separate SeaTunnel CLI workflow.
Suggestion 1 — addressed, and more thoroughly than I asked
7eab81a82 does what I suggested (all_results["suite"] = suite plus a check in _run_issues) and then adds two things I had not thought of:
- Provenance cross-validation, in both directions.
("parent_id" in task) != (suite == "paraphrase")is checked as a hardValueErrorinrun_benchmarkand as a reported issue in_run_issues. That catches a hand-edited or mislabelled results file, not just a cross-suite comparison — a stronger invariant than a plain marker. - Backward compatibility that degrades correctly.
run.get("suite", "baseline")treats pre-marker results as baseline, and the comment explains exactly why guessing is not acceptable for older paraphrase results (they carry task provenance, so they can be detected rather than assumed). Plussuite differs between runsalongside the existinglevels/trials/max_repairscomparisons, which is where it belongs.
The 44 new lines in test_benchmark_comparison.py and 20 in test_benchmark_paraphrases.py cover it.
b0f2312fd — I verified the claim rather than taking it on trust
You said the Python AST is unchanged. It is. I parsed benchmark/runner.py at both 7eab81a82 and b0f2312fd and compared ast.dump output — byte-identical. The change is purely line-breaking plus one comment, so it cannot affect behaviour.
Still open, neither blocking
- Suggestion 2 (one variant per parent,
_p1as a hard ceiling) is still unanswered. I asked whether an index-based_p1/_p2scheme was considered or whether the ceiling is deliberately left to a follow-up. I said last time I'd approve once (1) was addressed and (2) was answered either way; (1) is done well, and I would rather not hold the PR on what is only a question, so I'm approving now. An answer in a comment is enough — conditional routing is the highest-failure cluster and the one where a second or third phrasing would be most informative, so it matters for the follow-up, not for this diff. - Suggestion 3 (a
--repinmode, since the 12parent_sha256values are hand-maintained and adding semantic probes to the ~96 unpinned tasks would invalidate all of them at once) also stands as a follow-up, not something to fold in here.
One coordination note
I intend to open a small cleanup PR against seatunnel-cli — fixing the 18 pre-existing ruff findings, running black over the package, widening [tool.ruff.lint] select, and adding a black --check gate to cli.yml next to the existing ruff check. It touches benchmark/runner.py and benchmark/compare.py among others, so I will sequence it after this PR merges rather than making you rebase across a pure-formatting diff. If it does land first for any reason, ping me and I'll rebase mine.
Worth noting that b0f2312fd is itself the argument for that gate: you had to hand-apply black's formatting to load_tasks as a separate commit because CI only enforces ruff, not black. With the gate in place that round trip disappears.
Good work on the suite marker — the provenance cross-check in particular makes the harness harder to misuse than it was before this PR.
DanielLeens
left a comment
There was a problem hiding this comment.
Thanks for the ping via the new commit — I re-reviewed the complete current head (b0f2312fd) from scratch rather than just the incremental diff, retracing the whole harness (load_tasks, load_paraphrases, run_benchmark, compare.py, main()) and independently re-deriving all 12 SHA-256 parent fingerprints again rather than trusting my own prior verification. My conclusion from both previous rounds stands: this is still Ready to merge. The new commit is exactly what it claims to be — pure reformatting of load_tasks plus the one-line comment I asked for in my first review — and while re-checking everything I found two small things that should have been caught earlier. Sorry for missing both of these in my last two reviews; they are carryovers, not new-version-only issues, and I'm marking them as such below.
What Problem Does This PR Solve?
The CLI benchmark's 100-task corpus has fixed, publicly visible wording, so an accuracy improvement can't be distinguished from a model having memorized the exact phrasing. This PR adds a second, strictly opt-in 12-task "paraphrase" suite — alternative wordings of 12 existing tasks, each inheriting its parent's assertions/fixtures verbatim and pinned to the parent by a SHA-256 fingerprint. The default 100-task suite and its results format are untouched. A follow-up commit (7eab81a) added a run-level suite marker to saved results so cross-suite comparisons fail with one clear message instead of 12-100 confusing "excluded" rows. The newest commit (b0f2312fd) only reformats code and adds a comment; it changes no behavior.
A Simple Example
python -m benchmark.runner --provider openai --model gpt-4o --suite paraphrase
# Task suite: paraphrase (public alternative wording)
# Running 12 tasks × 1 models × 1 trial(s), gates: l1 → l2 → l3, max repairs: 2Omitting --suite (or passing --suite baseline) runs the same 100 tasks as before, byte-identical in content and ordering.
1. Code Change Review
1.1 Core Logic Analysis
What changed in b0f2312fd (verified directly against the GitHub compare API, not taken on trust): exactly one file, seatunnel-cli/benchmark/runner.py, +18/-8 lines. The diff is load_tasks's signature and two boolean expressions re-wrapped to black's multi-line style, plus this comment added above the reordering in main():
# Reject invalid task selections before provider setup can require credentials.
try:
tasks = load_tasks(args.tiers, args.tasks, args.suite)I diffed this against the previous head (7eab81a) line by line: every branch, condition, error message and control-flow path is byte-identical, only re-indented/re-wrapped. This closes both Low-severity items I raised in my first review (no comment on the reorder; runner.py not black-formatted) — so no re-review of runtime behavior is needed for this commit, only a formatting/comment sanity check, which passes.
Full-harness re-trace (unchanged from prior rounds, re-verified against the current head's files fetched directly via the GitHub contents API):
load_paraphrases(parents)loadstasks/paraphrase.json, accepts only{parent_id, parent_sha256, prompt}per variant, recomputessha256(json.dumps(parent, sort_keys=True, separators=(",",":")))and rejects any mismatch, rejects wording identical to the parent's, and builds the task viacopy.deepcopy(parent)+update(variant, id=parent_id+"_p1").load_tasks(tiers, task_ids, suite): baseline path is byte-for-byte unchanged; paraphrase path loads all three tiers first (needed because the fingerprint covers the full parent record), then filters.run_benchmarkstampsall_results["suite"] = suiteand hard-fails withValueErrorif("parent_id" in task) != (suite == "paraphrase")for any task — a real belt-and-suspenders check independent of the CLI's own wiring.compare.py::_run_issuestreats a missingsuitekey as"baseline"(so pre-PR result files keep working), flags invalid suite values, cross-checks the suite label against actual per-task provenance, and reports"suite differs between runs".
Independent verification I did myself this round, not inherited from the PR description or earlier reviews: I fetched tier1_simple.json, tier2_medium.json, tier3_complex.json and paraphrase.json directly from the repository at the current head via the GitHub contents API, and wrote a standalone Python script (outside the runner's own code, to avoid circular validation) that recomputes all 12 sha256(json.dumps(parent, sort_keys=True, separators=(",",":"))) fingerprints. Result: all 12 match parent_sha256 exactly, tier distribution is {1: 2, 2: 6, 3: 4} (matching the documented 2/6/4 split), no duplicate parent references, no variant carries a key outside {parent_id, parent_sha256, prompt}, and no variant's wording is byte-identical to its parent's. This is a fresh independent check, not a re-statement of the prior rounds' results.
Runtime path (CLI tooling in seatunnel-cli/benchmark, not seatunnel-engine/seatunnel-api — drives the CLI's Orchestrator as a black box, never touches job scheduling, checkpointing or serialization):
argparse (main) -> load_tasks(tiers, task_ids, suite) [fails closed here, before provider setup]
-> build_models_from_args(args)
-> run_benchmark(models, tasks, ..., suite=args.suite)
-> guards: suite in {"baseline","paraphrase"}; task provenance matches suite
-> all_results["suite"] = suite; per-task parent_id/parent_sha256 appended iff present
-> write_reports() / compare.py
-> reads run.get("suite", "baseline"); cross-checks against per-task provenance
1.2 Compatibility Impact
Fully backward compatible. --suite defaults to "baseline"; every existing invocation is unaffected. Old results.json files without a suite key are treated as baseline by compare.py (run.get("suite", "baseline")), and test_saved_variants_compare_by_identity_and_keep_provenance proves this isn't just an assumption — it strips the new per-task fields from a real saved result and asserts the rendered summary.md/summary.csv are byte-identical to the version that kept them. No config option, public API or CLI flag was renamed or had its default changed.
1.3 Performance / Side-Effect Analysis
Negligible — offline JSON parsing and SHA-256 hashing over ~100 small dict records, no network I/O, no locking, no concurrency, no retries. The paraphrase path loads all three tier files regardless of --tiers (required for fingerprinting), which is microseconds at this corpus size and doesn't touch the baseline suite's cost.
1.4 Error Handling and Logging
All new failure paths raise/append a specific, actionable message; nothing is silently swallowed. parser.error() produces exit code 2 with no leaked traceback for CLI-level failures. No credentials or secrets are logged or newly touched by any of the three commits.
Issue 1 (carryover from my first review, still open, non-blocking): the two Low-severity items I raised in round 1 (missing comment on the main() reorder; runner.py not black-formatted) are now both resolved by b0f2312fd. No action needed — noting for the record that they're closed.
Issue 2 (new finding, but really a carryover I should have caught in round 2) — compare.py's new block from 7eab81a82 is not black-compliant — Location: seatunnel-cli/benchmark/compare.py:175 (the issues.append(f"{name}: suite metadata does not match task provenance") line inside the new provenance-cross-check block). — Problem: I reconstructed this exact function in a standalone file and ran black --diff against it: black would wrap this line's argument onto its own indented line (it exceeds the 88-column limit at that indentation depth). — Potential risk: none functionally, purely cosmetic drift — but this is the identical class of problem I flagged in runner.py back in round 1, and I reviewed this exact commit in round 2 without checking it there. — Suggested improvement: run black seatunnel-cli/benchmark/compare.py (or explicitly note, like the PR description already does for runner.py, that it's intentionally out of scope) so the two files don't drift into inconsistent formatting debt. — Severity: Low — Raised by another reviewer: No.
Issue 3 (new finding, carryover — present since the very first commit, missed by both reviewers across four review rounds) — docs/en and docs/zh place the new paraphrase section at different structural depths — Location: docs/en/ai-cli/benchmark.md:9 vs docs/zh/ai-cli/benchmark.md:57. — Problem: the English doc nests the new content as ### Optional alternative-wording checks, a subsection inside the existing ## Comparing CLI Revisions section (inserted right after that heading, before the pre-existing "Save baseline and candidate..." paragraph, which itself gets wrapped in a new ### Saved-result comparison heading). The Chinese doc instead adds ## 可选的改写提示词测试集 as a new top-level ## heading placed before the page's general overview paragraph and before ## 比较 CLI 版本 (the ZH equivalent of "Comparing CLI Revisions") — i.e., a sibling section rather than a nested subsection, and positioned earlier in the page. The ZH version also carries one extra clause not mirrored in EN (跳过验证层的排除规则均保持不变 / "skipped-gate exclusion rules are unchanged") that has no EN counterpart sentence. — Potential risk: none today — the content is accurate on both pages — but the two language versions now have different information architecture for the same feature, which makes it easy for a future doc-only edit to one language to silently desync from the other, and is a rougher reading experience for someone flipping between the two pages. — Suggested improvement: Option A — nest the ZH section under ## 比较 CLI 版本 as a ### subsection to mirror EN's structure exactly. Option B — if the ZH placement is intentional (e.g., ZH's page has a different existing top-level flow), leave it, but add the missing "skipped-gate exclusion rules unchanged" sentence to the EN page for content parity. Either is fine; I don't have a strong preference. — Severity: Low — Raised by another reviewer: No.
I want to be direct about why these two are on me: Issue 2 is the exact same category of problem I had already flagged once, applied to a file I reviewed in the very next round. Issue 3 has been sitting in the diff since the original commit that both @SEZ9 and I reviewed at the very start. Neither changes my merge recommendation — both are cosmetic and zero-risk — but "no new issues from this commit" in my last review wasn't quite accurate, since these existed in the code I was already looking at.
2. Code Quality Assessment
2.1 Coding Standards
Aside from Issues 2 and 3 above, the code is clean and consistent with the surrounding style. paraphrases.py has a clear module docstring and inline comments explaining the fingerprint/repin contract; compare.py's new block reuses the existing "collect issues into a list" idiom; the new test file is well-organized with descriptive names.
2.2 Test Coverage and Test Stability
I read through the full new/changed test surface again this round: test_benchmark_paraphrases.py (386 lines) and the additions to test_benchmark_comparison.py. Coverage includes the byte-identical-baseline guarantee, aliasing safety of load_paraphrases (test_variants_inherit_the_complete_task_without_aliasing), every rejection path (unknown/duplicate parent, per-field fingerprint mismatch, malformed/empty corpus, identical wording, extra keys), the CLI-level "fails before provider setup" contract via a real bounded subprocess.run(..., "-S", ..., timeout=10) call, and the suite-marker/provenance cross-checks added in round 2 (test_legacy_baseline_results_compare_with_explicit_baseline_suite, test_cross_suite_comparison_is_rejected_before_task_pairing, test_invalid_suite_metadata_is_not_scored, test_suite_and_task_provenance_must_agree).
Mandatory flaky-test analysis: no time.sleep/hard waits anywhere in the new or modified test code; the one real subprocess call is bounded with a 10s timeout and asserts a fast argparse-level failure (exit code 2) rather than anything timing-sensitive. All fixtures use tmp_path/monkeypatch with automatic teardown, no shared mutable module state leaks between tests, no order dependence (each test builds its own isolated task/result data), no floating-point comparisons. Rating: Stable.
CI confirms this isn't just a local claim: the SeaTunnel CLI workflow (Lint, Test with Python 3.10, Test with Python 3.13) is green on this exact head (b0f2312fd), per gh pr view --json statusCheckRollup. As @SEZ9 already corrected in their approval, this workflow (#12300, merged 2026-09-15) closed the earlier gap where these tests ran only locally — so the offline coverage here is now CI-enforced, not just contributor-asserted.
2.3 Documentation Updates
Content is accurate against the code on both language pages (I re-checked the suite-marker and backward-compatibility claims against the actual compare.py logic again this round). See Issue 3 above for the one real gap: structural/heading-level parity between EN and ZH, not content correctness.
3. Architectural Soundness
3.1 Elegance of the Solution
Unchanged assessment: the "inherit-and-pin" design (variant supplies only parent_id + parent_sha256 + prompt, everything else comes from the parent via deepcopy) is the right shape — it makes it structurally impossible for a variant to smuggle in different assertions, and the fingerprint converts silent drift into an up-front validation failure. The suite marker added in round 2 is the right minimal fix for the gap SEZ9 found, plus a stronger provenance cross-check that catches a corrupted/hand-edited file too.
3.2 Maintainability
Good — the paraphrase suite is entirely additive and isolated to a load_tasks(..., suite=...) dispatch plus one small new module; nothing in the baseline path was restructured.
3.3 Extensibility
A third suite would follow the same pattern cleanly: a branch in load_tasks, a sibling loader module, a JSON corpus, and it gets the run-level suite marker "for free" in comparisons.
3.4 Historical-Version Compatibility
N/A in the checkpoint/wire-protocol sense — this is a benchmark tool with no persisted job state. The only historical artifact is results.json, and both the byte-identical-report test and my own re-reading of compare.py confirm old files remain fully readable/comparable.
4. Issue Summary
| Number | Issue | Location | Severity |
|---|---|---|---|
| 1 | main() reorder comment and runner.py black-formatting (carried from round 1) — now resolved by b0f2312fd, noted for the record only |
seatunnel-cli/benchmark/runner.py |
Low |
| 2 | compare.py's new provenance-check block (from 7eab81a) is not black-compliant; missed in my round-2 review of that same commit |
seatunnel-cli/benchmark/compare.py:175 |
Low |
| 3 | docs/en and docs/zh place the new paraphrase section at different structural depths (subsection vs. top-level heading), plus one clause present only in ZH; present since the original commit, missed across 4 prior review rounds |
docs/en/ai-cli/benchmark.md:9, docs/zh/ai-cli/benchmark.md:57 |
Low |
5. Merge Recommendation
Conclusion: Ready to merge
- Blockers — must be fixed: None.
- Recommended fixes — non-blocking: Issues 2 and 3 above — running
blackovercompare.py, and aligning the EN/ZH doc section structure (either option described in Issue 3) whenever it's convenient, no need to hold the PR for these.
I agree with @SEZ9's APPROVED review at this same head: Suggestion 1 (run-level suite marker) was addressed well and goes beyond a minimal label with the provenance cross-check; Suggestions 2 (index-based _p1/_p2 for multiple wordings per parent) and 3 (--repin tooling) remain reasonable follow-up questions, not blockers, and I don't think either needs to hold this up either. I also independently confirmed @SEZ9's correction that the CI gap noted in round 1 is closed — the SeaTunnel CLI workflow is green on this head and now covers this suite.
CI: SeaTunnel CLI (Lint, Test 3.10, Test 3.13) and Build all report SUCCESS on head b0f2312fd. Merge state is MERGEABLE (no conflicts); the repo is ahead_by 3 / behind_by 80 against dev, which is normal churn and not a stale-branch problem given CI is already green on the current head.
Nice, disciplined follow-through across three rounds — closing out review feedback with well-tested, backward-compatible commits rather than just replies is exactly the right way to handle this, and I appreciate SEZ9 catching my own stale claim from round 1 along the way. Apologies again for the two carryover nits above; neither changes the outcome, but they should have been in an earlier round's issue list.
DanielLeens
left a comment
There was a problem hiding this comment.
CI was the only thing separating this from a formal approval — my last review (round 4, current head b0f2312fd) already concluded Ready to merge with zero blockers, and the SeaTunnel CLI (Lint, Test 3.10, Test 3.13) and Build checks were already all SUCCESS at that time. Re-verified again just now: same head, same all-green statusCheckRollup. Converting my prior comment-only recommendation into a formal approval. The remaining Low-severity nits (black-formatting on compare.py, EN/ZH doc heading-depth parity) are non-blocking follow-ups, unchanged from my last review.
davidzollo
left a comment
There was a problem hiding this comment.
+1
LGTM, thanks for your work and keep up the good effort!
Purpose of this pull request
Closes #12240.
Related to #11616. Add a separate, opt-in paraphrase suite to the existing CLI benchmark.
The default benchmark has 100 tasks with fixed wording. The new suite contains 12 alternative prompts covering routing, CDC prerequisites and connector options. Each variant inherits its original task's assertions and execution fixtures and pins the parent contract by fingerprint.
Does this PR introduce any user-facing change?
Yes.
--suite paraphraseselects only the 12 variants. The default remains--suite baselinewith the same 100 tasks, task definitions and report formats.Variants have distinct IDs and saved parent provenance. Invalid selections and changed parent contracts fail before provider setup. The existing generation, scoring, repair and comparison paths are reused.
This is a public regression corpus, not an unseen holdout. Running the benchmark still calls the configured model; offline tests do not establish model accuracy or generalization.
How was this patch tested?
Before implementation, the runner rejected
--suite paraphraseas an unknown argument. Added 52 offline cases covering selection, inherited fixtures, parent drift, malformed definitions, scoring parity, skipped gates, saved provenance and revision comparisons. All 12 prompts were separately checked against their original task requirements.From
seatunnel-cli:The complete CLI suite passed on Python 3.10 and 3.11: 181 tests and 3 subtests on each runtime. The original 100-task definitions remain identical. No model calls or engine jobs were run for these tests.
Root formatting and the complete no-tests build passed on Java 11:
The unchanged upstream baseline also passed the same no-tests build. This checks compilation and packaging, not execution of the full Java test suite.
The fork Build passed for the submitted commit.
Check list
incompatible-changes.mdto describe the incompatibility caused by this PR. Existing default behavior is unchanged.