Mark default commissioner substatuses#43
Merged
Conversation
Co-authored-by: GPT-5 Codex <codex@openai.com>
3799258 to
44fc93c
Compare
aaln
pushed a commit
to Metta-AI/coworld
that referenced
this pull request
Jun 17, 2026
## Summary - make `is_champion` the platform-owned champion signal and stop deriving or rewriting it from `substatus` - keep `substatus` commissioner-owned rather than platform/migration-owned - send all live current-division memberships to round commissioners while keeping the default entrant set limited to `is_champion=true` - add Coworld commissioner protocol helpers/constants for `competing.active` and `competing.benched` - update docs and tests for the new platform/commissioner boundary ## Companion PR Default commissioner marking is handled in the commissioners repo: - Metta-AI/commissioners#43 That PR marks `is_champion=true` competing memberships as `competing.active`, marks other competing memberships as `competing.benched`, and leaves explicitly configured ruleset membership events in control when present. ## Validation - `python -m py_compile app_backend/src/metta/app_backend/v2/models.py app_backend/src/metta/app_backend/v2/policy_membership_events.py app_backend/src/metta/app_backend/v2/league_policy_memberships.py app_backend/src/metta/app_backend/v2/pipeline.py app_backend/src/metta/app_backend/v2/routes/league_policy_memberships.py packages/coworld/src/coworld/commissioner/protocol.py packages/coworld/src/coworld/commissioner/__init__.py` - `git diff --check` ## Local validation notes - `env METTA_USE_NIX=0 uv run metta pytest app_backend/tests/v2/test_container_commissioner_pipeline_integration.py -q` was attempted with network access, but the local `mettagrid`/Bazel build failed with `No space left on device`. - Required lint command `env METTA_USE_NIX=0 metta lint` was attempted, but the local `mettagrid`/Bazel build failed after the same disk-constrained environment. - `uv run alembic -c app_backend/alembic.ini heads` was also blocked locally by the same low-disk environment while building native dependencies.
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.
Summary
activewhenis_champion=truebenchedwhenis_champion=falseNotes
This keeps substatus assignment commissioner-managed. The platform can pass all competing policies for a round, while default commissioners schedule champions and annotate all competing memberships for UI/API consumers.
Validation
uv run pytest tests/test_commissioner_strategies.py -q(58 passed)uv run python -m compileall commissioners testsgit diff --checkpyproject.tomlor CIFull pytest/websocket runs hang in this local environment after the strategy test phase, so I stopped those and validated the deterministic strategy coverage directly.