Product engineering

Define a Minimum Useful Prototype Before Writing Code

Plan a minimum useful prototype around one uncertainty, a bounded task, explicit simulations and evidence that supports a concrete decision.

A prototype is useful when it resolves a specific uncertainty. It does not need to look like a finished product, and it should not acquire production responsibilities by accident. Before writing code, decide what the team needs to learn, which evidence would answer the question and what can safely remain simulated.

The GOV.UK Service Manual’s guidance on the alpha phase emphasizes exploring and testing ideas before committing to a service approach. The method below applies that learning-oriented principle to a small software prototype. It is a practical planning workflow, not a claim that every project follows a government delivery process.

Name the uncertainty rather than the feature

A feature description says what the team might build. An uncertainty says what it does not yet know. “Build a document search interface” is a feature; “Can users distinguish the correct result when several documents share a title?” is a question a prototype can investigate.

For a fictional internal knowledge tool, the team may be uncertain about result labeling, permission-aware retrieval or integration latency. Those are different questions and may require different prototypes. Combining them immediately can make the trial expensive and its result ambiguous.

Write one primary question and a small number of supporting questions. If the prototype succeeds, the team should know which decision becomes easier. If no decision depends on the result, reconsider whether coding is the next useful activity.

Choose the evidence that would change your mind

Define what you would observe and how it relates to the question. A usability question may require people attempting a task. A technical feasibility question may require a real integration call. A performance question needs a representative workload and a measured boundary.

Avoid a success criterion such as the demo looks convincing. A polished demonstration can conceal the uncertainty by using carefully selected examples. The criterion should be specific enough that an unfavorable result is possible.

For the search-labeling question, the evidence might be whether participants can select the intended document and explain the label that helped them. This does not establish broad product adoption or long-term satisfaction. Keep the claim close to the task actually observed.

Separate what must be real from what may be simulated

Identify the smallest realistic component needed to answer the question. If the uncertainty concerns visual comprehension, static sample results may be sufficient. If it concerns an API’s permission model, simulated responses cannot resolve it.

Label simulated behavior in the team’s record and in the demonstration where needed to avoid misunderstanding. A button that appears to save data should not imply a durable backend if none exists. The prototype’s limits are part of its design.

Use synthetic data when real data is unnecessary. If representative private data is required, follow the authorized handling process and minimize what the prototype receives. A temporary experiment is not a reason to create an unmanaged copy of sensitive information.

Define a narrow task path

Choose one or two end-to-end paths that expose the uncertainty. For the knowledge tool, the path might begin with a query, show a short result list and end with the participant choosing a document. Authentication screens and account settings may be irrelevant to that particular trial.

Include a difficult or ambiguous case, not only the ideal example. If every result has a unique obvious title, the prototype cannot answer the question about similar titles. The sample needs to challenge the design assumption deliberately.

Keep the path small enough to revise. A prototype’s value often comes from changing the approach after the first observation. Investing heavily in unrelated screens makes the team more reluctant to discard an idea that the evidence does not support.

Set a time and effort boundary

Agree on a bounded amount of work and a review point. The boundary encourages the team to choose the simplest artifact that can answer the question. It is not a deadline that requires pretending an unresolved question has been settled.

List what is intentionally outside scope. This might include production authentication, full data migration, billing or support tooling. The list prevents a small experiment from expanding through ordinary requests for completeness.

If the work exceeds the boundary, pause and ask why. The prototype may have uncovered a larger technical uncertainty or may be accumulating unnecessary polish. Decide whether to narrow the question, extend the experiment for a specific reason or stop the approach.

Choose a format that fits the uncertainty

A paper sketch, clickable mockup, local script and thin integrated application answer different questions. Do not choose code automatically when a simpler artifact can reveal the same issue. Conversely, do not rely on a polished mockup to prove a technical capability.

For a technical spike, isolate the boundary under investigation. A small script that authenticates to a supported test environment and measures a representative request may be more informative than a complete interface around a fake response.

Record the environment and constraints. A prototype running locally with a tiny dataset does not establish production performance or operational readiness. The result remains useful when its scope is described honestly.

Prepare the observation before the demonstration

Write the task prompt and the questions you will ask. Avoid leading participants toward the intended answer. A request to find a particular document is more neutral than an instruction to use the new helpful labels to find it.

Decide what to record and obtain any necessary participation or recording arrangements through the team’s normal process. Notes may be sufficient. Collect only what is needed to answer the research question, and keep personal information appropriately limited.

Separate observation from interpretation in the record. “The participant opened three incorrect results” is an observation. “The category labels were unclear” is an interpretation that may need supporting evidence. Keeping both visible improves the quality of the later decision.

Include failure and uncertainty in the prototype

If an important question concerns errors, show the relevant failure path. An integration prototype should reveal how timeouts or missing permissions affect the experience when those conditions are part of the decision.

Do not simulate a guaranteed recovery when the real mechanism is unknown. A friendly retry button may demonstrate an interaction idea, but it does not prove that repeating the operation is safe. Record the technical question separately.

Use the prototype to identify what remains uncertain. A useful result can be that the interface concept works with the sample but the data model cannot support the required distinction. That is progress because it directs the next investigation toward a concrete problem.

Compare alternatives without overbuilding them

When the question concerns a design choice, create enough of each alternative to make a fair comparison. Keep the task and sample conditions similar. One polished option and one rough placeholder can bias the observation toward presentation quality rather than the underlying approach.

Record the tradeoff each alternative represents. A denser result card may provide context but slow scanning; a simpler card may be faster to read but omit a necessary distinction. The goal is to understand that tradeoff in the actual task.

Do not turn a small trial into a statistical claim it cannot support. Qualitative observations can identify problems and guide iteration without proving that one design is universally better. State the evidence’s limits and decide what additional work would be needed for a stronger conclusion.

End with a decision record

Summarize the question, prototype scope, observed evidence and resulting decision. Possible outcomes include continue, revise, investigate a different uncertainty or stop. A decision to stop an unsuitable approach is a valid result, not a failed prototype.

List the assumptions that remain untested. For the knowledge tool, a result-labeling trial may leave scalability, accessibility with assistive technology and permission enforcement unresolved. Those gaps should not disappear when the prototype is shown to a wider audience.

Connect the next action to the evidence. Avoid ending with a vague plan to build more. State which change or test will address the most consequential remaining question and who owns it.

Keep prototype code from becoming accidental production

If the team decides to continue, review what the prototype omitted before reusing its code. Temporary authentication, synthetic data, missing error handling and unsupported deployment choices may be acceptable for an isolated experiment but not for a live service.

Mark the repository or deployment according to its status and remove temporary access or data when the experiment ends. Do not leave a public demonstration collecting real user input without a maintained purpose and appropriate controls.

Reusing a small piece of proven code can be sensible, but make the transition explicit. The production plan needs its own requirements, verification and operational ownership. The prototype’s success answers its original question; it does not certify everything around it.

Keep learning as the measure of completion

The minimum useful prototype is the smallest artifact that produces credible evidence for a decision. Its quality is measured by what the team can now explain, not by the number of screens or lines of code.

Before closing the work, confirm that another person can identify what was real, what was simulated and what the result supports. That clarity lets the team move forward with confidence grounded in a specific experiment rather than in the momentum of an impressive demo.

Continue reading

Write an API Contract Before Building the Endpoint

Design Idempotent Requests for Retried Operations