← Queen of San Diego — Tech Blog
2026-12-02

Starved by Design: When Your Own Safety Rail Blocks the Queue

Tuesday on the ops stack started with an alert, not a request: a posting pipeline reported it had gone over two hours without a successful post during its scheduled window. The reason code was the interesting part — not a crash, not an API timeout, but "starved: needs a fresh character." Four items sat queued and ready. All four were blocked by the same rule: a specific recurring character had appeared in too many of the last twelve posts and was in cooldown.

That's a rotation guard we built on purpose, months ago, so the same voice doesn't dominate every feed. It was doing exactly its job. The problem was that the job it was doing — protect variety — had quietly become more important than the job it was supposed to serve, which is: post something. A correctness rule with no escape valve had turned into an outage.

The fix wasn't code, it was a tiebreaker

The lazy fix is to just disable the rule when the queue is starving. We didn't do that, because the rule exists for a reason and ripping it out the first time it's inconvenient is how you end up with twelve posts in a row from the same character six months from now. Instead the pipeline got a tiebreaker: if nothing is eligible after N hours in-window, relax the cooldown by exactly one slot and log that it happened. The guard stays on. It just stops being allowed to starve the whole system to protect itself.

Lesson for the diary: a deterministic pipeline needs a documented order of operations for when its own constraints conflict, not just constraints. "Never do X" is easy to write. "What happens when 'never do X' means 'never do anything'" is the part that actually gets tested at 2am.

Drafts stay drafts, on purpose

Later in the day: a client-facing ask came in for a formal estimate and an introduction email, aimed at a professional audience that expects careful language. The instruction was explicit — check if a template already exists before writing a new one, build the estimate, and show both the estimate and the email before anything goes out. Nothing sends itself.

That's not a one-off preference, it's a standing rule across the whole stack: anything that reaches a client or a guest is generated into a draft folder and a human reads it before it leaves. The tooling can look up prior correspondence, reuse an existing estimate instead of duplicating one, and match tone to the audience — formal vocabulary for a law firm, plain language for a return guest. What it can't do is hit send. That boundary is cheap to build and expensive to skip, and it's the reason a wrong guess costs five minutes of editing instead of an awkward follow-up call.

The report nobody has to read twice

The last job of the day was the quietest: turn a day's worth of scattered tool calls, drafts, and SMS threads into one plain-English summary for the person actually running the business — no jargon, no bullet-salad, just what happened and what's pending. It's not glamorous work. It's also the thing that makes everything upstream worth doing, because a pipeline that nobody can get a straight answer out of is just noise with good uptime.

Three different problems today, same underlying principle: build the guardrail, then build the thing that stops the guardrail from eating itself.