White paper · November 2026

Simulation Driven Development: testing a site before building it

About SDD

TL;DR

Summary

We turned one sentence into a tested, built website that clears 10 of 13 pass marks set in advance, where the existing site cleared 4. The method is called Simulation Driven Development (SDD). This paper describes how it works, what it measured, what it corrected in itself along the way, and what remains to be proven.

The sentence was: "I need a website that gets developers who use Claude Code every day to try turkeycode for one unattended build." From it, an AI session wrote a test. Simulated visitors and AI agents then scored plain test pages against that test. TurkeyCode built the winning design, and the same test was run again on the real build.

Measure, visitors the designer could seeOld siteReal buildPass mark
Can say what it is72%80%80%
Can say what you need in place38%99%70%
Can say how to start and what must happen first38%70%65%
Can say what checked the work72%65%60%
Acts without being asked41%65%30%
An AI agent recommends it correctly40%86%80%
A developer on a clean machine gets it running5 of 520 of 2080%

Every measure for visitors the designer could see is at or above its mark. Among visitors the designer never saw, three of six are: they can say what the product is, what they need, and how to start. The other three are the open work. Those visitors act 15% of the time against a 30% mark, up from 0% on the old site, and two more measures sit within a few points of their marks. Under the test's own strict rule, which needs every mark cleared with room to spare, that reads as "not met".

Three things came out of it beyond the scores:

The problem

A landing page is usually judged by the people who wrote it, who already know what the product does. They cannot un-know it, so they cannot see what a stranger misses in sixty seconds.

The usual remedy is a live A/B test. That needs a built page, real traffic and weeks of waiting, and it reports that a page lost without saying why. A small open-source project may see a few dozen visitors a day, which is too few to compare more than two versions.

SDD tries to move most of that learning earlier and make it cheaper. The idea is to state the result wanted, derive a test from it before any design exists, and iterate on throwaway pages against simulated visitors. Only the winner gets built. The live test then has one job: confirm or correct the prediction.

The claim being examined is narrow. SDD does not claim simulated visitors behave like people. It claims that a page which fails a fixed, pre-written test with simulated readers probably has real problems, and that the failures point at what to fix.

The pipeline

Seven steps take one sentence to a verified build, and the owner is asked for a decision at three of them.

  1. Result. The owner writes one sentence saying what they want to be true.
  2. Derive the test. One AI session reads the sentence and the product's repository. It writes the audience, the visitors, the stages a visitor passes through, a pass mark for each with a reason, the assumptions the test rests on, and a ledger of true statements about the product. It is told to find things out by looking and measuring, and it runs commands on a clean machine to do so.
  3. Approve. The test is rendered in plain language. The owner corrects it and approves it. The approval is tied to the exact contents, so any later change voids it.
  4. Simulate on test pages. A designer writes a plain static page. It is scored, the scores go back, and the designer revises. This repeats until a design passes, the budget is spent, or two rounds bring no improvement. The best design is then scored again at larger sizes, and the assumptions are varied to find where the scores break.
  5. Hand off. The winning design, the requirements and the evidence are written up as a build request in the form the builder accepts.
  6. Build. TurkeyCode builds the real thing from that request. The owner confirms before the first build starts.
  7. Verify. The same test runs against the real build. Each score is reported beside the test page's score, with the difference.

The owner decides at step 3 (is this the right test), before step 4 (how much may be spent), and before step 6 (build it). Everything else runs without them.

Roles and separation

The test only means something if whoever is being tested cannot change it or see its answers, so each role is a separate session with limited sight.

RoleWhat it doesWhat it can seeWhat it cannot do
DeriverWrites the test and the ledgerThe sentence and the repository, with tools to read and run thingsDesign or build anything
DesignerWrites test pagesA brief: the visitors it may see, the questions without their marking, the ledgerOpen any file. It is a single model call with no tools
VisitorSkims, answers, decidesThe page, as a browser shows itSee the marking or the other visitors
JudgeMarks answers and checks claimsThe answer, the marking, the ledgerChange the marking
Builder (TurkeyCode)Builds the real siteThe hand-off package onlyRead the held-back visitors, by design

The designer's blindness is structural. It has no tools, so it cannot read the held-back visitors or the marking whatever it is told.

The builder's is weaker and should be stated plainly. In this run the builder worked in a clean folder that held only the hand-off, and the test folders were locked for the duration. But it ran as the owner's own user with a shell. A session that went looking could have undone the lock. A hard wall needs the build to run in a container that never has those folders mounted, and that was not done here.

