# From Vibe-Coded Prototype to Production App: A Practical Checklist

> How to make an AI-built app dependable: code ownership, secrets, authorisation, data and backups, dependencies, tests, payments, monitoring, cost limits, and when to rewrite.

Source: https://www.agsora.tech/en/blog/dari-prototipe-vibe-coding-ke-aplikasi-produksi-daftar-periksa
Category: Technology · Published: 2026-11-30 · Updated: 2026-11-30 · By PT Agsora Teknologi Indonesia

A business owner describes an idea to an AI assistant and, within a weekend, has a clickable application: an order form, a dashboard, even a login. This popular style of building software, often called vibe coding, is very useful for testing ideas. Trouble starts when the prototype goes straight to real customers. This article explains what to check and fix before an AI-built app stores data, takes money, and becomes part of operations.

*Code that appears to work is not necessarily safe once many people use it.*

## Value the prototype rather than dismiss it

An AI-built prototype answers questions that are expensive to answer with documents: which flow confuses people, what data is really needed, and whether users will use it. That is a real asset. Treat it as a living specification. Some parts can stay; others are cheaper to rewrite. The danger is reading a tidy interface as proof of readiness.

Veracode's 2025 report on AI-generated code security found that roughly 45 percent of tested samples contained a vulnerability in an OWASP Top 10 category. A figure from one study does not apply to every project, but it is enough to show that model output deserves the same review as code from someone you do not know.

## First step: take ownership

Before discussing quality, make sure you truly control the asset:

- Code lives in a company-owned repository, not only on the app builder platform.
- Hosting, database, domain, and third-party accounts are registered to the company.
- You know how to export code and data if you change platforms.
- Component licences do not conflict with your business plans.

