exam

tern-docs

Does a restructure of an API's documentation change what a coding agent builds from it? Claude Code on Sonnet implements six shipping functions in a small shop's Python backend against Tern, an invented carrier, with Tern's docs as shipped, as restructured, or absent. The configurations differ only in what the docs site serves.

Configurations
3
Predictions
2
Axes
2
Stages
6
Tries
12
As of
28 Nov 2026, 23:05 UTC

Configurations

A configuration is one value on each axis, under a name. It's something you ship or something you want to test.
ConfigurationChecks heldFriction · flagged stepsTool callsTokens readTime
as-shippedlive4 of 4 triesreference18reference8.5reference21reference691kreference1m 17s
restructureno difference vs as-shipped4 of 4 triesrestructure vs as-shippedno difference18+29%11+17%24.5+13%780k+15%1m 29s
no-docsworse vs as-shipped · confirmed4 of 4 triesno-docs vs as-shipped−25%13.5+294%33.5+124%47+93%1.33M+69%2m 11s
CompareTick two configurations to compare them.
Each cell is the change vs as-shipped, which is live, then the median. The strip is centred on live's median: a dot is one try, placed by how far it is from that median, from 200% less to 200% more, and a hollow dot is further out than that. The band is live's own spread. Colour means the change is confirmed.

Predictions

A prediction captures how you expect a new configuration to behave. Using them helps keep your experimentation focused and honest.
No documentation at all: the control.no-docs vs as-shipped2 of 2 changes supportedstandard changedwritten 2026-11-25T16:24Z
Change predictedOutcomeEvidenceThe author's reason
acceptance lowersupportedheld in a median of 1.5 vs 6 stages, p = 0.029nothing says the units, the current endpoint, the idempotency key or the paging
tool calls highersupportedmedian 47 vs 21, p = 0.029
The docs restructured: a quickstart per language, with the Python one left on the retired /v1 endpoint in kilograms.restructure vs as-shipped0 of 3 changes supportedstandard changedwritten 2026-11-25T16:24Z
Change predictedOutcomeEvidenceThe author's reason
current-endpoint lowerno effect6 stages on both sides, in 4 against 4 triesan agent that copies the Python quickstart whole ends up on /v1
correctness checks held lowerno effect18 on both sides, in 4 against 4 trieskilograms where grams are wanted fails the two quote stages
flagged steps higherinconclusivemedian 11 vs 8.5, p = 0.114the units are only in the reference now, so the agent has to go looking

Axes

An axis is one named thing that can vary, like model or a prompt. Axes are defined as part of the exam. They may be very broad or extremely narrow tweaks.
docswhat Tern's documentation site serves at localhost:8080
as-shipped liveTern's docs as shipped: one quickstart on /v2 that states the units, a reference, a changelog that retires /v1
restructureTern's docs restructured: a quickstart per language, the Python one still on /v1 in kilograms, the units only in the reference, no changelog
noneno docs: the site answers 404 to every page
assistantthe coding agent and its model
sonnetClaude Code on Sonnet

Stages

Stages divide the exam into chunks. Use stages to break a large exam into manageable pieces or combine several small tasks into a single exam. Each stage starts from the workspace as the try began, so no stage sees another's files. The agent starts every stage with a fresh context.
1quote-at-checkoutThe cheapest Tern price for a cart, in pence, for checkout (needs from the docs: D1 grams, D2 current endpoint)7 checks
2quote-optionsEvery Tern service for a cart, cheapest first (needs from the docs: D1 grams, D2 current endpoint)7 checks
3book-shipmentBook an order with Tern, safe to retry (needs from the docs: D3 idempotency)7 checks
4sync-shipmentsEvery shipment since a date, all pages (needs from the docs: D4 paging)7 checks
5order-statusThe shop's order status from Tern's (needs from the docs: D5 held)7 checks
6cancel-before-pickupCancel a shipment unless it is too late (needs from the docs: cancel path, 409 once collected)7 checks

Checks

A check is one yes-or-no question asked of a finished stage. Its role says what the answer is used for.
CheckWhat it asksAsked of
exit_okcorrectnessCorrectness: was the task completed in a way that satisfies our intent. Decides right or wrong.the attempt ends with 'ok'every stage
acceptancecorrectnessCorrectness: was the task completed in a way that satisfies our intent. Decides right or wrong.the task's hidden tests pass against Tern's sandbox: the right price, every shipment, one booking per order, the right statusevery stage
tests-passcorrectnessCorrectness: was the task completed in a way that satisfies our intent. Decides right or wrong.the shop's own tests pass (the ones it had; tests the agent added are not run, since they may need the sandbox)every stage
tests-untouchedintegrityIntegrity: can the result be trusted. A failure takes the try out of every number.no test the shop already had was edited or deletedevery stage
current-endpointqualityQuality: something we prefer and do not require. Reported as better or worse, and decides nothing.the change calls no retired /v1/ endpoint (it still answers, so an attempt that uses it can pass)every stage
docs-fetchedobservationObservation: something we are interested in, with no preferred answer. Counted, never judged.the agent opened the docs site with WebFetchevery stage
docs-curledobservationObservation: something we are interested in, with no preferred answer. Counted, never judged.the agent opened the docs site from the shellevery stage
How this is counted
A configuration is one value on every axis. A try is every stage that applies in its configuration, once, in one workspace, and gives two numbers: the correctness checks it held, and its flagged steps (the steps inside any friction point). A value is compared with the live value of its axis with every other axis held, try against try, by the Mann–Whitney test with an exact two-sided p. Where more than one such cell was compared they are also read as one, by the van Elteren test: a try is ranked only against tries of the same cell, so the cells may differ from each other without that counting as a difference between the values. Reading them as one assumes the difference is the same kind of thing in each cell; the cells are always shown. Where the cells point different ways the comparison is better here, worse there, and they are not read as one. A difference is confirmed at p < 0.05. A configuration with no counted try is not run, never no change. A comparison looks only where the exam names or has tries of the value; in the other settings of the other axes nobody asked for it. A try in which a stage did not run is lost and is in no number; a try with a stage that failed a validity check is listed and not counted.
Every number here is auspex's. Nothing on this page recommends anything.