Code generation got faster; production engineering stayed the same
Prompt-generated code almost always optimizes for the happy path: a single user enters clean input, clicks once, and talks to cooperative APIs. Production business software lives in the opposite world—concurrent edits, expired tokens, duplicate webhooks, and strict tenant isolation.
Deciding where state lives, auditing who can read which row, keeping credentials off the client, and planning how the system recovers on failure are human architectural decisions.
Five places AI-generated prototypes break in production
Across internal tools, integrations, and customer-facing builds, these five failure modes appear most often when prototypes reach live operations:
| Failure area | Why demos miss it | Production consequence |
|---|---|---|
| 1. Authorization & row isolation | Tested under one admin account. | Changing an ID in a URL or payload exposes another branch or organization. |
| 2. Exposed secrets | Keys pasted into frontend config or git during rapid setup. | Credentials leak in browser bundles, build artifacts, or commit history. |
| 3. Non-idempotent writes | One tester clicks slowly on stable Wi-Fi. | Double-clicks or retried webhooks create duplicate orders or payouts. |
| 4. Unbounded data to AI APIs | Tested with dummy strings. | Live customer records or trade secrets leak to external model providers. |
| 5. Zero rollback or auditability | Single developer deploys straight from laptop. | No audit trail for changes and no tested path to revert a broken release. |
Synthetic data in development, explicit boundaries in product AI
Using AI assistants to write code is fundamentally different from feeding live customer data into external models. In disciplined engineering workflows, development and QA run strictly on synthetic or anonymized datasets—never real customer records, passwords, or production API keys.
When the software itself ships an AI capability (such as document extraction or triage), the scope document must specify exactly which fields leave your boundary, which provider receives them, how cost caps are enforced, and what deterministic fallback runs when the model times out.
A minimum QA gate before anything reaches your team
“It works on my machine” cannot unlock client acceptance or payment release. Before a delivery link becomes visible, every release should pass a baseline verification checklist:
- Authentication and authorization checks enforced server-side on every route and role.
- Cross-tenant and cross-department data-access isolation verified.
- Automated and manual secret-leak scan across client bundles and responses.
- Idempotency, retry queues, and failure-state handling tested with synthetic faults.
- Mobile viewport layout and live-domain HTTPS confirmed.
A baseline QA checklist establishes a documented engineering floor—not an absence-of-defects claim. Client testing against written acceptance criteria remains essential before final sign-off.