Skip to content

Menu

WorksComputer Science

Agentic Evolution of SQL Test Generators

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_rz4y2tcs. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Automated testing has uncovered many logic bugs in Database Management Systems (DBMSs). Existing tools are typically limited to a few SQL dialects and a subset of these dialects' features. Coding agents based on Large Language Models (LLMs) could encode the semantics of additional SQL features into reusable test generators, requiring no additional LLM calls during testing and thus enabling high efficiency and low cost. However, a key challenge is validating the added capabilities in the presence of potential hallucinations. In this paper, we propose Gungnir, an approach for evolving DBMS test generators using coding agents. Our core mechanism is witness replay: the coding agent provides a generation witness recording the database setup and semantic choices needed to generate a target statement. A validator replays these choices through the modified generator and checks that it reproduces the target statement. Historical witnesses serve as regression tests for subsequent modifications. We evaluated Gungnir on SQLite, DuckDB, and PostgreSQL and found 44 bugs confirmed by developers, of which 34 have been fixed. Beyond DBMSs, witness replay could generalize to other systems to guide agents in extending test generators.

CCS Concepts

• Software and its engineering → Software testing and debugging; • Information systems → Database management system engines; • Computing methodologies → Natural language generation.

Introduction

Database Management Systems (DBMSs) are complex software systems whose correctness affects downstream applications. Besides crashes and performance issues, DBMSs can contain logic bugs, which cause queries to return incorrect results without raising an error. Automated testing approaches detect these bugs by generating SQL statements and checking their results with a test oracle [32, 33]. These approaches have uncovered hundreds of previously unknown bugs in widely used DBMSs [50, 51].

The effectiveness of a test oracle depends on which SQL features the generated statements contain. Mutation-based tools derive inputs from existing statements, and their scope depends on the seed corpus and available mutation operators [48]. Generation-based tools create schemas, populate tables, and generate queries from predefined rules [32, 33, 34]. Once implemented, a generator can repeatedly test its supported features at high throughput. The challenge of supporting the multitude of SQL features within a generator is further exacerbated given that most DBMSs implement a distinct SQL dialect. SQLancer++ supports an adaptive generator that adjusts generation probabilities during run-time to fit different dialects, but requires manual source modifications to support new SQL features [51].

Listing 1 shows a reduced test case that exposes a logic bug in SQLite, which SQLancer++ fails to find due to lack of support for row value IN predicates with aggregate subqueries. The existing test oracle can detect this bug once the generator supports the required predicate. Automating this task would allow the generator to incorporate new SQL features as DBMSs evolve. However, adding such support requires understanding both the generator implementation and the SQL features of the target DBMS.

Recent work uses Large Language Models (LLMs) within predefined workflows to automatically improve DBMS testing tools. For example, SQLVEL uses LLMs to add validated SQL fragments to the generator, while Argus uses LLMs to propose test oracles that are independently verified [27, 50]. However, the SQL features supported by these workflows depend on their generation and verification mechanisms. SQLVEL fills predefined sketches, while Argus verifies query relations within the SQL features supported by its underlying solver and base generator. Both generators lack support for generating the row value IN comparison with a subquery to trigger the bug in Listing 1. Extending these mechanisms to support additional SQL features still requires modifications to the test generator.

Increasing LLM capability opens new opportunities for greater autonomy than in previous work [24]. Coding agents can inspect software repositories and implement modifications across several source files [39, 42, 46]. These agents could implement the state handling and generation rules needed for a new SQL feature. However, a key challenge is to deterministically validate whether the modified generator can generate statements containing the requested feature. Current feedback signals provide insufficient evidence for the agents to determine when a certain feature can be generated. First, checking for a successful build provides insufficient evidence that the generator can generate requested features during run-time. Second, it is difficult to validate whether the generator can generate a requested feature, since, due to the inherent stochasticity of generators, the feature would not necessarily be generated within a fixed timeframe. Third, coverage feedback can guide LLM-driven generator evolution [5], but an increase in coverage does not show that a requested statement can be generated.

In this paper, we propose Gungnir, a system for evolving DBMS test generators with coding agents. Our core insight is to require the coding agent to provide a so-called generation witness alongside each generator modification, providing concrete evidence of how the modified generator can generate a target statement. We realize this witness mechanism through a common guidance interface that records the semantic choices instrumented in the generator. The input to the witness mechanism is a target SQL statement—which can contain one or more new SQL features. A generation witness records the database setup and semantic choices needed to generate this target. The coding agent is responsible for implementing the requested feature and identifying the choices needed to generate the target; the validator is responsible for checking this evidence by replaying the choices through the modified generator, comparing the complete generated statement with the target statement, and running the required executable check before the modification can be accepted for further testing. For subsequent modifications, we require the coding agent to preserve previously witnessed behavior, which the validator checks by replaying the historical witnesses.

We implement Gungnir as a multi-agent system (MAS) that evolves SQLancer++, separating the analysis of missing DBMS features from their integration into the test generator. An analyst agent derives target statements from DBMS source code, tests, and bug reports, while a coding agent modifies the generator using witness feedback. A triage agent investigates failures found during DBMS testing. The testing results and triage findings guide the analyst agent’s selection of further targets, forming a controlled evolution loop. After evolution, no more calls to the LLM or witness mechanism are required.

We evaluated Gungnir on SQLite, DuckDB, and PostgreSQL and reported 44 bugs confirmed by developers, of which 34 have been fixed. The evolved generators achieved higher line and branch coverage than the generator baselines on all three DBMSs in the reported runs. In a separate DuckDB case study fully automated by agents—starting from a single prompt and ending with bug reports—Gungnir completed 81 feature goals and generated 5 bug reports confirmed by developers, with a cost of US$20.85.

In summary, this paper makes the following contributions:

  • We propose witness replay, which checks whether a modified generator can generate target statements and supplies feedback for further source modifications.

  • We implement Gungnir, a system that evolves SQLancer++ with coding agents and preserves the resulting features for DBMS testing.

  • We evaluate Gungnir on SQLite, DuckDB, and PostgreSQL, reporting 44 bugs confirmed by developers, including 34 fixed bugs.

Background and Motivation

We first introduce SQL generators and test oracles, then discuss how LLMs can help generate SQL test cases.

SQL Test Generation

Test generator. SQL generators construct test cases from scratch based on predefined rules [33, 34, 51]. The rules define how to create a database schema, populate tables, and generate queries following target DBMS semantics. First, generators track the database state to satisfy dependencies among statements. For example, a table must exist before an insertion, and a query can reference only columns available in the current schema. Second, the generator needs to generate statements that are syntactically and semantically valid for the target DBMS. For example, it selects columns and operations with compatible types when constructing expressions. SQL dialects add further constraints on which features a DBMS accepts [49, 51]. For example, SQLancer supports 22 DBMS-specific generators with an average of 3.1K lines of code (LOC) for generation and supporting components. Supporting a new feature requires modifications to schema handling, expression generation, and SQL rendering. Third, the generator needs to satisfy the test oracle’s syntactic and semantic constraints. These requirements extend to generators that are modified by an LLM, such as in our work.

Test oracle. A test oracle determines the expected result of a test case. It allows the testing tool to check whether a randomly generated SQL statement returns the expected result. Ternary Logic Partitioning (TLP) is a widely used oracle for logic bug detection [33]. TLP divides the rows of one query according to whether a random predicate evaluates to true, false, or NULL, then compares the union of these partitions with the original result. While Gungnir relies on TLP in its implementation, it can adapt any of the existing test oracles. We deliberately avoid using LLMs for generating test oracles, since an incorrect one—for example, caused by hallucinations—would result in false alarms that would require developer intervention.

SQLancer++. SQLancer++ reduces the effort of supporting different SQL dialects by generalizing generation rules across DBMSs [51]. Its adaptive generator uses execution feedback to adjust probabilities of generating implemented SQL features; however, generating additional features requires new rules. For example, the SQLite case in Listing 1 required a row value representation and generation logic that connected it to an aggregate subquery. Adding this feature required modifications to the predicate generation of SQLancer++.

Listing 2 shows the existing rule for an IN predicate with a list of expressions. The predicate generator calls booleanExpr, which first selects an enabled Boolean expression form. For IN_LIST, it selects a type and generates the left operand and list elements with that type. Adding a new kind of Boolean expression requires adding its construction rule and a branch that calls it. For the example in Listing 1, this means generating a row value on the left and an aggregate subquery on the right of IN.

LLMs for Test Generation

LLM-generated SQL. A plausible way to automate DBMS testing is to let coding agents directly generate SQL test cases and execute them to then investigate potential bugs, potentially also allowing them to inspect the DBMS’ source code. However, this direct approach faces three challenges. First, the agent can infer an incorrect expected result and report correct behavior as a logic bug.

Listing 2: Boolean expression generation in SQLancer++. Other operations are omitted.

1  Expr booleanExpr(Context c) {
2      Form f = choose(c.booleanForms);
3      if (f == IN_LIST) {
4          Type t = choose(c.types);
5          Expr x = expression(c, t);
6          List<Expr> xs = expressions(c, t, smallInt()+1);
7          return in(x, xs);
8      }
9      return otherBoolean(c, f);
10 }

This difficulty also occurs in general software testing: RepoAudit reports false positives in code auditing [12], and agentic property-based testing documents agents mistaking intended behavior for bugs [25]. Second, generating test cases requires many LLM calls unless the generation logic is saved for reuse, adding inference cost and latency to continued testing. Third, the search space of agents can be biased toward familiar bug patterns learned during pretraining, such as incorrect handling of boundary values. These patterns can guide useful bug findings, but may also concentrate testing on similar cases and leave unfamiliar feature combinations unexplored. These difficulties motivate using agents to extend a reusable SQL generator.

