From ea8809674ba63f523c79d7d9c130748fc81ff952 Mon Sep 17 00:00:00 2001 From: ghptc Date: Mon, 26 Oct 2026 17:19:46 -0300 Subject: [PATCH 1/2] fix(modes): own purity and AI policy with configuration CI --- .github/workflows/validate.yml | 27 +++++++++++++++++++++++++++ modes/promod/server.cfg | 5 +++++ modes/zombies/server.cfg | 4 ++++ 3 files changed, 36 insertions(+) create mode 100644 .github/workflows/validate.yml diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..ecd6be2 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,27 @@ +name: Configuration +on: + push: + branches: [master] + pull_request: + branches: [master] +permissions: + contents: read +jobs: + configuration: + name: Configuration tests + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + with: + path: catalog + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 + with: + repository: ghptc/ec2-workspace + ref: 37f83f6927c93a10a078fb4748c37e52d42f8e5a + path: contract + - name: Validate every mode with the existing discovery contract + run: | + for mode in catalog/modes/*; do + python3 contract/scripts/modes.py select catalog "${mode##*/}" + done + python3 -m unittest discover -s contract/tests -p test_modes.py diff --git a/modes/promod/server.cfg b/modes/promod/server.cfg index 71948eb..5648edf 100644 --- a/modes/promod/server.cfg +++ b/modes/promod/server.cfg @@ -27,3 +27,8 @@ set g_voteTime "30" set g_voteMaxVotes "2" set g_voteAbstainWeight "1" set g_voteCooldown "5" + +// Mode owns the existing Bot Warfare auto-fill policy. +set bot_enable "1" +set bot_fill_limit "12" +set sv_mapRotationCurrent "" diff --git a/modes/zombies/server.cfg b/modes/zombies/server.cfg index d8fb6a9..72bfc09 100644 --- a/modes/zombies/server.cfg +++ b/modes/zombies/server.cfg @@ -1,4 +1,8 @@ // Before the Dawn Alpha 001. Private original assets are required. +// Override shared: sv_pure +set sv_pure "1" +set sv_mapRotationCurrent "" +set sv_randomMapRotation "0" set sv_hostname "CoD4 Before the Dawn Zombies" set sv_maxclients "12" set g_gametype "war" From 046c4e9d36a4e63bf830469f7d2bd0cde3890820 Mon Sep 17 00:00:00 2001 From: ghptc Date: Mon, 26 Oct 2026 17:27:10 -0300 Subject: [PATCH 2/2] docs(modes): clarify human ready up and required validation --- README.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index afb5006..761e917 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,9 @@ rotation silently. This is asset/script coverage, not certification of every map's competitive balance, navigation or bomb objectives. The companion engine preparation must enable `--allow-map-voting`, which removes -only Promod's original competition voting prohibition. Bots satisfy the original -Ready Up loop after selecting a playing team and class; human use-button and -recording checks remain. Ready Up is enabled, not bypassed. Completed matches +only Promod's original competition voting prohibition. Only eligible human players contribute to Ready Up; bots are excluded and a +bot-only lobby waits for a human. Human use-button and recording checks remain. +Ready Up is enabled. Completed matches exit through native rotation; individual S&D rounds still restart the same map. Passed player votes select the next map before shuffled rotation resumes. @@ -76,7 +76,8 @@ extracted scripts, binaries or credentials belong in this repository. and Killhouse remain excluded as documented by the original authors. Player capacity is explicitly 12; zombie counts are the mod's own wave policy, not Promod Auto-Fill. `bot_enable=0` prevents attaching the Promod integration. -Promod configuration is unchanged. Hardcore remains unavailable until separately +Promod retains its existing Bot Warfare auto-fill behavior with explicit mode-owned +settings. Hardcore remains unavailable until separately registered and qualified. The original archive SHA-256 is @@ -113,3 +114,14 @@ The candidate passed 53 local engine startup/map/preflight checks, including all companion generic string-latch correction. Evidence: `/tmp/cod4-btd-qualified-biebk8zp/results.json`. The unchanged Promod policy passed 53 independent real-runtime checks. No combat/homolog approval is implied. + + +## Required CI + +`Configuration tests` runs on hosted GitHub CI for PRs and pushes to master. It +uses the existing workspace catalog validator at exact revision +`37f83f6927c93a10a078fb4748c37e52d42f8e5a`; no private assets are needed. The active +[master ruleset](https://github.com/ghptc/cod4-config-server/rules/25857702) +requires this GitHub Actions check with an up-to-date branch and no bypass actors. +Local tests alone do not establish branch protection. See the workspace +restoration report for live CI evidence and Zombies real-client blockers.