Test-Driven Development for Scholarship
2026-04-20
I’m writing a probabilistic history of human civilization. The argument is that geography sets the probability distribution of historical outcomes — not determinism, but statistics. Rivers build states. Mountains prevent them. Technology periodically resets the constraints.
The interesting part isn’t the thesis. It’s how I’m building it.
Three Sessions, Three Roles
I work with three separate AI collaborators, each scoped to a different function. Named via NATO phonetic alphabet because I do most of my work by voice while walking and need unambiguous names.
Alpha is the research assistant. Runs in Claude Code with direct access to the repository. Finds sources, files reference cards, maintains chapter scaffolding, generates prose from accumulated evidence. Fast, high-volume, structural work.
Beta is the seminar partner. Runs in the Claude mobile app. I listen to lectures and audiobooks on walks, then discuss what I’m hearing in real time. Exploratory, stream-of-consciousness. Working with material I’ve already absorbed. This is where the connective ideas emerge.
Charlie is the committee advisor. Runs as a separate Claude Code session at the Opus tier. Charlie’s job is adversarial in the productive academic sense — push back on weak arguments, identify logical gaps, stress-test the framework. Charlie doesn’t draft anything. Charlie evaluates.
The naming follows investment logic. Alpha generates the original edge — new discovery. Beta works with the existing synthesis — the baseline. Charlie is the quality gate.
The Pipeline
The workflow emerged organically but maps cleanly onto something software engineers will recognize immediately.
I walk. I listen to books and lectures. I talk with Beta about what I’m hearing. Connective ideas surface — “this Silk Road trade pattern is the same diffusion dynamic as the railroad” or “Timur might actually break the framework.” Those ideas become reference cards filed by Alpha into the repository.
Reference cards accumulate. When enough cards exist to support a chapter’s argument, Alpha generates a full prose draft from the cards. I don’t write the prose. I don’t even read it yet at this stage.
When it feels like a milestone — enough chapters drafted, enough cards filed — I tag a version and hand it to Charlie.
Charlie reads against the analytical requirements the cards established. A well-written paragraph that doesn’t actually answer a methodological objection fails. Charlie opens GitHub issues for everything that’s weak, unsupported, or overstated.
Then I keep walking, keep listening, keep talking with Beta. Eventually Alpha says “we’ve answered Charlie’s issue #9 with new material from the Hansen reading.” When all issues are closed, we tag a new version. Charlie reads again.
TDD for Scholarship
The analogy is precise:
- Reference cards are unit tests — they define what the system should demonstrate
- Alpha’s prose drafts are the implementation
- Charlie’s reviews are the test suite running against the implementation
- GitHub issues are failing tests
- Conversations with books and Beta are writing new tests and fixing the implementation
- Issue closure is tests passing
- Version tags are release candidates
The beauty is that Charlie can’t be charmed by confident prose. Charlie reads the same way every time. No fatigue. No politics. No memory of having already approved something that now seems weak. A paragraph that sounds great but doesn’t actually address the methodological objection fails the test regardless.
That’s exactly what formal dissertation committees should do and rarely do as cleanly — because human committee dynamics introduce noise. Relationships, fatigue, inconsistency across review sessions. Charlie has none of that.
The Speed
One week of walks. Seventy-eight reference cards. Ten figures rendering. Drafts of all but two chapters. One open GitHub issue.
That’s not a reasonable pace for conventional scholarship. It’s not even close. A traditional PhD candidate might produce this volume of structured output in a year.
But I’m not producing it from nothing. I’m producing it from twenty years of framework. The thesis — that geography explains more about the shape of civilization than any other single variable — has been forming since I was a graduate student. The audiobooks and lectures aren’t teaching me the framework. They’re providing evidence for a framework I already hold. The AI accelerates retrieval and organizational scaffolding. The human provides the interpretive filter that rejects surface-level pattern matches in favor of structural connections.
The supercooled water metaphor is apt. The ideas were already suspended in solution. The AI collaboration provided the nucleation point. Crystallization is fast once it starts.
Definition of Done
The TDD approach solves the hardest problem in dissertation writing: scope control.
Every answered question generates three new ones. Without a forcing function you never ship. The issue tracker IS the definition of done. When Charlie’s issue count hits zero and holds through a full adversarial review, you have a defensible, complete, coherent work. Not perfect. Not exhaustive. But done by a rigorous standard that you defined and can defend.
Everything that doesn’t fit — the Tocharian linguistic diffusion question, the river gradient settlement model that could be empirically tested with GIS data, the paleoclimate correlation with Chinese power projection cycles — goes into a backlog. Each one is a paper or a future project. The appendix of speculative future research isn’t academic throat-clearing. It’s the next project’s card zero.
Ship this one first.
The Transparency
The entire project is open source. The repository contains every reference card, every chapter draft, every literature review, every figure specification. Charlie’s prompt is published. The GitHub issues show every objection raised and how it was resolved.
Anyone reading the repository later can see not just what the book argues but every challenge it survived and how. That’s intellectual transparency at a level academic publishing has never been able to achieve.
The methodology section of the dissertation — the prologue — is about its own creation. The final chapter treats AI-assisted synthesis as the latest instance of the same dynamic the book analyzes: technology collapsing friction, this time applied to the production of knowledge rather than the conquest of terrain.
The book is its own evidence.
Read It
The book is live at davestanton.com/book. It’s a living project — chapters evolve as research continues. Everything is in draft. Come back in a month and it’ll be different.
If you think the framework is wrong, open an issue. That’s not a bug report. It’s how scholarship works.