Scaffold, Fill, Verify: An Industrial Experience Report on Agentic Generation of Integration Pipelines

Luciano Lucindo Chaves, Renan Novais, Pablo CalvachearXiv 2026

TL;DR

When building complex enterprise workflows with LLMs, having a single agent write the entire file and loop over errors is slow, expensive, and brittle. Engineers at Digibee replaced their monolithic production agent with a "Scaffold, Fill, Verify" architecture—combining one big LLM for high-level planning, parallel small LLMs for local details, and strict deterministic guardrails—cutting generation costs by up to 74% and build times by over 60% without sacrificing quality. Beyond the architecture, this paper is a masterclass in the messy reality of evaluating AI systems in live production environments.

What Problem Does This Paper Address?

Enterprise integration platforms (iPaaS) connect disparate business systems—like syncing records, querying databases, and handling errors—using pipelines made of modular connectors. At Digibee, these pipelines are written in a proprietary, JSON-based domain-specific language (DSL). Because the language is proprietary, off-the-shelf LLMs haven't seen it in training.

Digibee already had an AI builder in production using a standard "generate-then-repair" loop: a strong LLM wrote the whole JSON pipeline, ran it against a validator and test engine, and looped until errors disappeared or the token budget ran out. While functional, this monolithic recipe had three major headaches:

  1. Ballooning context: Carrying the whole JSON artifact in every repair turn made costs scale poorly with pipeline size.
  2. Whack-a-mole repairs: Fixing an error in step 42 often caused the agent to accidentally break step 12.
  3. Runaway loops: If a stop condition failed to trigger, the agent kept burning tokens even after the job was done.

Methods

To fix this, the authors designed a three-phase architecture based on strict division of labor, local context, and monotonic acceptance (meaning an LLM edit is only kept if deterministic checks prove it doesn't introduce new defects elsewhere).

Fig. 1. Stages of the scaffolded builder. Dark grey: strong model. Light grey: small model. White: deterministic code and platform services.
  • Scaffold: A strong model (Claude Sonnet 5.5) reads the prose specification and control-flow blueprint to plan a high-level skeleton, leaving parameters blank. Then, ~20 deterministic code normalisers fix predictable structural quirks LLMs consistently get wrong (like alias lengths or loop shapes).
  • Fill: Small, cheap models (Claude Haiku 5.5) fill in each step's parameters in parallel. Crucially, they run in data-dependency waves (up to three waves) so downstream steps can see the exact output schemas of upstream steps, viewing only local context rather than the massive JSON file.
  • Verify: Instead of blindly trusting the platform validator, messages are triaged into genuine errors, transient failures, environment gaps, and validator false positives. Genuine errors are routed only to the offending step for localized repair. Finally, the pipeline runs in the real execution engine using mocked external services and payload probes to ensure data actually flows through.

To fairly compare this new system against the live production baseline, the authors built a symmetric offline measurement protocol—revalidating all artifacts under identical triage rules and cross-testing untested baseline outputs.

Datasets

Because models weren't trained here, the datasets are evaluation suites totaling 67 proprietary integration cases (withheld to protect customer privacy):

  • $\text{D}_1$ & $\text{D}_2$ (35 cases): Assembled from real customer integration projects of varying size and high complexity; used as regression sets during development.
  • $\text{H}_{\text{cust}}$ (18 cases): Held-out real customer projects (each requiring $\ge 40$ steps) untouched during development.
  • $\text{H}_{\text{syn}}$ (14 cases): Held-out synthetic specifications generated via LLM agents covering common integration patterns like batch extraction and orchestration.

Key Insights and Ideas

  • Don't prompt away syntax errors—normalise them: When the team tried using prompt instructions to fix recurring structural defects, the errors just popped up elsewhere. Writing deterministic post-processing normalisers eliminated them permanently.
  • Validators lie, and naive self-repair pays the price: The platform's own validator occasionally flagged valid code as broken (e.g., failing to recognize global variables). The monolithic baseline dutifully rewrote good code to appease spurious warnings, damaging correct steps. Triaging false positives before repair saved both tokens and pipeline integrity.
  • Live baselines are moving targets: Between the October and November test campaigns, the team maintaining the legacy production builder increased its repair budget to boost its pass rate. Its accuracy caught up, but its cost nearly doubled—proving why industrial benchmarks must run both systems side-by-side on the exact same days.
  • Broken stop conditions silently drain budgets: Fixing a single bug in an earlier baseline where a successful test failed to halt the agent loop instantly cut its cost and build time in half.

Key Results

The builders were evaluated across two campaigns three weeks apart, requiring pipelines to both validate (after triage) and execute without exceptions:

  • Massive Efficiency Gains: On development sets, the scaffolded builder cut per-case costs by 49.3% and build times by 41.0% in Campaign A (October). By Campaign B (November)—after the baseline grew more expensive—the scaffolded builder was 74.2% cheaper and 61.9% faster on development sets, and 63.7% faster (with estimated 72%–85% lower cost) on held-out sets.
  • Ceiling-Level Pass Rates: In October, the scaffolded builder passed 11.9 percentage points more often than the baseline (98.4% vs. 78.6% on $\text{D}_1$). By November, with the upgraded baseline, both builders hit near-ceiling pass rates (92.9%–100%), showing no statistically detectable difference on held-out cases that didn't depend on which test harness was used.
  • Production Rollout: After a three-week pilot, the scaffolded builder officially replaced the monolithic agent in production.

Limitations and Future Work

  • Passing $\neq$ Business Correctness: A "pass" means the pipeline is valid JSON and executes on a happy path with mocked services without crashing; it doesn't guarantee every nuanced customer requirement is met.
  • Bundled Design Choices: Aside from testing an optional "critic-free" draft mode (which cuts cost another 34.4% at the expense of business-rule coverage), the authors didn't ablate individual components, so gains reflect the whole package rather than one isolated trick.
  • Single-Platform Scope: The study covers one proprietary DSL and model family across 67 cases. Going forward, the old builder remains available as a user fallback in production, and tracking how often users actually fall back to it remains future work.

Summary updated

BibTeX
@misc{chaves2026scaffold,
  author = {Luciano Lucindo Chaves and Renan Novais and Pablo Calvache},
  title = {{Scaffold, Fill, Verify: An Industrial Experience Report on Agentic Generation of Integration Pipelines}},
  year = {2026},
  eprint = {2611.40322},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.40322},
}
Figure