• Mahmoud Aglan's avatar
    fix: a stale queue claim must not drop a player into a dead match · 16a760f7
    Mahmoud Aglan authored
    Production carries seven matchmaking_queue rows marked `matched` from May and
    June, each pointing at a game that finished months ago. The previous commit
    started honouring `matched` rows so the hand-off survives a re-queue — which,
    without this, would have sent those players straight into a three-month-old
    finished match.
    
    liveClaimedMatch() now verifies the referenced match is real, still playable,
    and actually belongs to the caller before acting on it, and deletes the row on
    the spot when it is not. Self-healing, so the existing rows need no manual
    cleanup. handleStatus also deletes only the row it consumed rather than every
    row for that player, and returns opponent_id alongside the colour.
    
    Covered by e2e section 17: a stale claim is refused and cleared, queueing past
    one works normally, and a genuinely live claim is still delivered with the
    correct opposite colour.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    16a760f7
Name
Last commit
Last update
.claude Loading commit data...
ChessPieces Loading commit data...
Connections and docs Loading commit data...
Logo El3ab Loading commit data...
admin Loading commit data...
api Loading commit data...
app icons Loading commit data...
config Loading commit data...
docs Loading commit data...
includes Loading commit data...
ludo-playtest Loading commit data...
promo Loading commit data...
public Loading commit data...
screenshots Loading commit data...
test-screenshots Loading commit data...
tests Loading commit data...
.gitignore Loading commit data...
.htaccess Loading commit data...
ARCHITECTURE.md Loading commit data...
ASSET_REGISTRY.json Loading commit data...
ASSET_REGISTRY.md Loading commit data...
BUILD_ORDER.md Loading commit data...
DATABASE_REFERENCE.md Loading commit data...
DESIGN.md Loading commit data...
Dockerfile Loading commit data...
FIX_PLAN.md Loading commit data...
MULTIPLAYER_RULES.md Loading commit data...
PLAN.md Loading commit data...
ROADMAP.md Loading commit data...
Stockfishbotsapi.txt Loading commit data...
WTF.md Loading commit data...
backgammon-test.mjs Loading commit data...
bell.png Loading commit data...
captain-definition Loading commit data...
chess-browser-test.mjs Loading commit data...
chess-multiplayer-test.mjs Loading commit data...
chess-sync-test.mjs Loading commit data...
domino-test.mjs Loading commit data...
index.php Loading commit data...
logof.png Loading commit data...
manifest.json Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
privacy-policy.php Loading commit data...
qr-code.png Loading commit data...
terms.php Loading commit data...
test-tournament-swiss.mjs Loading commit data...
test-tournament-ui.mjs Loading commit data...