Agentic Spark pipeline debugging copilot
This is a showcase deployment — the loop is real, the models are stubbed.
Everything you are about to watch actually executes: the planner loop picks each next action, the generated SQL is real SQL, it is checked by the safety guard, and it runs against the bundled scenario. What is not running here is Claude — a deterministic reasoner stands in for the five model tiers so this page needs no API keys, no AWS account, and can be opened by anyone without spending anything.
Each step below is tagged with the model tier that handles it in live mode. Point the kit at your own pipeline repo and Athena workgroup, and the same orchestration runs against real infrastructure — nothing about the loop changes.
A data engineer debugging a silent pipeline regression spends most of their time on the same loop: form a guess, write a query to test it, read the result, guess again. The knowledge is rarely the bottleneck — the round trips are. SparkTrace runs that loop as an agent, and keeps a human-readable record of why it did each thing.
There is no scripted plan. Each turn the planner sees the symptom, the pipeline, and the evidence gathered so far, then picks one action: read the repo, generate a diagnostic query, or conclude. An investigation that finds its answer in two steps stops in two steps.
Every generated query passes a deterministic guard before execution — read-only, no exceptions, rejections are recorded and never run. Every result is compacted to a bounded digest before the analyst sees it, so a query returning a million rows can never blow up a prompt.
sparktrace-plannerDecides the next investigative action every turn from the evidence so far. This is the only genuinely open-ended judgement in the loop, so it is the only step that earns the top tier.
sparktrace-repo-readerReads pipeline source and extracts the relevant mechanism. Long context and careful reading, but the question is already framed by the planner.
sparktrace-query-genWrites read-only diagnostic SQL against a known schema — a constrained translation task, and its output is checked by the deterministic guard before anything runs.
sparktrace-analystReads a compacted result digest — never raw rows — and states what it shows. Small, bounded input; the cheapest tier is the correct tier.
sparktrace-reporterSynthesizes the accumulated evidence chain into a root-cause report a data engineer can act on. Quality of writing matters; novel reasoning does not.
The orchestrator only ever talks to interfaces, so live mode swaps four implementations and changes nothing else: the deterministic reasoner becomes the five deployed Lamatic flows, the bundled CSVs become your Athena workgroup, the fixed schema becomes your Glue catalog, and the sample scenario becomes a clone of your pipeline repo.
That is also why this page can exist. The same loop you are watching is the loop that runs in production — it is being fed by fixtures instead of by AWS.