Skip to content

[Umbrella][AI CLI] Roadmap Discussion: From Config Generator to Data Integration Copilot #11616

Open

Description

@SEZ9

Code of Conduct

Search before asking

  • I had searched in the issues and found no similar issues.

Description

Background

The SeaTunnel AI CLI has completed its first phase. Shipped so far:

With the benchmark in place, we now have quantified evidence of where generation fails and why — 13 tasks fail across nearly every model, and the failures cluster into four fixable knowledge gaps. This umbrella proposes a roadmap for what comes next, and invites the community to discuss scope and priorities — and to pick up sub-tasks.

Vision

Evolve the AI CLI along three stages:

Stage 1: Generate accurately   ── the current focus, backed by benchmark data
Stage 2: Operate reliably      ── from generation tool to operations assistant
Stage 3: Broaden scenarios     ── from tool to platform entry point

A guiding principle carried over from the benchmark work: every accuracy-related change must be justified by benchmark deltas. No prompt tweaks by intuition. The benchmark stamps the CLI version + commit into every report, so any change is A/B-comparable on identical tasks.


Stage 1 — Generation Accuracy (active now)

Benchmark analysis identified four systematic knowledge gaps (13 tasks failed by 6–7 of 7 models) and two behavioral defects. Each item below is a small, independent PR.

# Item Evidence Status
1.1 Knowledge injection: Doris/StarRocks connector options (fenodes, load ports, save mode) 3 tasks failed by 6–7/7 models 🟢 ready, help wanted
1.2 Knowledge injection: conditional-routing golden example (one source → parallel SQL transforms → different sinks) 3 tasks failed by 5–6/7; weakest models score 0% in this category 🟢 ready, help wanted
1.3 Knowledge injection: PostgreSQL-CDC prerequisites (replication slot, publication, decoding plugin) CDC category: 25–50% on weaker models 🟢 ready, help wanted
1.4 Knowledge injection: wide-DAG composition rules (5+ blocks, label wiring) 1 task failed by 5/7; Tier-3 drag 🟢 ready, help wanted
1.5 --no-ask non-interactive mode: apply documented defaults instead of re-asking over-clarification cost two models 10–14 tasks each 🟢 ready
1.6 Connector-name fuzzy correction ("File" → "did you mean LocalFile?") in local validation observed invented connector names 🟢 ready, good first issue
1.7 Structured error parsing foundation (stacktrace → error code / component / parameters) models repair structured errors at ~2× the rate of raw stack traces; only 47% of runtime failures recoverable today design ready
1.8 Repair-prompt structured reflection for weak-repair models repair recovery spread measured at +2 to +18 tasks across models after 1.7
1.9 Benchmark as CI regression gate: accuracy-affecting PRs report deltas on a smoke subset (10–15 L1 tasks, zero API cost in CI) infrastructure proposal

Combined expectation for 1.1–1.4: +8–13pp overall pass rate per model, to be verified by before/after benchmark runs included in each PR.

Proposed architecture direction: pluggable Skill Packs

Items 1.1–1.4 should not be hardcoded into prompts. Proposal: a declarative per-connector knowledge-pack format (loaded alongside the existing skills/golden-examples layers), so future connector knowledge can be contributed without touching CLI core code — analogous in effort to adding a connector doc page. This creates a low-barrier contribution channel; design sketch to follow in a sub-issue.


Stage 2 — Runtime Operations (design discussion now; implementation after the Stage-1 foundation)

The engine already provides everything needed: diagnostic REST endpoints (/job-info, /logs, /metrics, /thread-dump, checkpoint history) and event push (JobEventHttpReportHandler). Proposed order:

# Item Notes
2.1 Security & permission model (RFC, prerequisite) — read-only by default, explicit confirmation for mutating ops, audit log, confidence-tiered action whitelist gate for everything below
2.2 /diagnose <job_id>: pull job-info / logs / metrics / thread-dump → structured parsing (shared foundation with 1.7) → LLM root cause + suggested fix, wired into the existing repair agent endpoints all available
2.3 /status, /metrics: deterministic tables first (zero LLM cost), optional LLM anomaly interpretation. Explicit non-goal: replicating the Web UI — the differentiation is conversational follow-up ("why is it slow?" → correlate thread dump + backpressure) boundary needs community consensus (open question 1)
2.4 /checkup: whole-cluster health report (the category is validated by k8sgpt in the K8s ecosystem)
2.5 Self-healing pipelines (daemon mode): engine event push → auto-diagnosis → confidence-tiered response (high confidence: auto-repair & resubmit with report; low: report & wait) strictly gated on 2.1; highest narrative value, highest risk

Diagnosis quality is measurable with the same benchmark methodology (inject known failures → score root-cause hit rate), keeping the "no intuition-driven AI features" principle.


