Find And Feed.
Menu
HomeNewsAbout Us
VI

Vibe Coding

Vibe Coding in Production (Part 3): 5 Critical Traps, Quality Gates & Real Results

Five painful engineering traps I hit across 29 days of vibe coding—fake-done tests, scope creep, invariant drift, token burn, migration clashes—plus the verified results shipped.

Vibe Coding Part 3 Traps and Real Results summary graphic showing 29 days, 384 commits, and 34 E2E tests

AI coding agents ship features astonishingly fast, yet they introduce silent regressions, scope drift, and wasted token spend at the exact same velocity. Across 29 days building Find And Feed, enforcing hard invariants and automated test gates neutralized five recurring engineering traps—allowing me to ship 384 commits, 26 Go internal packages, and 179 test files without a single rewrite.

Vibe Coding Part 3 diagram mapping 5 traps to 5 controls: Fake Done, Scope Creep, Rule Drift, Token Burn, and Slot Clash

1. The 5 Engineering Traps of Vibe Coding (And How I Blocked Each One)

Even with solid blueprints from Part 1 and parallel worktrees from Part 2, AI models fail in predictable ways when left unchecked. Here are the five traps I hit in real development and the exact control that stopped each one:

Trap 1: The "Accept All" & Fake-Done Illusion

Models are optimistic reporters. An agent will happily tell you "All tests pass and feature X is ready" after running only a mocked unit check—while a real database constraint or frontend hydration bug breaks the feature completely.

  • How I blocked it: Write a failing test first and require proof from the real suites: 73 Go test files (go test -p 1 ./...), 72 Vitest unit/component files, and 34 Playwright E2E specs that explicitly wait for Astro islands to hydrate (astro-island[ssr] count 0). Every completed task must log exact commands and exit codes in an evidence report.

Trap 2: Scope Creep & Collateral Refactors

Ask an agent to fix a broken filter button, and without strict boundaries it may decide to "clean up" three unrelated helpers, alter CSS spacing globally, or rename fields shared by other handlers.

  • How I blocked it: Every task brief explicitly lists Files It Owns and Files It Must Not Touch, enforces surgical diffs, and passes the git diff to a separate task reviewer—never trusting an implementer's self-review.

Trap 3: Silent Invariant Drift Across Sessions

When dozens of sessions edit the same codebase over four weeks, subtle business rules get forgotten unless they are enforced in code and strict tests:

  • Strict JSON Boundaries: httpx.Decode rejects unknown fields immediately, catching frontend payload drift with HTTP 400 instead of silently dropping data.
  • Money & Time Safety: Financial numbers always store integer minor units (USD cents or whole VND) and never sum across currencies; timestamps and reporting days always stay in UTC.
  • Cache & Bot Boundaries: Public pages cache for 300 s (with 600 s stale-while-revalidate under tag content) and auto-invalidate on admin writes, whereas /admin, /search, /api/chat, redirects, and 404 responses never cache. Our AI chat widget enforces 350 bot replies per UTC day, 10 bot replies per conversation, a 30 min admin-silence handback to the bot, and a 90-day inactive conversation purge.
  • Routing Safety: reservedSlugs blocks any new category slug from shadowing static pages, search, listings, or mini-apps.

Trap 4: Burning Frontier-Model Tokens on Boilerplate

Routing every typo fix, CSS tweak, and PR merge through your highest-tier reasoning model drains rate limits in half a morning.

  • How I blocked it: High-tier models write and review plans only, while faster models run implementation, scoped fix loops, evidence checks, and merge-code.

Trap 5: Parallel Branch & Migration Collisions

Two parallel agents building features simultaneously will almost always pick the same next SQL migration number (for example, both creating 00004_...sql) and step on each other's test databases.

  • How I blocked it: AGY_SLOT isolates runtime ports and Postgres databases per worktree, and merge-code inspects backend/internal/db/migrations/ on main right before merging—automatically renumbering any colliding migration file to the next free five-digit version.

2. Real Results: What Shipped in 29 Days

