A messaging prototype sends a message on a stable connection and shows it in the right thread. Then a real user reconnects after losing signal and the message appears twice. The demo established that the interface works. The duplicate exposes a missing requirement. Retrying the same send must create exactly one message.
That gap is the starting point of Suresh Konakanchi’s AI ThoughtMakers discussion, originally published on GeekyAnts. A production spec gives engineers something concrete to compare with the code they already have.
Turn the Production Spec Into Tests
The business spec defines who needs the product, what task it supports, and what counts as a successful outcome. The technical spec translates that outcome into normal and failure paths, access rules, expected concurrency, latency targets, and the telemetry needed to diagnose failures.
An acceptance test can describe the retry in terms of what the user sees.
Scenario: A client retries after losing its connection
Given the server stored a message with client ID "msg-42"
And the client lost its connection before receiving confirmation
When the client retries with the same message ID
Then the thread contains exactly one copy of the message
And the client receives confirmation
The release spec can also say what the team needs to see in production. A trace can connect the original attempt to the retry without storing the message body. A separate load test can measure p95 send latency at the expected concurrency. For an AI-backed feature, the same spec can define a fallback when the model times out and an evaluation set for checking output quality after a model change.
When Does Each Approach Make Sense?
| Approach | What the tests reveal | Example |
|---|---|---|
| Refactor in place | The current design can meet the spec through a localized change. | Enforce uniqueness for client message IDs and preserve the existing API. |
| Replace a component | One subsystem blocks a requirement and has a boundary the team can isolate. | Introduce a durable message queue behind the existing send interface and roll it out gradually. |
| Rebuild the affected system | Several core assumptions prevent the design from meeting the spec. | Rework a prototype whose in-memory storage and session model cannot support durable delivery or independent scaling. |
A failing test points to a gap. Its location and the number of subsystems involved help determine the scope of the change. When coding agents assist with implementation, a small spec with explicit pass conditions gives reviewers a manageable diff and a clear basis for checking it.
Five Companies With Modernization Approaches Worth Studying
These examples appear in alphabetical order. Each illustrates a different decision about what to retain, replace, or validate.
GeekyAnts. Specify edge cases before generating code. Konakanchi describes a healthcare MVP where the product owner, technical lead, and client refined the requirements together. The team documented 37 edge cases for sign-up and login and divided feature specs into smaller tasks for AI-assisted implementation.
IBM. Rebuild workflows within a platform upgrade. Vodafone Ireland worked with IBM to redeploy its TOBi assistant on a newer version of watsonx Assistant. The project included rebuilding conversational journeys and adapting the application infrastructure.
Shopify. Verify behavior one slice at a time. Shopify’s Helix tool helps migrate React Native screens to Swift and Kotlin. It breaks work into checkpoints and checks behavior and visual parity against the existing app.
Stripe. Separate data migration from the cutover. Stripe’s subscription migration wrote to both data stores before switching reads, then moved writes to the new model and removed the old data.
Thoughtworks. Replace functionality incrementally. A Thoughtworks case study describes using the Strangler Fig pattern to modernize an established mobile app while delivering new capabilities in stages.
The First Test to Write
The first test can target the failure that would cause the most trouble for a real user. Running it against the prototype gives the team evidence about where the problem starts and which interfaces a change would touch.
What production requirement has tipped an engineering team’s decision from refactoring to rebuilding?
Top comments (0)