How visitors are simulated

Four kinds of visit were run, each testing a different step between arriving and using the product.

Reading. A visitor is a written profile: role, experience, what they already use, where they came from and the one thing they saw before arriving, two or three hopes, two or three doubts, a reading speed and the share of body text they skip. The page is loaded in a real browser on a phone and a desktop viewport. The visitor is shown what is on screen for a 60 second budget, the page is taken away, and they answer questions from memory.

Deciding. Nobody asks the visitor to do anything. They arrive with limited patience and may scroll, click or leave, and leaving is the default. It counts only if they do something the test can observe: press a Copy button, or follow a link to the repository or the package page. Questions like "would you use this?" are never asked, because simulated people are agreeable and stated intent predicts little.

Trying. A developer agent is given a fresh node:20-bookworm container as a non-root user, with Node and Git and nothing else: no coding agent, no API key, no terminal attached. It gets the page's text and one sentence asking it to try the product on a small app. It names one command at a time and the pipeline runs each for real. Success is judged from captured output and exit codes, never from what the agent says happened. Here it counted when TurkeyCode itself started, ran its preflight, reported that no agent CLI was found, and exited with code 1.

An AI agent as the visitor. A developer who asks their coding agent to find a tool never sees the page; the agent does. This stage gives an agent the page's whole text and a request in a developer's words, such as "I want to kick off a whole small app build tonight on top of Claude Code and come back to something tested in the morning." The agent replies to its developer. A judge then checks three things: did it recommend the product, did it get the essentials right (the command, the prerequisites, what makes a run unattended), and did it say anything the ledger does not support.

Three of the eight requests were ones the product does not fit, such as wanting a hosted no-code builder or an editor autocomplete plugin. For those the correct reply is not to recommend it. A page that oversells therefore scores worse on this stage, not better.

Some visitors and some agent requests are held back. The designer never sees them, their answers or their reasons for leaving. They exist to answer one question: did the page get clearer, or did it only get better at the visitors it was tuned against?

Marking and statistics

Every score is a count of visits that succeeded out of visits run, and a result only counts as a pass when its margin of error clears the mark.

Marking. Each reading question has one or two required points, written before any design exists. A separate judge call reads the visitor's answer and decides which points it states. Rewording is fine. All required points must be present for the answer to pass. The final marking for this project:

QuestionA passing answer statesPass mark
What is this and who is it for?It drives a coding agent through a build instead of writing code itself; it runs a build from a prompt without you watching80%
What do you need in place?An agent CLI installed and logged in; Node 20 or later and Git70%
What would you type, and what must happen before it runs on its own?The npx turkeycode run command with a description; the scope is settled first, after which it does not wait for you65%
What has checked the work when you come back?Something other than the building session: separate QA sessions, or files on disk that plain code checks. Either counts60%

Pass marks. The deriver sets each mark with a one-line reason. It uses 80% for the core question and 60 to 70% for the rest. For deciding and trying it must reason about what is plausible, and here it chose 30% for acting unprompted and 80% for the clean machine and the agent stage.

Margins of error. Each rate carries a Wilson 95% interval. A measure is "met" when the low end of the interval is at or above the mark, "not met" when the rate itself is below it, and "inside the noise" otherwise. A design passes only when every measure is met for seen visitors, for held-back visitors and for the clean machine.

Sample sizes. Design rounds used screening sizes: 4 visits per visitor per screen, which gave 32 seen and 24 held-back visits per measure, plus 5 developers. The winning design and both real builds were scored at confirmation sizes: 10 visits per visitor per screen, giving 80 and 60, plus 20 developers and 80 agent replies. Visits are seeded, so a rerun of the same page mostly repeats.

Which design is kept. A new design replaces the best one only if the total shortfall against the marks, for seen visitors only, falls by more than 0.02. Held-back results never influence that choice. They only decide whether a pass is real.

The noise floor, measured by accident. The agent stage reads only the page's text. Two real builds had identical text and different layout. That stage scored 86% on one and 80% on the other. So at 50 replies, a six point difference is what you get from changing nothing. Any smaller difference reported in this paper should be read as no difference.

The owner's rules and how each is enforced

Six rules governed the run, and every page had to clear the checkable ones before any visitor saw it.

