DEV Community

Bartłomiej Danek
Bartłomiej Danek

Posted on Originally published at bard.sh

Imaginary Engineering: When Vibe Coding and Whiteboard Architecture Collide with Reality

Imaginary Engineering: When Vibe Coding and Whiteboard Architecture Collide with Reality

Spinning up 400 lines of Python with an LLM takes thirty seconds. Drawing a straight arrow between two EKS clusters in Excalidraw takes three.

Neither one is a working system.

Both fail for the same reason: they skip the runtime constraints of production. When a manager ships vibe-coded automation without execution boundaries, or an architect signs off on a diagram that assumes network paths nobody provisioned, the cleanup lands in the same place - on the engineers and platform teams who own production.

Here is how both anti-patterns play out, and the lightweight 5W method gates that catch them before they turn into weeks of rework.

Case 1: The Vibe Coding Manager

AI coding tools have unblocked engineering managers and tech leads who used to write code for a living. Many managers stepped away from terminals years ago for roadmaps, hiring, and 1:1s. Now that "new/old" developer skill feels reachable again.

That instinct is healthy. Wanting to build something useful, fix a workflow bottleneck without waiting three sprints for a developer, and learn new tools hands-on usually makes someone a better leader.

The trouble starts when generated code that runs on a sample gets treated like software engineered for production.

The "Known Snapshot = Source of Truth" Trap

Suppose an engineering manager wants a weekly delivery-health or cloud-cost digest in Slack. They export a CSV from Jira (or grab one sample JSON payload from an internal API), paste it into an LLM, and prompt a script that aggregates metrics and posts a summary.

On that sample file, it runs cleanly. It feels like magic.

Then it hits real data:

  • The live API paginates at 100 items, silently truncating the numbers.
  • Archived records contain null fields missing from the sample export.
  • OAuth tokens expire hourly and need refresh logic, secrets management, and backoff.
  • Worst of all, that CSV or endpoint was a downstream view, not the canonical source of truth. The numbers drift from the actual database.

So the manager pings a developer on Slack: "My script is almost done - can you quickly check why the totals don't match?"

An engineer gets pulled out of sprint work to untangle hundreds of lines of generated code with no tests, no error handling, and hardcoded assumptions. They patch one edge case, another breaks next week, and the team ends up rewriting the whole thing from scratch - sometimes twice, because the original data source was never authoritative.

Vibe Coding Redo Loop vs 5W-Gated Prototype Flow

Nobody saved time. The manager gets stuck in a redo loop, and engineering inherits unowned maintenance.

Guardrail 1: The 5W1H Prototype Gate

The 5W method was built to fix vague DevOps tickets and incident pings. It works just as well as a two-minute gate before opening a prompt window.

Question Answer before vibe coding
What? A throwaway script for one meeting, or a recurring integration reading live APIs or mutating state?
Why? A real workflow gap nobody has bandwidth for, or a personal learning exercise? Both are valid - do not confuse a learning project with a production dependency.
Who? Who fixes it next month when an API changes or you are on PTO? If the unstated answer is "DevOps or backend", ask them before building.
Where? Define the blast radius. A script reading a local CSV on your laptop is harmless. An AI-generated Terraform module or CI workflow touching AWS is not.
When? What is the expiry date? Time-box manager prototypes: retire them after answering the question, or schedule a proper handoff.
How? Where does the canonical source of truth live? One five-minute Slack check with an engineer prevents three rewrites.

Run through this template before an ad-hoc script leaves your laptop:

## 5W1H AI Prototype Gate

- **What:** [One-off local script | Read-only recurring report | State-changing automation]
- **Why:** [Workflow unblocked, or personal learning]
- **Who owns it in 30 days:** [Named owner - explicitly agreed]
- **Where it runs & blast radius:** [Laptop only | Sandbox | Shared CI - never prod unreviewed]
- **When it expires or hands off:** [Retire date, or ticket to hand over spec]
- **How (Source of truth verified?):** [Canonical DB/API confirmed with: @engineer]
Enter fullscreen mode Exit fullscreen mode

If a prototype proves useful, hand over the validated requirements and edge cases, not 500 lines of generated code expecting engineers to "just productionize it." Engineers ship faster from a clear spec than from reverse-engineering a black box.

Case 2: The Whiteboard Architect

The same blind spot shows up one layer down in system design.

Call it whiteboard architecture: an architect connects Service A in Cluster 1 to Service B in Cluster 2 with a crisp arrow in Excalidraw. On the whiteboard, connectivity is free and flat.

Then deployment day hits, and the packets silently drop.

Cluster 1 and Cluster 2 live in different AWS accounts and VPCs, with overlapping 10.10.0.0/16 CIDRs nobody checked, no Transit Gateway path, isolated private DNS zones, and strict egress NetworkPolicies. That arrow only ever existed in the diagram.

Never Expose Clusters to Rescue a Diagram

When missing connectivity surfaces mid-deploy, launch pressure tempts teams into the worst shortcuts:

  • Slapping an internet-facing ALB onto an internal microservice.
  • Opening 0.0.0.0/0 in Security Groups "just until next sprint."
  • Adding blanket egress exemptions so the health check turns green.

