Skip to content

Checking your reading list…

Retry verification

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

AI vs SaaS: Who Was Your System Designed For? The XaC Shift
Industry Insights 11 min read

AI vs SaaS: Who Was Your System Designed For? The XaC Shift

This article argues that the monorepo vs. polyrepo debate is a symptom; the core issue is that systems designed for human operators must be restructured for AI-first Everything as Code (XaC), making code the primary interface, UI secondary, exposing tacit knowledge, and redefining workflows.

The previous article in this series stated that the true atomic unit of an enterprise is the workflow. Redesigning workflows forces a redesign of the supporting architecture — the foundation cannot keep growing by old rules when the processes change.

1. Monorepo vs. Polyrepo Is Just a Symptom

The debate between putting dozens of services in one repository versus one repository per service misses the point. The difference for AI usage is not the number of repositories. A monorepo works because the structure lives in one place and can be read at once. A polyrepo feels awkward because the structure is scattered across human memory, conventions, and processes. The focus should not be "merge or not" but "in what form does your structure exist?" If the form is right, any number of repos works; if wrong, even a single giant repo stays hard to use.

2. Old Principle: Everything for Human Readability

UI-heavy vs code-flat architecture
UI-heavy vs code-flat architecture

We couldn't achieve "everything as code" before not out of laziness but to accommodate humans. Human reading bandwidth is limited, so we added interfaces: forms, lists, wizards, drag-and-drop. Non-technical users don't read YAML, so we built "what you see is what you get." Approvals need responsible people, so we added buttons, red dots, notifications. The architecture grew: code at the bottom, a thick UI layer on top; configuration scattered in admin consoles, rules hidden in frontend validation, processes encoded in human operational habits. This design was optimal for the "human operates software" era — it lowered the barrier so non-coders could use systems. The mistake is that the era has changed, yet many systems still design by that priority.

3. XaC: Not a New Concept, Just a New Name

Years ago I helped build an internal developer platform. No AI involved; the goal was plain consistency. At scale, with many teams and environments, everyone did things differently. The same type of change took some teams two hours, others a week. We solved this with what today is called Everything as Code (XaC) :

Configuration in the repo, organized by environment; config changes go through the same review as code.

Metadata in the repo — product, application, release-unit mappings written as files, not kept in someone's head.

Review rules in the repo — who can merge, required coverage, which paths need static checks, all configured.

Pipeline stages in the repo; infrastructure itself treated as part of the code change.

Artifacts carry tags; each environment's verification results written back to tags; promotion decided by tags, not by who signed off.

The immediate change: configuration problems went from "unexplainable" to "auditable." Previously an incident triggered guesses about code vs. config; later config ran in pipelines, was verified, versioned, and rollbackable, so accountability landed clean. The pitch then was "improve consistency, support scale." No one mentioned AI because AI couldn't do these things yet. Today this shape is exactly what AI needs: state in files, rules readable, actions replayable, results verifiable. Consistency wasn't built for AI, but AI only recognizes consistency. Note: this platform's users were engineers — code was no barrier. For business-user systems the situation is totally different, which leads to the next point.

4. Priority Must Flip

Everything-as-code framework
Everything-as-code framework
AI

reads code, config, logs, schemas better than humans. It doesn't fear length, structure, or diffs. Interfaces are obstacles: AI must first learn "where to click." Therefore the principle changes: design for AI as the primary user, human-computer interaction second. "Second" does not mean "discard." Humans still need to view, approve, and take over when things break; the UI must stay and be usable. But it drops from primary to subsidiary layer — first guarantee the machine can reliably read and write, then consider how humans view it comfortably.

Everything as Code implements this principle: infrastructure is code, configuration is code, policy is code, process is code, data model is code, permissions are code. Everything becomes versionable, diffable, reviewable, rollbackable. These properties help humans, but they are essential for AI — because its way of working is read, modify, verify, modify again.

5. This Forces Process Redesign

Architecture changed, process cannot stay still. Old processes were designed around "human clicks UI": approval nodes placed where humans see them, form fields ordered by human filling sequence, notifications sent to humans, timeouts remind humans. After AI -first, nodes are reset by "what the system can verify," fields reordered by "what the machine can validate," notifications become events, reminders become states. Some approval steps disappear because machines auto-verify; others appear because machines perform more actions, making the remaining human-accountability points more critical. This is what the third article meant: AI doesn't optimize the process, it redraws the process.

6. Three System Types, Three Fates

Flow: lift the shell
Flow: lift the shell

A simple test: remove the UI, see what remains.

What remains is data, rules, state machines — transformable. Core model exists; only outlets missing: add APIs, add MCP, codify schemas and policies so machines can read/write. Cost controllable.

Business logic lives in the UI — immovable. Validation written in frontend, rules hidden in approval buttons, experience locked in operational habits. Changing this is essentially a rewrite.

Exists only to "provide an operation interface" — will be displaced. Its value was "no training needed," and that value is being eaten by language interfaces.

So the question isn't "will SaaS die" but "remove the UI, what's left?" Those with substance are worth transforming; those with nothing left will be replaced.

7. The Cost

Everything as code does not mean everything as text for humans. Codification is for "reliable machine readability and operability," not "humans can't look." Interfaces must stay, especially for critical moments when humans must take over. But priority must be right: guarantee AI usability first, then human usability. Reverse it and you rebuild a pretty UI shell.

There's a hidden cost: codification exposes tacit knowledge.

Experience that used to hide in "people know how to click, fill, judge" must be articulated once written as code.

The unclear parts surface one by one. This hurts teams, but it's the only way forward — what can't be explained, AI can't use either.

8. Closing

Back to the series' core line: models are purchasable, accumulation is not. But the form must change. Don't leave it in the UI, don't leave it in a few veterans' habits — leave it in code: readable, modifiable, verifiable, inheritable by the next generation of systems. Once this is done, humans are truly freed up. Next article: where do humans go?

About this article

For questions about attribution, corrections or content rights, please contactadmin@besthub.devand we will review it promptly.

Published

AI-assisted summary

Report an issue with this article
system designdeveloper platformtacit knowledgeworkflow redesignSaaS transformationAI-first architectureEverything as Code (XaC)

Reader feedback

Was this useful?

Useful0

Discussion 0

Questions, practical examples and thoughtful responses.

Open full discussion