KILLER REALM JOURNAL · STUDIO · 2026-11-20

Inside AalAhwa: reconnecting to the same match without keeping an empty table alive

Why a phone disconnect, a server restart and a lone player with bots need different recovery paths—and how our implementation separates them.

By Killer Realm Game Lab · Source-checked 20 November 2026

AalAhwa online lobby with humans-only and bot-fill choices and a Join Random button
Our AalAhwa online-lobby screenshot. It shows the separate matchmaking choices; it is not a live player-count or server-health report.

One symptom, three different problems

“I lost the connection” sounds like one bug, but it can describe different events. The phone may briefly lose its network while the server and other players continue. The server itself may restart. Or every other human may have left, leaving one person watching bots. Giving all three cases the same behaviour either loses a real match or keeps unnecessary online work running.

Our aim in AalAhwa is to keep real multiplayer authoritative while avoiding a permanent server table for something that can now be played locally. That requires deciding what the match is, who still belongs to it and which machine is currently allowed to advance it.

Reconnecting should restore a seat, not make another game

For a temporary phone disconnect, the client attempts to resume the existing session rather than create an unrelated room. The server checks the resume information and replaces the connection associated with that seat. The client receives the current authoritative state instead of guessing that its last visible board is still current.

This distinction is particularly important when a bot has temporarily taken over a disconnected seat. The returning human should regain their role in that same game where recovery is still allowed, not become an extra participant in a second game. The recovery window is bounded; reconnect is not an indefinite reservation. A phone’s local screen is also not proof that the server still considers a seat active.

A restart needs more than a list of room codes

An active-match table can tell us that a player belonged to a room. It cannot reconstruct the game board by itself. Our room implementation therefore has a serializable checkpoint containing the state needed for recovery, and persistence code to store it. After a restart, recovery can reconstruct a known match from that state rather than treating every remembered room code as a playable board.

The code also distinguishes a save that is being committed from a normal move. This matters because accepting another mutation while the state boundary is uncertain would make recovery harder to reason about. Checkpointing is a reliability tool, not a promise that every network message is a database write or that any failure can be recovered forever.

When one human remains, online play can become offline play

In the current testing implementation, a multi-human table that falls to one human gives the others sixty seconds to return before considering the solo transfer. A timely return cancels that transfer. Backgrounding the remaining phone does not restart the deadline. A table that begins as a true one-human bot game can use the handoff path without waiting through the same departed-human window.

The handoff is not “delete the room and hope the phone received it.” The phone first receives the state, saves it locally and acknowledges that save. The server then commits cancellation of the online match, refunds where applicable and confirms the transition. Only after confirmation should the phone continue as an offline game. If the save is not acknowledged within the offer window, the online table resumes rather than being discarded.

This ordering prevents two different machines from both advancing what appears to be the same online table. It also protects the player from a local navigation change happening before the server has finished its side of the transition.

A lost confirmation must not create a lost game

There is another awkward edge case: the phone saves and acknowledges the transfer, but loses the final confirmation. The server keeps a small receipt bound to the intended recipient so that the transition can be recovered after reconnecting or restarting. The receipt is distinct from a running match; retaining recovery evidence does not require keeping all the game’s bots and turn timers alive.

Likewise, claiming an eligible handoff outcome must not credit the same result repeatedly. The server checks the issued receipt and records settlement so retries do not become extra rewards. Ordinary online multiplayer rules and wallet changes remain server-controlled. Solo result trust during testing is a separate design trade-off; the offline handoff should not be described as equivalent to fully authoritative online play.

What the tests establish—and what they do not

The repository has recovery, human-retention and local-handoff regression tests. The release handoff records checks for lost confirmation across restart, participant isolation, deadline behaviour, cancellation failures and reward idempotency. It also records S20 integration runs through the four game engines. The two-human return scenario was automated-tested, not physically demonstrated on two phones in that release record.

For this article we reviewed those paths and the recorded results; we did not run a new live load test, change any player progress or interrupt the server. The useful lesson is the ordering: restore the right seat, preserve recoverable state, save before acknowledging, and confirm before switching modes. Our beginner’s guide explains which play option to choose.

← Back to the Journal