refactor(matching): extend PairUpResult with IsAiFallback flag
Pure shape change ahead of Phase 3 AI-fallback wiring — all current callers pass IsAiFallback: false. TK2 will always emit false (PvpOnly policy); rank-battle's PvpFirstThenAiFallback branch sets true after the threshold elapses. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -34,5 +34,11 @@ public interface IMatchingPairUpService
|
||||
/// nothing else in TK2/ranked reads. We send the split anyway for prod fidelity in
|
||||
/// case a future flow (rematch UI, private rooms grafted on top) starts consuming it.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// <see cref="IsAiFallback"/> is true when the resolution came from the
|
||||
/// <c>PvpFirstThenAiFallback</c> policy expiring its threshold — caller is paired
|
||||
/// with a silent NoOpBotParticipant. Maps to matching_state 3011
|
||||
/// (AI_BATTLE_MATCHING_SUCCEEDED). Always false for PvpOnly modes (TK2).
|
||||
/// </para>
|
||||
/// </summary>
|
||||
public sealed record PairUpResult(PendingMatch Match, bool IsOwner);
|
||||
public sealed record PairUpResult(PendingMatch Match, bool IsOwner, bool IsAiFallback);
|
||||
|
||||
Reference in New Issue
Block a user