A product owner I work with wrote 55% more Playwright tests than me.
I’m a principal engineer with over 20 years of experience writing software, and I’m glad they outpaced me. For most of my career, product owners described the tests they wanted and engineers wrote them. AI coding agents have changed that.
AI opens that door to anyone who knows how the software should behave. I expect the companies that gain most from AI to be the ones that move acceptance criteria out of Jira and into tests that run on each change.
A basket costs one customer €58.50. Another customer checks out the same basket and gets a 502. Both requests ran against the same deployed commit, but a feature flag sent them down different code paths.
Record the flag decisions alongside the request inputs and you can replay the pricing for that failed request under the variant the customer got, then turn it into a deterministic regression test that fails until you fix the bug.
Ask a local decision model four yes-or-no questions about a support message, then let TypeScript pick the action. On my laptop, Ollama’s tev1 made the right call on five sample conversations, and its trace showed one wrong answer the rules had already made harmless.
A test on 18 labelled messages found the rest: a refund status question read as a refund request, and a cautiously worded fraud report that nobody would see.
Your coding agent says the feature works, and the tests pass. You still can’t tell whether it left the code easier or harder to change.
A complexity gate measures every function, gives the same score on every run, and stops complexity growing past limits you agree. For code already over those limits, a ratchet stops it getting any worse. This post explains the two numbers worth measuring and how to put a gate in front of your agent with AutoRatchet.
AWS Emulator serves the AWS APIs from a container on your machine, with no AWS account. We moved our CDK ephemeral environments onto it and tested CloudFormation, SQS, SNS, EventBridge and three kinds of Lambda against it.
AWS’s durable execution test runner runs a Lambda durable function in your test process, skips its waits and lets you answer its callbacks. We used it to test every branch of a payment approval in under a second.
Evals cover the agent’s judgement. Did it pick the right tool, did it fill the form the way the user meant, did it stop when it should have asked. You can’t hard-code those outcomes, which is why the guides send you to evaluation-driven development.
Underneath that sits a layer that is deterministic and dull. Once your page calls registerTool, it advertises callable functions with typed schemas to whatever agent is driving. That’s an API. Get an enum wrong and an agent walks a path your buttons never allow, and the eval that catches it will report that the model got confused. Your UI tests will never see it.
I measured what Chrome 152 does when an agent calls these methods.
There’s a major disconnect in AI-assisted development right now. Most of the conversation assumes you’re building something new, or working from the kind of clean, stable foundation that barely exists in real engineering teams.
The reality is that most engineering teams live in legacy systems under high load, with god classes, global singletons, and console.log as observability. The kind of code where every change is a gamble.
This post shows what happens when you apply fn(args, deps) and autotel to those codebases. fn(args, deps) creates the seam for safe change; production telemetry captures the behavioural record that survives when every other spec has decayed.
To prove the point, we’ll do this in plain JavaScript, not TypeScript.
AI coding agents produce code faster than you can review and understand it.
One pattern works in both new and legacy codebases because you can adopt it incrementally, without breaking callers.
For business logic, treat every function as having two inputs: data (args) and capabilities (deps).
Without a clear constraint, generated code becomes harder to reason about: dependencies disappear, side effects spread, composition gets messy. This is why visible structure is essential.
Message isolation using a shared queue: propagate tenant ID in Kafka message headers; consumers use tenant ID for selective message consumption.
They make the case that infrastructure duplication is expensive. Instead of separate Kafka clusters per environment, use tenant ID filtering on a shared queue. Instrument producers and consumers for context propagation.
We’ve all been there: maintaining four “identical” Kafka setups that slowly drift apart.
Their key insight:
Requires modifying consumers and using OpenTelemetry for context propagation.
Request-level isolation is the most cost-effective approach.
They make the case against duplicating infrastructure for testing. Instead of spinning up separate Kafka clusters per tenant, use OpenTelemetry Baggage to propagate tenant ID through async flows. Consumers filter by tenant ID. Istio handles routing.
We’ve all been there: every team has their own “staging Kafka” and costs balloon.
Their key insight:
Use OpenTelemetry Baggage to propagate tenant ID through sync and async. When publishing to Kafka, producers inject trace context (including baggage) into message headers; consumers extract and make routing decisions.
As engineers, one of our primary responsibilities is to ensure that the systems we build are stable and reliable.
However, despite our best efforts, issues and issues will inevitably arise in production environments. When this happens, it can be tempting to try and patch the problem and move on quickly.
However, recreating production issues locally is a critical step in the debugging and resolution process.
In this post, I’ll explain the benefits of reproducing production issues locally.