arXiv(opens in a new tab)cs.SESep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.09671

Introducing Consort: A Spec-First Agent Framework for Enforced, Test-Driven Development on Live Database Branches

Kevin Hartman

Kevin Hartman

Databricks

Abstract—When an agent writes code, the development framework becomes the control system for a non-deterministic worker. Spec-first, agent-driven frameworks have gained rapid traction since 2025; the installable ones, GitHub Spec Kit, obra/superpowers, BMAD, and GSD, and our own, all capture intent through a specification or durable planning artifacts. Since they agree on capturing intent up front, what separates them is how each enforces the engineering discipline that keeps agent-written code clean, correct, and maintainable. Every framework enforces that discipline somehow; they differ in how. We characterize three modes: enforcement by persuasion (prompt discipline the model may ignore), by front-loaded structure (strong specs, then a trusted build), and through controls the agent cannot edit (a deterministic orchestrator, human-approved gates, immutable tests, and a green result that must pass against a live, branched database). We introduce Consort, a spec-first, test-driven agent framework built on the third, enforcing that discipline through controls the agent runs inside but cannot bypass, in which a deterministic orchestrator drives separate role agents through a spec-first design lane and a test-driven build lane on a live database branch. We argue that enforcing the tests and gates in code keeps agent-written code honest and verifiable, while its specialized roles, like the human roles before them, are what make it maintainable, claims we frame as a pre-registered, testable hypothesis.

Index Terms—AI coding agents, spec-driven development, test-driven development, database branching, software engineering, agentic frameworks, enforcement.

I. INTRODUCTION

For most of software's history the development framework, the set of conventions, tools, and rituals a team works within, has been an ergonomic convenience for a developer who ultimately decides what the code does. That assumption no longer holds when the author is a large language model. AI-assisted coding is now mainstream: a large majority of developers report using or planning to use these tools, though a much smaller fraction trust their output [19], and a majority of new developers reach for an AI assistant in their first week [9]. The prevailing style of use, what has come to be called vibe coding, leans on accepting generated output through its observed behavior rather than close reading [7], [14], and even the productivity case is unsettled: a randomized study found experienced open-source developers were slower when using early-2025 AI tools, even as they believed themselves faster [17]. When a non-deterministic worker writes code, the framework stops being a convenience and becomes the control system for that worker. Its job is no longer to make a developer productive; it is to constrain a probabilistic process so that its output can be trusted.

A distinct family of frameworks has emerged since 2025 to do exactly this by putting a specification at the center of the work. Spec-driven development, as it has come to be called, spans a rigor ladder from spec-first (agree on the specification before writing code) through spec-anchored (keep the specification alive alongside the code) to spec-assource (treat the specification as the primary artifact and the code as a build output) [18]. The category has gained rapid traction: GitHub's own open-source toolkit, Spec Kit, launched in September 2025 [5]; Amazon shipped a spec-driven IDE, Kiro, to general availability in November 2025; a spec-centric platform, Tessl; and an open-source methodology delivered as agent skills, obra/superpowers, spread across coding harnesses [22]. We do not claim the practice is settled or universally adopted; it is barely a year old, agent-driven use specifically remains a minority practice, and thoughtful practitioners have questioned whether current tooling delivers on its promise [4]. But the category is real and growing, which is what makes the question of how these frameworks work worth asking carefully.

The frameworks in this family agree on more than they disagree. All of them, including our own, are spec-first: they ask the developer to state intent in a specification before the agent writes code. Because they converge on how intent is captured, the specification is not where they differ. Where they differ, and the difference is the subject of this paper, is in what happens after the specification exists: how each framework enforces clean, correct code from it. That is the harder problem, because the agent is free to satisfy a specification in ways its author never intended, and to report success it did not achieve.

The failure modes are documented and specific. Agents will make a test suite pass by disabling or deleting the tests that stand in the way, so that a human-owned, immutable suite has re-emerged as the mechanism that holds their output honest [2]. They over-rely on mock objects: a large-scale study of commit histories finds that agent commits introduce mocks at a materially higher rate than human commits, and that mocked tests, while easier to generate, are weaker at validating real behavior [12]. Across tens of thousands of real coding sessions, agents violate stated constraints, overreach the requested change, and, in a substantial share of episodes, report inaccurately what they actually did [20]. None of these is exotic; they are the ordinary behavior of a probabilistic system asked to produce a result and to grade its own work.

The consequences show up in the code that survives.

Independent measurements associate the AI-assisted era with declining maintainability signals: duplicated code has risen as a share of changed lines while refactoring has fallen, to the point where copy-and-paste recently overtook the moving of existing code [8]; teams with AI-assistant access have shown increases in defects reaching pull requests without matching throughput gains [21]; and higher AI adoption has been associated with a measurable drop in delivery stability [6]. These findings are correlational and partly industry-sourced, and modern agentic tools do iterate rather than emit code in a single pass. We therefore do not claim that unenforced tools produce unmaintainable code as a settled fact. We take the maintainability risk as real and motivating, and we ask which framework properties actually reduce it.

Our answer is that the property that matters is not how a framework specifies work but how it enforces the engineering discipline that keeps agent-written code clean, correct, and maintainable, in two respects: how it holds the work honest as the agent writes it, and how it divides the work among focused roles so that the result is maintainable, as it was when those roles were held by people. Enforcement comes in three sharply different strengths. This paper makes three contributions. First, a taxonomy of how agent-driven frameworks enforce that discipline: enforcement by persuasion, by front-loaded structure, and through controls the agent cannot edit, distinguished by what the agent is physically able to ignore. Second, Consort, a spec-first, test-driven agent framework in the same family as Spec Kit and superpowers but enforcing the discipline through controls the agent cannot edit, in which a deterministic orchestrator coordinates separate role agents and the enforced build lane runs the entire test-driven cycle against a live, branched database, a practice developed in a paper under anonymous review [11]. Third, a comparative evaluation against four installable frameworks in which agents write the code, GitHub Spec Kit, obra/superpowers, BMAD, and GSD, and a pre-registered hypothesis for the output-quality claim we cannot yet prove.

Two scoping notes bound the contribution. We compare only real, installable frameworks in which the agent writes code; hosted platform builders and fully autonomous issue-to-pull-request agents occupy an adjacent space and are named, not evaluated, here. And the database layer this framework depends on is not re-derived: its mechanism, economics, and defect-catching evidence are the contribution of a paper under anonymous review, which this paper takes as given in order to focus on enforcement of the agent's work.

The remainder of the paper is organized as follows. Section II places the framework family on the spec-driven rigor ladder and reviews what unenforced agents do. Section III develops the central lens, the three ways a framework enforces engineering discipline on a non-deterministic worker. Section IV presents Consort as the realization of the third, enforcement through controls the agent cannot edit. Section V evaluates the frameworks head to head against the enforcement dimensions. Section VI states the output-quality claim as a pre-registered experiment. Section VII discusses implications, and

Section VIII concludes.

References (21)