Never do this. As covered in Kill the Castle, punching public paths into private workloads trades a short schedule slip for a permanent zero-trust breach. "Temporary" firewall holes almost never get closed.

Halt the deploy and choose one of four real engineering fixes.

Cross-Cluster Connectivity Decision Tree

Four Deterministic Fixes

  1. Decouple asynchronously (SQS, SNS, or Kafka): Ask whether the call truly needs synchronous HTTP or gRPC. Often, an imaginary cross-cluster REST arrow signals tight coupling that will cause cascading timeouts later anyway. Swapping it for a managed queue removes cross-VPC routing and absorbs downstream outages.
  2. Push back on the topology (co-location): If two services are tightly coupled and latency-sensitive enough to need a wide-open pipe, question why they live in separate clusters or AWS accounts at all. Co-locating them lets them use local Kubernetes DNS with zero cross-VPC plumbing.
  3. Build a tactical bridge (AWS PrivateLink or VPC Lattice): For genuine point-to-point cross-VPC or cross-account APIs, skip broad VPC peering when CIDRs overlap or blast radius matters. AWS PrivateLink exposes one service endpoint into the consumer VPC without merging networks. AWS VPC Lattice works at L7, adding IAM-authenticated service-to-service routing across accounts without hand-managed peering meshes.
  4. Adopt a strategic overlay (Cilium Cluster Mesh or Consul): If you run a genuine multi-cluster fleet with many-to-many traffic, ad-hoc bridges become an unmaintainable spiderweb. Invest in an overlay like Cilium Cluster Mesh or Consul for cross-cluster service discovery, unified policies, and mTLS.

Connectivity Decision Matrix

Option Best for Handles overlapping CIDRs? Coupling & latency Ops overhead Blast radius
Async queue (SQS / SNS / Kafka) Event-driven workflows, non-blocking handoffs Yes Decoupled Low (managed) Minimal
Workload co-location Chatty, tightly coupled services N/A (same cluster) Lowest Lowest Single cluster
AWS PrivateLink / VPC Lattice Point-to-point cross-account / cross-VPC APIs Yes Low (sync) Low to medium Single service
Cilium Cluster Mesh / Consul Multi-cluster fleets with many-to-many traffic Depends on IPAM / proxy mode Low (sync) High (control plane) Policy-scoped (mTLS)

Guardrail 2: Pre-Deployment Connectivity Checklist (5W1H for Topology)

Attach this gate to every RFC that crosses a cluster, VPC, or account boundary - before anyone writes Terraform or Helm charts:

## Pre-Deployment Connectivity Gate (Where & How)

- **Source (Where):** [AWS account, VPC, CIDR, cluster, namespace, IAM role / SA]
- **Destination (Where):** [AWS account, VPC, CIDR, cluster, namespace, endpoint]
- **CIDR overlap checked?** [Yes / No - verified against IPAM]
- **Interaction model (Why sync?):** [Async queue | Co-located | Sync cross-VPC - justify sync]
- **Transport primitive (How):** [Local K8s DNS | SQS/Kafka | PrivateLink | VPC Lattice | Cluster Mesh]
- **DNS & identity (How):** [Private Hosted Zone / resolver rule + mTLS or IAM auth]
- **Egress & firewall rules:** [Exact NetworkPolicy / Security Group rules - no 0.0.0.0/0]
- **Owner & verification (Who & When):** [Platform reviewer + pre-deploy test command]
Enter fullscreen mode Exit fullscreen mode

If an architect cannot fill in the accounts, CIDRs, and transport primitive on paper, the arrow is not ready to deploy.

Takeaways by Role

Both vibe-coding managers and whiteboard architects assume the hardest parts of engineering - canonical data contracts and physical network boundaries - will sort themselves out later. They never do.

For Engineering Managers & Tech Leads

  • Keep building, label prototypes honestly. Prototyping locally with AI is valuable; sliding an unverified script into a team's recurring workflow is where rework starts.
  • Verify the source of truth before prompting. Five minutes on Slack asking an engineer where canonical data lives prevents weeks of mismatched numbers.
  • Hand over specs, not black-box code. When a prototype proves its value, let the owning team build the production version cleanly.

For Software & Solutions Architects

  • An arrow is not a route table. Treat account boundaries, overlapping CIDRs, private DNS, and egress policies as design inputs, not deployment-day platform chores.
  • Default to simpler topologies. Check whether co-location or an async queue solves the problem before requesting cross-VPC bridges or a cluster mesh.

For Platform, DevOps & SRE Engineers

  • Hold the zero-trust line under launch pressure. Never open public ALBs or wildcard Security Groups to cover an unvalidated diagram - pause and choose a bounded path.
  • Bake both gates into templates. Add the 5W1H Prototype Gate to your engineering handbook and the Connectivity Checklist to your RFC template so imaginary engineering gets caught at design time, not on Friday afternoon.

Originally published at https://bard.sh/posts/imaginary-engineering/

Top comments (0)