Wednesday, 19 August 2026

Vibe Rounds: What an Auditable AI Architecture Looks Like While the Rest of AI Coding Still Isn't There

 

Vibe Rounds: What an Auditable AI Architecture Looks Like While the Rest of AI Coding Still Isn't There

LLM-assisted coding is improving fast — and still failing the production-grade bar. Vibe Rounds is a working example of how to design around that failure instead of waiting for it to resolve itself.


The Core Claim

Generative AI has gotten remarkably good at writing code. It has not gotten good at writing code you can trust to run unaudited in a security-critical, functionality-critical system. Those are two different problems, and most of the industry conversation collapses them into one.

Vibe Rounds — a clinical-reasoning education project — is interesting precisely because it doesn't wait for that second problem to be solved. It sidesteps it by design. The LLM is never handed architectural authority; it's confined to narrow, bounded tasks inside a structure a human built and controls. That single decision is why it stays auditable, fixable, and trustworthy in a way that most "AI-native" coding tools currently are not — even as those tools get more capable every year.

The rest of this piece explains why that decision matters, using the recent trajectory of AI coding tools as the backdrop.


Why This Matters Now: LLMs Are Improving Fast, But Not Along the Axis That Matters

Look at how coding assistance has evolved in just the last five years:

  • 2021 — LLM Function Completion (GitHub Copilot): AI starts generating whole functions from comments, not just autocompleting syntax.
  • 2023 — Code Skeletons & Modules (GPT-4, Cursor): AI starts drafting multi-file architectures, API routes, and module wiring from natural-language prompts.
  • 2024–present — Full App Generation (Devin, v0, Replit Agent, Claude Artifacts): AI goes from writing code to operating — designing, building, testing, and iterating on entire deployable apps from a single instruction.

Each step is a genuine capability leap. And each step, measured against production-security standards, has gotten worse, not better.

A quick definition before the table: "production-ready" here means fit to ship, unaudited, into a system that is both security-critical (handles sensitive data, auth, or anything an attacker could exploit) and functionality-critical (a failure has real consequences — financial, medical, safety, or otherwise). That's a much higher bar than "the demo works" or "it compiles" — it means the code can be trusted to hold up against adversarial use, not just typical use.

Stage What improved Production-readiness (security + functionality critical)
LLM Function Completion (Copilot) Fluency, speed, in-flow generation Medium — strong productivity gain, but ~45% of AI-generated code has been found to introduce OWASP Top 10 vulnerabilities. Usable with mandatory human review and SAST scanning, never as-is.
Code Skeletons & Modules (Cursor, GPT-4) Architectural drafting from plain language Low — weak access control, secrets leaked at 2x+ the human baseline rate. Fine for drafting an architecture; unsafe as a final product.
Full App / Autonomous Agents (Devin, v0, Replit) End-to-end app creation, iteration, deployment Very Low — letting the agent "fix" its own code repeatedly has been shown to increase critical vulnerabilities by ~38% after five rounds of self-revision. Prototyping only.

That last point is the important one. More autonomy hasn't just failed to fix the security problem — it's made it worse, because the model is optimizing for "the demo works," not "this is safe."

This isn't a maturity curve that will simply resolve with a better model next year. It's a structural mismatch: LLMs generate statistically plausible code that compiles; they don't generate code with the architectural intent a human reviewer needs to verify safety. That gap doesn't close by scaling the model — it closes by scaling how much architectural control you give it.

The Structural Problem, Not Just the Bug Count

Vulnerability counts are the visible symptom. The deeper issue is what happens to code structure as generation gets more autonomous — because structure is what determines whether a human can actually audit, fix, or extend the output at all.

  • Deterministic tools (traditional scaffolding, human-designed frameworks): predictable hierarchies, auditors know exactly where to look. High auditability.
  • LLM function-level generation: individual functions read fine, but the AI tends to generate several redundant, near-duplicate functions across files instead of reusing one — auditors end up hunting scattered, duplicated logic. Medium auditability.
  • LLM code skeletons & modules: modules work in isolation but drift from the surrounding architecture — "fragmented logic." A small fix often forces a rewrite instead of a patch. Low auditability.
  • Full autonomous app generation: a "black box patchwork" of hallucinated APIs and inconsistent conventions. It's frequently cheaper to rebuild from scratch than to untangle it. Very low auditability.

The pattern: the more decision-making autonomy you give the AI over architecture, the less auditable the output becomes — regardless of how much smarter the model gets. This is why Vibe Rounds' design choice matters so much.


Vibe Rounds: Keeping the Brainstorming, Losing the Chaos

