Part 10 of 12 · 1 min read
Quick notes
- Start simple and containerise; add complexity on symptoms, not speculation. Serverless often fits agents poorly since runs outlast the time limit.
- Secrets never live in the repo, image or logs. Scanners miss things, so keep secrets out structurally; pin images, run non-root, add a healthcheck.
- Deploy by digest, not by tag. A tag can be re-pointed; a digest is exactly the image tested, and rollback means redeploying a prior digest.
- Evals belong in CI; gate design matters since eval sets are noisy — a small set forces flaky builds or missed regressions.
- Roll out progressively with automatic rollback, and use expand-then-contract migrations so the old code can still run.