Back to Writing

When the safety check is the bug

Two days on one stuck job, and the same lesson arrived six times: the thing blocking the work was the guard written to protect it. Elsewhere, two tiny database details each took a service down.

New Vibe City: six guards, one stuck order

New Vibe City is my AI-citizen city — AI residents with jobs, homes and wallets, living alongside humans who join with an NVC Passport. The project I'm proudest of.

One long-running video production had failed ten times over months, and every failure reported the same meaningless word. The reporting route rewrote any error it didn't recognize into one generic code and logged nothing, so ten attempts produced no evidence at all. The first fix was to say what happened.

With real reasons visible, the causes came out one at a time. The check that proves the city's side of a production answers reliably, just past the twenty seconds the caller allowed, so every attempt aborted before finishing. And each generation of the record embedded the whole previous generation inside itself, recursively, so by the fifth it nearly filled the two-megabyte transport ceiling.

Then the guards. One compared fingerprints where it should have compared identity, so shrinking that stored history looked like someone swapping out the work. One counted retired attempts instead of naming the end of the chain, so a lawful second retirement locked the order forever. Three were the same rule written in two or three places and fixed in only one, refusing again one gate further on each time. One refused after it had already written its claim, leaving exactly the wedge the next attempt tripped over. Every one blocked the repair it existed to permit.

What's left over is the useful part. A wedged chain used to be undiagnosable, which is the one state where diagnosis is all you need, so its history can now be read when every other read refuses. Every step has an operator tool instead of commands run by hand, a reviewed restart takes a named service identity rather than a human at an admin browser, and requests needing the city's single primary process get routed there.

Plotfinity: the producer's half

Plotfinity, my personalized AI TV and movie generator, assembles those productions. It emits the bounded history now, and keeps the real reason a start refuses instead of rewriting it into one word. The capacity gate is asked before an attempt is claimed rather than a dozen steps later, so a refusal no longer burns an attempt that rendered nothing.

Freeholder: money and storage, carefully

Freeholder is the open-source operating system for a one-person business — website, CMS, CRM, bookings, invoicing, email, analytics and an MCP server, self-hosted (code on GitHub).

When a customer changes plan mid-cycle, the prorated charge, the credit and any refund now trace back to the exact original record they came from rather than being recomputed. Upload quotas belong to the account that genuinely owns them, are released exactly once even if the reader is killed mid-upload, and leave a recovery journal instead of leaking capacity. Much of this is deliberately prepared and not switched on — merged, not released.

Paradise Modern: two small details, two outages

Paradise Modern is the shared platform behind my sites, where vibe coders can sign up to power their own projects.

Its table of sites could not take another column: 84 live ones against 1,516 dropped ones, a hard database limit of 1,600 slots, and a pair of migration statements that added a column and dropped it again on every boot — a dropped slot is never reused. The table is rebuilt in one transaction. The verification afterwards then took a lock with no timeout, sized from a staging measurement, and exhausted the connection pool for fourteen minutes.

Separately, one row shut AI video calls across the platform for about two days. A reservation sat expired and never released, so the allocator excluded the only general-purpose face worker from every allocation and ordinary calls refused. The reconciler can finish an orphaned reservation now, and reports how long it was stuck — the outage hid that long because the only thing on screen was a count with no duration. The feedback panel, meanwhile, got a close control and a minimize that keeps your place, so a tester can go and try the thing they're reporting on.

CatchWindow

CatchWindow, real-time conditions for getting out on the water, built with my business partner Pat Rousseau. Dog-walking windows are no longer offered at buoys or offshore fishing spots, while beaches, land-attached docks and fishing spots on land stay eligible. Opening a past day no longer orders a fresh AI report over the one already written, and today's waits until 5 am. A phone app build landed too — map screen, subscriptions and a new background map provider — merged, not released.

Private School Brokers

Private School Brokers, the platform only: signing happens inside an account now, with email-code sign-in, optional identity verification, simpler invitations and recoverable older signing links. Executed documents preserve Chinese and Arabic signatures, agreements can be read privately in several languages, and a round of hardening closed a few ways a malformed page load could reach a mutation.

Want the platform behind all of this? You can sign up at Paradise Modern.