Skip to content

feat(operations): add guarded host-only mode transitions - #15

Merged
ghptc merged 2 commits into
masterfrom
fix/zombies-safe-mode-controller
Oct 27, 2026
Merged

ghptc merged 2 commits into
masterfrom
fix/zombies-safe-mode-controller

Conversation

@ghptc

@ghptc ghptc commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Add a root-authorized host-only Promod/Zombies controller using existing snapshot_runtime/apply_runtime and runtime.py adaptation. It requires independently qualified immutable image records for both target and rollback, takes a nonblocking host lock, saves exact runtime/private backups and phase journals, verifies Docker/private runtime/local UDP plus an independent external probe, and restores the exact baseline once on failure. Interrupted/failed rollback transactions block new requests.

RCON activation remains disabled: existing invoker context does not establish authenticated ingress provenance. No privileged game plugin, Docker socket exposure, arbitrary game-request execution, build or download path is added. Root-owned installation, reviewed qualification/authorization/rollback evidence and actual-client qualification are mandatory; the controller has not been installed or enabled on EC2.

Depends on ghptc/cod4x-server#20 before merging packaging enforcement: original BTD death and wave-spawn defects are fixed using private pinned overlays; workspace packaging now rejects their absence/tampering. No config-server behavior change is needed.

Validation: operations suite passes with 50 Python tests, including 19 host-controller tests. Transaction fixtures cover mocked Promod→Zombies→Promod, exact rollback, failed rollback/interruption blocking, concurrent-operator denial, nonroot denial, malformed mode rejection and Docker/private/UDP checks. This does not claim real Compose transition qualification. Operator runbook describes the remaining deployment and gameplay gates, external observer, exact commands and manual recovery boundary.

Production remains on sha256:ed51e1a28884e49a0f9a73f51787797e61e931d6466e407be9137a60747ad16d. Preserved incident evidence, credentials, .state/approved and Zombies homologation are untouched. No merge or deployment is requested by this PR.

Test report and exact commands: docs/zombies-p0-test-report.md and docs/zombies-recovery-and-modes.md. Independent human review remains pending.

@ghptc
ghptc marked this pull request as ready for review October 27, 2026 04:12
@ghptc
ghptc merged commit 6c5b4b3 into master Oct 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant