concede
Resign from an ongoing match to immediately award victory to the opponent. Logs the forfeit, updates game status, and finalizes the leaderboard.
Instructions
Resign the match — opponent wins immediately.
── Locking ── Three phases, honouring strict lock order (state_lock > session.lock > writer locks):
state_lock: validate connection state, resolve session + team mapping, capture room_id.
session.lock: flip GameStatus + winner, log forfeit to replay (writer lock is a leaf). Idempotent re-check of GAME_OVER inside the lock.
No lock: call _note_game_over_if_needed which runs its own 3-phase protocol to flip room.status = FINISHED and write leaderboard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | Yes |