The key isn't whether AI wrote the code, but whether anyone has reviewed, tested, and can explain it. The Replit database deletion incident proves it.

Key takeaways

  • Veracode found that AI-generated code contained security vulnerabilities in 45% of test cases, 86% of the relevant samples failed to defend against XSS, and larger models showed no significant improvement in security.
  • The debt doesn't come due just once: GitClear's data shows that copy-pasted code now exceeds moved code, and maintenance costs keep accumulating after launch.
  • The most valuable skill of a Forward Deployed Engineer is turning vibe-coded prototypes into systems that can withstand production: isolated environments, restricted agent permissions, and building a test suite before speeding up.

In July 2025, Jason Lemkin of SaaStr was vibe coding on Replit when the coding agent deleted his production database. The agent then incorrectly insisted that rollback was impossible, before finally admitting it had made a "catastrophic error in judgment."

Replit's response says a lot: it made development and production databases automatically separate. This is an extremely basic safeguard that simply didn't exist before. The problem was more about process than the model, since a prototype development session could directly touch real systems.

For anyone aspiring to become a Forward Deployed Engineer (FDE), this story is the job description. FDEs work at the boundary between demo and deployment: a rapidly written prototype must withstand real data, real users, and real consequences.

When code only runs on your own machine, vibe coding is like an interest-free loan. The day the code enters production, the interest starts accruing.

The line is whether you understand the code

Simon Willison cited Andrej Karpathy's original definition: vibe coding means going entirely with the vibe and forgetting the code even exists. At its core, it means not caring about the code itself.

Willison draws the line clearly. In his view, if the code was written by AI but you have reviewed it, tested it, and can explain it, it's no longer vibe coding—it's software development. This distinction is useful because it shifts the question from "Did you use AI?" to "Is anyone accountable for this code?"

So the debt doesn't come from using Copilot or Claude, but from code that no one on the team truly understands: code that skipped review, testing, and explanation. If you take over a client's AI-built prototype, the first question should be: which parts have never been reviewed by anyone?

The first bill is security

Veracode's 2025 GenAI Code Security Report found that AI-generated code runs, but contains security vulnerabilities in 45% of test cases. On a prototype with 20 similar tasks: at that rate, roughly 9 tasks would carry vulnerabilities, even though all 20 pass the demo.

Worse, this number doesn't naturally decline over time. Veracode's CTO stated that GenAI models make the wrong choice nearly half the time, and the situation isn't improving. Larger models aren't significantly safer than smaller ones. Waiting for the next generation of models is not a plan.

By language, Java has the highest failure rate: LLM-generated Java code contained security vulnerabilities in over 70% of cases. Additionally, 86% of the relevant code samples failed to defend against cross-site scripting (CWE-80).

XSS is a classic class of vulnerability that usually only surfaces once an app is opened to real users. That's exactly why the debt comes due on launch day.

Imagine you're demoing a feedback form to a client. During the meeting, everyone types ordinary sentences and the form works perfectly. But once it's opened to thousands of users, the vulnerability is exposed the moment one person enters a script—because no one in the conference room ever attacked the form.

The second bill arrives later, and keeps coming back

If security is the payment due on launch day, maintenance is the installment plan that continues for months afterward. Launch is just the down payment; every iteration afterward requires another payment: whenever someone has to modify code that no one understands.

GitClear's analysis shows that in 2024, copy-pasted lines of code exceeded moved lines. "Moved" lines are usually the traces of refactoring—consolidating logic into one place. When copy-paste dominates, the same logic gets scattered across many locations, and every bug fix has to be repeated in each one.

GitClear also tracks code churn—the percentage of lines rewritten or reverted within two weeks of being written—as a measure of low-quality code. This is a metric every FDE should carry: if most of a prototype's code has to be rewritten in the first two weeks of real use, the early speed was borrowed.

Combined with the Replit incident, these three types of debt come due at three different moments, and each requires different work in advance:

Debt typeAt demo timeWhen it comes dueWhat the FDE does first
SecurityForms and APIs work as expectedWhen real users enter data, e.g. XSSRun security scans, carefully review input handling
MaintenanceNew features are added rapidlyIn later iterations, when duplicated logic needs changesTrack churn, refactor copy-pasted code
OperationsThe agent runs smoothlyThe first time the agent touches real dataIsolate development and production, restrict permissions, keep a rollback path

Can you trust the feeling of going faster?

The harder question is: why do teams keep borrowing? METR ran a controlled study with 16 experienced open-source developers and found that using AI tools actually increased their task completion time by 19%. METR later noted that this result reflects early 2025 and is now outdated.

Even more intriguing is what the developers themselves believed: even though they were actually slower, they still thought AI made them 20% faster.

To be clear, METR measured work speed, not technical debt or code running in production. So this isn't a fourth type of debt, but a different kind of risk: teams becoming miscalibrated about their own judgment.

Still, it helps explain why the debts above are rarely stopped early. For FDEs, the lesson is practical: before concluding that AI has sped up a project, measure actual time spent rather than asking the team how it feels.

Paying down the debt early with tests and guardrails

The answer isn't to abandon AI. In his article on "vibe engineering," Willison argues that agentic coding tools can deliver major speedups if the project has a solid, comprehensive, stable test suite. The test suite is the collateral: with it, this speed loan is safe.

The Replit incident points to a second layer of protection: environment boundaries. Agents need to work in sandboxes, so that even their worst mistakes can be undone. For Lemkin, as long as the development and production databases were separate, the agent's error couldn't touch real data.

If you're an FDE taking over a vibe-coded prototype at a client, the priorities are clear. On day one, check which credentials the agent and app use, whether they can access production, and how rollback works. In the first week, add tests for the main flows and run a security scan before adding any new features.

How should developers deal with this debt?

For developers with two to eight years of experience, including the Vietnamese engineers this publication was founded to serve, this is exactly where you can stand out. Anyone can get AI to produce a prototype; the hard part is getting that prototype into production without leaving vulnerabilities behind, without exposing agents to real data, and without letting duplicated code spread everywhere.

When reading job postings, whether on Vietnamese platforms like ITviec and TopDev or on LinkedIn, don't just look at the line that says "proficient with AI coding tools." Pay attention to roles that also require experience with testing, application security, CI/CD, or production operations. Companies that write their postings this way have most likely already been burned by this debt.

On your resume, replace "used AI to boost productivity" with a story backed by your own real numbers. For example: took over an AI-written prototype, isolated development and production environments, wrote tests for the main flows, and fixed XSS vulnerabilities found in a scan. In interviews, talk about which risks you caught, not just how fast you wrote code.

Vibe coding will keep helping teams build demos faster. But when a demo becomes a production system, someone has to pay down that debt, and those who know how to pay it off before it comes due will never be short of work.

Was this article helpful to you?

Thanks for your feedback!

7 sources

Next on the roadmap · Phase 5: Deployment. Switching from GPT to Claude is far more than swapping an API. Prompts still carry patches written for the old model; what really needs to be preserved is the evals suite, and the OpenAI Evals platform will be fully shut down on November 30.