The card that never lands
This is a coding agent, writing up its own fix in the project’s making-of:
Mobile card reordering actually works now.
It did work. The agent had tested it in a browser emulating a phone, and the card moved. In the same commit it shipped a second feature: a sort that re-applied itself every time your hand changed, so a hand you had sorted by rank stayed sorted through every deal and every draw. That worked too. It was tested on its own, and it passed.
Turn both on and drag a card, and this happens. The commit that shipped both, ce1d38f, is still on GitHub, so the drag was recorded again for the episode, in the same emulated Pixel 5, with the ace dragged into the middle of the hand:
before drag : A♥1,2♥1,4♥0,5♣0,6♥1,8♣1,8♥1,10♠0,K♦0 right after : A♥1,2♥1,4♥0,5♣0,6♥1,8♣1,8♥1,10♠0,K♦0 2s later : A♥1,2♥1,4♥0,5♣0,6♥1,8♣1,8♥1,10♠0,K♦0 dragged card A♥1: index 0 -> 0 DRAG PERSISTED: false SNAPPED BACK: true
Two features, two passing tests, and the bug lived in the gap between them.
Two presenters who have never been dealt a hand
The episode is presented by Pip and Bo, who did not build this game and have never held a hand of cards. The scripts, voices and pictures are made with AI. A human directs the work, and in the video they appear only as the cursor.
The game is Hawaiian Rummy, a variant the human played as a kid, with rules unusual enough that nothing off the shelf would do. So it was built from scratch with Claude Code. The repository’s README puts it plainly:
This is altogether vibe coded with Claude Code.
What exists, and a record that went quiet
Hawaiian Rummy is a multiplayer Rummy: 4 seats to a room, AI players filling the empty ones, and 10 rounds whose goals get harder. It runs in Docker on a Raspberry Pi 5 at a public address, xjpl6dawgo66.nobgp.com, and anyone can play it.
In August it got a usability pass. A review listed 18 problems, and one pull request, PR #10, closed all 18, plus 5 defects that were not on the list. Every bug introduced along the way was caught inside that pull request, before it merged. None of them reached the live game.
| Commit | Time | Message |
|---|---|---|
d6efa8d | 20:07 | Keep the table moving: idle-turn timer, buy-window expiry, pinned buy prompt |
ce1d38f | 20:40 | Fix mobile hand handling: working touch reorder, sticky sort, one sort impl |
acfd5a1 | 20:47 | Verify sticky sort applies to deals and draws, not just the button |
377dc1d | 21:25 | Requirement progress, disabled-button reasons, meld legibility, haptics toggle |
a3f2798 | 22:17 | Make hand sorting manual again, not sticky |
7982562 | 22:20 | squash-merged |
One more number, because it changes how you read the rest. The game keeps its own record of finished games, and on 11 October it said this:
| Record | |
|---|---|
| completed games | 7, all between 9 and 11 Feb 2026 |
| human profiles | 1, last active 11 Feb |
| completed since | 0 |
That looks like nobody plays. It is a stats file, not a ledger of players: abandoned games would never appear in it. So the human finished a game on production, to check whether it would.
It was not recorded either. Why is lesson 5 below, and it had been true since February.
Every check passed
Every check in this story passed, and they were real checks: a live server, scripted players driving it over its own socket protocol, and a browser emulating a phone, every run written down in the project’s making-of.
And 3 things were still broken, because each fault sat between things that no single check looked at:
- between two features;
- between how a thing behaves and how it looks;
- and between “it works” and “a player wants it”.
The last gap is the expensive one. Nothing you measure tells you whether a feature should exist.
18 problems in 3 groups
The review sorted its 18 items into 3 groups.
The table must never stall. When other people are waiting, a player who walks away now has their turn played for them after 2 minutes, and the window for buying a discarded card closes on time.
The hand. On a phone, dragging a card had never done anything at all. The code for the drop was an empty function with a comment in it:
(x, y) => {
// Handle touch drop - would need to detect target element
}Legibility. Progress toward each round’s goal, greyed-out buttons that say why they are greyed out, and a light theme you can actually read.
The work ran as a series of agent sessions, one after another, and each one checked its work before the next began. Each new session also found something the previous one had shipped. That pattern is most of this article.
The stack
| Tool | Job |
|---|---|
| TypeScript | all of it |
| React and Vite | the table |
| Socket.IO | every move, live |
| Express | the server |
| Zustand | settings that stick |
| Docker on a Raspberry Pi | production |
| noBGP | a public address |
| Claude Code | the builder |
| Playwright | an emulated phone |
Watch the last row. Playwright drove a browser pretending to be a phone, and it ran most of the checks in this story. Where those checks lived matters at the end.
Lesson 1: two passing tests can cancel each other out
The cost. The headline fix of the evening, drag-to-reorder on a phone, was dead on arrival for anyone with a sort mode on.
The evidence. The loop has 4 steps, and the agent wrote them down itself once it had been pointed at the problem:
1. Drag a card → reorderHand(newOrder) goes to the server 2. Server echoes the new hand order back 3. The sticky-sort effect sees the order differs from sorted → emits reorderHand(sortedIds) 4. The card snaps back
Here is that loop in the recording, as the socket frames the phone sent and received after the finger lifted:
+4.8 sent reorderHand 2♥1, 4♥0, 5♣0, A♥1, 6♥1, … +19.9 received gameState 2♥1, 4♥0, 5♣0, A♥1, 6♥1, … +25.4 sent reorderHand A♥1, 2♥1, 4♥0, 5♣0, 6♥1, … +26.2 received gameState A♥1, 2♥1, 4♥0, 5♣0, 6♥1, …
The whole round trip takes 26 ms. The moved order existed in the page for about 6 ms, which is shorter than one frame of video, so the recording never shows the card landing. You let go of it in the middle of the hand, and the next frame already has it back at the start. The proof is the frames above, not the picture.
Both of the original checks were true. The drag test ran with sorting switched off. The sort test never dragged a card. The thing a player would actually do, which is both, had never been tried.
The rule. The check that catches this fits in one sentence: turn on feature A, then use feature B. The making-of records that writing it took about 4 minutes, once somebody pointed at it.
Lesson 2: nothing you measure tells you whether a feature should exist
This is the lesson the episode is really about.
The evidence. The sticky sort passed every measurement put to it. It sorted the deal. It sorted every draw. It remembered your setting between visits. It never looped. Then the human, testing the branch, asked why auto-sorting was on at all:
later in the game when players need sets and runs, auto-sort is harder to organize the cards. The sort should be manual.
Round 10 asks for 3 runs of 5 from a 15-card hand. Players arrange their cards into the runs they are building, and that arrangement is information: it has to survive a draw. A sort by rank throws it away, and an automatic sort throws it away on every draw, without asking.
The review had written the item up as friction: hands arrive unsorted, and every round starts with a manual sort. That assumed sorted is the state a player wants to be in. The friction the agent fixed was a player choosing an order, and the fix overrode the choice. The agent’s own correction says so:
Nothing I measured could have told me that sorting the draw was the wrong thing to do. That needed someone who plays the game.
The cost. A feature built, verified and deleted again:
- Incorrect claim: ce1d38f 20:40 sticky sort
- Correction: a3f2798 22:17 make hand sorting manual again, not sticky
The rule. The sticky sort lived for 1 hour and 37 minutes, and sorting is a button again. Every check you can write asks whether a feature does what it was specified to do. None of them asks whether it should have been specified. That question needs someone who uses the thing.
Lesson 3: a behaviour test can pass on a broken screen
The evidence. The first session pinned the “Buy this card?” prompt to the bottom of the screen, so that a phone could not scroll it out of view. Its checks confirmed that the 5-second buying window opened, closed on time, and was pinned to the bottom. Every one of those assertions passed. Nobody looked at the screen.
The prompt was see-through. Its panel was rgba(209,250,229,0.85) on the light theme: 15% of whatever sat behind it showed through, and what sat behind it was the action bar’s “Waiting for your turn…”, reading straight through the middle of the question.
A later session took a full-page screenshot, and it showed at a glance. The fix was a solid panel, measured afterwards in the running app:
buy prompt: bg rgb(236,253,245) opaque=true pinnedToBottom=true topElementIsPanel=true
The original screenshot was never saved. For the episode, the defect was recaptured from the commit that shipped it, d6efa8d, and from the fix, 377dc1d, in the same emulated Pixel 5. The recapture did not reproduce a readable bleed-through, so the episode shows both captures as what they are and does not claim more.
The same screenshot found a second defect: every played meld was drawn at half opacity, because “you can’t click this” and “you can’t read this” were one setting. Those are the cards you need to read to plan your next move.
The rule. A test of behaviour says nothing about what a person can see. Look at the screen.
Lesson 4: when a check fails, suspect the check first
The cost. At least 3 times that evening a check failed and the product was fine.
The evidence.
- The idle timer would not fire. The test joined its second player with an event called
joinRoom; the server listens forjoinGame. The second player never arrived, AI filled the room, and with only 1 human present the timer is meant to stay off. It was right. The test was wrong. - The cards ignored every touch. It was not that player’s turn, so every card was disabled. The test never waited for one.
- A drawn card seemed to land out of order. It had not. The test read a Joker as a Jack, because regex alternation takes the first match and its pattern checked for
JbeforeJoker:
- Incorrect claim: /^(10|[AJQK2-9]|Joker)/
- Correction: /^(Joker|10|[AJQK2-9])/
The rule. Each of these looked exactly like a product bug, and each would have been easy to fix in the wrong place. A failing check is a claim about two things, the product and the check, and the check is the one written in a hurry.
Lesson 5: a later change can reopen an earlier one
The evidence, in the evening. The idle timer reset whenever anyone did anything. That sounds right: any action means the table is moving. Then sorting arrived, and reordering your hand is something any player can do at any time, including on someone else’s turn. So one player tidying their own cards would have kept an absent player’s clock alive for ever, and the timeout would never have fired.
The agent caught that one itself, re-reading its own code while it added the sort. No test covered it. The fix is one line: only the player the table is waiting for can reset the clock.
const actingPlayerWasCurrent = room.state.players[room.state.currentPlayerIndex] === action.playerId;
The evidence, in production. That one was caught the same evening. The same shape of bug had already been running in production for 8 months.
In February the AI players were renamed, from a robot emoji to a fruit:
- Incorrect claim: '🤖 Mango', '🤖 Pineapple', '🤖 Coconut', '🤖 Papaya'
- Correction: '🥭 Mango', '🍍 Pineapple', '🥥 Coconut', '🧃 Papaya'
The code that saves a finished game finds each AI player’s record by stripping the robot from its name, playerName.replace('🤖 ', ''). After the rename there was no robot left to strip, so 🥭 Mango matched nothing. No AI player has been recorded since, and a game with no signed-in human records nothing at all. The game the human finished on 11 October ended, and the server said exactly that:
[Room 5SAQ2I] Recording completed game... [Room 5SAQ2I] No players with profiles to record
The cost. The record went quiet in February, and the silence looked like nobody playing. It was the record that stopped.
The rule. A change is checked against what it was for, not against everything that already depended on what it touched. The sort reopened the timer, and a re-read caught it the same night. The rename reopened the record and was caught 8 months later, by someone who sat down to play a game and then looked for it. This one is issue #14.
Three more, quickly
The chat button sat on top of the player’s cards on every phone. It was fixed to the bottom corner of the screen, which on a phone-sized viewport is where the hand is, and it swallowed taps as well as drops. Nobody had reported it. It was found because a dropped card needed somewhere to land, and hit-testing the finger mid-drag returned a button:
{"ghostOnScreen":true,"top":"BUTTON.relative flex items-center gap-2 px-4 py-2 rounded","resolvedCardId":null}1.10:1. On the light theme, the labels on played melds were close to invisible. The accessibility minimum for normal text is 4.5:1.
| element | before | after |
|---|---|---|
| "X's Melds" heading | 1.22:1 | 7.29:1 |
| SET/RUN badge | 1.10:1 | 7.15:1 |
| "3 cards" count | 1.34:1 | 4.84:1 |
When a game ends, one AI player keeps taking turns. On the finished game, about every 1.5 seconds. It was still going when the log was read, and it is issue #16.
19:40:47 [AI] 🥭 Mango needs action (phase: gameOver, current: self, passedBuy: false) 19:40:49 [AI] 🥭 Mango taking turn (phase: gameOver)
What is still not known: the real iPhone
Every mobile check in this story ran in a browser pretending to be a phone: Chromium, emulating a Pixel 5, with touch sent over the debugging protocol. The first session says so outright: “nobody has looked at them on a phone.”
On 11 October the human tried the game on a real one, a new iPhone. They drew a card, and then could not make a single set or run.
The server’s log for that room shows the turn reaching the meld phase at 18:39:11 UTC, and then nothing: no meld request, no lay-off, no discard, until the phone disconnected at 18:40:41. The server never received a request. On a desktop, the same game worked, and every meld went through. So the failure is on the phone, before anything is sent: a tap selects one card, and the next tap never adds a second.
It might be the touch code from that evening. It might be the new phone. Nothing in this story can tell, because nothing in it was a phone. It is issue #15.
And a fix would have nothing to check it. Every check in this story, the socket harness, the Playwright runs, the hit test and the 4-minute “A, then B” test, lived in a session’s scratch space and was never committed. The repository has no tests today:
$ git ls-files | grep -i test $
The 3 bugs found this week are written down now, as issues on the project. That is a start. The next time this project comes up, it is why a real phone cannot make a meld, and what a check on real hardware finds.
Everything here is public: the repository, the making-of, with every session, every log and every wrong turn, and the game itself.