RuleHow it is enforced
True claims only. Every statement about the product comes from its repositoryA judge compares the page with the ledger. Anything the ledger does not cover is looked up in the repository by a session that can read it, and kept only if it returns a file, line and quote that code then finds at that place
Separate rolesSessions with different inputs and tools, described above
Never run visitors against a live sitePages are served from local files or a local copy of the build. Requests to any other host are blocked and recorded
No invented scoresAnything that did not run is reported as "not run"
Log cost and stop at the budgetEvery model call's list-price cost is appended to a log. The approved budget is checked before each step
No em dashesA plain text check on every page

The owner later added a seventh: links stay in the owner's own places. For this project those are the project's site, its GitHub organisation and its npm package.

The ledger. It held 53 statements at the end, each with a source: a file, line and exact quote, or a measurement with how it was taken. Code checks every quote against the real file. It also holds a list of things a page must not say, with reasons. Examples: that a global install works for every user, that an API key alone is enough to run, and that the tool makes up to five QA attempts per phase.

Rules that were removed. Early versions also rejected any page that loaded a file from another host and any link not already in the ledger, and allowed only statements that were literally listed. The owner asked for their own rules and nothing more. Those extra checks had thrown out several designs for harmless reasons, including a link to the site's own address.

First attempt: a broad audience

The first sentence was broader. Fifteen designs against it took the page from far behind to meeting every mark for seen visitors, and showed which audience the page should be for.

That sentence was: "I need a website that wins AI forward developers to download and try turkeycode." The deriver wrote five seen visitors and two held back, later revised to three held back. Best results, for seen visitors out of 40 and held-back out of 24:

MeasureOld siteBest designPass mark
What it is and who for5 seen, 2 held back34 seen, 15 held back80%
What you need set up15, 440, 2465%
Why trust the output0, 028, 1365%
How to start10, 336, 1860%
Acts without being asked10, 114, 230%

Seen visitors met every mark on the best design. Held-back visitors acted 2 times in 24.

Designs traded one answer for another. For ten designs, raising one reading score lowered another. One design took "why trust it" to 39 of 40 and dropped "what you need" from 39 to 13. A sixty second skim held about three of the four answers, and the designer kept changing which three.

The fix was facts, not wording. Reading why held-back visitors left showed that 16 of 21 gave one reason: the page read as "new apps only". The product does work on existing code, but no ledger entry said so, and the designer was not allowed to say it. Adding 46 verified statements moved "why trust it" from 23 of 40 to 35 of 40 in the next design, with no other score falling.

One kind of visitor carried the result. A skeptical senior engineer acted in 7 or 8 of 8 visits on every design. A developer with an existing Rails app and an engineering manager on Jira acted in 0 of 48 visits between them. The page was being asked to serve too many kinds of developer, and it was winning the one whose need matched its strongest claim. That is what led to a narrower sentence.

Second attempt: a narrower audience

Narrowing the sentence to daily Claude Code users produced the first design whose rates met every mark for seen visitors, in five designs.

The sentence became: "I need a website that gets developers who use Claude Code every day to try turkeycode for one unattended build." The deriver wrote four seen visitors and three held back, all daily Claude Code users, and added the agent stage with eight requests.

Seen visitors out of 32, held-back out of 24, agent replies out of 20 and 12, at screening sizes:

DesignWhat it isWhat you needRuns unattendedWhat checked itActsAI agent
Pass mark80%70%65%60%30%80%
Old site23, 1512, 1012, 723, 2013, 08, 4
Design 017, 126, 1112, 1023, 1413, 114, 8
Design 126, 2210, 1116, 916, 1112, 115, 8
Design 227, 2012, 1417, 1125, 1320, 617, 8
Design 328, 1731, 2419, 825, 1712, 318, 8
Design 4, kept26, 2231, 2421, 1325, 1723, 819, 8
Design 530, 2330, 2423, 1427, 1619, 618, 8

All designs scored 5 of 5 on the clean machine. Each kept design improved on the last, and no design traded one answer for another the way the first attempt's did.

Confirmation. Design 4 was scored again at 80 seen and 60 held-back visits, with 20 developers:

MeasureSeenHeld backPass mark
What it is90% (81 to 95)85% (74 to 92)80%
What you need96% (90 to 99)100% (94 to 100)70%
Runs unattended60% (49 to 70)53% (41 to 65)65%
What checked it72% (62 to 81)68% (56 to 79)60%
Acts65% (54 to 75)23% (14 to 35)30%
AI agent92% (81 to 97)67% (49 to 81)80%
Clean machine20 of 2080%

The verdict was "inside the noise". Two shortfalls were real: "runs unattended" for both groups, and held-back visitors acting.