Stage 3 — Scenario Expansion (collecting feedback; not scheduled)

# Item Positioning
3.1 /explore: Catalog API schema discovery → LLM recommends sync pipelines → one-click generation. Metadata-level only — no data sampling/profiling (privacy boundary) inverts the interaction: from "you describe" to "I recommend"; richer real context is itself an accuracy lever
3.2 RAG pipeline entry ("AI configures AI"): LLM/embedding transforms and vector sinks already exist in SeaTunnel; the missing piece is a one-sentence entry point ("embed product descriptions into Milvus") with dimension/parameter validation smallest effort in this stage
3.3 Schema drift negotiation: CDC SchemaChangeEvent → conversational DDL migration confirmation for the sink real CDC user pain; type mapping is a measured model strength
3.4 /migrate: semantic understanding of legacy Sqoop/Kettle/bash/stored-proc jobs → equivalent SeaTunnel config + diff explanation adoption-driven; complements x2seatunnel's rule-based conversion
3.5 /simulate: shadow-run sampled/synthetic data in a testcontainers micro-env; LLM explains behavioral diffs before production the benchmark's real-execution gate, productized; heavy
3.6 NL data-quality sentinel: natural language → Assert rules + scheduled validation pipeline opportunistic
3.7 MCP server mode: expose CLI capabilities (generate / diagnose / explore) to external agent frameworks complements the existing seatunnel-mcp; tracking industry momentum

How to contribute

  • Items marked help wanted / good first issue will get dedicated sub-issues with context and code pointers — comment here to claim one
  • Once the Skill Pack format lands, connector-knowledge contribution requires no Python/Java changes — an ideal first contribution
  • Every Stage-1 PR should include before/after benchmark subset results (how-to: website → AI CLI → Model Benchmark → "Running the Benchmark Yourself")

Open questions for discussion

  1. Stage-2 boundary: where should CLI operations capability stop relative to the Web UI?
  2. Is the confidence-tiered auto-repair model (2.5) acceptable to operators, and what defaults are safe?
  3. Skill Pack format: YAML-based declarative packs vs. structured markdown — preferences?
  4. Which Stage-3 scenario has the most real-world demand from your usage?

I'll break Stage-1 items into sub-issues over the coming weeks and link them here. Feedback on prioritization is very welcome — especially from users running the CLI against real production configs.

