Can you launch a software business overnight?
An AI coding agent can assemble a storefront, connect a database, write tests and publish a preview before breakfast. That makes product discovery cheaper. You can show a working checkout to a potential customer and learn whether the idea solves a problem they will pay to fix.
Then a customer’s bank confirms the payment while your store fails to create the order. The customer retries. Support can see the charge in the payment provider dashboard but has no order reference to look up. A two-screen demo has become an incident that involves finance, inventory, support and engineering. The shop in this review is fictional. Its failures are acceptance scenarios for teams preparing to take real payments. For the prototype stage, see the vibe coding workflow guide.
What does a production-ready product have to prove?
A demo typically follows the happy path: the stock is available, the network is healthy and the provider responds in time. Live data brings missing values, old account formats and requests that arrive concurrently. A refund screen that assumes a default currency for historic orders can work perfectly on sample data and return the wrong currency on an old record. Production readiness means demonstrating correct behaviour under normal conditions and a controllable outcome when an expected dependency fails.
An invoicing outage illustrates fault tolerance. Depending on the agreed business rule, the shop can preserve the order and queue the invoice. Support sees a pending status, retry attempts have a limit and an overdue invoice reaches an accountable person. The same discipline applies to recovery. A backup setting does not tell you how much data you can recover or how long restoration takes. A restore exercise gives you those numbers.
Product
A prototype demonstrates the flow. Business rules define the outcomes customers and operators should expect.
Assurance
Data integrity, security and testing cover expected usage and known failure conditions.
Operations
Infrastructure, observability, compliance and maintenance make the service sustainable in production.
Who owns the business rules?
“Create an order after payment” describes a sequence. It leaves open what happens when two shoppers buy the last item, how long to reserve inventory or what to do if the provider’s webhook never arrives. Domain-driven design gives payment, order and invoice distinct states and meanings. Each process owner can then express acceptance criteria using those states. The agent can propose edge cases. Finance, fulfilment and support decide the expected outcome.
| Scenario | Verifiable acceptance criterion |
|---|---|
| Payment accepted, order missing | The payment attempt can be found by reference. A valid reservation can be fulfilled once. Other attempts enter the agreed refund or support process. |
| Missing or duplicate webhook | Reconciliation finds unresolved attempts. Processing the same event twice does not duplicate the business effect. |
| Two customers request the last unit | One reservation succeeds. The other customer receives a clear outcome and any payment is resolved. |
| Partial refund, voucher or delivery fee | Total refunds stay within the allowed amount. Discounts and delivery are allocated by the agreed rule. |
| Subscription cancelled or invoice calculated incorrectly | Cancellation has a recorded effective date. Billing corrections can be traced without overwriting the historic document. |
User experience under uncertainty
Ask a shopper on a phone to find out whether their order exists after receiving a bank notification. Watch what they do when they switch back from their banking app, use the back button or lose connectivity. A generic error encourages a second attempt. A pending message can reduce confusion if the customer can reopen the order status, and support can retrieve the same payment reference. Test the task with customers and compare the findings with repeat attempts, completion and support demand.
Use WCAG 2.2 to check keyboard focus, accessible form errors and the announcement of dynamic status updates. Empty and error states should explain the available action and retain valid inputs where appropriate. A visual review alone will miss the majority of these interaction details.
Who reviews AI-generated code?
Authentication establishes identity. Authorisation decides whether that identity can perform an action on a resource. Role-based permissions can let support read an order while limiting refund approval to finance. Attribute-based conditions may additionally restrict refunds by tenant, amount or order state. Check ownership on the server for exports, background jobs and individual records. Apply tenant isolation to files as well as database rows.
Parameterised queries, context-aware output handling, protection against forged requests and restricted outbound network access address different classes of web risk. Use operation-specific rate limits, scoped and short-lived credentials, encrypted transport and storage, and audit records that omit secrets and payment data. Review the origin and maintenance of dependencies. OWASP Top 10:2025 · OWASP API Security Top 10 · NIST SSDF
The agent is another trust boundary. Text in a repository, tool response or external document can try to steer the agent. A tool connector using MCP should expose only the actions the task requires. A code review session has no reason to hold a production deployment role. Tool services should enforce permissions themselves. Keep customer documents and credentials out of model prompts and logs unless that data flow has been assessed and authorised. Review high-impact changes against independently set requirements. Card flows should also be assessed for applicable PCI DSS scope. OWASP LLM risks · OWASP Agentic Applications 2026 · MCP security · PCI DSS
Design and code
Model threats, define trust boundaries and apply secure coding practices.
Before release
Review source, running application and dependencies. Apply independent review and authorised testing based on risk.
In production
Monitor suspicious access and preserve a usable incident trail.
CI/CD, tests and release decisions
Unit tests cover money rules. Integration and contract tests exercise the database and provider boundary. End-to-end tests follow the customer's checkout and recovery path. Load and stress tests show where queues and latency grow. Regression tests pin down problems already fixed. Use static analysis, security and dependency scans as additional signals. Test migrations on representative, sanitised data and with the previous application version.
If an agent assumes delivery fees are always deducted from refunds, tests it writes from the same assumption can repeatedly pass. Finance's acceptance criterion determines the expected result. A small canary can compare a new version against normal traffic before expansion. Blue-green environments and feature flags make it easier to switch code paths, but an incompatible database migration can still prevent rollback. Track the proportion of confirmed payments that become orders, and establish who can halt a release. Google SRE, Canarying Releases · Testing AI-generated code
Build and test
Build from source and verify units, integrations and data contracts.
Scan, stage, approve
Review security findings and validate the release in a separate environment.
Release and observe
Use technical and business metrics to continue, stop or recover.
Cloud architecture and the cost per order
A catalogue that queries stock once per product can overwhelm a database when application servers autoscale. Inspect the query plan and connection budget before adding servers. Define what can be cached and for how long. A slightly stale product description may be acceptable. A stale final-unit reservation can cause overselling.
Bound retry attempts, schedule recurring jobs so overlapping runs cannot pile up, and alert on dead-lettered work. Follow CDN egress, large object storage, and log volume and retention. A successful backup is useful when it has been restored and the recovery time and tolerable data loss are understood. FinOps combines these measurements with order volume so finance and engineering can see changes in unit cost. AWS Cost Optimization Pillar · Unexpected AWS bills
Media → CDN → object storage
Measure cache hit rates and egress.
Application → cache and database
Track latency, queries and connection use.
Queue → worker
Watch retries, dead letters and log retention.
Keeping financial records in agreement
If the provider captured the payment before the request timed out, another request with a new identity may charge the customer again. Idempotency ties retries to one attempt. Duplicate webhooks must also avoid duplicate orders or ledger postings. A database transaction can atomically commit local changes. It does not include an external provider or accounting system. Define state transitions, compensating actions and a time limit for unresolved discrepancies. Stripe idempotent requests · Stripe webhooks
Use exact decimal amounts or integer minor units with an explicit currency. Record a partial refund as a new movement linked to the charge, and enforce the cumulative refund limit even during concurrent requests. Reconcile internal movements with gross and net provider reports and bank payouts. Assign ownership of mismatches. Stripe, payout reconciliation
Payment → order → stock confirmation
Detect duplicate or missing events and stock conflicts.
Order → invoice → accounting
A failed invoice should have a visible pending state and an owner.
Refund → accounting adjustment
Track differences between provider and internal refund records until reconciled.
Micro-SaaS risks build up per customer
A micro-SaaS solves one recurring task for a narrow customer group. An AI tool that turns emailed wholesale price lists into quote drafts is a good prototype candidate. The business depends on whether customers repeat the task, renew and generate sufficient contribution after the cost of serving them.
| Monthly cost per customer, hypothetical | Typical use | Heavy use |
|---|---|---|
| Subscription revenue excluding VAT | TRY 499 | TRY 499 |
| Model and document processing | TRY 145 | TRY 285 |
| Infrastructure, payments and support | TRY 150 | TRY 150 |
| Monthly contribution | TRY 204 | TRY 64 |
| Time to recover TRY 900 acquisition cost | 4.4 months | 14.1 months |
This example values founder time in support and excludes fixed overhead and tax. At TRY 64 a month, someone who leaves after five months only returns TRY 320 of acquisition cost. Record first renewals, cancellation reasons, support minutes and usage by heavy accounts. Design a route for model failures, usage limits and customer data export. If a single marketplace supplies customers or a single provider processes documents, a change in terms, prices or quota affects the business directly. One-person teams also need a recovery procedure and someone who can respond to customers during disruption. Stripe, SaaS metrics
GDPR, KVKK and the life of customer data
Map where each field goes, including support, logs, backups and model providers. For each use, establish a purpose, lawful basis, retention period, access policy and deletion process. GDPR and Türkiye’s KVKK have distinct rules for access, erasure and transfers. Assess applicable processing agreements, international transfer mechanisms and breach handling with legal specialists. Where GDPR applies, high-risk processing may require a data protection impact assessment. Check that deleted accounts are not reactivated by a backup restoration. GDPR · Türkiye’s data protection law · International transfers · Breach notification
Collect → process → store
Limit collection to the purpose and control access at each destination.
Retain → delete
Apply retention and deletion to live data, suppliers and backups.
Access and audit
Keep appropriate evidence of decisions and access across the lifecycle.
Maintenance and architectural ownership
Multiple agents can implement different versions of the same pricing rule. Write down which module owns amounts and states, then review changes against those boundaries. Budget for compatible API migrations, old records, dependency upgrades and documentation. A reliable incident guide tells a new team member how to find a missing payment and who can close it. Validate the guide during handover or recovery exercises.
Human oversight and accountability
Finance owns unresolved charges, the incident lead coordinates a suspected breach and the release owner decides whether to stop rollout. A human approval gate has value when the reviewer sees the relevant evidence and has the authority to act. Separating preparation and approval is particularly useful for risky refund, data deletion and deployment changes.

