A generated app can look finished before its most important decisions have been made. The buttons work, the layout is attractive, and the happy-path demo is convincing. But a product also has to survive missing data, unauthorised users, retries, and the person who maintains it next month. This is the gap between vibe coding a prototype and operating a service.
Why the happy path is not enough
Stack Overflow’s 2025 developer survey documented substantial AI-tool adoption alongside concern about accuracy and outputs that were almost right. That is survey evidence about respondents, not proof that every generated application is unreliable. It does explain why checking the result matters.
Start by listing what the app promises. Can users save work, delete it, share it, or pay? Each promise creates cases the demo may not show. A beautiful form that loses a submission on a network failure breaks a real promise even if its CSS is excellent.
Write five failure stories
For a small publishing app, try these: the network drops while saving; a signed-out visitor requests an edit endpoint; two tabs edit the same article; an image upload fails; a deleted article is requested through an old link. Describe the expected behaviour before asking an assistant to implement it.
These stories turn vague “make it production-ready” requests into observable work. They also prevent an AI tool from inventing a large architecture that does not address the actual risks. A small, understandable correction is often better than a new framework introduced without a reason.
Check the data boundary
Secrets belong on the server, and permission checks must occur where changes are accepted. Hiding an edit button is a user-interface choice, not access control. Review what an unauthorised request can read or change independently of the visible page.
Use realistic fake data for testing. Check validation, duplicate submissions, and recovery after a failed write. If the application stores something important, practise restoring a backup into a separate environment. A backup file you have never restored is incomplete evidence of recoverability.
Check the experience without the ideal laptop
Use a narrow screen, keyboard navigation, and reduced-motion settings. Try slow loading and empty lists. The interface should explain what happened and what the user can do next without exposing internal errors or trapping focus.
Keep performance work specific. Find the slow request or expensive interaction before deleting personality from the design. A heavy feature can often load later, pause offscreen, or use a lighter mobile configuration while preserving its purpose. Measure the change instead of claiming a perfect score.
Leave a handoff, not a mystery
Document how to run the app, configure required services, publish changes, and recover from common failures. Explain the decisions that are not obvious from the code. Remove dead experiments only after confirming they are unused, and preserve intentional comments and disabled features.
Before release, ask someone unfamiliar with the project to follow the README and complete one core task. Their confusion identifies missing product and developer experience. AI can accelerate implementation; a clear definition of done makes that acceleration lead somewhere useful.
A concrete failure: two people edit the same record
Imagine two editors opening revision 7 of an article. The first saves revision 8. If the second save blindly replaces the record, it can erase the first editor’s work. A safer design includes the expected revision in the write condition and rejects a stale save, then asks the second editor to reload and compare.
This portfolio’s studio implements an optimistic revision check and retains a bounded history of prior versions. That is evidence of a specific implementation, not proof that all data-loss scenarios are solved. A separate content backup remains necessary because editor history and database recovery address different failures.
Make the failure path part of the demonstration
Before calling a prototype ready, rehearse an expired login, an unauthorized request sent directly to the server, invalid input, a slow dependency and a failed save. Confirm that the interface explains the state and does not show success before the operation succeeds. Keep secrets out of the browser bundle and error messages.
Write the setup and recovery steps so another developer can follow them on a clean machine. Restore a backup in a safe environment before depending on it. These are release criteria, not a promise that one checklist certifies security. Prioritize the failures that would expose data, lose work or mislead the person using the product.
| Failure case | Expected behavior | Evidence to retain |
|---|---|---|
| Unauthorized write | Server rejects it | Request and safe response |
| Two editors, same revision | Stale save rejected | Preserved first save and conflict response |
| Dependency unavailable | Clear recoverable error | No false success state |
| Backup recovery | Known content restored in safe environment | Restore procedure and verification |
| Keyboard-only use | Essential flow remains usable | Observed focus and action sequence |