Ownership questions are covered in [open source licences and code ownership](https://www.agsora.tech/en/blog/lisensi-open-source-dan-kepemilikan-kode-di-proyek-software-bisnis), and platform dependency in [vendor lock-in exit strategy](https://www.agsora.tech/en/blog/vendor-lock-in-di-cloud-dan-software-bisnis-strategi-keluar).

## Check secrets and credentials

Search for API keys, database passwords, and tokens written into code, especially code sent to the browser. Anything once exposed must be treated as leaked: reissue it, do not merely move it. Keep secrets in a secret manager or server environment variables, separate test and production keys, and enable automated repository scanning. Details are in [managing secrets and API keys](https://www.agsora.tech/en/blog/manajemen-secret-dan-kunci-api-di-aplikasi-bisnis).

## Authorisation is the main test

A working login does not mean access is protected. A common flaw lets an ordinary user read another user's data by changing a number in the address or calling the API directly. Test with two accounts:

- Can account A open account B's order by changing the ID?
- Can a staff role call admin functions even though the button is hidden?
- Are access rules enforced on the server and database, not only in the interface?
- If a browser-accessible database service is used, are row rules enabled and tested?
- Can anyone who guesses a file address open uploads?

Design roles from job needs, as in [designing user access rights](https://www.agsora.tech/en/blog/merancang-hak-akses-pengguna).

## Data: correct, protected, and recoverable

Prototypes often store data without constraints: empty values accepted, duplicate numbers allowed, money kept as floating-point values that drift. Add unique keys, relations, server validation, and transactions for operations that must complete together, such as reducing stock while recording a sale.

Separate test data from real data. Change schemas through recorded migrations. Enable automatic backups and test restoring them; a backup never restored is only hope. Collect only needed personal data, set retention periods, and provide deletion in line with data protection rules.

## Dependencies and packages that do not exist

AI assistants may suggest abandoned packages or even names that do not exist, which attackers can later register. Check every dependency: source, maintainers, version history, and last update. Remove unused ones, pin versions, and scan for vulnerabilities regularly.

## Add tests and a release process

Asking AI to change one feature can silently break another. Write tests for high-value flows: sign-up, orders, payment, access rights, and calculations. Run them automatically on every change. Separate development, test, and production, and require human review before merging. Guidance for AI tools is in [AI-assisted software development](https://www.agsora.tech/en/blog/pengembangan-software-dengan-bantuan-ai-peluang-risiko-dan-kendali-mutu).

Be careful giving AI agents production access. Limit permissions, use masked data copies, and require approval for commands that delete or bulk-change data.

## Payments and integrations

Never mark an order paid just because the browser returned to a success page. Verify provider notifications on the server, check signatures, handle duplicate deliveries, and reconcile daily. For other integrations, set timeouts, safe retries, and queues so a partner outage does not lose transactions.

## Ready to operate

### Monitoring and error handling

You should learn of problems before customers tell you. Add error logging, uptime monitoring, and alerts to a responsible person. Make sure logs contain no passwords or sensitive data.

### Performance and cost

A query that is fast on ten rows may stall on a hundred thousand. Fill the test environment with realistic volumes, add indexes and pagination, then load-test key flows. Put usage limits on paid services, including AI models, so one malicious script cannot produce a huge bill.

### Basic security

Limit login attempts, protect forms from bots, set security headers, update components, and get an independent check before handling sensitive data. Scope can follow [penetration testing and security audits](https://www.agsora.tech/en/blog/uji-penetrasi-dan-audit-keamanan-aplikasi-bisnis).

## Keep, tidy, or rewrite

After assessment, decide part by part. Keep proven interfaces and flows. Tidy modules whose structure is reasonable but under-tested. Rewrite core parts when the data model is wrong, authorisation is scattered without a pattern, or nobody can explain how it works. A practical test: can one thing be fixed without breaking three others?

Start with a narrow scope and limited users, as in the [business app MVP](https://www.agsora.tech/en/blog/mvp-aplikasi-bisnis-mulai-dari-yang-kecil) approach. Expand only after usage, error, and support numbers settle.

## Checklist before customers arrive

- The company controls the repository, accounts, and data.
- No secrets remain in code, and exposed ones are replaced.
- Cross-user access has been tested and correctly refused.
- A backup has been restored successfully.
- Payments are verified on the server.
- Core flow tests run automatically.
- Monitoring, cost limits, and emergency contacts exist.
- The privacy notice matches the data actually collected.

## Briefing a technical team

Bring the prototype, target users, data to be stored, required integrations, and flows that must not fail. Ask for a written assessment separating critical, important, and cosmetic findings with effort estimates. Such a short assessment is far more useful than a verdict that everything must go, or that everything is ready.

## Examples of common findings

Take a catering order application built in two days. It looks good, customers can order, and the owner sees the order list. A short review finds four things. The admin page is only hidden from the menu and opens for anyone who knows the address. Prices are sent from the browser, so they can be altered before saving. A messaging key is written in the code. There is no backup.

All four can be fixed without discarding the application. Role checks move to the server. Prices are recalculated from the product list in the database. The key is reissued and stored server side. Daily backups are enabled and tested. Order matters: close open access first, then tidy code structure.

Another case differs. A stock application keeps quantity as one number edited directly, with no movement history. When variances appear there is no way to trace the cause. Here the data model must be redesigned as transaction records, because small patches will not solve the root problem.

## Working rules so quality does not slide again

Set rules that apply to people and AI assistants alike. Each change is made on a separate branch, comes with tests, and is reviewed before merging. Database schema changes need a migration script and rollback plan. New dependencies need a stated reason. Production data is not pasted into model conversations unless company policy and provider terms allow it.

Write project instructions describing architecture, authorisation patterns, how to run tests, and what is forbidden. They make assistant output more consistent and help new team members. Update them after every significant decision.

Measure results with simple numbers: user-reported errors, time to fix critical ones, share of core flows covered by tests, and changes that had to be reverted. If these worsen while feature speed rises, slow down and pay off the debt first.

## Test with real users

Technical review does not replace observation. Ask five to ten target users to complete real tasks without guidance, such as ordering, cancelling, changing a password, and finding proof of payment. Note where they stop, which error messages confuse them, and what they do when the connection drops. Try a low-spec phone too.

Provide a clear help route during the trial and a manual way to complete transactions if the application fails. Findings often change priorities: an unclear button may be more urgent than the new feature the owner wants.

## A realistic first month after launch

Launching is the start of observation, not the end of work. Invite a small group first, ideally people who will report problems candidly. Read the error log daily, note every support question, and compare recorded transactions with money received. Agree in advance which signals will pause new sign-ups: a data exposure, repeated payment mismatches, or an unexplained cost spike.

Change one thing at a time and keep a short change log, even if an AI assistant writes most of the edits. When a fix is requested, ask for the cause to be explained in plain words and for a test that would have caught it. If no one can give that explanation, treat it as a sign that the module needs a human to take ownership.

Finally, decide who is on call. A prototype has no maintainer by default. A product needs a named person or partner who updates components, renews certificates, answers incidents, and can say no to a rushed change on a Friday afternoon.

**Have an AI-built prototype you want to use for real?** AG·SORA can review code, security, and data, then map the route to a dependable production application. [Free consultation](https://www.agsora.tech/en/services/custom-software)