Where AI helps most
Use AI to prototype, generate candidate tests, trace code paths, draft CI/CD changes, document workflows and summarise logs. Track review and rework along with first-draft speed. METR's randomised early-2025 study followed 16 experienced open-source developers completing 246 tasks on mature repositories. Tasks with AI tools allowed took 19% longer on average. Its February 2026 update suggested newer tools may improve speed, with selection and timing problems making the magnitude uncertain. DORA's 2025 survey and interviews describe AI as amplifying existing organisational strengths and weaknesses. Team-level findings and timed individual tasks answer different questions. METR 2025 · METR 2026 · DORA 2025
The first question before going live
Ask what the customer will see after a successful payment without an order, how the team will find it and who will resolve it. Demonstrated recovery, verified business rules and clear ownership give an overnight build a path to becoming a product.
Review your project
Assess payment, data and release risks before going live.
Tell me about your projectFrequently asked questions
Can I build an app overnight with AI?
A tightly scoped, test-data prototype is realistic. Verify the flows with real users before accepting actual payments or customer data.
Is vibe coding suitable for production?
It can start the work. Before release, review the architecture and data model, and test failure paths against acceptance criteria.
Is AI-generated code safe?
Assess the behaviour and evidence. Authorisation, money movements and deletion merit independent review and tests for failure conditions.
Can a micro-SaaS become profitable?
Yes. Compare recurring revenue with service costs, customer acquisition and renewal. Look at high-use customers as well as the average.
When is the first micro-SaaS pilot informative?
When customers use it on real recurring work and either pay to renew or give a clear reason for leaving. Record the variable cost and support time for the same period.
Will AI replace software engineers?
Tools change the work and can speed up well-defined tasks. The cited research cannot predict what will happen to every engineering role.
Can AI-built software comply with the GDPR or KVKK?
Yes. Map actual processing, assess the applicable law and verify how access, retention, deletion and supplier data transfers work.
What should a small team test first?
Start with the failure that would most harm the customer. Prove its detection and recovery before expanding traffic.
Sources
- METR, Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity
- METR, We are Changing our Developer Productivity Experiment Design (2026)
- DORA 2025 State of AI-assisted Software Development Report
- OWASP Top 10:2025
- OWASP API Security Top 10
- OWASP Top 10 for LLM Applications
- OWASP Top 10 for Agentic Applications 2026
- Model Context Protocol Security Best Practices
- NIST Secure Software Development Framework
- W3C WCAG 2.2
- Google SRE, Canarying Releases
- AWS Well-Architected Cost Optimization Pillar
- Stripe, Idempotent requests
- Stripe, Webhooks
- Stripe, Payout reconciliation
- PCI Security Standards Council, PCI DSS
- EUR-Lex, Regulation (EU) 2016/679
- KVKK, Law No. 6698
- KVKK, Guidance on international data transfers
- KVKK, Data breach notification
- Stripe, Essential SaaS metrics
