What a Shallow Clone Taught Me About Pushing Security Patches Safely
If you fork third-party repos and patch CVEs in them, do NOT push to the upstream. Mirror to your own private repo first — and watch out for shallow
A lab notebook: what I'm learning while building with AI, written as I go.
If you fork third-party repos and patch CVEs in them, do NOT push to the upstream. Mirror to your own private repo first — and watch out for shallow
Claude Code auto-updates into a new versioned path every day or two. macOS TCC grants are keyed to the resolved binary path, so every update rese
Two AI savers writing the same memory files in parallel will eat each other's work. The fix isn't a lock — it's an idempotent, anchor-keyed rewrite and
Don't save memory aggressively. Capture it cheaply and commit immediately — flush expensively on demand.
macOS system Python has no CA cert bundle. curl does. Route your one-off fetch scripts through a curl subprocess — two lines, no dependencies, p
End-to-end encryption is a great engineering decision. It is not a HIPAA compliance strategy. The legal surface area is the same either way.
Any 'learn from me' feature needs two layers — an instant deterministic one and a slow LLM one — both reading the same persisted store. Build both. Neve
includebody=True in an MCP email tool is great for a human-facing UI. For a headless daemon with a token cap, it's a bomb. Same flag. Different c
password === secret is wrong. timingSafeEqual + a per-IP throttle Map are right. Three lines. Do them every time.
schemaname='public' in a Postgres migration doesn't mean 'this app's tables.' On a shared database, it means every table from every tenant. We caugh
The Setup
Things MCP for reads. AppleScript for every write. Verify the write with getprojects via MCP — not with AppleScript's own to dos of p. This is
searchpurchases in the QuickBooks MCP (my AI-to-QuickBooks bridge) accepts filter params, returns a clean 200, and silently ignores everything yo
If you export user-supplied data to CSV, you need to sanitize =, +, -, @, TAB, and CR before writing. One regex, 10 lines. The victim isn't your
Real attendee PII was already committed — discovered in a full security audit, not at the gate. Replace it with synthetic data, gitignore the fixtur
If you let Twilio's Messaging Service auto-handle STOP (you should), your submitted sample messages must NOT include a STOP footer. Your app never s
If your app is multi-page and you fire a long operation as an inline fetch, navigation kills it. Move the work into a server-side background job and
My first two model comparisons lied to me — in opposite directions. One made a good model look broken. One made a bad model look like a winner. Here's t
Middleware gates your pages. It doesn't gate your server actions. Put requireAuth() on the first line of every mutation — fail-closed — or you're leav
QuickBooks Online's vendor merge is UI-only. The API rejects it with code 6240. Fix: loop your dupes, fetch each transaction, and sparse-update the
If your data source takes more than ~500ms, don't block your UI on every read. Serve the last known value instantly, revalidate in the background. T
An insight-regeneration cooldown and a row-count cap (returning 413) stopped a potential runaway bill cold. Add both before any AI feature ships —
We had a Supabase project shared across five apps with one Google OAuth client and no domain restriction on signups. We gated every table with RLS b
If your autonomous system fails and your 'fix' is to do the job by hand, you didn't fix it. You just did it once.
an internal digital asset manager had a blanket Row-Level Security policy with with check(true) covering every table — including memberships, the ta
If your custom modal doesn't have max-h-[90vh] overflow-y-auto on the content element, tall forms will push the Save button off-screen — and users lit
Skill instruction files must use absolute paths. Relative paths silently misresolve when the shell's cwd isn't what you think. And if your skill liv
A pure-stdlib Python server can use Claude Haiku for email triage and a local MLX model for task ranking without importing the SDK. The rule: the runt
In React 19, <form action={serverFn}> resets uncontrolled inputs after the action returns — even when the save succeeded. Make them controlled wit
A Zod .max(500) added for security silently became a hard limit on real batch operations. The fix is a sequential chunking loop — and every caller tha