Tagged: Architecture
3 posts tagged “Architecture”.
Topics
Posts3 notes
CHECK constraints guard states, not transitions
A CHECK constraint can't stop a finished CI run from going back to queued, because it only sees the new row. A conditional UPDATE can. Here's the compare-and-swap pattern in Postgres, the read-then-write version that let 19 of 20 goroutines win, and two type errors along the way.
6 min read · PostgreSQL, Go, Architecture
We stored a parsed tree of LLM output, and the UI stopped fixing broken Markdown
Sky's frontend had 1,500 lines of code that repaired broken Markdown from the LLM. Then the backend started storing a parsed tree, the UI rendered it directly, and new content skipped every repair. Here's why the repairs belong on the server.
6 min read · AI, Architecture, TypeScript
Your Kubernetes Job's exit code is lying to you
I made a Kubernetes Job fail three ways: a failing test, an OOM, and a deadline. All three ended as the same Failed, and two of them left no logs. Here's what I learned and how it shaped the result contract of a CI worker.
8 min read · Kubernetes, CI, Architecture