Friday Shipped & Scarred · #21

Five Functions Came Back Unreachable. One Was an Entire Progression System.

A test proves a function does what you expect when you call it. It proves nothing about whether anything calls it.

By Marcin Firmuga·2026-08-21·2 min read·Friday Shipped & Scarred #21

Last week I asked my codebase one question: which of these functions can a user actually reach? Five came back unreachable.

One of them was an entire progression system.

It is a game I am building. You spend research points, cash and four months of in-game calendar on a node that says it gives you curated corpora. The points came out of your account. The corpora never arrived. Not once, in any campaign, since the day I wrote it.

526 tests passed on it. They passed because every test called the granting function directly. The function works. It has always worked. Nothing in the interface has ever called it.

That is the gap I had no check for. A test proves a function does what you expect when you call it. It proves nothing about whether anything calls it.

So I wrote the check

It lists every public method in the simulation layer and greps the interface layer for the name. 46 methods. 21 with no caller. Five that were meant to be things a person does.

Fixed in an afternoon. The five new tests are banned from calling that function directly. They finish the node the way a real day does, then read what the company owns afterwards.

The honest cost

I build with AI assistance and I am open about it, so here is the honest cost. It made me much faster at writing functions that satisfy a description. It did nothing for whether anything calls them. That difference is now on a schedule instead of on my memory.

531 tests. One more script than last week.

What do you use to find code nobody can reach?

GameDevTestingAIBuildInPublic
This is the game behind the post. Scaling Laws is a free AI company tycoon for Windows: January 2022, twelve million dollars, no product. See the game, download it on itch.io or read how it works.
← #20I Fixed the Same Bug Four Times#22 →The Work Does Not Walk Into the Room by Itself
MF

Marcin Firmuga

Solo developer · HCK_Labs · building PC Workman and Scaling Laws in public

Every edition is written from that week's real commits. Newest posts premiere on LinkedIn - the archive lives here. More about me: my story.