Production problem, verified fix.
- Passed: Found in production
- Passed: Fixed in a tested pull request
- Passed: Verified after the release
Aient watches your production telemetry, finds the cause in your code and opens a pull request with a tested fix. Your team approves the change, and Aient confirms in production that the problem has stopped.
€15 starter credit, no card required
Watch Aient fix a crash in production
One real crash, start to finish.
In our five-in-a-row demo app, the game crashed whenever the computer player had to make the first move of a new game. No error on screen, no alert, no ticket. This is how Aient took it from the first crash to a verified fix.
1Detect
Aient finds the crash in telemetry
Before anyone reported it.
After “Play again”, the board stayed empty and the browser logged TypeError: Reduce of empty array with no initial value. Aient picked it up from production telemetry, grouped every occurrence into one problem, PRB-4, and named it. It ranks each problem by impact: the people and sessions it affects, how often and how long it happens, and whether it is a regression.
Clear enough for a person to read at a glance, and for your coding agent to pick up as it is.
Problems / PRB-4
computerPlayer.ts reduce() called on empty array without initial value
luffarschack · first 6 Oct, 17:29 · last 8 Oct, 10:02 · seen for 1d 16h · 3 occurrences · 1 user affected
2Context
Aient traces the cause to the code
Telemetry says what. Code says why.
With one clear problem, it’s worth spending real intelligence. Aient read the traces, logs and metrics for PRB-4 together with the code and its recent changes. The likely cause: computer-move selection doesn’t handle an empty board, so reduce() runs without an initial value and throws. Players can’t start a game when the computer moves first. Aient filed it in Linear, linked to PRB-4.
PRB-4 · Investigation
The computer-player logic calls reduce without an initial value on an empty array of scored cells, throwing a TypeError. This aborts computer move selection and can block game progression or clean completion on the affected interaction path.
nextjs/luffarschack/src/lib/computerPlayer.ts · line 80
.map((cell) => ({ cell, score: scoreCell(board, cell.x, cell.y, player) }))
.reduce((best, candidate) =>
candidate.score > best.score ? candidate : best3Fix
Aient opens a pull request with a tested fix
Aient opened PR #17 with the root cause in plain words, the change, and red-green tests for the TypeError. The change handles the empty board before choosing a move. It followed the checks and the preview deployment, and reported their status in the pull request.
You review a fix instead of writing one.
aient-ai/aient-samples · #17
fix(luffarschack): prevent empty-board computer move crashes
Merged