LLM-based SQL generators. Retaining validated LLM knowledge in a generator allows repeated testing without further model calls and avoids the false alarms that arise from relying on LLMs to judge correctness. ShQveL fills SQL sketches with LLMs and saves validated fragments for subsequent test generation [50]. It checks filled sketches by execution and uses existing test oracles to detect logic bugs. Argus discovers pairs of abstract queries, verifies their equivalence with a SQL equivalence solver, and instantiates them with reusable SQL snippets [27]. Its soundness depends on the verified equivalence and the constraints imposed on snippet instantiation. Both approaches validate LLM outputs before using them for testing instead of relying on the LLM to judge correctness.

Both ShQveL and Argus are constrained by the generator’s existing capabilities. ShQveL can learn new fragments, but the locations of sketch holes and the generator logic that uses them remain manually implemented. Specifically, its expression sketches fill developer-selected operator or function holes; they cannot extend the generator with new syntactic structures, for example, the row value IN comparison in Listing 1. Argus is further limited by the SQL features supported by its equivalence solver, and a query relation that the solver cannot prove cannot become a verified oracle [27]. For example, it cannot directly prove SQLite’s bare-column aggregate semantics in Listing 1. Although snippets can introduce additional features during instantiation after suitable extensions, they require substantial LLM effort to build a snippet corpus.

Approach

In this paper, we propose Gungnir, which tackles the problem of reliably building and continually improving automated DBMS testing tools for finding logic bugs. The core mechanism of Gungnir is witness replay, which checks whether a modified generator can generate a requested SQL statement. We assign a coding agent the responsibility of modifying the generator to support given target SQL statements—which provide concrete examples of feature usage—and providing executable evidence of that support. A generation witness records the database setup and semantic choices needed to generate a target statement. An external validator checks whether the agent has fulfilled this responsibility by replaying each witness through the modified generator, comparing the generated statement with its target. Failures guide further modifications to the generator and its witness, and the witnesses are saved for regression testing of future generator modifications. Figure 1 illustrates these steps for a row value IN predicate whose right side is an aggregate subquery. We next detail these steps.

SQL listing showing a SQLite logic bug

Figure 1. A SQLite logic bug exposed after generator evolution. The query should return -1, but returns no rows.

Specifying the Target

In Step ①, our approach expects a target SQL statement QQ containing the feature to be added. The target illustrates the feature for the coding agent and specifies the required behavior for the validator. Targets can be derived automatically by agents from DBMS documentation, source code, regression tests, bug reports, or prior testing results. In principle, they can also be supplied manually. Targets should satisfy several constraints, including being valid SQL statements and meeting the input requirements of the test oracle used for validation. We explain how these constraints guide the analyst agent in synthesizing targets in Section 4.1. During target synthesis, the existing test oracle checks the proposed test case on the selected DBMS before it becomes a target for the coding agent. For example, the target QQ in Figure 1 selects t0.c0 from t0 and t1, with a predicate comparing the row (t0.c0,t0.c1)(t0.c0, t0.c1) with the result of SELECT k, min(v) FROM t1.

Modifying the Generator

In Step ②, we require the coding agent to modify the current generator GG to generate the target statement and construct a generation witness that demonstrates this behavior. We denote the modified generator by G′G'.

Source modifications. We call the coding agent to modify source code to add new features for generating the target QQ. The agent adds ROW_IN to the Boolean expression forms in Listing 2. Listing 3 shows the new branch and helper. The context c provides the schema tables through c.tables and the outer query’s columns through c.columns. The generator selects ROW_IN through the same choice as IN_LIST and the other Boolean expressions. This enables the generator to generate the target QQ. During execution, the generator may pick corresponding choices for the new ROW_IN branch, its tables and columns, and the MIN aggregate. However, agents might make mistakes when performing changes. For example, the agent may add the new predicate without making it reachable from the query generator, or may simply call the wrong function that generates only constants but not column references. We thus need to validate that the modified generator can generate the target.

Generator model. To describe the choices needed for such an execution, we model SQL generation as a sequence of semantic

Figure 1 (PDF p. 4). Witness replay for a row value IN target. The modified generator G′G' uses witness WW to generate Q′Q', which is compared with target QQ. File badges M and A mark modified and added source files. Black branches show selected alternatives, gray branches show unselected alternatives, and dashed lines bind witness choices to generation decisions.

Generator modification for Step ②

Figure 3. Generator modification for Step ②. Yellow shading marks the added ROW_IN branch, and green shading marks its helper.

Expr booleanExpr(Context c) {
    Form f = choose(c.booleanForms);
    if (f == IN_LIST) {
        ...
    }
    if (f == ROW_IN)
        return rowIn(c);
    return otherBoolean(c, f);
}
Expr rowIn(Context c) {
    Table t = choose(c.tables);
    Agg op = choose(MIN, MAX);
    Column v = choose(t.columns);
    Expr agg = call(op, v);
    Column k = choose(t.columns);
    Query q = select(t, k, agg);
    Column a = choose(compatible(c.columns, k));
    Column b = choose(compatible(c.columns, v));
    return in(row(a, b), q);
}

