Skip to main content

Guardrails & fail-closed

Carry an unfinished invalidation into the next run

2 November 2026 · Guardrails & fail-closed

When a deploy deletes keys and the CDN invalidation fails, the next deploy reads the failed record and invalidates the paths it left behind, before it uploads anything.

Record every key a partial delete removed

1 November 2026 · Guardrails & fail-closed

A delete that fails half way has still deleted something. The error must carry the keys already gone, or the record of the run cannot list them.

Prune only what no release names

31 October 2026 · Guardrails & fail-closed

A post-deploy prune is safe only if it keeps every release the edge may still serve, including one that a deploy uploaded and then recorded as failed.

Uncommitted changes are part of the build

24 October 2026 · Guardrails & fail-closed

A fingerprint built from the commit at HEAD ignores edits in the working tree. We added a hash of the diff and the untracked source files, and a test that edits, adds and reverts.

When git cannot answer, rebuild

22 October 2026 · Guardrails & fail-closed

A fingerprint that falls back to a plain string when git fails can match a stored release. We made an unknown fingerprint read stale and force a rebuild, and wrote tests for both outcomes.

The default that failed open

16 October 2026 · Guardrails & fail-closed

An optional argument with a safe-looking default is a guard that a forgetful caller can skip. For anything that protects a boundary, make the argument required and let the compiler refuse the caller.

Refuse, don't warn

8 October 2026 · Guardrails & fail-closed

A build that warns about a leak will ship the leak. Make every check a refusal with a name, prove each one with a red case first, and let the build fail closed.

All posts