Repository navigation
Conversation
PureXYZ
force-pushed
the
claude/ecstatic-carson-23de27
branch
from
June 16, 2026 00:36
1644766 to
b49f6b8
Compare
Owner
Author
|
Closed via branch reset (not merged). Rationale: COACH_SQUAD was built for a FIXED 5-person crew, but the real use case is a rotating ~7-friend pool — any 5 may queue, and friends sometimes play without the owner. For a rotating pool the right tool is the existing |
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.
What & why
Answering "can the coach auto-detect when we're playing as 5 so I don't have to set
COACH_SQUAD_SIZE?"Short version: a full premade cannot be auto-detected from GSI. While playing Premier/Comp, GSI exposes no roster, no party/lobby id, and no team size — the coach's whole notion of "the team" is reconstructed from which friends are running the cfg ("wired feeds"). So any size inferred from the live feed count is unsafe by construction: it can't tell "the 4 I see are all of us" from "the 4 I see, plus a 5th who forgot to launch and is still alive" — which is exactly the false "you're the last one alive" that
COACH_SQUAD_SIZEexists to prevent.The safe alternative: configure who the crew is, once, instead of a number.
What changed
New
COACH_SQUADenv var — a comma-separated list of the crew's SteamID64s (including your own):COACH_SQUAD_SIZEstays as a fallback/override.rosterCompleteand the last-man gate require every named member to be wired and fresh, not merely a count (crewAllPresentinroster.ts). Two consequences, both strictly safer than the bare integer:crewAllPresentonly ever tightens the gate, never bypasses the enemy-on-shared-token guard. All wired friends are still coached and recapped as before.COACH_SQUAD_SIZEdisagreeing, aCOACH_PRIMARY_STEAM64not in the crew, or a list outside 1–5 valid SteamID64s all throw at boot.Both
COACH_SQUADandCOACH_SQUAD_SIZEunset ⇒ always hedge, exactly as today.Reviewer notes
RosterManager's newcrewconstructor arg defaults to config;index.ts(new RosterManager()) and existing sim scenarios are unchanged.squadSize()returns the same value in production (crew length == derivedconfig.coach.squadSize).Testing
npm run typecheck— clean.npm run sim— all 331 checks pass, including two new scenarios: size derivation from the list, and a stranger filling the count not completing the named crew (no false last-man while a named member is un-wired).