Vibe Rounds is built to get the upside of LLM reasoning — flexible, generative, Socratic engagement with a clinical case — without inheriting the autonomous-agent failure mode described above. It does this by never letting the AI touch the architecture.

Every one of the 57 modules follows the same underlying frame, which is itself the mechanism that keeps the system auditable:



1. Human-Architected Determinism

The system is organized like a clinical procedure manual: 57 distinct modules, each with a clear objective, indications, and lifecycle phase (Initiation → Execution → Closure/Review). The AI doesn't decide what modules exist or how they connect — it executes bounded tasks inside a structure a human designed and owns. This is the same principle that makes IntelliSense and well-maintained scaffolding tools score highest on production-readiness: the model operates deterministically within human-set boundaries instead of inventing its own.

2. Isolated Debugging — the Blast Radius Is Contained

In an autonomous coding agent, a bad decision cascades through interconnected, hallucinated logic that's expensive to untangle. In Vibe Rounds, if the AI produces a flawed Socratic question or a poorly weighted differential, the error traces to one numbered step in one module — say, Step 2 of Module 04. You tighten the prompt constraints for that single step. Nothing else in the workflow is at risk. This is precisely the property that autonomous full-app generation lacks, and it's why Vibe Rounds doesn't inherit that stage's "Very Low" production-readiness rating.

3. Predictable Logic Placement

Supplementary reasoning frameworks (Frameworks A–D) are layered into specific, predetermined steps rather than applied arbitrarily by the model. A master index — the Lifecycle Coverage Summary — dictates exactly where each piece of logic lives. Updating a core framework means a precise, surgical edit, not a system-wide rewrite. Compare this to the "fragmented logic" problem in AI-generated code skeletons, where a small change often forces a rewrite because nothing was placed predictably in the first place.

4. Built-In Human Auditing by Design

The LLM is explicitly framed as an educational companion and reasoning partner — never a clinical decision-maker. Every output is labeled a "learning observation," requiring independent clinical verification before it informs any action. This isn't a disclaimer bolted on after the fact; it's a zero-trust design constraint baked into the system, which is exactly the missing ingredient in most AI-native coding tools that ship "working" output and let the security team discover the gaps later.

Extending the Loop: Mapper and Validate Modules

Two additions currently being designed push this even further toward a closed, self-auditing system — and they're worth walking through in detail because they generalize the same principle beyond clinical reasoning.

The Mapper Module. It takes two inputs: the raw clinical case (the ground truth — timeline, history, labs, imaging) and the output of any Vibe Rounds module (a Socratic question, a flagged concern, a differential weighting). The LLM's job here is deliberately narrow — it acts as a reference librarian, not a reasoner. It maps the AI insight back to the exact text, timestamp, or data point in the case that justifies it, returned as inline citations or hyperlinked anchors.

The direction of this mapping matters and is easy to get backwards: this is not a tool for a clinician to look up an answer and check it against a case. Vibe Rounds modules aren't built to hand clinicians answers to verify. It's the reverse — a clinician is already thinking through a case, and the Vibe Rounds output serves as an assistant to that thinking, with the Mapper keeping every AI-generated thread visibly anchored to real data as they go.

The payoff is a built-in hallucination detector: if an insight can't be mapped to a concrete point in the case, that failure is immediately visible rather than buried in fluent-sounding prose.

The Validate Module. This is an independent, adversarial check — a way for a user to stress-test whether a given AI output actually holds up against the case's ground truth, or contains a logical leap, a contradiction, or a missing variable.

Put together, the three pieces form a closed loop:

Vibe Rounds Module  →  generates reasoning / insight
Mapper Module       →  anchors that insight to case data
Validate Module      →  stress-tests the insight against ground truth

This is effectively scientific peer review, compressed into real-time cognitive assistance. It converts Vibe Rounds from "a clever set of prompts" into a rigorous, self-auditing learning environment — and it does so without ever asking the AI to hold architectural authority over the system.



The Takeaway

LLMs are improving fast at generating code and reasoning — fluency, coverage, and speed keep climbing every year. But production-readiness isn't a fluency problem; it's an architectural-control problem, and that's exactly the axis where more autonomy has made things worse, not better.

Vibe Rounds works because it never bets on that axis improving. It keeps the human as architect and final authority, uses the LLM only for bounded, isolated tasks, and builds in mapping and validation as first-class components rather than afterthoughts. That's a template that generalizes well beyond clinical education: don't wait for AI to become trustworthy at scale — design the scaffolding that keeps it auditable at the scale it's trustworthy at today.

No comments:

Post a Comment