Assumptions varied. A page that took 3 or 6 seconds to load scored the same. With every visitor on a phone, "what it is" would sit exactly at its mark. The clean machine result would fall under 80% only if more than about a fifth of installs failed for outside reasons. Three assumptions were not run: the share of visitors already logged in to Claude Code, the share on a Mac, and the share on a Pro plan.

The build and the verify step

TurkeyCode built the real site in 27 minutes, unattended, and measuring it showed the build kept the large gains from the test page and fixed its weakest point.

The build. The hand-off was a spec file in the six sections TurkeyCode's own scoping step writes, with the winning design, the current site, the ledger and the seen-visitor evidence as reference files. It asked for two pages, a random split with a 30 day cookie, server-side counts of views, Copy presses and outbound clicks, and one container. TurkeyCode planned two phases. Each passed QA on the first attempt, was reviewed by an agent and was merged. The result is a Node server with no dependencies and 36 tests. A line-by-line comparison found all 73 lines of the tested wording present and in order.

Test page against real build. Same visitors, same sizes:

MeasureTest page, seenReal build, seenTest page, held backReal build, held backPass mark
What it is90%80%85%80%80%
What you need96%99%100%100%70%
Runs unattended60%70%53%70%65%
What checked it72%65%68%57%60%
Acts65%65%23%15%30%
AI agent92%86%67%70%80%
Clean machine20 of 2020 of 2080%

The real build is at or above 10 of its 13 marks. The three open ones are all for held-back visitors: what checked the work, acting, and the agent stage.

What the hand-off changed. "Runs unattended" rose 10 points for seen visitors and 17 for held-back ones, and now clears its mark. The hand-off had named it as the weakest point and asked for those two lines to stand out. That is the one drift large enough to trust.

A diagnosis that failed. The real page has the brand: a black hero, a heavy uppercase headline and the mascot. "What it is" and "what checked it" slipped, and the obvious cause was the hero pushing the explanation down. TurkeyCode was asked for a second build with a smaller hero and the explanation, three boxes and first command all on the first screen, with no wording changed. It delivered that in 6 minutes. Scored again, "what it is" was 75% and "what checked it" 64%. Nothing improved, so the first build was kept.

The lesson is about the method, not the page. Without the second measurement the fix would have shipped and been believed.

Later builds. Further short builds served a write-up page from the site, changed the counting so that only visitors assigned at random are compared, left known crawlers out, and counted visitors instead of events.

What it found about the product itself

The run set out to test a page and surfaced fifteen issues with the product's instructions, most of them before any visitor was simulated.

The deriver is told to look and measure. To write a clean-machine stage it had to run the documented install on a clean machine, and to write a ledger it had to compare the docs with the code. The main ones:

IssueHow foundState
npm install -g turkeycode fails with a permissions error for a non-root user on stock Linux; npx worksMeasured on a clean machineFixed
The API-key setup says a key alone is enough. It also needs the agent CLI and one more settingDocs compared with codeFixed
A documented Docker setup has no Dockerfile behind itDocs compared with repoFixed
The background-run recipe uses setsid, which macOS lacksMeasuredFixed
A stated Node version and a test count were out of dateDocs compared with repoFixed
Nothing says turkeycode run works inside an existing repository. It doesSimulated visitors left over it; then confirmed in codeOpen
Existing code is detected only by a top-level package.json or DockerfileRead from codeOpen, a product limit
A plain run merges its own pull requests after QA and an agent review. The docs show this in a diagram but never say it in wordsRead from code and docsOpen
Nothing says what a run costs or whether it fits a Pro planSimulated visitors left over itOpen, needs real data

Two modes turned out to matter for honest positioning. A plain run owns the whole job and merges as it goes, which suits a new project. Running an existing ticket works in repositories you already have, pushes a branch and stops for a person to review. Visitors with existing codebases were asking for the second, and the page only described the first.

The distinction between the two kinds of evidence is worth keeping. Most of these came from the deriver reading and measuring. Four came from simulated visitors failing to get something from a page. Both are part of the pipeline, and they are different strengths of evidence.

What the run corrected in itself

Nine problems were caught and all but one corrected during the run, and catching them is why the final numbers can be relied on. Three of them would have produced confident wrong conclusions if nobody had looked.