decisions. This model follows the interpretation of a random generator as a parser of choice sequences [10]. Each did_i identifies a decision site together with its occurrence number during generation. For example, a column-selection call inside a loop may run twice to construct a two-column expression; its first execution can select t0.c0t0.c0 and its second t0.c1t0.c1. The source location and occurrence number distinguish these decisions in the witness. The state xix_i contains the current schema, expected type, partial Abstract Syntax Tree (AST), and local generation context before decision site did_i. We write DG′(di,xi)D_{G'}(d_i, x_i) for the alternatives allowed by the generator and its fixed configuration at decision site did_i in state xix_i, and TG′T_{G'} for the generator’s state transition after selecting an alternative. A semantic decision can summarize internal random draws and sampling retries; TG′T_{G'} describes the construction step that uses the selected

value. A selection policy π\pi returns an alternative from DG′(di,xi)D_{G'}(d_i, x_i). During random generation, the policy π0\pi_0 uses pseudorandom draws initialized by a seed to select alternatives. Thus, G′G' chooses

ci=π0(di,xi)∈DG′(di,xi),xi+1=TG′(xi,di,ci).c_i = \pi_0(d_i, x_i) \in D_{G'}(d_i, x_i), \qquad x_{i+1} = T_{G'}(x_i, d_i, c_i).

The policy determines which alternative is selected; TG′T_{G'} determines how the generator uses it to construct SQL. A decision can select a table, column, expression form, operator, constant, or statement generation strategy. In Listing 3, each choose call corresponds to a decision site, and its arguments determine DG′(di,xi)D_{G'}(d_i, x_i). For example, at the aggregate choice on line 13, DG′(di,xi)={MIN,MAX}D_{G'}(d_i, x_i)=\{\mathrm{MIN}, \mathrm{MAX}\}; selecting ci=MINc_i=\mathrm{MIN} stores that aggregate in op for the subsequent construction step. Domains can also depend on the current context. For example, choose(c.tables) selects from the available tables, while choose(compatible(c.columns, k)) selects columns compatible with k. Although the listing shows choices from collections, the model also covers random integers drawn from a range [l,u)[l, u), with domain {z∈Z∣l≤z<u}\{z \in\mathbb{Z} \mid l \le z < u\}. Replay checks range bounds directly without enumerating the integers. Like Zest, which exposes generator parameters to guide structured test generation [31], we make generator choices explicit. Semantic names such as MIN and t0.c1t0.c1 let the agent identify the decisions needed for the target.

Witness construction. We require the coding agent to provide a witness that can be externally validated based on the generator model. To this end, during source modification, the agent identifies the choices needed to generate the target and records them in a witness. An executable setup FF creates the schema and data required by a target. A generation witness W=(F,A)W=(F,A) pairs this setup with an assignment AA from decision sites to semantic values. The setup FF initializes the generation state x0x_0, which contains the table names (e.g., t0t0, t1t1) and the column names (e.g., c0c0, c1c1) for the target. The assignment A(di)A(d_i) selects the alternative used by TG′T_{G'} whenever did_i is assigned. A valid assignment thus satisfies A(di)∈DG′(di,xi)A(d_i) \in D_{G'}(d_i, x_i) at each assigned decision reached during execution. During replay, the validator checks each assigned value against the alternatives allowed by the generator in the current state xix_i. The witness specifies which alternatives to select throughout the generator G′G', which then executes the corresponding construction steps to generate SQL. Selecting an existing alternative only requires changing the witness assignment. If a required alternative, such as ROW_IN, is unavailable, the agent should modify the generator to support it. Further source modifications can change decision sites and require corresponding changes to AA. The agent submits both G′G' and WW for replay and validation against the fixed target QQ.

For the running example in Listing 3, AA selects ROW_IN at line 2 and t1 at line 12. It selects MIN at line 13, then t1.v and t1.k at lines 14 and 16, respectively. Finally, it selects t0.c0 and t0.c1 for the row value at lines 18 and 19. Together with the choices of t0.c0 for the outer projection and t0 and t1 for the outer FROM clause, these assignments direct G′G' to construct (t0.c0, t0.c1) IN (SELECT k, min(v) FROM t1).

Replaying the Witness

In Step ③, the validator checks whether the coding agent has correctly implemented the feature in the generator so that it can generate the target QQ. It does so by executing the setup FF and running G′G' under the policy πA\pi_A specified by the assignment AA:

G′(F;πA)=Q′.G'(F; \pi_A) = Q'.

Here, Q′Q' denotes the generated statement designated for comparison with the target statement QQ. Replay requires no LLM calls or human inspection. For the row value target, FF creates tables t0(c0 INT, c1 INT) and t1(k INT, v INT) and initializes the schema in x0x_0.

Replay policy. Replay changes the selection policy while preserving the generator’s construction transitions TG′T_{G'}. To make the generator replayable, we instrument its choice operations, represented by choose in Listing 3. At each call, the instrumentation identifies the decision site and its occurrence, obtains the alternatives allowed in the current state, and consults AA. It returns the assigned value when one is present and otherwise invokes the original random selection procedure. Thus, during witness construction and new-target validation, the replay policy is

πA(di,xi)={A(di),if A(di) is defined,π0(di,xi),otherwise.\pi_A(d_i, x_i) = \begin{cases} A(d_i), & \text{if } A(d_i) \text{ is defined},\\ \pi_0(d_i, x_i), & \text{otherwise}. \end{cases}

SQL construction. Replay checks A(di)∈DG′(di,xi)A(d_i) \in D_{G'}(d_i, x_i) at each assigned decision site before applying the generator’s transition TG′T_{G'}. For the aggregate decision site dad_a on line 13 of Listing 3, A(da)=A(d_a) = MIN is valid because its domain contains MIN and MAX; assigning COUNT would fail this check. The transitions use these choices to construct the aggregate expression, its enclosing subquery, and the row value comparison in Figure 1. Replay records the visited decision sites and selected values and fails if an assigned site is never reached.

Validating the Result

In Step ④, the validator checks both the requested behavior and previously witnessed behavior before accepting G′G'.

New target validation. The generation requirement is that replay uses all assigned choices successfully and generates the fixed target by exact string equality Q′=QQ' = Q. This comparison checks whether the modified generator can generate it. Starting from x0x_0, each replayed decision selects ci∈DG′(di,xi)c_i \in D_{G'}(d_i, x_i) and applies the generator’s transition TG′T_{G'}. By induction over these decisions, replay follows a path through the modified generator’s own transitions. Together with Q′=QQ' = Q, this shows that G′G' can generate the target from FF under the witness assignment. As a limitation, a passing witness cannot show whether or how frequently QQ occurs during random testing, as discussed in Section 6.

Historical target validation. We maintain a regression test suite W\mathcal{W} of accepted generation witnesses to preserve previously witnessed behavior. For each accepted witness W=(F,A)W = (F, A), we record all choices from its successful execution in AA and add WW to W\mathcal{W}, together with the expected SQL. Before accepting a later generator modification G′G', the validator replays every W∈WW \in\mathcal{W} through G′G' using its setup and recorded choices. The modification is accepted only if every witness in the suite passes. The agent may update AA when the decision sites change, while the setup and the expected SQL remain fixed. If source edits within the same file shift site locations, the agent updates those locations automatically. Otherwise, ambiguous changes require the agent to inspect the affected code and revise the witness.

Feedback. Replay failures provide feedback to the coding agent for modifying the generator and its witness assignments. Witness validation can fail in three ways. First, an assigned value can be unavailable: A(di)∉DG′(di,xi)A(d_i) \notin D_{G'}(d_i, x_i) at a visited decision. Second, the assignments can fail to match the visited decision sites: an assigned site is never reached, or a visited site has no assignment during strict historical replay. Third, the generated statement can differ from the target statement (Q′≠QQ' \ne Q), or historical replay can fail to reproduce the recorded SQL. The agent uses these failures from both new and historical witnesses to modify the generator and its assignments, then repeats validation until all required checks pass or the evolution budget is exhausted.

System Implementation

We implement Gungnir on SQLancer++ as a multi-agent system with a control loop. While, in principle, a human could provide the target statements, we aimed to fully automate the process.

Agent workflow. Figure 2 shows how Gungnir coordinates the analyst and coding agents with the evolved testing tool. The analyst agent specifies capability goals containing target queries, and the coding agent modifies the generator and constructs generation witnesses to complete the goals. This separation is motivated by studies of LLM-based testing showing that tests generated from incorrect code can repeat the implementation’s incorrect assumptions [13, 47]. This separation also allows the agents to work in parallel. For example, while the analyst examines the target DBMS’s source code, the coding agent can extend the generator using previously prepared goals. The validator independently replays these witnesses against target queries and returns failures as feedback to the coding agent. The orchestrator determines goal completion from the validation results and directs further testing with the accepted generator. Testing results guide subsequent analysis, forming a feedback loop.

Figure 2. System overview of GUNGNIR. The analyst agent derives capability goals from DBMS evidence. The coding agent modifies the generator, and the validator checks the witnesses. The orchestrator continues the control loop. DBMS testing supplies evidence for subsequent analysis.

Listing 4: A simplified TLP oracle (top) and illustrative analyst agent constraints (bottom).

Query q = select(columns, tables);                                      [1]
Expr p = deterministicPredicate();                                     [2]
Rows parts = concat(run(q, p), run(q, not(p)), run(q, isNull(p)));
assertSameMultiset(run(q), parts);                                      [3]

↓ Constraints described to the analyst agent

[1] Provide the schema and data; use the same base query.

[2] Keep the predicate deterministic across executions.

[3] Check that the combined partitions equal the base result.

Analysis

The analyst agent examines DBMS source code, regression tests, bug reports, or prior testing results and specifies capability goals from these sources. These goals guide the coding agent toward SQL features that the generator should support.

Capability goals. A capability goal describes a SQL feature to be added using different variants of concrete target statements containing that feature. Specifically, each goal contains a database setup (e.g., statements to create the tables) and distinct variants of target queries that witness replay should match. For the row value IN feature, variants can vary the aggregate from MIN to MAX and change the columns in the row value. These target statements should satisfy the constraints of the generator under evolution. For example, nondeterministic features integrated into a TLP predicate may lead to false alarms; thus, the analyst should avoid incorporating such features. We discuss this in more detail in § 6.

Target constraints. The constraints guide target synthesis before the coding agent modifies the generator. We provide the analyst agent with a natural language description of the supported target forms and the existing test oracle’s requirements. Listing 4 pairs a simplified TLP oracle with the corresponding instructions. First, a target should fit the oracle’s supported query form. For the WHERE variant of TLP, the analyst supplies a base query and a Boolean predicate from which the oracle constructs the partitions; an arbitrary SQL statement need not fit this form. New features can appear in the predicate or the shared FROM/JOIN structure. Second, the target should execute successfully on the selected DBMS with the supplied schema and data, so that the coding agent receives a valid example of the requested feature. Third, the analyst should avoid features that can invalidate the target oracle. This is a best-effort constraint—before adopting a target as a goal, the system independently executes its test case and checks that the base result equals the combined partition results.

Coding

The coding agent modifies SQLancer++ and constructs witnesses for the targets of one goal, as illustrated in § 3. Each modification attempt starts from the last accepted generator and runs in an isolated environment. The witness mechanism validates the modification by replaying the provided witnesses and checking them against the targets specified by the goal. Any mismatch or exception is used as feedback to help the coding agent modify the generator and witnesses. The current implementation runs replay through the existing oracle execution path and also requires a passing oracle outcome, in addition to the target comparison.

Controller

The controller pipelines analysis, coding, and testing. The analyst agent prepares further goals while the coding agent modifies the generator and a background fuzzer tests accepted generators.

Testing schedule. Separating the analyst agent from the coding agent allows goal preparation to proceed alongside implementation. Witness replay checks the requested targets directly, allowing validation to proceed without waiting for a random testing segment to finish. After replay and regression checks pass, the orchestrator accepts the modified generator and queues it for testing. The fuzzer switches between queued generators at segment boundaries and runs without interaction with LLMs. A controller agent uses code coverage, execution statistics (e.g., query throughput), and completed goals to select the next goal and guide further analysis.

Handling frequent bugs. Frequent bug-inducing test cases can saturate testing without exposing further bugs, which is a common issue in automated testing [6, 8]. A single SQL feature may repeatedly trigger known bugs, consuming testing time that could otherwise explore other features. After each fuzzing segment, a triage agent analyzes the reported bugs and identifies whether changes to the generator are needed. Large numbers of bug-inducing test cases increase triage effort; a repair agent thus modifies the generator to avoid recurring triggers. Figure 3 illustrates how repair fits into the pipeline. When bug-inducing test cases exceed a certain threshold (e.g., five for a testing segment), the orchestrator switches testing to a previously tested generator that did not show this behavior. The coding agent continues its current modification, but the completed result waits for repair before integration. Meanwhile, the repair agent modifies the generator that triggers the bugs, for example, by temporarily disabling the generation of certain SQL features that trigger known bugs. The orchestrator then mechanically merges the repair with the coding agent’s changes. Any conflicts are resolved by the coding agent. The combined generator is rebuilt and passes regression checks before entering another fuzzing segment. Testing continues with the earlier generator until the combined generator is ready; if no suitable earlier generator is available, it waits throughout repair. Section 5.4 examines how these activities overlap in a complete run.

Figure 3 (PDF p. 7). Pipelined evolution. VV denotes regression checks, + denotes the code merge, and GiG_i denotes the ii-th validated generator.

Evaluation

We evaluated Gungnir in terms of bug-finding effectiveness, feature acquisition, performance compared with baselines, and practicality. First, we evaluate the bug-finding effectiveness of Gungnir on three popular DBMSs. Second, we measure whether witness replay helps coding agents acquire and preserve requested features. Third, we compare the evolved generator with state-of-the-art DBMS testing tools. Finally, we study how Gungnir evolves SQLancer++ and tests DBMSs from a bug-finding request.

Baselines. We compare Gungnir with ShQveL, SQLancer, and the initial SQLancer++ generator. We also include the DBMSs’ native regression tests as a reference. ShQveL is the closest baseline because it also uses LLMs to extend test case generation, but learns SQL fragments rather than modifying generator code [50]. SQLancer provides manually implemented generators and a platform for test oracles such as TLP, DQP, and CODDTest [4, 33, 44]. SQLancer++ provides a general generator across SQL dialects and underlies ShQveL and JIR [41, 50, 51] and serves as the initial generator. Test suites can supply seeds for mutation-based tools and already exceed SQL generators in coverage [50, 51].

Setup. We conducted the experiments using a server with a 64-core AMD EPYC 7763 CPU at 2.45 GHz and 512 GB of memory running Ubuntu 22.04. For feature acquisition, each measurement used 4 generator threads, a CPU quota of 4 cores, and a 12 GiB memory limit for 600 seconds per seed. For baseline comparison,

each tool received 24 hours, a CPU quota of 4 cores, and 24 GiB of memory during DBMS testing. Each generator used 1 thread; coverage replay for SQLite and DuckDB used 2 workers within the same allocation. The practicality case study used 6–8 fuzzer threads and a 24-hour budget for admitting new work.

DBMS selection. We select three open-source DBMSs with different workload focuses. SQLite and PostgreSQL primarily target transactional workloads, while DuckDB primarily targets analytical workloads. SQLite and DuckDB run as embedded systems, whereas PostgreSQL runs as a server. We use SQLite, DuckDB, and PostgreSQL for bug finding and baseline comparison. For the coverage comparison, we selected SQLite 3.53.4, DuckDB 1.5.5, and PostgreSQL 18.6. SQLite and PostgreSQL are among the most challenging targets for finding logic bugs. SQLite’s TH3 test suite achieves 100% branch coverage of its core library. TLP implemented in SQLancer found no logic bugs in PostgreSQL [33]. Among the DBMS testing papers on logic bug detection published within the last five years at SIGMOD and VLDB, only four report confirmed logic bugs in SQLite [36, 41, 43, 44] and four in PostgreSQL [7, 15, 27, 43]. We excluded MySQL because earlier testing campaigns reported that many known bugs remained unfixed [52], making it difficult to assess the contribution of new testing methods. We use DuckDB as a case study to evaluate the practicality of Gungnir.

Bug-Finding Effectiveness

We evaluated Gungnir in an unstructured testing campaign on SQLite, DuckDB, and PostgreSQL, following the practice of prior DBMS testing work [33, 51]. We used TLP to detect incorrect query results and monitored failures such as crashes and internal errors. The system reduced and prioritized the bug-inducing test cases, which we further examined before reporting them to developers. We checked earlier issue reports and fixes for duplicates and excluded reports that developers classified as intended behavior from the bug count. The results include bugs found after generator modifications, through configuration changes, and through direct analysis of DBMS source code by an agent.

Bug statistics. Table 1 summarizes the bug statistics for each DBMS. In total, we submitted 45 reports, of which 44 describe bugs confirmed by developers and 1 describes intended behavior. Among the confirmed bugs, 34 have been fixed. 32 bugs cause incorrect query results, while 12 cause unexpected errors or crashes. All 18 confirmed SQLite bugs have been fixed. The DuckDB developers confirmed 22 bugs and fixed 14; the PostgreSQL developers confirmed 4 and fixed 2. The five DuckDB reports from the practicality case study concern nested types, casts, statistics propagation, and predicate optimization; they are included in the confirmed bug counts. These results demonstrate that Gungnir can find bugs that DBMS developers consider worth fixing, including 17 logic bugs in SQLite and 3 in PostgreSQL despite extensive prior testing. For example, CODDTest reported six confirmed SQLite logic bugs [44], while EDC, SRS, Argus, and EPSC reported one, two, one, and one confirmed PostgreSQL logic bugs, respectively [7, 15, 27, 43]. These findings show that extending the generator can expose new bugs in well-tested DBMSs even when using a single existing test oracle.

DBMSLOC (K)ConfirmedFixedLogicOther
SQLite2211818171
DuckDB70022141210
PostgreSQL1,0774231
Total44343212

Table 1. Gungnir allowed us to find and report 44 confirmed bugs in three DBMSs, of which 34 have been fixed. The bugs include 32 logic bugs and 12 other defects. The table also shows the DBMS size in KLOC.

1CREATE TABLE t0(c0 TEXT);
2INSERT INTO t0 VALUES ('[1, 2, 3]');
3
4SELECT value FROM json_each(t0.c0),
5t0 RIGHT JOIN (SELECT 1) sub0 ON true;
6-- Returns no rows
7
8SELECT value FROM json_each(t0.c0),
9t0 RIGHT JOIN (SELECT 1) sub0 ON true
10WHERE t0.c0 IS NOT NULL;
11-- Returns 1, 2, 3

Table 5. Adding a WHERE predicate changes a SQLite query’s result from no rows to three rows.

Bug feature analysis. We further characterize how acquired features combine in these bug-inducing test cases. Among the 44 bugs, 19 required at least one evolved feature, 8 required two, and 14 required at least three. For each evolution run in our bug-finding campaign, the first bug appeared at evolution iteration 23.7 on average. The seed generator could find three DuckDB bugs without modifications. These counts reflect the features in each bug-inducing test case after best-effort reduction. Fewer features might still trigger the bug, but the same oracle might not detect it. We discuss three logic bugs and the generator capabilities needed to expose them.

SQLite bug involving json_each() and RIGHT JOIN. Listing 5 shows a SQLite bug where adding a WHERE predicate changes a query’s result from no rows to three rows. The initial generator could not use JSON table-valued functions in the base query’s FROM clause. The coding agent added these functions, exposed their output columns to predicate generation, and extended data generation with valid JSON values. The following testing phase then combined the new capability with existing RIGHT JOIN generation and exposed the inconsistency.

DuckDB bug in indexed sampled scans. Listing 6 shows a DuckDB wrong result: the sampled table contains no rows, but filtering it with an IN subquery returns one. The coding agent added TABLESAMPLE to the generator’s FROM clauses, and the subsequent testing phase combined it with an indexed Boolean column and an existing IN-subquery predicate. Without the index, the filtered query also returns zero rows. This case shows a newly acquired generator capability combining with existing schema and predicate generation to expose a DuckDB wrong result during subsequent testing.

1CREATE TABLE t0(c1 BOOLEAN);
2CREATE INDEX i0 ON t0(c1);
3INSERT INTO t0 VALUES (NULL), (true);
4
5SELECT count(*) FROM t0 TABLESAMPLE SYSTEM (66%) REPEATABLE (209);
6-- 0
7SELECT count(*) FROM t0 TABLESAMPLE SYSTEM (66%) REPEATABLE (209)
8WHERE c1 IN (SELECT c1 FROM t0 GROUP BY ALL);
9-- Expected: 0; Actual: 1

Table 6. An indexed predicate returns one row from an empty DuckDB sample.

1CREATE COLLATION ci (provider = icu,
2locale = 'und-u-ks-level1', deterministic = false);
3CREATE TABLE t_lhs(c1 text COLLATE ci);
4CREATE TABLE t_rhs(c0 text);
5INSERT INTO t_lhs VALUES ('a'), ('x'), ('y');
6INSERT INTO t_rhs VALUES ('a');
7ANALYZE t_lhs;
8ANALYZE t_rhs;
9INSERT INTO t_rhs VALUES ('A');
10
11SELECT c1, c1 IN (SELECT c0 FROM t_rhs) AS p FROM t_lhs;
12-- a | t
13-- x | f
14-- y | f
15SELECT count(*) FROM t_lhs WHERE c1 IN (SELECT c0 FROM t_rhs);
16-- Expected: 1, Actual: 2

Table 7. PostgreSQL counts two rows although the same IN predicate matches only one.

The bug-inducing test case combining different features was generated after several iterations of generator evolution. The coding agent added IN-subquery predicates in iteration 5, extended these subqueries with GROUP BY ALL in iteration 18, and added TABLESAMPLE in iteration 30. Testing in iteration 32 combined these capabilities over an indexed Boolean column and exposed the result mismatch. The index came from existing schema generation.

PostgreSQL bug in collation handling. Listing 7 shows a PostgreSQL wrong result: the IN predicate matches only 'a' in the projection, but the filtered query counts two rows. The left column’s nondeterministic ICU collation equates 'a' and 'A', while the right column uses the default collation. The planner deduplicated the semijoin’s right side under the default rather than the join collation, retaining both values and emitting the match twice; the fix uses the join collation. The initial generator could not create such collations. The coding agent added collation creation and assignment to text columns, allowing existing IN-subquery generation to expose the defect.

Bug reachability analysis. These three cases illustrate why reaching new bugs requires extending query and schema generation beyond learning SQL fragments or discovering test oracles. First, the SQLite case requires a JSON table-valued function in the FROM clause and its output columns in subsequent predicates; Sqlite’s expression sketches cannot supply this integration, and Argus does not support SQLite [27, 50]. Second, the DuckDB case combines TABLESAMPLE, an index, and an IN subquery, which is beyond ShQveL’s expression sketches. Third, the PostgreSQL case requires creating a nondeterministic ICU collation and assigning it to a column before generating the IN predicate; learning expressions alone does not add this schema support. In principle, Argus’s table placeholders can represent the required table expressions with suitable snippets and could expose the latter two bugs; however, this requires generating corresponding snippet pools. Reaching features such as custom collations still requires an efficient schema generator. Gungnir instead integrates LLM knowledge into reusable query and schema generation rules, allowing subsequent random testing to combine the acquired features across newly generated database states without further LLM calls for SQL generation.

Feature Acquisition

We evaluated whether witness replay helps coding agents implement requested SQL features in the generator. We compared evolution with and without witnesses in two session settings and measured task completion and query variety.

Tasks. We selected 50 query targets from distinct extension goals mined from DuckDB’s documentation and regression tests after inspecting the generator’s source code for missing features. Each task supplied a target query, a schema, and data, which we checked against DuckDB. The targets cover eight categories, including expressions, aggregation, nested values, table sources, subqueries, and windows (see Figure 4). They require changes to generation rules, type handling, and scope handling. Listing 8 shows a condensed prompt for list subscripting. The initial generator supported function-based list access but lacked postfix subscripts. We instructed the agent to integrate typed subscripts into random generation over live schemas. Both conditions received the same target and schema settings, together with instructions to vary columns and constants, preserve earlier capabilities, and sample comparable generation choices uniformly.

Figure 4. The 50 query targets grouped by the generator functionality they primarily test. Bar labels give target counts.

Settings. We used OpenCode with deepseek-flash for all settings, starting from the same generator functionality and using development guidance derived from the same skill. We evaluated with and without witness under multi-session and one-session.

Listing 8: A condensed feature-acquisition task for list subscripting.

Schema: t0(c0 INT[], c1 INT)
Target: SELECT * FROM t0 WHERE (((t0.c0)[1])>(t0.c1))
Request:
    Implement typed list subscripts in random generation.
    Do not hard-code the target SQL.
    Vary columns and constants; preserve earlier features.
    Sample comparable legal generation choices uniformly.

These settings let us compare witness feedback during incremental feature acquisition across conversations and development of all requested features in one conversation. In multi-session evolution, the agent received one task per new conversation and started from the last accepted generator, with acceptance feedback and handoff notes. Each task allowed one coding attempt; a rejected modification left the accepted generator unchanged. In one-session evolution, the agent received all 50 tasks in one conversation and managed development and testing, including witness validation in the with-witness condition.

Metrics. We measured task completion over time and query variety in the final generator. A task is complete when the generator reproduces its target query through the specified testing interface that the agent is required to implement. This query matching ignored whitespace, unquoted word case, and a terminal semicolon. We evaluated both session settings against all 50 target queries. At each multi-session checkpoint, task completion is the fraction of all targets reproduced by the current generator, including targets introduced in earlier tasks. For one-session evolution, we applied this metric to the final generator after the agent exited. This metric captures both newly acquired features and their preservation through subsequent changes.

We also measured query variety through the distinct AST edges in random queries containing at least one target feature. We examined each query’s complete AST, including nested subqueries, and deduplicated edges by their signatures. Each signature consists of the parent node label, child role, and child node label; it preserves operator and function identities but ignores identifiers and literal values. We sampled 10,000 queries in total from each final generator across 3 fixed random seeds. For each seed, we divided the number of distinct edge signatures in queries containing a target feature by the number of all generated, parseable statements, then averaged these ratios across seeds.

Results. Table 2 shows that witnesses improved task completion and query variety in multi-session evolution. The final generator reproduced 47 of 50 targets (94%) with witnesses, compared with 37 (74%) without witnesses. Witnesses helped complete targets involving ordered-set aggregation, recursive CTEs, and window exclusion frames. Query variety reached 0.382 distinct AST edges per SELECT with witnesses, compared with 0.038 without witnesses. In one-session evolution, the with-witness agent reproduced all 50 targets (100%), but query variety was only 0.004. We inspected the source code and found that it hardcoded the target queries for witness replay, yielding little variety involving the requested features during random generation. Without witnesses, the agent reproduced two targets (4%), while query variety reached 0.155. Without witnesses, multi-session evolution achieved less query variety than one-session evolution because it also include hardcode SELECTs for some tasks (e.g., list_aggregate), while one-session evolution integrated features into recursive expressions and FROM components, enabling more varied combinations.

SessionWitnessCompletionVariety
MultiYes94%0.382
MultiNo74%0.038
OneYes100%0.004
OneNo4%0.155

Table 2. Final task completion and query variety with OpenCode and deepseek-flash.

Figure 5 shows how multi-session evolution acquired and retained generator capabilities. The with-witness condition preserved all previously passing registered tests, while the without-witness curve declined at several checkpoints as earlier tests failed. The with-witness condition did not achieve 100% task completion because the agent failed to complete three tasks within the single allowed attempt. In the full evolution process, witness feedback identifies test failures and guides further attempts.

Figure 5. Task completion during multi-session evolution with and without witnesses. Each checkpoint shows the fraction of all 50 targets reproduced by the current generator.

Baseline Comparison

We compared the line and branch coverage of the evolved generator with ShQveL, SQLancer++, SQLancer, and the public native test suites on SQLite,2 DuckDB, and PostgreSQL. Our main comparison is with ShQveL, which extends SQLancer++ by learning SQL fragments rather than modifying generator code. The comparison with the initial SQLancer++ generator measures the effect of generator evolution under the same test oracle. Coverage provides an indirect indication of feature coverage, but is only a loose proxy for logic bug-finding effectiveness [51].

Methodology. We compared fixed generators to measure their DBMS coverage after learning, without further LLM calls during testing. For Gungnir, we evolved each generator for 24 hours using OpenCode with deepseek-flash; for ShQveL, we allocated the same preparation budget to learning SQL fragments. We then fixed the evolved generators and learned fragments before testing each tool on the same instrumented DBMS builds under the resource limits described in Setup. No further LLM calls were made during testing. The comparison measures the testing capability kept after preparation, rather than coverage accumulated while the generators were changing. Preparation differed across tools; the subsequent DBMS-testing budget was matched. We ran regression tests of each DBMS once as a coverage reference.

Results. Table 3 reports line and branch coverage. On SQLite, DuckDB, and PostgreSQL, Gungnir achieved 58.60%, 26.66%, and 29.91% branch coverage, respectively. ShQveL covered 31.20%, 26.38%, and 19.96% on the same systems. Compared with the initial SQLancer++ generator, Gungnir increased branch coverage by 31.17, 8.68, and 13.42 percentage points, respectively. It also covered more lines and branches than the measured generator baselines on all three DBMSs. The test suites achieved 40.83% and 50.61% branch coverage on DuckDB and PostgreSQL, respectively, exceeding all evaluated generators, including Gungnir. The gap is expected because evaluated generators focus on logic bug detection, and the query forms are constrained by the test oracle, while the test suites cover a broader range of operations, including schema changes and administrative commands. Gungnir achieved higher coverage on SQLite than on DuckDB and PostgreSQL; one possible explanation is that SQLite’s smaller codebase makes it easier for the analyst to identify SQL features from source code. A smaller set of SQL features could also make broader coverage easier to achieve.

ApproachSQLite LineSQLite BranchDuckDB LineDuckDB BranchPostgreSQL LinePostgreSQL Branch
Gungnir72.1858.6038.1926.6640.5529.91
SQLancer++35.8927.4326.1817.9823.1116.49
ShQveL39.7131.2032.9826.3827.1119.96
SQLancer57.4445.6327.8620.5430.9722.81
Test suite95.3887.2261.9140.8364.3750.61

Table 3. Line and branch coverage on SQLite, PostgreSQL, and DuckDB after 24 hours, comparing the evolved Gungnir generator against SQLancer++, ShQveL, SQLancer, and native test suites.

Fine-grained coverage analysis. Figure 6 compares PostgreSQL branch coverage for ShQveL, Gungnir, and the native test suite in selected source directories, with utils narrowed to its main component, utils/adt. Gungnir covered 4,743 additional branches in optimizer, 4,108 in access, 3,500 in executor, and 2,503 in utils/adt, accounting for 63.0% of its net increase over ShQveL. These gains span query planning, data access, execution, and utility functions, although the test suite covers more branches in each directory. The utils/adt directory contains 74.0% of the branches in utils and accounts for 83.3% of the test-suite gap in utils; it includes data-type functions and utilities such as query deparsing, for which the test suite covered 29,875 branches compared with 12,420 for Gungnir. The suite also includes operations such as plan inspection and function management, illustrating the broader scope of native regression testing. Thus, the remaining coverage gap reflects both operations absent from the generated workload and incomplete branch coverage within components that the generator already reaches.

Figure 6. PostgreSQL branch coverage under src/backend. We select the four top-level directories with the largest gains over ShQveL. Each generator ran for 24 hours; the native regression suite ran once on the same build.

Practicality

We further evaluated the practicality of Gungnir through a case study on DuckDB. We recorded how the system evolved the generator, tested the DBMS, and generated bug reports. We used DuckDB nightly version with deepseek-flash through OpenCode and issued the following request to the orchestrator agent: “Do not stop until you find 20 unique, previously unknown bugs.” We counted the bug reports generated by final triage and measured elapsed time, recorded token use, and LLM cost through the end of that session.

Execution. Figure 7 shows how generator evolution and DBMS testing overlapped in the DuckDB run. The analyst agent examined DBMS source code and coverage results to identify additional SQL features, while the coding agent implemented the resulting goals. The controller agent selected goals and adjusted testing as new evidence became available, and the triage agent examined failures alongside continued testing. By the end of the run, the generator satisfied 81 SQL feature goals. The run accepted 92 source commits, including repeated work after rejection; each passed the existing regression checks, including witness replay. Over 23.99 hours, the fuzzer tested the seed and 82 evolved bundles in 90 segments, executing 29.49 million SQL statements. The fuzzer was active for 23.92 hours within this run, while coding sessions occupied 17.39 hours. These overlapping activities illustrate the pipeline in Section 4.3: testing an accepted generator need not wait for the coding session to finish.

Figure 7. Evolution timeline for DuckDB. Each bar denotes an agent session or fuzzer segment; aligned bars show concurrent activity. Time starts at the first recorded activity, and the dashed line marks the end of testing. Final triage is omitted.

Results. The DuckDB run reproduced nine kinds of bugs, from which the triage agent excluded four upstream duplicates and generated five bug reports. We submitted these reports directly to DuckDB developers, who confirmed all of them. This result also illustrates the importance of triage agents in filtering duplicates and upstream issues. The whole run took 24.29 hours, including an extra final triage for generating reports and reproductions. In total, the run used 1,773.16 million tokens, at an LLM cost of $20.85. Cached input accounted for 98.57% of input tokens, so the total token count alone does not explain the recorded cost. A longer evolution budget, such as one week, could allow the system to implement more SQL features and test their combinations for longer.

Discussion and Limitations

Scope of witness validation. Witness replay checks whether the generator can reproduce specific target statements. However, it has three limitations. First, it does not guarantee how frequently the feature is generated during random testing. For example, a generator may be able to produce a target statement but need choices that are rarely selected during random generation. Second, it does not guarantee that the new feature can be combined correctly with other features. For example, a generator may be able to generate a new function requiring an argument of a specific data type, but such constraints may not be encoded in the generator’s random generation logic. Third, it requires that the target statement is valid and satisfies the test oracle’s input requirements; witness replay cannot check whether the target statement is semantically correct.

False alarms. The evolved generator can still generate queries that cause false alarms, that is, cases in which the test oracle reports a bug although the DBMS behaves correctly. For example, SQLite permits ambiguous aggregate queries whose bare columns take values from an arbitrarily selected row within a group. Using these queries in the TLP base query can yield different results, which is expected behavior. These cases were uncommon in our testing, and all were identified and removed by the triage agent. The analyst can record these false positives and avoid similar target queries in later iterations.

Amortizing evolution cost. The LLM cost of generator evolution can be spread over repeated DBMS testing. An agent that directly searches for bugs uses LLM calls to generate and refine test cases; Gungnir instead uses these calls to extend a reusable generator. Once evolution ends, the generator can continue random testing without further LLM calls. In the DuckDB case study (Section 5.4), the approximately 24-hour run completed 81 SQL feature goals at a recorded LLM cost of $20.85, including analysis, coding, repair, and triage. In the coverage experiment (Section 5.3), we tested the fixed DuckDB generator without further LLM calls and measured 8.68 percentage points more branch coverage than the initial SQLancer++ generator.

Related Work

DBMS testing. Automated DBMS testing combines test case generation with test oracles that detect unexpected behavior. For test case generation, Squirrel [48] and SQLRight [20] mutate existing SQL statements and use validity and coverage feedback to guide testing. QPG [3] mutates the database state to obtain query plans that have not been seen during testing. SQLancer++ [51] uses a shared adaptive generator to generate SQL statements across dialects. For test oracles, PQS [34] checks query results against known rows. TLP [33] generates three queries that partition the rows of an original query and checks whether their combined results match its result. NoREC [32] compares the result of a query that can be optimized with that of an equivalent query designed to avoid those optimizations. DQP [4] executes a query using different query plans and compares their results. Radar [36] removes database metadata to check for incorrect query optimizations. JIR [41] uses the results of related join types to derive the expected result of a join. LLMs have been used to improve DBMS testing. ShQveL [50] adds validated SQL fragments to a generator that reuses them during testing. QTRAN [21] uses LLMs to translate queries across SQL dialects and adapts mutations to preserve the relations required by metamorphic testing. Argus [27] prompts an LLM to generate abstract query pairs and checks their equivalence with a SQL equivalence prover before using them as test oracles. Building on SQLancer++, Gungnir modifies the generator’s source code to support new SQL features and uses existing test oracles to validate the generated statements.

LLMs for databases. LLMs have been used to improve query rewriting, configuration tuning, and workload generation. LLM-R² [19] uses an LLM to select rewrite rules from existing SQL rewriting systems. QO-Verify [29] uses a query optimizer to check the equivalence of LLM-generated rewrites. SQLFlex [2] parses SQL by integrating grammar-based parsing with LLM capabilities. SQLStorm [35] generates SQL workloads for benchmarking. SQLBarber [16] generates SQL workloads according to requirements supplied by the user. Recently, LLM agents have been used to coordinate database tuning and SQL generation. AgentTune [18] coordinates LLM agents that analyze workloads, select configuration parameters, and refine database configurations. SysInsight [45] combines static analysis with LLM reasoning to derive tuning rules from DBMS source code and refines these rules using performance feedback. SQL-Factory [17] coordinates agents to generate SQL patterns, expand them into queries, and evaluate query quality for use in downstream tasks. Gungnir uses coding agents to extend a DBMS test generator with new SQL features.

Agentic software evolution. LLMs can evolve software by modifying source code using execution feedback. AlphaEvolve [30] uses LLMs to generate code changes and combines evolutionary search with automated evaluation to improve algorithms. SkyDiscover [22] evolves programs using adaptive search strategies. FrontierCS [26] is a benchmark that evaluates executable solutions to open-ended computer science problems. IC3-Evolve [28] modifies hardware model-checking heuristics and checks safety proofs and counterexample traces independently to validate the changes. Such LLM-based software evolution has been applied to software testing tools. ELFuzz [5] uses LLMs to modify generation-based fuzzers and coverage feedback to guide their evolution. Gentoo [38] uses coding agents to implement and refine input generators, with optional predicate-level coverage feedback. GenEvo [40] uses LLMs to solve constraints and adapt input generation logic to target program states. Gungnir uses fixed SQL targets to validate generator modifications. Witness replay directs the modified generator to generate these statements, and existing test oracles check their required behavior. Replaying historical witnesses checks that subsequent modifications preserve previously witnessed target generation.

Controlled test generators. Prior work controls the choices made by a test generator to guide the inputs it generates. Swarm testing [11] enables different subsets of features across tests. Directed swarm testing [1] uses feedback to guide feature selection. Targeted property-based testing [23] uses a fitness function supplied by the user to search for test inputs. Zest [31] mutates the parameters supplied to a structured generator to guide testing. Loaded Dice [37] adjusts the weights of generator choices to better match a specified distribution of generated values. Parsing Randomness [10] treats a generator as a parser whose input is a sequence of random choices. Reflective generators [9] recover the choices that a generator could use to generate a given value. Other work uses specifications to verify and synthesize generators. Coverage types [54] describe values that a generator is guaranteed to generate. Cobb [14] uses these types to repair generators that cannot generate all the specified values. Closeau [53] uses underapproximate trace specifications to synthesize effectful test generators. Gungnir uses semantic choices as an executable witness that the modified generator can generate a fixed SQL target.

Conclusion

Extending a DBMS test generator requires implementing new SQL features and using them in queries that its oracle can check. We have presented Gungnir, which uses coding agents to modify the generator and witness replay to check that it can generate target statements. Generation witnesses record the database setup and choices needed to generate a target statement. Replay checks these choices and reports failures to guide further source modifications. We implemented Gungnir on top of SQLancer++ so that the resulting generator can continue testing without model calls. We evaluate feature acquisition separately from the bug-finding effectiveness of the evolved generators.

References

References

  1. [1]Mohammad Amin Alipour, Alex Groce, Rahul Gopinath, and Arpit Christi. 2016. Generating focused random tests using directed swarm testing. In Proceedings of the 25th International Symposium on Software Testing and Analysis (Saarbrücken, Germany) (ISSTA 2016). Association for Computing Machinery, New York, NY, USA, 70–81. https://doi.org/10.1145/2931037.2931056
  2. [2]Junwan Jun, Kabilan Mahathevan, and Manuel Rigger. 2026. Dialect-Agnostic SQL Parsing via LLM-Based Segmentation. Proc. ACM Mag. Data 4, 3, Article 161 (May 2026), 28 pages. https://doi.org/10.1145/3802038
  3. [3]Jinsheng Ba and Manuel Rigger. 2023. Testing Database Engines via Query Plan Guidance. In Proceedings of the 45th International Conference on Software Engineering (Melbourne, Victoria, Australia) (ICSE ’23). IEEE Press, 2060–2071. https://doi.org/10.1109/ICSE48619.2023.00174
  4. [4]Jinsheng Ba and Manuel Rigger. 2024. Keep It Simple: Testing Databases via Differential Query Plans. Proc. ACM Manag. Data 2, 3, Article 188 (May 2024), 26 pages. https://doi.org/10.1145/3654991
  5. [5]Chuyang Chen, Brendan Dolan-Gavitt, and Ziqiang Lin. 2025. ELFuzz: Efficient Input Generation via LLM-Driven Synthesis over Fuzzer Space. In 34th USENIX Security Symposium. USENIX Association, Berkeley, CA, USA, 6279–6298.arxiv.org/abs/2506.10323
  6. [6]Yang Chen, Alex Groce, Chaoqiang Zhang, Weng-Keong Wong, Xiaoli Fern, Eric Eide, and John Regehr. 2013. Taming compiler fuzzers. SIGPLAN Not. 48, 6 (June 2013), 197–208. https://doi.org/10.1145/2495710.2495723
  7. [7]Wenqian Deng, Jie Liang, Zhiyong Wu, Jingzhou Fu, and Yu Jiang. 2025. Detecting Logic Bugs in DBMSs via Equivalent Data Construction. Proc. ACM Manag. Data 3, 6, Article 314 (Dec. 2025), 25 pages. https://doi.org/10.1145/3769779
  8. [8]Alastair F. Donaldson, Paul Thomson, Vasyl Teliman, Stefano Milizia, André Perez Maselco, and Antoni Karpiński. 2021. Test-case reduction and deduplication almost for free with transformation-based compiler testing. In Proceedings of the 42nd ACM SIGPLAN International Conference on Programming Language Design and Implementation (Virtual, Canada) (PLDI 2021). Association for Computing Machinery, New York, NY, USA, 1017–1032. https://doi.org/10.1145/3453483.3454092
  9. [9]Harrison Goldstein, Samantha Frohlich, Meng Wang, and Benjamin C. Pierce. 2023. Reflecting on Random Generation. Proc. ACM Program. Lang. 7, ICFP, Article 200 (Aug. 2023), 34 pages. https://doi.org/10.1145/3607842
  10. [10]Harrison Goldstein and Benjamin C. Pierce. 2022. Parsing randomness. Proc. ACM Program. Lang. 6, OOPSLA2, Article 128 (Oct. 2022), 25 pages. https://doi.org/10.1145/3563291
  11. [11]Alex Groce, Chaoqiang Zhang, Eric Eide, Yang Chen, and John Regehr. 2012. Swarm testing. In Proceedings of the 2012 International Symposium on Software Testing and Analysis (Minneapolis, MN, USA) (ISSTA 2012). Association for Computing Machinery, New York, NY, USA, 78–88. https://doi.org/10.1145/2338965.2336763
  12. [12]Jinyao Guo, Chengpeng Wang, Xiangzhe Xu, Zian Su, and Xiangyu Zhang. 2025. RepoAudit: An Autonomous LLM-Agent for Repository-Level Code Auditing. In Proceedings of the 42nd International Conference on Machine Learning (Proceedings of Machine Learning Research), Aarti Singh, Maryam Fazel, Daniel Hsu, Simon Lacoste-Julien, Felix Berkenkamp, Tegan Maharaj, Kiri Wagstaff, and Jerry Zhu (Eds.), Vol. 267. PMLR, 21083–21100. https://proceedings.mlr.press/v267/guo25n.htmlarxiv.org/abs/2501.18160
  13. [13]Michael Konstantinou, Florian Tambon, and Mike Papadakis. 2026. On the risk of coding before testing: An empirical study on LLM-based test generation workflow. arXiv preprint arXiv:2607.05139 (2026).arxiv.org/abs/2607.05139
  14. [14]Patrick LaFontaine, Zhe Zhou, Ashish Mishra, Suresh Jagannathan, and Benjamin Delaware. 2025. We’ve Got You Covered: Type-Guided Repair of Incomplete Input Generators. Proc. ACM Program. Lang. 9, OOPSLA2, Article 380 (Oct. 2025), 29 pages. https://doi.org/10.1145/3763158
  15. [15]Jinhui Lai, Chi Zhang, Bingyuan Li, Chenglin Liang, Jie Liang, Zhiyong Wu, Jingzhou Fu, Yu Jiang, and Zichen Xu. 2025. SRS: Detecting Logic Bugs of Join Implementation in DBMSs via Set Relation Synthesis. Proc. ACM Manag. Data 3, 6, Article 363 (Dec. 2025), 24 pages. https://doi.org/10.1145/3769828
  16. [16]Jiale Luo and Emmanuel Trummer. 2026. SQLBaker: A System Leveraging Large Language Models to Generate Customized and Realistic SQL Workloads. Proc. ACM Manag. Data 4, 1, Article 85 (April 2026), 27 pages. https://doi.org/10.1145/3786699
  17. [17]Jiyahui Li, Tongwang Wu, Yuren Mao, Yunjun Gao, Yajie Feng, and Huaizhong Liu. 2025. SQL-Factory: A Multi-Agent Framework for High-Quality and Large-Scale SQL Generation. Proc. VLDB Endow. 19, 3 (Nov. 2025), 292–305. https://doi.org/10.14778/3778092.3778093
  18. [18]Yiyan Li, Haoyang Li, Jing Zhang, Renata Borovica-Gajic, Shuai Wang, Tieying Zhang, Jianjun Chen, Rui Shi, Cuiping Li, and Hong Chen. 2025. AgentTune: An Agent-Based Large Language Model Framework for Database Knob Tuning. Proc. ACM Manag. Data 3, 6, Article 293 (Dec. 2025), 29 pages. https://doi.org/
  19. [19]Zhaodonghui Li, Haitao Yuan, Huiming Wang, Gao Cong, and Lidong Bing. 2024. LLM-R2: A Large Language Model Enhanced Rule-Based Rewrite System for Boosting Query Efficiency. Proc. VLDB Endow. 18, 1 (Sept. 2024), 53–65. https://doi.org/10.14778/3696435.3696440
  20. [20]Yu Liang, Song Liu, and Hong Hu. 2022. Detecting Logical Bugs of DBMS with Coverage-based Guidance. In 31st USENIX Security Symposium (USENIX Security ’22). USENIX Association, Boston, MA, 4309–4326.
  21. [21]Li Lin, Qinglin Zhu, Hongqiao Chen, Zhuangda Wang, Rongxin Wu, and Xi-haoheng Xie. 2025. QTRAN: Extending Metamorphic-Oracle Based Logical Bug Detection Techniques for Multiple-DBMS Dialect Support. Proc. ACM Softw. Eng. 2, ISSTA, Article ISSTA003 (Jun 2025), 22 pages. https://doi.org/10.1145/3728908
  22. [22]Shu Liu, Mert Cemri, Shubham Agarwal, Alexander Krentel, Ashwin Naren, Qiuyang Mang, Zhifei Li, Akshat Gupta, Monishwar Maheswaran, Audrey Cheng, Melissa Pan, Ethan Boneh, Kannan Ramchandran, Koushik Sen, Matei Zaharia, Alexandros G. Dimakis, and Ion Stoica. 2026. SkyDiscover: A Flexible, Adaptive Framework for AI-Driven Scientific and Algorithmic Discovery. In Proceedings of the ACM Conference on AI and Agentic Systems (San Jose, CA, USA) (CAIS ’26). Association for Computing Machinery, New York, NY, USA, 1223–1227. https://doi.org/10.1145/3786335.3813221
  23. [23]Andreas Löscher and Konstantinos Sagonas. 2017. Targeted property-based testing. In Proceedings of the 26th ACM SIGSOFT International Symposium on Software Testing and Analysis (Santa Barbara, CA, USA) (ISSTA 2017). Association for Computing Machinery, New York, NY, USA, 46–56. https://doi.org/10.1145/3092703.3092711
  24. [24]Yuyu Luo, Guoliang Li, Ju Fan, and Nan Tang. 2026. Data Agents: Levels, State of the Art, and Open Problems. In Companion of the International Conference on Management of Data (India) (SIGMOD Companion ’26). Association for Computing Machinery, New York, NY, USA, 571–579. https://doi.org/10.1145/3788853.3801878
  25. [25]Muhammad Maaz, Liam DeVoe, Zac Hatfield-Dodds, and Nicholas Carlini. 2025. Agentic property-based testing: Finding bugs across the python ecosystem.arxiv.org/abs/2510.09907
  26. [26]Qiuyang Mang, Wenhao Chai, Zhifei Li, HuanZhi Mao, Shang Zhou, Alexander Du, Hancheng Li, Shu Liu, Edwin Chen, Yichuan Wang, Xieting Chu, Zerui Cheng, Yuan Xu, Tian Xia, Zirui Wang, Tianneng Shi, Jianzhu Yao, Yilong Zhao, Qizheng Zhang, Charlie Ruan, Zeyu Shen, Kaiyuan Liu, Runyuan He, Dong Xing, Zerui Li, Zirong Zeng, Yige Jiang, Lufeng Cheng, Ziyi Zhao, Youran Sun, Wesley Zheng, Meiyuwang Zhang, Ruyi Ji, Xuechang Tu, Zihan Zheng, Zexing Chen, Kangyang Zhou, Zhaoz​​i Wang, Jingbang Chen, Aleksandra Korolova, Peter Henderson, Pramod Viswanath, Vijay Ganesh, Saining Xie, Zhuang Liu, Dawn Song, Sewon Min, Ion Stoica, Joseph E. Gonzalez, Jingbo Shang, and Alvin Cheung. 2026. FrontierCS: Evolving Challenges for Evolving Intelligence. In Proceedings of the 43rd International Conference on Machine Learning. https://arxiv.org/abs/2512.15699
  27. [27]Qiuyang Mang, Runyu He, Suyang Zhong, Xiaoxuan Liu, Huanchen Zhang, and Alvin Cheung. 2026. Automated Discovery of Test Oracles for Database Management Systems Using LLMs. Proc. ACM Manag. Data 4, 3, Article 140 (May 2026), 28 pages. https://doi.org/10.1145/3802017
  28. [28]Mingkai Miao, Guangyu Hu, Ziyi Yang, and Hongze Zhang. 2026. IC3-Evolve: Proof-/Witness-Gated Offline LLM-Driven Heuristic Evolution for IC3 Hardware Model Checking. In Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence, IJCAI-26, Diego Calvanese (Ed.). International Joint Conferences on Artificial Intelligence Organization, 271–278. https://doi.org/10.24963/ijcai.2026/31 Main Track.
  29. [29]Vivek Narasayya and Surajit Chaudhuri. 2026. Leveraging Query Optimizers to Verify the Soundness of LLM-based Query Rewrites for Real-World Workloads, and More! In 16th Conference on Innovative Data Systems Research. www.cidrdb.org. https://www.cidrdb.org/cidr2026/papers/p33-narasayya.pdf
  30. [30]Alexander Novikov, Ngân Vũ, Marvin Eisenberger, Emilen Dupon​​t, Po-Sen Huang, Adam Zsolt Wagner, Sergey Shirobokov, Borislav Kozlovskii, Francisco JR Ruiz, Abbas Mehrabian, et al. 2025. Alphaevolve: A coding agent for scientific and algorithmic discovery. arXiv preprint arXiv:2506.13131 (2025).
  31. [31]Rohan Padhye, Caroline Lemieux, Koushik Sen, Mike Papadakis, and Yves Le Traon. 2019. Semantic fuzzing with zest. In Proceedings of the 28th ACM SIGSOFT International Symposium on Software Testing and Analysis (Beijing, China) (ISSTA 2019). Association for Computing Machinery, New York, NY, USA, 329–340. https://doi.org/10.1145/3293882.3330576
  32. [32]Manuel Rigger and Zhengdong Su. 2020. Detecting optimization bugs in database engines via non-optimizing reference engine construction. In Proceedings of the 28th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering (Virtual Event, USA) (ESEC/FSE 2020). Association for Computing Machinery, New York, NY, USA, 1140–1152. https://doi.org/10.1145/3368089.3409710
  33. [33]Manuel Rigger and Zhengdong Su. 2020. Finding bugs in database systems via query partitioning. Proc. ACM Program. Lang. 4, OOPSLA, Article 211 (Nov. 2020), 30 pages. https://doi.org/10.1145/3428279
  34. [34]Manuel Rigger and Zhendong Su. 2020. Testing Database Engines via Pivoted Query Synthesis. In 14th USENIX Symposium on Operating Systems Design and Implementation (OSDI 2020). USENIX Association, Berkeley, CA, USA, 667–682. Tobias Schmidt, Viktor Leis, Peter Boncz, and Thomas Neumann. 2025. SQLStorm: Taking Database Benchmarking into the LLM Era. Proc. VLDB Endow. 18, 11 (July 2025), 4144–4157. https://doi.org/10.14778/3749646.3749683
  35. [36]Jiansen Song, Wensheng Dou, Yu Gao, Ziyu Cui, Yingying Zheng, Dong Wang, Wei Wang, Jun Wei, and Tao Huang. 2024. Detecting Metadata-Related Logic Bugs in Database Systems via Raw Database Construction. Proc. VLDB Endow. 17, 8 (April 2024), 1884–1897. https://doi.org/10.14778/3659437.3659445
  36. [37]Ryan Toa, Poorva Garg, Harrison Goldstein, Todd Millstein, Benjamin C. Pierce, and Guy Van den Broeck. 2025. Tuning Random Generators: Property-Based Testing as Probabilistic Programming. Proc. ACM Program. Lang. 9, OOPSLA2, Article 304 (Oct. 2025), 28 pages. https://doi.org/10.1145/3763082
  37. [38]Vasudev Vikram and Rohan Padhye. 2026. Predicate-Guided Synthesis of Input Generators via Gentoo. In Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering (Munich, Germany) (ASE ’26). Association for Computing Machinery, New York, NY, USA, 1831–1843. https://doi.org/10.1145/3832783.3837441
  38. [39]Xingyao Wang, Boxuan Li, Yufan Song, Frank F Xu, Xiangru Tang, Mingchen Zhuge, Jiayi Pan, Yueqi Song, Bowen Li, Jaskirat Singh, Hoang Tran, Fuqiang Li, Ren Ma, Mingzhang Zheng, Bill Qian, Daniel Shao, Niklas Muennighoff, Yizhe Zhang, Binyuan Hui, Junyang Lin, Robert Brennan, Hao Peng, Heng Ji, and Graham Neubig. 2025. OpenHands: An Open Platform for AI Software Developers as Generalist Agents. In International Conference on Learning Representations, Y. Yue, A. Garg, N. Peng, F. Sha, and R. Yu (Eds.), Vol. 2025. 65882–65919. https://proceedings.iclr.cc/paper_files/paper/2025/file/a4b46ab48850c0c331d1259fcc66a69c-Paper-Conference.pdfarxiv.org/abs/2407.16741
  39. [40]Siwei Wei, Shihao Zhu, Ruijie Meng, and Yan Cai. 2026. Hybrid Fuzzing in Input Generation Logic. In Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering (Munich, Germany) (ASE ’26). Association for Computing Machinery, New York, NY, USA, 1031–1042. https://doi.org/10.1145/3832783.3834412
  40. [41]Zhaokun Xiang, Suyang Zhong, and Manuel Rigger. 2026. Detecting Join Bugs in Database Engines via Join Implication Reasoning. Proc. ACM Manag. Data 4, 3, Article 159 (May 2026), 26 pages. https://doi.org/10.1145/3802036
  41. [42]John Yang, Carlos Jimenez, Alexander Wettig, Kilian Lieret, Shunyu Yao, Karthik Narasimhan, and Ofir Press. 2024. SWE-Agent: Agent-Computer Interfaces Enable Automated Software Engineering. Advances in Neural Information Processing Systems 37 (2024), 50528–50652.arxiv.org/abs/2405.15793
  42. [43]Chi Zhang, Jie Liang, Zhiyong Wu, Dalong Shi, Linzhang Wang, and Yu Jiang. 2026. EPSC: Testing Database Management Systems via Equivalent Prepared Statement Construction. Proc. ACM Manag. Data 4, 3, Article 176 (May 2026), 25 pages. https://doi.org/10.1145/3802053
  43. [44]Chi Zhang and Manuel Rigger. 2025. Constant Optimization Driven Database System Testing. Proc. ACM Manag. Data 3, 1, Article 24 (Feb. 2025), 24 pages. https://doi.org/10.1145/3709674
  44. [45]Xinyi Zhang, Tiantian Chen, Zhentao Han, Zhaoyan Hong, Wei Lu, Sheng Wang, Mo Sha, Anni Wang, Shuang Liu, Yukun Zhang, Feifei Li, and Xiaoyong Du. 2026. Why Database Manuals are Not Enough: Efficient and Reliable Configuration Tuning for DBMSs via Code-Driven LLM Agents. Proc. VLDB Endow. 19, 6 (May 2026), 1358–1371. https://doi.org/10.14778/3797919.3797940
  45. [46]Yuntong Zhang, Haifeng Ruan, Zhiyu Fan, and Abhik Roychoudhury. 2024. AutoCodeRover: Autonomous Program Improvement. In Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis (Vienna, Austria) (ISSTA 2024). Association for Computing Machinery, New York, NY, USA, 1592–1604. https://doi.org/10.1145/3650212.3680384
  46. [47]Junda Zhao, Shurui Zhou, and Eldan Cohen. 2026. Evaluating and Mitigating the Misguidance Effect of Buggy Code in LLM-Generated Unit Tests. Proc. ACM Softw. Eng. 3, ISSTA, Article ISSTA113 (Oct. 2026), 24 pages. https://doi.org/10.1145/3832204
  47. [48]Rui Zhong, Yongheng Chen, Hong Hu, Hangfan Zhang, Wenke Lee, and Dinghao Wu. 2020. SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedback. In Proceedings of the 2020 ACM SIGSAC Conference on Computer and Communications Security (Virtual Event, USA) (CCS ’20). Association for Computing Machinery, New York, NY, USA, 955–970. https://doi.org/10.1145/3372297.3417260
  48. [49]Suyang Zhong and Manuel Rigger. 2024. Understanding and Reusing Test Suites Across Database Systems. Proc. ACM Manag. Data 2, 6, Article 253 (Dec. 2024), 26 pages. https://doi.org/10.1145/3689829
  49. [50]Suyang Zhong and Manuel Rigger. 2026. Automated Database Testing via LLM-Synthesized SQL Features. Proc. ACM Manag. Data 4, 4, Article 259 (Sept. 2026), 27 pages. https://doi.org/10.1145/3837097
  50. [51]Suyang Zhong and Manuel Rigger. 2026. Scaling Automated Database System Testing. In Proceedings of the 31st ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2 (USA) (ASPLOS ’26). Association for Computing Machinery, New York, NY, USA, 1677–1692. https://doi.org/10.1145/3779212.3790215
  51. [52]Suyang Zhong, Mo Sha, Sheng Wang, Fangyuan Zhou, Feifei Li, and Kian-Lee Tan. 2026. DebugScribe: Automatic Database Bug Reproduction from Community Reports. Proc. ACM Manag. Data 4, 3, Article 157 (May 2026), 26 pages. https://doi.org/10.1145/3802034
  52. [53]Zhe Zhou, Ankush Desai, Benjamin Delaware, and Suresh Jagannathan. 2026. Trace-Guided Synthesis of Effectful Test Generators. Proc. ACM Program. Lang. 10, PLDI, Article 186 (June 2026), 25 pages. https://doi.org/10.1145/3808264
  53. [54]Zhe Zhou, Ashish Mishra, Benjamin Delaware, and Suresh Jagannathan. 2023. Covering All the Bases: Type-Based Verification of Test Input Generators. Proc. ACM Program. Lang. 7, PLDI, Article 157 (June 2023), 24 pages. https://doi.org/10.1145/3591271

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type