Papers
Topics
Authors
Recent
Search
2000 character limit reached

DataFlow-Harness: A Grounded Code-Agent Platform for Constructing Editable LLM Data Pipelines

Published 18 Jul 2026 in cs.SE and cs.AI | (2607.16617v1)

Abstract: LLMs are increasingly used to automate data-processing workflows, yet coding agents typically produce scripts that are not automatically materialized as persistent, editable platform artifacts. We call this disconnect the \textit{NL2Pipeline gap}. To bridge it, we introduce \textsc{DataFlow-Harness}, a platform that guides an LLM agent to construct platform-native directed acyclic graphs (DAGs) through typed, incremental mutations rather than free-form scripts. The platform combines \textsc{DataFlow-Skills} for procedural guidance, a Model Context Protocol (MCP) layer that exposes the live operator registry and current pipeline state, and \textsc{DataFlow-WebUI}, which synchronizes conversational authoring with a visual DAG editor. On a 12-task data-engineering benchmark, \textsc{DataFlow-Harness} achieves a 93.3\% observed end-to-end pass rate. Relative to Vanilla Claude Code, it reduces measured monetary cost by 72.5\% and generation latency by 49.9\%; its observed pass rate is within 0.9 percentage points of the Context-Aware Claude Code baseline while its cost is 42.8\% lower. Per-task analysis indicates that Skills are most useful when construction depends on implicit procedural knowledge. These results show that live platform grounding can produce persistent, editable workflow artifacts with an observed reliability close to script-generation baselines and with lower measured construction cost and latency.

Summary

  • The paper introduces a platform that uses typed, validated DAG mutations, live operator metadata, procedural Skills, and synchronized visual editing to turn natural-language requirements into persistent, editable pipeline artifacts.
  • DataFlow-Harness achieved a 93.3% end-to-end pass rate across 120 trials while reducing cost by 72.5% and latency by 49.9% versus unconstrained script generation, though the results lack formal statistical equivalence testing.
  • The paper shows that procedural Skills help most on complex workflow tasks, while grounded pipelines improved extraction coverage and produced preliminary gains in selected math and code-training benchmarks.
  • follow_up_questions

DataFlow-Harness addresses a systems problem the authors call the NL2Pipeline gap: coding agents can translate natural-language requirements into executable data-processing code, but the resulting scripts are disposable artifacts that are not materialized as persistent, editable, platform-native workflow objects. The paper introduces a platform that constrains an LLM coding agent to construct directed acyclic graphs (DAGs) through typed incremental mutations rather than free-form script generation, and reports that this constrained construction achieves reliability close to script-generation baselines at substantially lower cost and latency (2607.16617).

Problem formulation

The authors distinguish three notions: the workflow (the intended data-processing procedure), the pipeline (its persistent platform representation), and the DAG (its execution dependency structure). Direct code-generation agents frequently hallucinate dependencies—relying on unavailable operators or outdated framework assumptions—and produce monolithic scripts that cannot be audited through graphical workflow interfaces. The central claim is that closing the gap requires more than higher code-generation accuracy: construction must be grounded in live platform semantics and must yield artifacts that integrate with host-platform governance.

System architecture

The platform comprises four components. The Data Pipeline Backend is the authoritative source of truth, representing a pipeline as P=(D,O,E,S,R)P=(D,O,E,S,R) covering data sources, configured operator instances, dependency edges, field schemas, and runtime state such as model-serving endpoints. Agents interact exclusively through typed mutations (add/remove operators, update parameters, connect edges); a mutation commits only if the resulting graph remains acyclic and adjacent operator schemas are compatible. The authors are explicit that these checks establish structural validity only—they do not guarantee semantic correctness, endpoint availability, or output quality.

The MCP Tools Layer mediates all changes through a Request-Validate-Commit protocol: state retrieval at each turn, mediated typed mutations grounded in the live DataFlow registry metadata, validation of acyclicity and schema compatibility, and committed updates broadcast via WebSocket to keep authoring modalities synchronized. DataFlow-Skills injects procedural knowledge that MCP alone does not encode: procedural blueprints (schema inference, operator selection, parameter configuration, serving verification) and compositional constraints (modality matching, field-flow conventions for nested structures). Finally, DataFlow-WebUI synchronizes conversational authoring with a visual DAG editor; manual edits commit immediately to the backend so subsequent agent turns operate on current state without re-synchronization.

Benchmark results: effectiveness and efficiency

Evaluation uses 12 tasks across six industrial scenarios (QA generation, review governance, long-document processing, multi-field scoring, schema normalization, low-quality filtering), with Claude Opus 4.7 fixed as the underlying model and 10 trials per task per configuration (120 runs per method). Four configurations span the grounding spectrum: Vanilla CC (unconstrained script generation), Context-Aware CC (repository-grounded script generation), MCP-only (DAG synthesis without Skills), and the full system.

