docs: ふたり対戦の軽量採用設計を追加 - #114
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
chanriva | 12af854 | Sep 28 2026, 07:19 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新しい「ふたり対戦」の初期リリース向け正本として、
docs/02_オンライン対局/新ふたり対戦_DO_WebSocket_軽量採用設計.mdを新規追加します。既存の高信頼版設計書はそのまま残し、矛盾時は軽量版を優先することを明記しています。Worker / Room Registry DO / Room DO と既存 Supabase Auth を使い、サーバーは席・ランダム黒白・役割認可・ply・最新 full snapshot・終了処理を管理します。ゲームルールと時計は Android に委譲し、通常終局は両 player の結果一致、不一致は DESYNC / NO_CONTEST、player 切断は観測後即敗北とします。
独自ログイン排他、複数 Room 排他、対局復帰、60秒 absence、claim、サーバールール/時計、Room 再利用、イベント履歴、Supabase 結果保存は採用しません。10秒のロビー polling、最大3 avatar の観戦 preview、UUID 固定 avatar、local 戦績、Hibernation、最小 protocol、テスト戦略、Phase 0〜6 と残る技術確認を記載しました。
現行コード調査では、観戦 UI が
take(3)であること、core の ply がパスを含むこと、local 保存基盤は再利用できる一方で NO_CONTEST・相手名・時間設定等のモデル拡張が必要なことを反映しています。確認内容:
git diff --cached --check成功文書作成のみのため、アプリ/Worker/DB の実装・実行試験・deploy は行っていません。main への merge は行いません。