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.

FieldTypeDescription
mx, myfloat, −1…1Strafe and forward movement
yaw, pitchfloatLook delta, in degrees
run, jump, crouchboolMovement modifiers
fire, reload, adsboolWeapon control
lootboolPickup input — see §7.1 before use

Two actions name a target and are issued as separate calls:

CallArgumentsNotes
pickuppoint, instanceBoth identifiers are supplied by the observation
dropkindItem 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.

SectionContents
selfPosition, velocity, facing, aim vector, health, alive and downed state, grounded, vehicle occupancy
weaponEquipped weapon, ammunition, capacity, reloading, ADS, firing state
stormCurrent and next circle: centre, radius, signed distance to each edge, phase, round index, damage rate
matchPlayers and teams remaining, elapsed time, completion state
statsKills, downs, assists, damage dealt and received, current rank
enemiesSix nearest opponents: distance, relative offset, alive state
teamSquad members, up to four: distance, offset, alive, downed, health
itemsEight nearest loot points within 120 units: point, instance, type, count, distance, offset
bagAgent inventory: item identifier, tier, count
mateBagsSquad 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.

ComponentWeight
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.

TaskScoring basis
zone_survivalProportion of the window spent inside the circle the storm is closing toward
storm_escapeAs above, with the agent starting outside that circle
waypoint_returnTravel at least 250 units from origin, then return to a position reported once and never repeated
regroupTime spent within 30 units of a living squad member while inside the target circle
placementFinal standing, with the match played to completion
deliverAn 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

ItemDescription
Environment adapterClient library, task pack, grader, test suite
TrajectoriesPer-episode observations, actions and rewards
Match recordsFull match recordings, with a 3D replay viewer
BaselinesRandom 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.