Wednesday Code Autopsy · #14

My AI Had a Brain — It Just Couldn't Reach It

For months hck_GPT was answering questions while sitting on two working systems that actually knew what “normal” means for your machine.

By Marcin Firmuga·2026-06-24·4 min read·Wednesday Code Autopsy #14

Welford baselines for CPU/GPU/RAM/temps per workload. Voltage SPC with Nelson rules for real anomaly detection. Both were running. Both were tested. The chat just never called them.

When someone asked “82°C — is that bad?”, the AI had no idea if that's normal for your gaming laptop or a real problem. It gave the same generic answer every other monitor gives. I found it during a full audit of all 84 intents.

The two lines that killed it

I started grepping and found this in hybrid_engine.py:

except:
    pass

Two lines above it, the code tried to read a variable from another function. NameError every time. The bare except: pass just swallowed it. No crash, no log, no warning.

The entire fallback logic was dead since day one. Four months. Silent. Nothing ever complained. I only caught it because some answers felt dumber than they should.

Fixed it in two places — removed the silent except, and actually wired the learning engines into the response builder. Now when hck_GPT answers, it finally reads what it learned about your machine. Same number, different meaning depending on whether you're gaming or idle.

The scary part isn't that the bug existed. It's that nothing ever told me it was there.

What's the longest a “working” feature in your code was quietly doing nothing?

BuildInPublicPythonAIOpenSource
This is the project behind the post. PC Workman is a free, open-source Windows system monitor with an offline AI assistant - everything described here is real, shipped code. Download it or read the source.
← #13Two Invisible Bugs: One Python Hid, One That Accused NVIDIA
MF

Marcin Firmuga

Solo developer · HCK_Labs · building PC Workman 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.