What went wrongHow it showedCorrection
Marking demanded too many points at once, in both attemptsVisitors gave correct, useful answers and failed for leaving out one of three required points. A purpose-built design scored 0 of 32 on a questionOne or two essential points per question, with "either answer counts" allowed. The deriver's instructions were changed so it writes them that way
One marking line required something the page was forbidden to sayNo design could pass both the marking and the claims checkThe line was rewritten
The first held-back group was the two most unusual visitorsA low score could not separate a narrowly tuned page from a page not meant for themHeld-back visitors now mirror the main audience, with at most one outlier
A cited fact was falseThe ledger said "up to 5 QA attempts" and quoted a real constant. A normal run takes a path capped at 3. The deriver made this error in both attemptsCaught in review before the build; the ledger entry was corrected
The clean machine was not cleanThe test rig had set npm's global folder to a writable place, which hid the permissions failureThe machine is now the image as shipped
Extra guardrails rejected good pagesThree of the first five designs were thrown out, mostly over a link written with www.The checks were reduced to the owner's rules
One held-back agent request cannot be passedIt asks for a Jira ticket workflow, and the marking demands a command that does not apply to it. It scored 1 of 10 and 0 of 10Not corrected. It caps the held-back agent rate near 67%
A confident diagnosis was wrongThe hero was blamed for two slips; rebuilding it changed nothingThe first build was kept
The disk filled mid-runA design round died and the container runtime's filesystem went read-onlySpace was freed and the round rerun from the start

The three that matter most are the marking, the held-back group and the cited fact. In each case the pipeline was running cleanly and reporting numbers. The numbers were wrong for a reason only visible by reading individual answers, individual profiles or the code path behind a quote.

That is the strongest argument for the approval step and against treating this as automatic. A person has to read the test, and has to read failing answers when scores look implausible.

Limits and threats to validity

The results are a prediction made by models about people, and nothing in this paper shows how accurate that prediction is.

The agent stage stands apart from the first two points. There the visitor really is a model, so the stage measures the thing itself, for the model it was run on.

Calibration: the live A/B test

The built site splits real visitors between the old page and the new one, and that test is what will show whether the simulation's predictions hold.

A visitor arriving at the home page is given one of the two pages at random, half each, and a first-party cookie keeps them on it for 30 days. The server logs a line for each view, each press of a Copy button and each click out to GitHub or npm: the time, the page, the event, whether the page was reached through the split, directly or by a known crawler, and whether it was that visitor's first. Nothing else is stored, and the first-or-repeat marker comes from the split cookie, so no identifier is needed. A script reports, per page and per day, visitors, visitors who acted and the rate between them, from split visits only.

The simulation makes a checkable prediction: visitors the designer could see acted 41% of the time on the old page and 65% on the new one. Three outcomes are possible.

Real resultWhat it means
The new page wins by a similar ratioThe simulation predicted direction and rough size. It can be trusted further
The new page wins, at much lower absolute ratesDirection held and scale did not. Use it to rank designs, never to forecast
No difference, or the old page winsFor this audience and page, the simulation did not predict behaviour

The absolute rates will almost certainly be lower. A simulated visitor is always paying attention, and a real one often is not.

Traffic is the constraint. Telling 41% from 65% apart needs on the order of a hundred visitors per page. Telling a few points apart needs thousands. At a few dozen visits a day, a large gap would show within weeks and a small one may never show.

The site went live with the split on 21 November 2026. No result is reported here because there is not yet enough traffic to say anything.

Cost

The simulations cost $88.49 at list prices across both attempts, and the first four builds took 47 minutes in total.

ItemCost at list pricesNotes
First attempt, broad audience$50.08Deriving, several revisions, fifteen designs
Second attempt, narrower audience$38.41Deriving, three revisions, two design rounds, confirmation, sweeps, two verify runs
One design round, six designsabout $20Roughly $2 per design at screening sizes
One confirmation or verify runabout $480 seen and 60 held-back visits, 20 developers, 80 agent replies
Deriving a test$1 to $3A revision costs $0.10 to $1

These ran on a subscription, so the figures are what the same calls would cost through the API. Each project had a spending guard approved in advance, $75 and $50, and neither was reached.

Those four builds took 27, 6, 5 and 8 minutes. TurkeyCode does not record what a build costs, so that figure is not known.

The first attempt cost more than the second. Most of what it bought was the lessons that made the second attempt short: narrow the audience, loosen the marking, mirror the audience in the held-back group, and let the page say what is true.

Open questions and next steps

The method produced a clearly better page and a list of real product fixes, and the next step is to confirm the size of the gain with real visitors.

Open questions

Next steps