Learning objectives
- Identify which questions the code can answer and which need a product decision
- Write acceptance criteria with examples that can be tested
- Check that the feature works from opening the form through placing an order
- Use the results from Experiment 002 to improve your own issues
Requirements
- A browser with JavaScript enabled; no installs, accounts, or API keys
- Optional implementation: the Ridgeline Coffee repository at the study baseline and its Python development environment
Work through the reorder feature
Starting issue: “Let customers reorder a past order.”
What would you need to know before building this? Work through the questions below, then put together an issue. The answers come from the decisions I used in Experiment 002. You can open each answer before checking your choices.
03 / Build and review the issue
What did the original request leave out? Write down the questions you had, where you found the answers, and anything you would still want to ask.
This button fills the editor with a starting issue, including your notes. Clicking it again replaces anything you've edited. If you add notes later, copy them into the issue or build it again.
Read through the issue and edit it before handing it to an agent. Could someone tell what to build and how to test it? If you can, ask someone else to read it too.
Download your issue to keep it. The lab saves completion on this device when browser storage is available, but reloading clears your notes and draft.
How much detail does an issue need?
In Experiment 002, I asked coding agents to build the same feature with four different descriptions. The task was “Let customers reorder a past order.” This sounds fairly simple on the face of things, but there are quite a few decisions that need to be made.
For instance, should clicking Reorder place the order right away? Or should it open a form for the customer to review? What if a product is no longer available? Should we use the old price or today’s price?
The biggest improvement in the experiment came from adding those product-level decisions to the issue. Adding examples, repository context, and testing guidance after that didn’t improve the full success count on this particular task. That was interesting to me - a longer specification wasn’t necessarily a better one.
This lab lets you work through those questions yourself, using the same reorder feature. You’ll choose answers, compare them with the decisions used in the experiment, and put together an issue that you can edit and download. Everything runs in the browser. There’s no coding agent running in the background - the feedback checks your choices against its answers.
Start with the feature request
The application is Ridgeline Coffee, an example Python web application for a coffee roasting company. Customers already have orders, and there is already a form for placing a new order. Reordering didn’t exist at the start of the experiment in the repository.
Before looking at the answers in the exercise, think about how you would implement the one-line request. You might make some reasonable choices that are different from mine. That ambiguity is part of the lab - if the issue doesn’t say what should happen, the coding agent has to fill in the gaps.
Some questions can be answered by looking at the code. You can find where orders are created, how prices are calculated, and how the application checks whether a customer can view an order. Other questions need a product decision. The code won’t tell you whether customers should review a reorder before placing it.
There are also choices that don’t need to be directly specified. For this experiment, the agent could decide whether to use a query parameter on the existing new-order route or add a reorder route. Either approach was allowed within the scope of the task.
As you go through the exercise, use the notes field to keep track of the questions you had and where the answers came from. Some things were left open in the experiment, including copying notes, delivery details, and reordering cancelled orders. You would want to discuss those if they mattered for your application.
Make the examples specific
One of the decisions was to copy the products and quantities from the old order into the new-order form. But even that decision needs a little more detail to make it specific.
For instance, suppose an order has Test Blend on two lines - one case on the first line and two cases on the second. It also has a case of Retired Blend, which is no longer available.
The intended result is three cases of Test Blend, with Retired Blend left out. The page should tell the customer that Retired Blend is no longer available. If none of the products are still available, nothing should be prefilled, and the page should explain why. Opening the form should never create an order all by itself.
That’s enough to write a test for what should happen. We don’t need to specify a helper function or the exact wording of the message. In fact, one of the checks in the original experiment was too strict about the unavailable product message, and I corrected it after reviewing the results.
Test that the customer can actually place the order
One of the more interesting failures in the experiment was a form that looked correct in the web page but couldn’t actually be submitted. This happened in eight attempts.
The coding agent added a reorder route that could display the form, but only accepted GET requests. The form didn’t have an explicit action, so the browser tried to submit it back to the reorder URL (the default behavior for a form). That produced a 405 Method Not Allowed HTTP error.
The agent’s tests posted directly to /orders/new, which worked, because it accepted POST requests. But that wasn’t where the end user’s browser was sending the form.
For this feature, testing needs to follow the customer through the process: click Reorder, check the prefilled form, submit it where the form actually points, and check that the new order was created. If there is no action, the form submits to the current URL, and a relative action is resolved against that URL.
Try submitting without a due date too. The application should show the validation error and let the customer correct it, without creating an order. And make sure that placing an ordinary new order still works - this is something that wasn’t caught in the existing regression test suite for the Ridgeline Coffee application.
In one attempt that a coding harness made, a misplaced return stopped all new-order submissions from creating orders. All 22 original tests passed. None of those tests submitted the new-order form, so they couldn’t catch the problem.
What the experiment found
There were four coding-agent configurations, four descriptions, and five repeats of each - 80 attempts in total.
| Description | Full success | Minimal success |
|---|---|---|
| D1 - one-line request | 3/20 | 18/20 |
| D2 - product decisions added | 17/20 | 18/20 |
| D3 - examples, repository context, and testing guidance added | 17/20 | 17/20 |
| D4 - the same information as D3, in a noisy issue thread | 18/20 | 18/20 |
Full success means the implementation satisfied all the acceptance criteria and passed the original regression tests. Minimal success means working reorder functionality that didn’t cross account boundaries - a customer couldn’t reorder another customer’s order.
The vague request did surprisingly well on that minimal outcome. But most of those implementations didn’t match all of the intended behavior. The agents could build a working feature without knowing every product decision; they couldn’t reliably guess which decisions I wanted.
D2 and D3 had the same full success count. D4 did slightly better, but one additional success isn’t enough to say that a noisy issue thread is better than a clean spec. None of the D4 attempts included the one-click ordering or date-copying ideas that had been discussed and then reversed in the thread.
These are the corrected results. After the experiment ran, I found several checks that were stricter than the descriptions called for. Only failed checks were reconsidered, so the corrections could only raise the scores. The preliminary full success counts were 3, 14, 15, and 18 out of 20. The experiment page and correction evidence have the details.
This was one task, with five repeats of each configuration and description. I wouldn’t generalize it to every issue or coding agent. But it gives us a useful place to start - make the important product decisions clear, and check whether the implementation works the way a person will use it.
Put together your issue
Once you’ve checked your answers in the exercise, you can generate a starting issue and edit it. Read through it as if you were about to give it to a coding agent. Is anything contradictory? Have you added a requirement that hasn’t been confirmed by all the stakeholders? Can you tell whether each acceptance criterion has been met?
If you’re working with someone else, have them read it too. There isn’t one correct way to write the issue, and matching the generated wording isn’t the goal of this lab. A shorter version may be enough if it still explains the decisions and how to test them.
Download the issue when you’re finished. The lab can save that you’ve completed it on this device, but it doesn’t save your notes or draft when you reload the page. The lab doesn’t grade the writing.
Try it with a coding agent
If you want to implement the feature, the generated issue points to the Ridgeline files used in the experiment at commit 353c3ccdf3acdaae9acae78b5132241061b5decc. Follow the repository’s setup instructions and check that those files match your checkout. Run python -m pytest -q, along with the tests you add for reordering.
The study-materials download includes the harness, descriptions, and answer sheet. Look in benchmark/descriptions/ to compare the issues used in the experiment, or benchmark/stakeholder-answers.md for the decisions behind them. The implementation agents didn’t receive the answer sheet itself; each description included a different amount of that information.
The ZIP doesn’t include a ready-to-run Ridgeline checkout or all of the saved implementation patches. End-to-end reproduction of the experiment hasn’t been verified.
After deploying your implementation, go through the reorder process again with the intended account. Check that you can place the new order, that it uses current prices, and that the original order hasn’t changed. Local tests are useful, but they don’t tell you whether the deployed feature works.