Arrange Act Assert

Jag Reehal's thoughts on things, mostly product development

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 →

Look before you lead

19 Oct 2026

It’s true, anyone can lead.

In twenty years I’ve watched people grow into leaders, helped a few get there, and grown into the role myself. How far each of us got depended on the trust, backing and incentives around us as much as on what we brought.

Before you say yes to a lead role, find out who will stand behind you when the decisions get hard.

Look before you lead

Read More →

Your coding agents need a gardener

19 Oct 2026

Your coding agents repeat mistakes you corrected last week. A gardener reads what your team accepted on recent pull requests each week and proposes a lint rule or a sharper instruction when the evidence supports one.

Your coding agents need a gardener

The gardener opens each proposal as a PR with its evidence, and you decide whether it merges.

Read More →