Method Artifact E2E Pass (%) Cost ($) Latency (s)
Vanilla CC Disposable script 91.7 0.950 190.7
Context-Aware CC Disposable script 94.2 0.456 115.9
MCP-only Native DAG 83.3 0.321 105.5
DataFlow-Harness Native DAG 93.3 0.261 95.5

Two findings stand out. First, MCP-only drops success to 83.3%, which the authors take as direct evidence of the NL2Pipeline gap: structured workflow constraints impose a substantial reasoning burden relative to free-form scripting. Second, adding procedural Skills recovers most of that loss—93.3% observed pass rate, within 0.9 percentage points of Context-Aware CC—at 42.8% lower cost and 17.6% lower latency. Against Vanilla CC, cost falls 72.5% and latency 49.9% while success is nominally higher. The efficiency gains trace to token consumption: native DAG representations are far more compact than executable code, and Skills further reduce total tokens by 25.5% over MCP-only. The authors appropriately caution that the near-identical pass rates do not establish statistical equivalence.

Ablation: when Skills help

Per-task analysis identifies three regimes. On procedurally complex QA-generation tasks, Skills raise aggregate success from 18/30 to 29/30 runs—the dominant share of the overall gain—because these tasks require implicit domain procedures not recoverable from operator descriptions. On trivially routable transformation and filtering tasks, both configurations achieve perfect scores, leaving no headroom for guidance. On tasks bottlenecked outside synthesis (multi-field scoring failures violating downstream numerical constraints despite correct DAGs), Skills provide no benefit, and on some tasks prescriptive procedures slightly reduce flexibility when multiple valid strategies exist. The ablation compares MCP-only against the full system, so it does not isolate the contribution of validation separately.

Case studies on extraction and downstream training utility

A textbook-to-VQA extraction case study, following FlipVQA-Miner's protocol (Wong et al., 20 Nov 2025), shows the full system reaching 97.2% precision and 87.3% coverage versus 89.3%/80.1% for Context-Aware CC. The largest margin is in coverage, suggesting more complete workflows rather than conservative filtering. The authors attribute the advantage to systematic reuse of mature platform operators (PDF parsing, layout recovery, OCR, multimodal understanding) rather than stronger model reasoning, while noting that confirming generality requires repeated runs and a fully specified annotation protocol.

Two controlled case studies assess whether grounded pipelines produce better training data. In the math scenario, both agent-authored pipelines fine-tune Qwen2.5-32B-Instruct under the LIMO recipe (Ye et al., 5 Feb 2025); DataFlow-Harness data yields higher average accuracy at matched epochs (51.6 vs. 49.9 at one epoch; 55.7 vs. 54.5 at two), with gains concentrated on contamination-sensitive benchmarks—AIME24@32 rises from 25.1 to 35.9 and AIME25@32 from 21.6 to 34.5 at one epoch. In the general SFT scenario, both pipelines synthesize 10K instruction–response pairs from scratch for fine-tuning Qwen2.5-7B-Base; MMLU is essentially unchanged (74.2 vs. 74.4), math benchmarks trade wins, but code performance improves uniformly (e.g., MBPP 75.4 vs. 64.6), lifting the nine-benchmark average by 2.3 points. The authors frame these as preliminary outcome-level evidence, not causal estimates: each scenario is a single case study without multiple independently authored pipelines or training seeds.

Limitations and open questions

The evaluation uses one agent family and model, a small platform-specific benchmark, and observed averages without task-clustered confidence intervals or a pre-specified non-inferiority test. Schema validation cannot guarantee semantic correctness, and the ablation does not isolate validation's contribution. Cost reporting would need independent recomputation under prompt caching. Most notably, the paper does not directly evaluate persistence, reuse, provenance, concurrent editing, or recovery—the very governance properties motivating the platform—leaving open whether the artifact benefits translate into measurable lifecycle advantages in production settings.

Conclusion

DataFlow-Harness demonstrates that constraining a general-purpose coding agent to typed mutations against a live operator registry, augmented with procedural Skills, can produce persistent, editable platform-native DAGs with observed reliability near script-generation baselines at markedly lower measured cost and latency. The per-task analysis usefully delineates where procedural guidance matters—implicit procedural knowledge—versus where it adds nothing. The remaining open questions concern statistical rigor of the non-inferiority claim, component-level attribution, and empirical validation of the governance properties the architecture is designed to enable.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Tweets

Sign up for free to view the 1 tweet with 1 like about this paper.