Between October 24, 2026 and November 22, 2026, this workflow took Find And Feed from an empty commit to a full bilingual platform running end-to-end:

System Area Verified Deliverable Shipped
Engineering Velocity 384 commits and 81 architectural plan docs in 29 days
Backend Core Go 1.26.3 API across 26 internal packages with 5 direct dependencies and 4 SQL migrations
Bilingual CMS & SEO Paired en / vi articles (translation_key), scheduled publishing, revisions, hreflang, sitemap, JSON-LD, IndexNow
Affiliate & Tracking Cloaked /go/{slug} redirects, daily salted unique clicks, active link health checker, zero visitor IP storage
Interactive Mini-Apps 5 bilingual tools: Gold Price, Exchange Rates, Personal Income Tax, Gross-to-Net Salary, Random Name Picker
AI Chat & Ops Public Gemini + Groq fallback chat widget, Admin Inbox, outbound-only Telegram Chat needs a human handoff
Editorial Automation Go stdio MCP server (20 s HTTP timeout), scoped API keys, announcement bar, maintenance mode, 404/redirect log
Automated Verification 179 total test files: 73 Go + 72 Vitest + 34 Playwright E2E specs

3. When Vibe Coding Shines — And When to Slow Down

Disciplined vibe coding is not magic; knowing when to hit the accelerator and when to step on the brakes makes all the difference:

  • Go full speed with AI agents on: Vertical CRUD slices, localized UI views, Playwright E2E and Go integration tests, data parsers, SEO schema plumbing, internal CLI/MCP tooling, and repetitive content pipelines.
  • Slow down and inspect every line yourself on: Authentication and authorization middleware, cryptographic/hashing boundaries, destructive SQL migrations, payment or financial rounding rules, and production server configuration.

4. Why Local Success Is Only Half the Job: Coming Next in Part 4 (Deployment & Security)

Passing 179 test files on localhost proves your features work—it does not prove your application is safe on the open internet.

In fact, speed without defense is dangerous: an AI that builds ten endpoints in an afternoon can accidentally expose an unguarded admin route, leak PII into error logs, or leave weak headers in production if security is treated as an afterthought.

That is why Part 4 (the final and most critical chapter of this series) will focus entirely on Deployment and Security in Production:

  • Locking down Role-Based Access Control (admin vs. editor), aff_... API key routeScopes, and TOTP 2FA.
  • Protecting user privacy under Vietnam's PDPL (zero visitor IP storage, SHA-256 hashed chat tokens, and Sentry PII scrubbing).
  • Hardening CSP security headers, SSR/proxy boundaries, and strict request validation.
  • Shipping cleanly with zero-build DigitalOcean Droplet deploys via GitHub Actions, GHCR container images, Caddy automatic HTTPS, Docker log rotation, and scripts/smoke.sh verification.

(Continue reading the final chapter: Part 4: Prioritize Security & Production Deployment, or catch up on Part 1: From Idea to AI Blueprint and Part 2: Guardrails, Custom Skills & Parallel Agents.)

Frequently asked questions

How do you stop AI coding agents from claiming a buggy feature is complete?

Require a failing test before writing production logic, then run the full backend, unit, and Playwright E2E suites—recording exact commands and exit codes in an evidence file.

What if two parallel AI worktrees create the same SQL migration number?

The merge-code agent checks backend/internal/db/migrations/ on main immediately before opening or merging the PR and automatically renumbers any colliding migration version.

What real results did disciplined vibe coding produce on Find And Feed?

Over 29 days (Oct 24 to Nov 22, 2026), it produced 384 commits, 81 plan documents, 26 Go packages, 5 bilingual mini-apps, AI chat with Telegram handoff, an MCP server, and 179 test files.

Why save Deployment and Security for a dedicated Part 4?

Passing tests on localhost does not make a site safe on the internet. Production RBAC, scoped API keys, PDPL privacy, CSP headers, and zero-build Droplet deploys deserve deep focus in Part 4.

Related articles