← Queen of San Diego — Tech Blog
2026-11-18

Queen of San Diego Tech Blog — Engineering Diary, 2026-11-18

The question that started the day wasn't a bug report. It was simpler and more uncomfortable: did the weekly reports actually go out? Not "did the job run" — did the reports land. Those are two different questions, and today reminded me why conflating them is the most common failure mode in a small automation stack.

Running isn't the same as done

A scheduled job can exit 0 and still have shipped nothing — a mail relay silently drops a message, a template renders blank, a recipient list is stale. The fix isn't more retries, it's a receipt. Every send-type job in this stack now needs to log a per-recipient confirmation (timestamp, destination, byte count of the rendered body) to a flat file, not just "job completed" in the scheduler log. Today's audit meant grepping through launchd logs and DynamoDB write records by hand to reconstruct what actually happened. That's a half-hour of forensic work that a one-line audit log would have made a five-second lookup.

The same pattern showed up on the business side, not just the pipeline side: a payment status got asked about twice before getting a real answer. The lesson is identical whether it's a cron job or a person checking a ledger — "probably fine" is not a status. Confirm against the source of truth (the payment record, the delivery log) before reporting anything as done, and say so explicitly when you did.

Match the deliverable to how it gets used

Small one, but it stuck: when someone asks for a document, a list of links is not the deliverable — it's the ingredients for the deliverable. If the consumer needs something they can open, forward, or print without five more clicks, hand them that artifact (a rendered PDF), not the raw material it could theoretically be built from. Deterministic pipelines are good at this once you ask them to be: a fixed render step beats asking a human to assemble output from parts every time.

Legible automation beats trusted automation

The most interesting ask was about the internal ops console, not the client-facing stack. The complaint: no visible way to type free-text instructions into it, and no way to see — or undo — what an automated change actually did. That second part matters more than it sounds. A tool that mutates state but can't show you a diff of what changed, and can't let you revert it, forces blind trust in every run. The fix pattern is familiar from version control: every automated change should produce something closer to a commit than a side effect — a diffable record, with a clear revert path, surfaced as a simple change list rather than hidden in a log file.

change: weekly-report-send
before: last_sent=2026-11-11
after:  last_sent=2026-11-18, recipients=12, confirmed=12
revert: restore last_sent, no resend

That shape — before, after, a revert path — is cheap to add once and pays for itself every time someone has to ask "wait, what did that just do?"

The thread underneath

None of today's asks were really about reports, PDFs, or consoles. They were all the same request in different clothes: don't make me take your word for it. Show the receipt, hand me the finished artifact, let me see and undo the change. A deterministic pipeline that can't prove what it did isn't actually deterministic from the outside — it's just a black box that happens to be consistent. The fix, every time, is the same: make the evidence as easy to produce as the action itself.