Engineering notes
Technical writing
Articles on AI benchmarks, engineering evaluation, platform architecture and payment reliability. Each one works through a specific engineering problem with examples and links to the relevant documentation.
AI benchmarks · Evaluation design · Software engineering · 13 min read
Validating AI coding benchmarks: grader sensitivity, task sampling and decision risk
An executable frontend evaluation example, a protocol for validating graders, and a statistical design for comparing coding agents.Technical SEO · Web architecture · Performance · 11 min read
Engineering SEO at scale: rendering, crawl control and site architecture
Build a finite, discoverable public URL space with meaningful HTML, consistent metadata and operational checks for indexing failures.SaaS billing · Stripe · Financial workflows · 13 min read
SaaS billing as a financial workflow: changes, entitlements and reconciliation
Separate commercial agreements, invoices, payments and access while handling plan changes, duplicate events and uncertain outcomes.Next.js · Rendering · Web performance · 10 min read
Choosing a rendering strategy in Next.js 16
Choose static, request-time, streamed and browser-owned rendering by freshness, authorization scope and failure behavior.Security architecture · Web systems · Authorization · 10 min read
Web security architecture across browser, service and database boundaries
Trace authority and data across a production web system, then verify where each threat is prevented, detected and contained.React · Next.js · Frontend architecture · 10 min read
Architecture boundaries in a large React and Next.js application
Separate domain policy, server data access and browser interaction so a growing frontend stays secure and changeable.Coding agents · Reward hacking · Evaluation design · 10 min read
Reward hacking in coding agents: testing the evaluator with deceptive implementations
Eight deliberately flawed transfer implementations show which graders catch missing effects, hidden corruption, fixture overfitting and race conditions.Node.js · Backend architecture · Security · 12 min read
A Node.js backend designed for overload, failure and hostile input
Set resource budgets, transaction boundaries and security controls before choosing how to scale a production backend.SaaS engineering · Unit economics · Capacity planning · 10 min read
Scaling a SaaS while preserving unit economics
Connect tenant consumption, capacity steps and product limits so growth increases delivered value faster than operating cost.AI training · Data quality · Coding agents · 12 min read
Designing training data for coding agents: tasks, demonstrations and preferences
Build reproducible tasks and evidence-based labels before converting expert work into supervised or preference-training examples.Frontend systems · Maintainability · Technical leadership · 10 min read
Keeping frontend systems maintainable as teams and features grow
Control dependency growth, shared-component variation and migration cost without turning every product change into framework work.Coding agents · Evaluation · Software correctness · 10 min read
When a coding agent passes the tests and fails the task
Review generated patches against behavioral contracts, regression obligations and forbidden effects rather than treating a green test run as the whole result.Architecture · Migrations · Reliability · 11 min read
Changing a large system through incremental migrations
Design coexistence, data ownership and rollback before replacing a live system one boundary at a time.Frontend engineering · React · State machines · 11 min read
Reliable UI state for multi-step workflows
Prevent stale validation, lost drafts and duplicate submissions by modeling ownership, revisions and uncertain outcomes explicitly.Authorization · PostgreSQL · SaaS architecture · 10 min read
Multi-tenant authorization beyond application filters
Use trusted tenant context, database policies and tenant-aware resource boundaries to contain authorization mistakes.Infrastructure · Reliability · Cost engineering · 11 min read
Reducing infrastructure cost while preserving recovery capacity
Use workload economics, failure-mode capacity and reversible experiments to remove waste without buying a cheaper outage.System architecture · Microservices · Technical leadership · 10 min read
When to split a monolith: ownership, deployment and data boundaries
Evaluate a service extraction by the constraint it removes and the distributed failure modes it introduces.System design · State machines · Backend engineering · 11 min read
From CRUD to a workflow engine: state, actors and irreversible effects
Model commands, permissions, concurrency and external effects when several people and services share a business process.Backend engineering · Performance · Observability · 12 min read
Debugging a production service that slows down under load
Separate waiting from work, locate the first saturated resource, and verify a fix with realistic arrival rates and failure conditions.Documentation · Architecture decisions · Technical leadership · 9 min read
Architecture decision records that support the next decision
Record the constraints, rejected alternatives and revisit conditions that future engineers need when an architecture choice changes.Systems · Reliability · 5 min read
What a crashed payment worker leaves behind
How SafeStripe uses leases, ownership checks and transactions to recover work after a payment worker crashes.Operations · Reliability · 5 min read
What changes when a workflow reaches production
A deployment review focused on failure recovery, observable state and the cost of running the product.AI evaluation · Code review · 5 min read
Reviewing generated code before it reaches production
How I assess a proposed implementation against the repository, the task and the system's failure boundaries.Security · Backend · 5 min read
A role is not enough to authorize a request
Checking ownership, tenant scope and resource state at the point where an application changes data.Payments · Reliability · 5 min read