What a good discovery phase produces before any code is written

In this article
Software projects rarely fail because developers cannot write code. They fail because the team builds the wrong thing, builds the right thing for the wrong people, or discovers halfway through that an integration everyone assumed was simple does not exist. A discovery phase is there to surface those problems while they are still cheap to fix: on paper, in a prototype, in a conversation.
Discovery is also easy to do badly. A few workshops and a slide deck full of sticky notes can feel productive and leave nothing anyone can build from. A good discovery produces specific, reviewable outputs. Here is what we expect to hand over at the end of one.
A problem statement everyone has agreed
The first output is short: one page that states the problem, who has it, what it costs today and what will be different when it is solved. "Branch managers spend the first days of every month reconciling stock counts by hand, and errors reach the accounts" is a problem statement. "We need a new ERP" is not. It is a solution someone has already chosen.
This page should also say how success will be judged, in terms the business already tracks: fewer manual steps, a faster month-end close, fewer complaints about missed appointments. If the sponsors cannot agree on this page, nothing that follows will hold together, so it is worth having that argument early.
Users and the workflows they actually follow
Next comes a description of the people who will use the system and the work they do, based on observation rather than assumption. That means sitting with a dispatcher during a busy shift, watching a receptionist book appointments while the phone rings, and collecting the spreadsheets and paper forms that fill the gaps in today's tools.
The output is a set of workflow maps for the main journeys, showing each step, who performs it, what information they need and where things go wrong today. Exceptions matter more than the happy path: returns, cancellations, partial deliveries, approvals when the manager is on leave. Much of the complexity in business software lives in these exceptions, and an estimate is only as good as the list of them.
An honest map of data and integrations
Every new system has to fit among existing ones. Discovery should produce an inventory of the systems involved, the data each one owns and how the new system will exchange data with them. For each integration, record whether a documented API exists, who controls it, what access costs and whether anyone has actually tested it. An assumed integration with an accounting package or a government portal is one of the most common sources of late surprises.
The same applies to data migration. Look at real samples of the data to be moved, not just the database schema. Duplicate customers, free-text fields used for three different purposes and records that break today's rules are all normal. Knowing how widespread they are changes both the plan and the estimate.
This is also where non-functional requirements are written down: expected numbers of users and transactions, availability needs, where data must be hosted, security and audit requirements, and the languages the system must support.
A scoped first release and a prototype people have tried
With the problem, workflows and constraints understood, the team can define the first release: the smallest version that solves the core problem for a real group of users. It is described as a prioritized backlog of user stories with acceptance criteria, together with an explicit list of what is out of scope for now. That second list prevents more disputes later than any other document.
Alongside it sits a clickable prototype of the key screens, in Arabic and English if the product is bilingual. Put it in front of real users and watch them try to complete their tasks. Confusion found in a prototype is cheap to fix. The same confusion found after launch means rework, retraining and lost goodwill.
A short technical outline belongs here too: the proposed architecture, the hosting approach, the main technologies and the reasons for choosing them. It does not need to be long, but it should be specific enough for another engineering team to review.
An estimate, a risk list and a clear decision
Discovery should end with an estimate that can be questioned. Instead of a single number, give a range for each part of the first release and write down the assumptions behind it. If a range is wide, say why: an unknown integration, unclear data quality, a decision still pending. Ranges with stated assumptions are more honest than precise-looking figures, and much easier to tighten as facts arrive.
Next to the estimate sits a risk list, with each risk's likelihood, its impact and what will be done about it. Typical entries include dependence on a third-party API, availability of key staff for testing, and regulatory requirements that are still being clarified.
Finally, a recommendation and a decision point. Sometimes the right recommendation is to proceed as planned. Sometimes it is to start with a smaller pilot, buy a packaged product instead, or fix a process before building anything at all. A discovery that can only ever conclude "build everything we discussed" is not doing its job.
Whoever runs it, the test of a discovery phase is whether its outputs would still be useful if you took them to a different delivery team. If they would, you have paid for clarity rather than for a sales process.