Gungnir uses coding agents to extend reusable database test generators, so generating each subsequent test does not require another model call. To prove that a new Database and SQLPersistent structured storage queried and changed through explicit operations.Full definition → feature is reachable, the agent supplies a RecordOne unit of data in a file or table, such as one supplier's quote; distinct from a line of text.Full definition → of the database SetupThe combination of a model, a harness, its connections and the path the task's data takes, considered together for a task.Full definition → and choices needed to generate a target statement. A validator replays that record through the modified generator and compares the result with the target. Method.
Saved records become regression tests for later edits. The authors report 44 developer-confirmed database bugs, with 34 fixed. The replay check establishes that particular examples can be generated; it does not establish that random testing will exercise them often or that every combination with other features is valid. Findings and limits.
Key takeaways · AI-distilled
Gungnir's Agent modeA mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.Full definition → must submit a generation witness with each change: the database setup and semantic choices needed to produce a target SQL statement. A validator replays those choices through the modified generator and checks it reproduces that statement.
Every past witness is kept as a regression test, so later agent edits to the generator are checked against all previously validated features, so a new feature cannot silently break one already validated.
Of the 44 bugs the authors report across SQLite, DuckDB and PostgreSQL, developers had fixed 34. The authors suggest witness replay could extend to test generators beyond databases, a claim the abstract does not test.
Terms in this piece · Glossary
Database and SQL — Persistent structured storage queried and changed through explicit operations.
Record — One unit of data in a file or table, such as one supplier's quote; distinct from a line of text.
Setup — The combination of a model, a harness, its connections and the path the task's data takes, considered together for a task.
Agent mode — A mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.