Prime Rush — RL Harness Specification
1. Overview
Prime Rush is a commercially released battle royale. This harness exposes one player seat in a live match to an external process, which may be a reinforcement-learning policy or a language agent.
Nothing is simulated or re-implemented. The agent occupies a seat on the production game server, subject to the same physics, storm, loot and opponents as any other participant.
Deterministic pacing. The simulation advances only inside an agent's call; otherwise the world is frozen. Inference latency cannot affect outcomes, so results are reproducible.
Episode isolation. Each episode runs on a dedicated server instance. Episodes do not interact and may run in parallel. Startup is ~45 s.
1.1 Control loop
sequenceDiagram
autonumber
participant A as Agent / policy
participant H as Harness
participant G as Game server
Note over G: simulation halted
loop until episode ends
A->>H: observe
H->>G: read seat state
G-->>H: position, storm, enemies, items
H-->>A: JSON observation (raw numbers only)
Note over A,G: deliberation costs no match time —<br/>the world stays frozen however long it takes
A->>H: act + step(n)
H->>G: queue action, advance exactly n ticks
Note over G: runs n ticks, then halts
G-->>H: new state
H-->>A: observation, reward, done
end
A policy is charged for the game time it requests, never for the time it spends deciding. Two policies of equal skill and different inference speed produce identical trajectories.
2. Integration interfaces
Two interfaces over the same match.
2.1 Gym-compatible interface
For RL policies — PPO, CEM, or any consumer of a reset() / step() contract.
from env_client import RemoteEnv
with RemoteEnv("http://host:8080", token=TOKEN) as env:
obs = env.reset(seed=2000)
while True:
obs, reward, done, info = env.step({"my": 1.0, "run": True})
if done:
break
HTTP with bearer-token authentication. POST /v1/episodes allocates an episode; step and close are issued against it. GET /v1/health and GET /v1/metrics serve operational monitoring.
2.2 Tool interface
For language agents. Six tools over the Model Context Protocol: get_situation, turn_to_bearing, move, hold_position, shoot, finish. Item tasks add pick_up and hand_over.
get_situation returns raw world coordinates and no derived quantities — no bearing-to-objective, no distance-to-circle. Deriving those from position, heading and circle centre is the capability under measurement; a harness that pre-computed them would score every model alike.
2.3 Stack
Both interfaces converge on one bridge and one match. Reference policies and scored models take the same path, which is what makes their scores comparable.
flowchart TB
subgraph yours["Integrating system"]
P["RL policy<br/>PPO, CEM, ..."]
L["Language agent"]
end
subgraph iface["Integration layer"]
C["env_client.py<br/>HTTP + bearer token"]
M["MCP tool server<br/>6 tools, +2 for item tasks"]
end
T["Task layer<br/>handover rule · premise · scorer"]
B["Bridge<br/>newline-delimited JSON over TCP<br/>obs · act · step(n) · pickup · drop · reward"]
subgraph ours["Hosted by Datagame"]
S["Prime Rush dedicated server, headless<br/>AGENTENV build · tick gate installed<br/>one pod per episode · boot ~45 s"]
W["The match<br/>physics, storm, loot, bots, live players"]
end
P -- "reset() / step()" --> C
L -- "tool calls" --> M
C --> T
M --> T
T --> B
B --> S
S --> W
classDef yours fill:#e0e7ff,stroke:#6366f1,stroke-width:2px,color:#1e1b4b
classDef iface fill:#ccfbf1,stroke:#14b8a6,stroke-width:2px,color:#042f2e
classDef core fill:#fef3c7,stroke:#f59e0b,stroke-width:2px,color:#451a03
classDef ours fill:#1e293b,stroke:#475569,stroke-width:2px,color:#f8fafc
class P,L yours
class C,M iface
class T,B core
class S,W ours
style yours fill:#f8fafc,stroke:#cbd5e1,stroke-width:1px,color:#334155
style iface fill:#f8fafc,stroke:#cbd5e1,stroke-width:1px,color:#334155
style ours fill:#f1f5f9,stroke:#94a3b8,stroke-width:1px,color:#334155
Everything above the bridge is open to the integrating team. The game server is hosted by Datagame and reached as a service.
3. Action space
One dictionary per step. All fields optional, defaulting to no-ops.
| Field | Type | Description |
|---|---|---|
mx, my | float, −1…1 | Strafe and forward movement |
yaw, pitch | float | Look delta, in degrees |
run, jump, crouch | bool | Movement modifiers |
fire, reload, ads | bool | Weapon control |
loot | bool | Pickup input — see §7.1 before use |
Two actions name a target and are issued as separate calls:
| Call | Arguments | Notes |
|---|---|---|
pickup | point, instance | Both identifiers are supplied by the observation |
drop | kind | Item type identifier, taken from the agent's inventory |
Pickups are range-checked server-side against the player capsule: the agent must stand on the item, not beside it.
4. Observation
One JSON object per step, stable key ordering.
| Section | Contents |
|---|---|
self | Position, velocity, facing, aim vector, health, alive and downed state, grounded, vehicle occupancy |
weapon | Equipped weapon, ammunition, capacity, reloading, ADS, firing state |
storm | Current and next circle: centre, radius, signed distance to each edge, phase, round index, damage rate |
match | Players and teams remaining, elapsed time, completion state |
stats | Kills, downs, assists, damage dealt and received, current rank |
enemies | Six nearest opponents: distance, relative offset, alive state |
team | Squad members, up to four: distance, offset, alive, downed, health |
items | Eight nearest loot points within 120 units: point, instance, type, count, distance, offset |
bag | Agent inventory: item identifier, tier, count |
mateBags | Squad member inventories — server-authoritative, not limited to the agent's own |
Most tasks are scored against storm.distNextEdge — signed distance to the edge of the circle the storm is closing toward, negative inside. Scoring against the currently occupied circle makes standing still a winning strategy, because the inherited bot has already positioned itself.
5. Reward
Raw counters are in the observation. The shaped reward below is a default, expected to be replaced.
| Component | Weight |
|---|---|
| Damage dealt | +0.01 per point |
| Kill | +1.0 |
| Down | +0.5 |
| Damage received | −0.005 per point |
| Step outside the circle | −0.01 |
| Step alive | +0.001 |
| Death | −1.0 |
Damage received is weighted below damage dealt, making an even trade positive. Every input — damage, kills, downs, rank, signed distance to both circle edges — is in the observation, so an alternative reward needs no engine change.
6. Episodes and task definitions
One episode is one match on one seed. The default step advances six ticks at 12 Hz — 0.5 s of match time. The cap is 4000 steps.
Episodes do not begin at the parachute drop. The agent inherits a bot that has already played the approach, and control transfers at a configured circle radius. Starting at the drop would spend most of each episode on descent and looting, which is not the behaviour under measurement.
Six tasks, each with an independent scoring function.
| Task | Scoring basis |
|---|---|
zone_survival | Proportion of the window spent inside the circle the storm is closing toward |
storm_escape | As above, with the agent starting outside that circle |
waypoint_return | Travel at least 250 units from origin, then return to a position reported once and never repeated |
regroup | Time spent within 30 units of a living squad member while inside the target circle |
placement | Final standing, with the match played to completion |
deliver | An item reaching a squad member's inventory — in development, no results published |
6.1 Task premises
A task may declare a premise: a condition that must hold at handover for the task to be posed. Episodes failing it are discarded, not scored zero — scoring an unposed episode measures the environment rather than the agent.
The mechanism was added after a measured failure. In an earlier storm_escape run the handover condition was evaluated against an observer seat rather than the agent's own; in 18 of 20 episodes the agent was already inside the circle and scored zero for correctly standing still. Those published figures measured a harness defect, not model capability.
Any aggregate from this environment should report attempted, scored and discarded counts separately.
8. Available deliverables
| Item | Description |
|---|---|
| Environment adapter | Client library, task pack, grader, test suite |
| Trajectories | Per-episode observations, actions and rewards |
| Match records | Full match recordings, with a 3D replay viewer |
| Baselines | Random policy, hand-written control, and several frontier models scored on identical seeds |
The game server is hosted, not distributed.
9. Getting started
Running an episode requires three things: the client library, an authentication token, and a build tag. Access is granted on request.