Skip to main content
The platform master group runs the control-plane services and manages the Swarm that executes challenge work. The group help is Run master components (base/src/platform_network/cli_app/main.py:58). Every command below takes --config, defaulting to config/master.example.yaml unless noted.

Service commands

These commands start long-running services. Each loads settings, configures JSON logging from observability.log_json, and binds to the host/port from your config.
Runs the single public API. The proxy app also serves the admin and registry routers, so there is no separate admin listener (base/src/platform_network/cli_app/main.py:540-543). On startup it applies database migrations, then binds to master.proxy_host:master.proxy_port (base/src/platform_network/cli_app/main.py:531, :569-571).Default bind address is 0.0.0.0:8081 (base/src/platform_network/config/settings.py:26-27).
Runs the Docker broker that dispatches each evaluation as a short-lived Swarm job. It applies migrations, builds the Swarm broker service from your docker.* settings, then binds to docker.broker_host:docker.broker_port (base/src/platform_network/cli_app/main.py:580, :614-618).Default bind address is 0.0.0.0:8082 (base/src/platform_network/config/settings.py:63-64).
Runs the Swarm control-plane supervisor as a systemd Type=notify service (base/src/platform_network/cli_app/main.py:621-623). It builds the supervisor from settings, reports the number of scheduled tasks, and runs until exit (base/src/platform_network/cli_app/main.py:628-632).

Maintenance commands

Computes the master weight vector for the current epoch. By default it runs in a loop on the interval master.epoch_interval_seconds; pass --once to run a single epoch (base/src/platform_network/cli_app/main.py:815-818).
Walks the registry, resolves the remote digest for each active challenge image on the given --tag, and updates plus restarts challenges whose digest changed (base/src/platform_network/cli_app/main.py:736-762). Draft and disabled challenges are skipped (base/src/platform_network/cli_app/main.py:744).
Creates or updates the PRISM challenge record and, if present, updates the Agent Challenge record (base/src/platform_network/cli_app/main.py:765-781). PRISM is seeded at 30% emission and Agent Challenge at 15% (base/src/platform_network/cli_app/main.py:292-293).

Swarm worker management

The platform master worker subgroup wraps docker Swarm node commands so you can enroll, label, and retire job nodes. The group help is Manage Swarm workers (CPU/GPU job nodes) (base/src/platform_network/cli_app/main.py:64).
worker token selects the Swarm role with --role worker|manager. The workload class (cpu/gpu) is set separately with worker label --workload cpu|gpu after the node joins (base/src/platform_network/cli_app/main.py:676).

Master architecture

The control-plane services these commands run.

Swarm

How worker nodes execute challenge and evaluation jobs.

Configuration examples

The annotated master.example.yaml these commands load.

Settings reference

Every master.* and docker.* key.