Lorenzo Wynberg
← Writing

Overthinking systems: I built four, a file was enough

It's easy, even as an experienced dev, to dream up big interconnected systems that agents happily validate. I did it four times in the same product. This is the confession.

Lorenzo Wynberg · November 20, 2026 · 6 min read

These days it's very easy, even as an experienced dev, to start planning ahead and dream up big interconnected systems. Agents hand you quick validation on the big picture. Every follow-up question gets a confident, well-structured yes.

Then you actually go for it. You start playing around, and something doesn't fit. So you spend months thinking about how to make it right, trying to mature the system and its subsystems.

Eventually you realize the reason you can't nail the primitives is that you over-engineered a whole system for what was just a pointer file and some instructions.

That happened to me. Not once. Four times, in the same product, in the same way.

Validated before it touched anything

An agent will tell you your architecture is thoughtful. It will help you draw the boxes, name the tables and write the state machine. It's very good at making a grand design feel validated before a single line has met reality.

Reality arrives late. By then you have a model, a sync story, approval gates and an import flow, and you're invested in all of it.

Here's how it played out in Trinity, the development environment I've been building all year.

  1. A knowledge base

    books, sections, editions, search, write tickets

    Markdown files next to the code

    ~38,000 lines deleted

  2. The Runtime

    a registry, sync, approval gates, import

    A skills folder, a pointer line, a pull request

    ~20,600 lines deleted

  3. A design-system lifecycle

    six states, a token mirror, a versioned contract

    The story's own state, and the theme files in the PR

    ~24,800 lines deleted

  4. A stack lifecycle

    drift sync, re-declaring, 13 resync calls

    The manifests and lockfiles

    on its own epic

Four systems, one product, the same mistake. On the left, what I built. On the right, what was already there.

I rebuilt git, next to git

The first one was a knowledge base. Project knowledge lived in a store of its own, and agents read and wrote it through tools. It had books, sections, chapters and pages, full-text search, and a content-hash ticket so two agents writing the same page couldn't clobber each other.

Its history is the embarrassing part. The commit that created it is called "Migrate vault from filesystem to SQLite". Project knowledge started life as files. I moved it out of the place files live, and then spent months building the things files already had.

Because once docs live in a database, questions show up that nobody asked when they lived beside the code. Which page is current? What was true when? Which version should an agent read for which piece of work? I took every one of them seriously. I designed editions of the docs, one per package version line. A release-time documenter, so parallel writers wouldn't overwrite each other. A rename step for when packages moved.

I designed a versioning system for documentation. The sentence in that design that carried the most weight was that nothing in it would read a git ref.

It didn't occur to me that the ref was the answer.

A doc that lives next to its code changes in the same commit as the code. Which one is current? The one on your branch. What was true when? git log. Which version does an agent read? The one in its checkout. Git already answered all of it.

The whole knowledge base came out in one pull request, about 38,000 lines deleted. Agents now write each package's docs into the repo, next to the code, and an AGENTS.md points to them.

Naturally, I did it again.

A platform for a folder

Agents are only as good as the skills, commands and hooks they run with, so I built the Runtime: one synced place to store, author, install and approve them. An agent drafted a skill, you reviewed the diff, nothing went live until you accepted it, new hooks arrived disabled. I even wrote a launch post about it.

Every one of those is a good idea. Together, they're a package manager with an approval workflow, a sync layer and a registry, for a folder of markdown files and a few scripts.

And again I couldn't settle the primitives. What's a skill's identity when it's installed from a registry, edited by a person and drafted by an agent? When does a hook count as reviewed? Each answer needed another subsystem.

The part that stings: the reason for the approval gates was that hooks run code on your machine, so you should review them like code. There's already a tool for reviewing code. It's called a pull request. I'd built an Accept button to do its job.

The Runtime came out in one epic: 601 files changed, about 20,600 lines deleted. Now a repo carries its own skills and hooks, they arrive through a pull request like every other change, and one sentence in AGENTS.md says when to use each.

A lifecycle for something that already had one

The last two embarrass me more, because they weren't stores. They were lifecycles.

A design system was assigned to a package through its own state machine:

planned_add → inflight_add → active → planned_remove → inflight_remove → deleted

Around it sat a mirror that kept design tokens canonical in the database and wrote them back over the repo's theme files, and a versioned design contract with its own history. The stack ran on the same lifecycle, plus a drift sync that re-read the manifests to keep a copy current. Keeping its requirements in sync took a resync call wired into 13 places. Change a package, a repo, a story or a release, and something had to remember to call it.

Every one of those calls existed to re-derive a fact the repo already held.

Look at what all that machinery was working out: whether something was pending, in flight, live or on its way out. What came before what. What the code currently holds.

A story already is pending, in flight, merged or reverted. A commit already is a version. A manifest already is the stack.

I even wrote it down without hearing it. The comment on the lifecycle says its state is "DERIVED, never stored", worked out from four facts about the story and git. If you're maintaining a lifecycle that already exists underneath you, you aren't building a system. You're keeping a second copy of the truth in a worse place.

Design systems came out first: 425 files changed, about 24,800 lines deleted. A design change is now just part of a story, and its state is the story's state. The stack is going the same way.

Not every system is a mistake

The lesson isn't "never build a system". Some state can't live in a repo: which machine has which tool, a secret, a sign-in, a person's decision, something that has to exist before there's code to hold it. Those still get their own state in Trinity, and they earn it.

The test I use now is short. A system earns its own state when it holds what a repo can't. Anything else is a file and a pointer, and any status is the work's own status.

The 80/20 of it

A file in the repo, a pointer line and git's history and pull requests delivered nearly everything those four systems were for, for about a fifth of the effort. The elaborate versions spent the other four fifths chasing the last bit, and broke their own primitives on the way. That's why I could never nail them. I wasn't failing to design them. I was designing things that shouldn't exist.

I'm not going to promise I'll never do it again. Agents are very good at making the big picture feel right. But here's the check I run now.

When the primitives won't settle, stop maturing the system and ask whether it needs to exist at all. Ask what the repo already knows, what the work already is, and what git already remembers.

Most of the time, the answer is a pointer file and some instructions.