Activity

  1. self-assigned this
    on Aug 1, 2026
  2. DanielLeens commented on Aug 1, 2026

    @DanielLeens
    Contributor

    Thanks for opening this roadmap discussion. The Stage 1 items are concrete enough to become trackable work, especially because #11553 and #11605 give us benchmark methodology and user-facing docs to measure changes instead of relying on prompt intuition.

    My suggestion is to keep this issue as the umbrella discussion and split Stage 1 into smaller issues with clear acceptance criteria:

    1. scope: the exact skill pack / knowledge item or CLI behavior being changed;
    2. code pointer: where the implementation should live, and whether it is data-only or CLI core logic;
    3. validation: the benchmark subset or regression case that should improve, with before/after numbers;
    4. compatibility: whether existing CLI behavior, docs, or provider configuration changes.

    For Stage 2, I agree the security and permission model should be the prerequisite before any diagnostic or self-healing workflow. Read-only by default, explicit confirmation for mutating actions, and auditable decisions should be part of the first design before implementation starts.

    Once the sub-issues are created, contributors can claim individual Stage 1 tasks without needing to own the whole AI CLI roadmap.

  3. goutamadwant commented on Aug 3, 2026

    @goutamadwant
    Collaborator

    @SEZ9 Thanks for sharing this roadmap. The benchmark-driven direction makes a lot of sense and really like it.

    A few additional considerations and let me know if any of this makes sense:

    • Since the benchmark tasks are public and future Skill Packs may be shaped around them, could we keep a small held-out or paraphrased regression set? This would help distinguish genuine generalization from optimization for known prompts. Reporting task-level pass→fail transitions alongside aggregate deltas would also make regressions easier to review.
    • For self-healing, confidence could be derived from deterministic evidence—such as a recognized error code, an allowlisted remediation, and successful revalidation—rather than model self-confidence. Event-triggered actions should also be idempotent and deduplicated so retries or duplicate events cannot resubmit the same job twice.
    • For Skill Packs, connector metadata could remain the source of truth for option definitions, while packs focus on semantic prerequisites, topology rules, and verified examples. This would reduce drift between the two layers.

    I would be very interested in contributing to this initiative, let me know if i can pick any of the tasks and also I would also be happy to review the related proposals and PRs as the roadmap progresses. Thanks!

  4. DanielLeens commented on Aug 3, 2026

    @DanielLeens
    Contributor

    Thanks for the thoughtful follow-up. These points make sense to me, and they are exactly the kind of guardrails that can keep this roadmap benchmark-driven instead of prompt-driven.

    I would fold them into the next split issues this way:

    1. Benchmark discipline: keep the public 100-task benchmark as the reproducible baseline, but add a small held-out or paraphrased regression subset for PR validation. For every accuracy PR, the useful report should include aggregate delta plus task-level pass-to-fail and fail-to-pass transitions, so a higher headline score cannot hide regressions.
    2. Self-healing safety: for Stage 2, I agree the confidence signal should come from deterministic evidence first: recognized error category, allowlisted remediation, idempotency key or dedupe boundary, and successful revalidation after the action. Model confidence alone should not authorize a mutating operation.
    3. Skill Packs: connector metadata should remain the source of truth for option names, types, defaults, and required/optional status. Skill Packs should add the semantic layer that metadata does not carry well: prerequisites, topology rules, common pitfalls, verified examples, and benchmark-linked tasks. That keeps the packs useful without creating a second option-definition registry.

    If you would like to contribute, I think a good first concrete task would be one of the Stage 1 knowledge-pack items, especially the Doris/StarRocks option pack or the PostgreSQL-CDC prerequisite pack. The expected shape should be:

    • a small, reviewable pack or golden-example change;
    • code/docs pointer showing where it is loaded;
    • before/after benchmark evidence on the relevant subset;
    • a short note explaining which failures moved and whether any task regressed.

    I would keep this umbrella issue open for roadmap discussion, then track each claimed item in a focused sub-issue or PR so review stays manageable.

  5. SEZ9 commented on Aug 22, 2026

    @SEZ9
    CollaboratorAuthor

    Thanks @DanielLeens and @goutamadwant — this is exactly the discussion I was hoping for, and I agree with the consensus that has formed:

    • Sub-issues: I'll split the Stage 1 items into focused sub-issues following the proposed template (scope, code pointer, benchmark validation, compatibility notes), and keep this issue as the umbrella for roadmap discussion.
    • Benchmark discipline: adding a small held-out/paraphrased regression subset is a good safeguard against optimizing for known prompts, and I'll ask that accuracy PRs report task-level pass↔fail transitions alongside aggregate deltas.
    • Self-healing (2.5): agreed — confidence should be derived from deterministic evidence (recognized error category, allowlisted remediation, idempotency/dedup, successful revalidation), not model self-confidence, and remain strictly gated on the 2.1 security model.
    • Skill Packs: connector metadata stays the source of truth for option definitions; packs carry the semantic layer (prerequisites, topology rules, verified examples) to avoid a second option registry.

    @goutamadwant, you're very welcome to pick up a Stage 1 item — the Doris/StarRocks option pack (1.1) or the PostgreSQL-CDC prerequisites pack (1.3) would be great starting points, with the shape DanielLeens outlined (small reviewable change, loading pointer, before/after benchmark evidence, note on which tasks moved). Comment on the sub-issue once it's up to claim it.

  6. CryoThrust commented on Sep 4, 2026

    @CryoThrust
    Contributor

    Building on the agreed validation-result model, I suggest freezing the first contract around semantics rather than transport:

    • schemaVersion, valid, and phase are required; phase should describe config validation (parse, options, plugin) and must not imply runtime execution.
    • Keep errors and warnings as arrays, even if the first adapter reports one failure. This avoids changing the wire shape when validation becomes multi-error.
    • Each diagnostic should carry a stable category and optional location, plugin, and optionPath; message remains human-readable and sanitized. Clients should not branch on message text.
    • Serialization should be deterministic (field names, null handling, and ordering) and tested independently from the CLI formatter. The existing human-readable --check path and exit codes should remain unchanged.
    • Include a contract/version test fixture so future CLI, MCP, and REST adapters can verify compatibility without depending on an LLM provider.

    This keeps the first implementation small while making the model useful for the later AI repair loop. I would be happy to take a focused implementation after the field names and category vocabulary are confirmed by maintainers.

  7. DanielLeens commented on Sep 4, 2026

    @DanielLeens
    Contributor

    Thanks @CryoThrust. The proposed result contract matches the design boundary already selected for the first implementation slice. PR #12065 is now the active path for the reusable config-level validation result model, so please put field-name, category-vocabulary, null-handling, and compatibility feedback on that PR rather than opening a parallel implementation.

    The contract should stay transport-independent: schemaVersion, valid, and config-level phase are stable semantics; errors and warnings remain arrays; diagnostics use stable categories and optional location, plugin, and optionPath; messages stay sanitized and human-readable; and the existing --check output and exit behavior remain unchanged. A versioned fixture plus deterministic serialization tests are the right acceptance gate before a CLI, MCP, or REST adapter is proposed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions