Arrange Act Assert

Jag Reehal's thoughts on things, mostly product development

My product owner wrote more Playwright tests than I did

01 Dec 2026

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.

Cartoon of a principal engineer and a product owner at a laptop running Playwright, with an AI robot beside them. Speech bubbles read “I’m a principal engineer with 20+ years of experience…” and “…and my product owner wrote 55% more Playwright tests than I did!” A bar chart of Playwright tests across 3 projects shows 86 for me and 133 for the product owner. A checklist reads: turn product knowledge into tests, move acceptance criteria into code, keep behaviour checked on every change. Caption: The product owner wrote more tests.

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.

Read More →

Product owners belong in the codebase

01 Dec 2026

A product owner asks a question that should be simple.

When a customer’s card fails, does the renewal reminder go out before we retry the payment, or after?

Product and engineering are an hour into planning the next set of goals, and that answer decides what the story says. The engineers say what engineers have always said: let me look, I’ll come back to you. The answer arrives the following afternoon in a thread nobody opens. By then the room has moved on and somebody has written the story from memory.

In 2026 the same question takes the same team forty seconds. They point AI at the repository, read the retry schedule and the email template together, and rewrite the acceptance criteria while the problem is still in everyone’s head.

Before and after illustration. Before: a product owner asks whether the renewal reminder goes out before or after the retry when a customer’s card fails, an engineer replies “Let me look into it and get back to you”, and the answer waits a day or longer before the story lands in Jira. Now: the product owner and an engineer check the code together, billing/renewal.ts shows the payment retry followed by the reminder if it failed, and they answer “After the retry” in 40 seconds. Caption: Product owners belong in the codebase.

Read More →

Same Commit. Different Behaviour.

25 Nov 2026

One commit, 16a65f7, and one basket branch into two pricing-engine variants. Control returns a total of 5850. Variant v2 fails with a total of 4680 instead of 5850. Caption: Same commit. Different behaviour.

A basket costs one customer €58.50. Another customer sends the same basket to the same commit and gets a 502, because a feature flag put them on different code.

Record the flag decisions on the trace 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.

Read More →

Let AI judge. Let code decide.

23 Nov 2026

A customer message runs through a neural network that returns four scores: refund 0.99, fraud 0.90, human 0.47, fee 0.92. An arrow leads to a code window with “if (fraud >= 0.6) return FRAUD_REVIEW;”, which outputs FRAUD_REVIEW. Labels read “AI judges, probabilistic” and “Code decides, deterministic”.

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.

Read More →

Deterministic Complexity Gates for Humans and AI Agents

16 Nov 2026

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.

Read More →

What can you test locally with AWS Emulator?

16 Nov 2026

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.

An open laptop with a glass dome on its keyboard, covering a small orange cloud wired to server racks, a database and storage blocks

Read More →

Facilitation is still an art in the age of AI

11 Nov 2026

You should be using AI tools to do everything from drafting your retro agenda to summarising last sprint’s tickets.

But facilitation remains an art.

You still have to read the room, spot who has gone quiet and find the real reason work keeps slipping.

AI tools can help you prepare. You can ask one to draft an agenda, suggest a retrospective format or summarise last sprint’s tickets before the meeting. In the room, you are the one who spots that the tester went quiet after the product owner spoke, or that the same blocker has come up three sprints in a row. You read the room, question the team’s assumptions and take responsibility for where the conversation goes.

Read More →

UX in 2026 reaches past the screen

04 Nov 2026

A person looks up at seven cards labelled web app, API, AI agent, docs, support, MCP apps and WebMCP, with lines from each card joining at a UX box that points down to a customer delight outcome

Customers reach you through your web app, API, AI agents, connectors, widgets in partner apps, docs and support. You reach them through notifications. Hire UX people who can understand and influence all of it.

Read More →

We pay for Gemini. Who still needs a Claude seat?

02 Nov 2026

A person stands at a fork of three glowing paths. The left leads to a desk with the Gemini logo, the middle to two colleagues talking under the Slack and Claude logos, and the right to an engineer coding under the Claude logo.

Start everyone on Gemini. Move people who keep asking engineers questions to Claude Tag in Slack. Give a Claude seat to the people who build things or do long, private work, inside engineering or outside it.

That approach keeps you out of two traps: seats nobody opens, and staff stuck on a tool that can’t do their job.

Read More →