# Recursive Self-Improving Game Agent: Technical Report

*Online harness improvement, online decision model fine-tuning, and speculation with reflexes in real-time Palworld combat. Updated November 26, 2026.*

<a id="game-agent"></a>
<a id="game-agent-architecture"></a>
<a id="how-the-game-agent-acts"></a>

## The Agent at a Glance

![How the agent plays Palworld. The planner sets a goal, the decision model selects an available action, and the execution layer acts in the game. The game state informs the next decision.](img/playing-agent.svg)

*Each action produces a new game observation for the next decision.*

<details>
<summary>Three layers of the game agent</summary>

| Layer | Responsibility | Timing / interface |
|---|---|---|
| **Planner · System 2** | Reads the game state and sets the goal in natural language | Reasoning model; outside the rapid action loop |
| **Decision model · System 1** | Chooses from the currently offered combat actions | Small 4B model on a local GPU; roughly one choice per 2 seconds |
| **Code execution · System 0** | Carries out learned skills and fight actions, including reflexes for selected conditions | Runs without a model call. The real-time execution study checked reflexes every 100 ms |

</details>

## Research Summary

How can an agent learn from a lost fight and still react in time during the next one? In Palworld, two **Recursive Self-Improvement (RSI)** loops use fight records to [refine the harness](#harness-loop) and [train the decision model](#finetuning-loop). In combat, [speculative actions and reflexes](#speculation) let the agent prepare its next move or interrupt an action when danger arrives.

### See What Changed Across Three Tower Bosses

Watch the agent fight with the harness skills it learned for each boss. Model weights stay fixed during harness improvement.

<video src="video/rsi-bosses-intro.mp4" poster="video/intro-v3-poster.png" controls preload="none" width="100%"></video>

*Video (76 s). Palworld’s first three tower bosses, **Zoe & Grizzbolt**, **Lily & Lyleen** and **Axel & Orserk**. The left side shows the agent without RSI. The right shows the same agent after RSI, using the skills it learned for each boss.* [Open the three-boss comparison](video/rsi-bosses-intro.mp4)

### Contents

- [The Agent at a Glance](#game-agent)
- [The Challenge](#1-the-challenge)
- [Overall RSI System Architecture](#rsi-architecture)
- [Learning from Fights](#rsi)
  - [Online Harness Improvement](#harness)
    - [The RSI Loop](#harness-loop)
    - [Explore autonomous harness improvement](https://palagents.dev/rsi-design.html)
    - [Model Configuration](#model-configuration)
    - [Learning & Evidence](#learning--evidence)
    - [Cost to Reach a Target Win Rate After Adding System 1](#system1-milestone)
  - [Online Decision Model Fine-Tuning](#finetuning)
    - [The RSI Loop](#finetuning-loop)
    - [Zero-Shot Transfer Across Bosses](#zero-shot-transfer)
    - [Cost to Reach a Target Win Rate After Fine-Tuning System 1](#system1-budget)
    - [Gains from RL After SFT](#rl-training)
- [Acting in Real Time: Speculation & Reflexes](#speculation)
  - [Results & Analysis](#speculation-results)
- [Impact: Beyond the Boss Fight](#impact)
- [Comparison with Related Work](#related-work)

<a id="at-a-glance"></a>

### How the Agent Learns and Acts

| Study | Observed win rate | Comparison |
|---|---|---|
| Learning from fights · [Online harness improvement](#harness) | **0% → 80%** | Boss 1, before harness improvement and in frozen validation after 27 rounds. |
| Learning from fights · [Online decision model fine-tuning](#zero-shot-transfer) | **0% → 40%** | Zero-shot transfer to Boss 2 with the Boss 1 harness policy rules disabled. The intermediate model, trained with supervised fine-tuning alone, had a 15% win rate. |
| Acting in real time · [Speculation & reflexes](#speculation-results) | **80% → 90%** | Boss 1, standard loop vs. speculation, reflexes and a wider action menu. Both groups used the round-22 harness and the same base decision model, with ten fights per group. |

In that real-time study, **68% of decisions needed no fresh model response**.

<a id="1-the-problem"></a>

## 1. The Challenge

An AI agent plays **Palworld**, a commercial 3D open-world game, on its own and in real time. Our first test is the tower boss **Zoe & Grizzbolt**. In each attempt:

- The player has **one life** and a party of Pals, with **only one Pal out at a time**.
- The boss has telegraphed attacks that can end the fight in one or two hits.

This belongs to a hard class of problems, the same class as robotics and live operations rather than turn-based benchmarks:
- **Real-time control:** a decision every couple of seconds.
- **Partial observation:** the agent sees only part of the arena.
- **Delayed consequences:** a bad call shows up seconds later.
- **High variance:** the same fight can go very differently each time.

The agent may do only what a normal player can do. We also tested whether the same harness refinement loop could learn skills specific to the second and third tower bosses, **Lily & Lyleen** and **Axel & Orserk**.

<a id="2-the-baseline"></a>
<a id="2-game-agent-design"></a>
<a id="rsi-architecture"></a>

## 2. Overall RSI System Architecture

![The game agent sends fight logs to the learning system. Verified skills feed back into the harness, fight records supply training examples for the decision model, and speculative actions prepare responses during play.](img/rsi-full-loop.svg)

Read the diagram from the game agent on the left to its fight log on the right. In the [harness RSI loop](#harness-loop), recurring failures trigger changes to prompts, action rules or code. An independent verifier tests each change before it becomes a skill the agent can use. In the [decision model RSI loop](#finetuning-loop), recorded decisions and their outcomes become training examples. A candidate model must pass a held-out decision test and a live trial before its weights enter play. During a fight, [speculative actions](#speculation) use the current skills and model to prepare responses ahead of time.

### Before Improvement

**Against Zoe & Grizzbolt, the initial agent did not win a fight.** On average it survived **39 seconds** and removed about **4%** of that boss's health.¹

<video src="video/baseline-bosses-weaknesses.mp4" poster="video/baseline-v2-poster.png" controls preload="none" width="100%"></video>

*Video (40 s). The baseline on all three bosses shows missed dodges, time spent in the blast zone or within reach at low health, slow fights and knock-outs. The Lily & Lyleen clip ends in a win at 14% player health. No lost round-0 attempt against that boss was kept on video.* [Open the three-boss baseline film](video/baseline-bosses-weaknesses.mp4)

<div style="page-break-after: always;"></div>

<a id="3-rsi-recursive-self-improvement"></a>

<a id="3-the-rsi-loop"></a>
<a id="rsi"></a>

## 3. Learning from Fights

The same fight logs support two learning loops. The [harness RSI loop](#harness-loop) uses repeated failures to propose changes to the agent’s prompts, rules and code. The [fine-tuning RSI loop](#finetuning-loop) uses recorded choices and outcomes to update the decision model’s weights. Each loop checks its candidate before using it in later fights. The [real-time execution study](#speculation) measures how quickly the agent can put a decision into action.

<a id="step-1-online-harness-improvement"></a>
<a id="harness"></a>

### Online Harness Improvement

The agent learns from its mistakes by changing its harness: the prompts, action menu, fight code and per-boss settings that shape how it plays.

<a id="harness-loop"></a>

#### The RSI Loop

![Six stages of harness improvement. The agent plays, the observer finds problems, the event scheduler groups repeated failures, the improver writes a skill, the verifier checks whether play improves, and kept skills go live in the next round.](img/rsi-loop-detail.svg)

**Online harness improvement uses System 2 models around the playing agent:**
- The **observer** reads every fight.
- The **improver** writes fixes.
- The **round reviewer** looks for bigger patterns across a whole round.

Every candidate fix is tried in **real play**. The verifier keeps a fix only if it measurably improves play. Kept skills shape the next round of fights, which supplies fresh evidence for the next improvement. The verifier’s scoring rules and the decision model’s weights stay fixed throughout this loop.

<a id="4-how-one-improvement-is-made"></a>

<a id="how-one-improvement-is-made"></a>

Follow one failure through the event scheduler, the improver and the locked judge, and see how skills carry over to later bosses. [Explore autonomous harness improvement](https://palagents.dev/rsi-design.html) · [Read the design in Markdown](design/RSI_DESIGN_EXPLAINED.md)

<a id="5-configuration"></a>

#### Model Configuration

The following roles support online harness improvement. System 2 models provide inference with fixed weights.

The model used for System 1 in our experiments is **KEV** (base checkpoint `kev-4b`). It runs locally and selects a tactical action from the options supplied by the harness. “Jev-style” describes this [action-selection role](https://docs.typesafe.ai/api/system-one). The [fine-tuning study](#finetuning) trains the model on recorded fight outcomes.

**Reported models and responsibilities during harness improvement**

| Component | Layer | Job | Model used in this study |
|---|---|---|---|
| **Planner** | System 2 | Reads the game and sets the goal in plain words | Claude Sonnet, low reasoning (Claude Opus in the earlier training setup¹) |
| **Decision model** | System 1 | Picks every fight action, every ~2 seconds | Small, fast off-the-shelf model (4B parameters) on one local GPU; not fine-tuned |
| **Observer** | System 2 (RSI) | Reads every fight and reports what went wrong | Claude Opus, high reasoning |
| **Improver** | System 2 (RSI) | Turns a reported problem into a fix | Claude Opus, very high reasoning |
| **Round reviewer** | System 2 (RSI) | Looks for patterns across a whole round | Claude Opus, very high reasoning |
| **Judge** | Locked | Keeps or rolls back each fix | No model: fixed scoring rules that RSI cannot edit |

**The System 2 models can be swapped.** They work only through plain-language prompts and written fixes, so alternative reasoning backends can be connected, including DeepSeek, Qwen, GLM or GPT models. This report does not compare the quality of those alternatives. The loop already has a second backend for open models. The judge doesn't depend on any model, so a fix is held to the same bar whichever model proposed it.

**The System 1 model stays small and fast.** It has to answer within the game's ~2-second rhythm, so it runs locally. Fine-tuning trains the model on verified combat lessons.

The [Boss 2 transfer test](#zero-shot-transfer) uses the final Boss 1 harness. On the first boss, the [fine-tuning evaluation](#finetuning-evaluation) uses the round-23 configuration, and the [real-time execution study](#speculation-results) uses the round-22 configuration.

#### Learning & Evidence

<a id="learning-skills-through-rsi"></a>
<video src="video/rsi-boss1-learning-chart.mp4" poster="video/learning-chart-poster.png" controls preload="metadata" width="100%"></video>

*[Watch 24 seconds of first-tower training, with fight clips and skills from successive rounds.](video/rsi-boss1-learning-chart.mp4)*

With learning frozen, the agent won **80%** against Zoe & Grizzbolt, **100%** against Lily & Lyleen and **80%** against Axel & Orserk across five held-out fights per boss, with one attempt per fight.

<details>
<summary>Pre-Improvement Performance and Validation Results Across Three Towers</summary>

Each boss started with its own save point and a short brief. All three used the same loop and models. RSI developed the boss-specific fighting skills. Between bosses we fixed bugs in the loop and added game sensors.

| Measurement | Zoe & Grizzbolt | Lily & Lyleen | Axel & Orserk |
|---|---|---|---|
| Measured win rate before refinement | 0% | 60% | 0% |
| Held-out win rate after refinement | **80%** | **100%** | **80%** |
| Boss health removed per fight | 98% | 100% | 95% |
| Player health kept | 57% | 88% | 60% |
| Fight length | 4.2 min | 3.2 min | 3.4 min |
| Win rate on earlier bosses | — | Boss 1: 100% | Boss 1: 100% · Boss 2: 100% |
| Training rounds | 27 | 7 | 19 |
| Skills kept | 34 | 3 | 28 |
| Tokens used | ~120M | ~17M | ~160M |

The pre-improvement figures come from the first round on each boss, before the agent had any skills specific to that fight. Lily & Lyleen had the strongest starting performance at **60%**. With the new skills active, we also replayed one Boss 1 fight after training on Boss 2 and two fights per earlier boss after training on Boss 3.

Against Zoe & Grizzbolt, the agent won 93% of the 14 training attempts in rounds 24–27. The [round summaries](data/boss1-rounds.json) cover this first-tower study. Against Axel & Orserk, one party Pal was level 30 in the initial evaluation and level 32 in validation. Some third-boss training rounds were replayed after a GPU fault.

¹ *Rounds 1–23 used an earlier retry-based setup; rounds 24–27 used a later setup. The exported counts vary by round, so they do not establish one fixed attempt protocol across all training rounds. Frozen validation used one attempt per episode.*

</details>

##### What the Harness Learned

RSI kept **34 skills** for the first-tower fight. The opening comparison shows the skills in action across the three bosses, from timing a dodge against Grizzbolt to sprinting clear of Orserk’s laser walls. [Revisit the three-boss comparison](video/rsi-bosses-intro.mp4)

<div style="page-break-after: always;"></div>

<a id="system1-milestone"></a>

#### Cost to Reach a Target Win Rate After Adding System 1

In Opus-RSI, both agents used RSI to refine their harness against Grizzbolt. **With System 1**, the local decision model (KEV) chose a move from the harness menu. **Without System 1**, the combat rules in the harness mapped the current game state directly to an action (code-as-policy). RSI improved these rules between fights. Both agents first passed frozen validation with a **60% win rate**. The agent using KEV reached that milestone six rounds earlier.

![Cumulative System 2 tokens against elapsed time until each Grizzbolt run first passed frozen validation.](img/grizzbolt-system1-milestone.png)

*Each point marks one improvement round. With KEV choosing actions (blue), the run passed at round 2, using 3.5M tokens in 61 minutes. With rule-based action selection (gray), it passed at round 8, using 17.6M tokens in 4 hours 28 minutes.*

We counted cumulative System 2 inference tokens through the first passing round. The KEV run used **80% fewer tokens** to that point. When both runs continued to round 9, their ten-round totals reached **20.0M with KEV and 20.4M without it**. Each configuration ran once under slightly different conditions.

<details>
<summary>Other measured runs on Lyleen and Orserk</summary>

- **Lyleen.** With KEV, round 3 reached 100% wins in training at 6.35M cumulative tokens. Frozen validation on Lyleen was still pending, and the Grizzbolt regression check was lost that round. Without KEV, the run reached 80% in frozen validation at 14.4M tokens.
- **Orserk.** Without KEV, the run had spent 41.1M tokens through round 20 and had yet to pass. The corresponding Opus-RSI run with KEV has yet to be measured.

</details>

<a id="rsi-cost"></a>

The [RSI token usage breakdown](https://palagents.dev/rsi-token-usage.html?lang=en) details System 2 use by role and by skill-development activity across all 27 improvement rounds and validation in the original first-tower study.

<div style="page-break-after: always;"></div>

<a id="6-fine-tuned-decision-model"></a>

<a id="step-2-online-decision-model-fine-tuning"></a>
<a id="finetuning"></a>

### Online Decision Model Fine-Tuning

Fine-tuning lets the decision model reuse combat experience against a new opponent and can reduce the System 2 token budget needed to reach a target win rate. We measured transfer from Grizzbolt to Lyleen and estimated token budgets from Astra-RSI rounds.

<a id="finetuning-loop"></a>

#### The RSI Loop

At the end of a round, the fine-tuning loop checks whether enough varied combat decisions have accumulated to train a candidate model. It checks the data, trains the model, tests it on held-out decisions and evaluates it in live fights. A candidate that passes becomes the model for subsequent fights; their outcomes provide the next round of examples. A failed update restores the previous model and policy rules.

In the reported evaluation, the team replayed the readiness check on recorded rounds, then trained the candidate models and tested them in live fights. A full update within one uninterrupted series of fights remains to be tested.

![Six stages of online fine-tuning: log live play, check readiness at round end, let the improver prepare the update, then pass three gates for data checks, training and held-out evaluation, and a live trial. Failed updates restore the previous model and policy rules; action-executability checks remain.](img/finetune-loop.svg)

*The RSI loop for decision model fine-tuning. When a candidate passes, the harness removes the external policy rules it learned to replace. Actions still have to pass execution checks.*

<details>
<summary>Training thresholds, triggers and changes to action rules</summary>

- **When the data is ready (3 checks):**
  - the movement and bow actions haven't changed for at least 2 rounds, so past fight outcomes still apply;
  - at least 800 decisions are logged, with 25 or more real examples in 6 or more combat situations;
  - at least 6 rounds have passed since the last fine-tune.
- **Why train now (2 triggers):**
  - 4 or more action filters have piled up in the menu, or
  - the logged 5-second outcomes show a different action losing less health or dealing more damage than the current rule.
- **What is removed after training:**
  - the policy filters: no more bans on repositioning at close range, at low health, or with no Pal out;
  - the whole rule list and the per-action hints in the prompt.

</details>

<a id="finetuning-evaluation"></a>

<a id="finetuning-methods"></a>
<a id="how-the-decision-model-is-trained"></a>

In the first-tower comparison, the round-23 configuration with policy rules took **200 ms per decision**, and the stage-3 fine-tuned configuration without those filters took **117 ms**.

<details>
<summary>Boss 1 evaluation tables and comparison footage</summary>

**Live boss fights.** For this Boss 1 comparison, we fine-tuned the same model in three successive stages. Stage 1 learned the first eight action rules, stage 2 refined when to fire the bow, and stage 3 added the full rule set and better action choices against a stationary boss.

Each fine-tuned stage played ten fights against Zoe & Grizzbolt (12,900 health) from the same save, with checks for executable actions still active.

| Decision model | Rules around it | Boss health removed per fight | Player health lost per minute | Decision time |
|---|---|---|---|---|
| Off-the-shelf, before RSI | None | 4% | 124% | 192 ms |
| Off-the-shelf (round 23) | 10 filters + rule list | 67% | 30% | 200 ms |
| Fine-tuned, stage 1 (round 10) | None | 78% | 25% | 110 ms |
| Fine-tuned, stage 2 (round 16) | None | 81% | 25% | 107 ms |
| **Fine-tuned, stage 3 (round 23)²** | None | **86%** | **22%** | 117 ms |

The stage 3 configuration removed 86% of boss health per fight, compared with 67% for the rule-based configuration. Player health lost per minute fell from 30% to 22%, with a prompt 38% shorter. The before-RSI row gives historical context. The separate harness study continued for four more rounds before frozen validation.

**Offline exam.** 444 held-out fight decisions, with every prompt rule and filter removed. Each cell is the share of decisions where the model picked the right action.

| Decision model | Life-or-death cases | Standard rules | Better moves from outcomes | Overall |
|---|---|---|---|---|
| Off-the-shelf | 10% | 62% | 8% | 51% |
| Fine-tuned, stage 1 (round 10) | 100% | 99% | 0% (not yet found) | 79% |
| Fine-tuned, stage 2 (round 16) | 99% | 99% | 0% (not yet found) | 79% |
| **Fine-tuned, stage 3 (round 23)²** | **100%** | 95% | **99%** | **96%** |

- **Stages:** in the reported stage evaluation, the readiness check examined logged training rounds. It stayed quiet for rounds 1 to 9, then called for a fine-tune three times, after rounds 10, 16 and 22.² Each stage continued from the previous stage's model:
  - stage 1 distilled the first 8 rules (644 examples);
  - stage 2 added the bow-timing fixes (657 examples);
  - stage 3 used the full rules plus the better moves found when the boss stands still (1,257 examples).

**Stage 3 scored highest offline** (96% overall, against 79% for stages 1 and 2). It kept 95% on the standard rules that stages 1 and 2 had taught at 99%, while choosing correctly on 99% of the better-move examples and all held-out life-or-death cases.

**Changes to the decision model and its action menu**

By round 23 the base model used ten action filters and a priority list. The filters often left two or three choices. The model followed the list 98% of the time, even when another move would have been better. The 67% boss health removed in the live table was measured in a separate evaluation of that configuration.

| | Before: rules around the model | After: fine-tuned model, standard action menu |
|---|---|---|
| Prompt | About 1,300 characters: a 6-step "first match" rule list and a "pick when…" hint on every option | 803 characters: plain action names and one "boss standing still" flag |
| Hidden actions | 10 filters hide actions before the model sees them | Only actions that can't run, such as shooting while the bow is blocked |
| Where the choice comes from | The model copied the rule list 98% of the time | The model's own weights |
| Life-or-death cases right once the rules are taken away | 10% | 99–100% |
| Decision time | About 200 ms | About 110 ms |

**Comparison footage**

<video src="video/finetune-boss1-compare.mp4" poster="video/finetune-poster.png" controls preload="metadata" width="100%"></video>

*Video (about 36 s): Zoe & Grizzbolt with two decision models, side by side. The base model is on the left and the fine-tuned model is on the right. Some actions are explicitly labelled as a safety reflex rather than a model choice. This illustrative footage is separate from the controlled evaluations above.* [▶ Open the video file](video/finetune-boss1-compare.mp4)

² *The readiness check called for the third fine-tune after round 22. The stage 3 model shown was trained one round later, on the fights recorded through round 23.*

</details>

<a id="zero-shot-transfer"></a>

#### Zero-Shot Transfer Across Bosses

**The first-boss training transferred to one new opponent.** The agent faced **Lily & Lyleen** with no bow, no Boss 2 training and no Boss 2 RSI loop. All four groups used the same execution code. In three groups, the policy rules developed through RSI on Boss 1 were disabled. The base, SFT and SFT + GRPO models each chose directly from the actions they could execute. The fourth group paired the base model with the Boss 1 round-22 rules, which filtered its choices.

| Decision model | Menu and rules on Boss 2 | Boss 2 win rate |
|---|---|---:|
| Base KEV (`kev-4b`) | Boss 1 harness policy rules disabled | 0% |
| Base KEV (`kev-4b`) | Optimized Boss 1 harness ([80% held-out Boss 1 win rate for the final version](#learning--evidence)) | 15% |
| Boss 1 SFT (`kevboss-plain-v1`) | Boss 1 harness policy rules disabled | 15% |
| Boss 1 SFT + GRPO (`kevboss1-grpo-v1`) | Boss 1 harness policy rules disabled | **40%** |

*Base KEV with the Boss 1 rules disabled and the GRPO model each fought 10 times. Base KEV with round-22 rules and the SFT-only model each fought 20 times.*

Supervised fine-tuning (SFT) trains the model on labeled action choices. Group Relative Policy Optimization (GRPO) adds reinforcement learning (RL), using relative rewards to update the model’s action preferences. With the Boss 1 harness policy rules disabled, the observed win rate was **25 percentage points higher with GRPO** than with SFT alone (40% vs. 15%).

The separate [target-specific Boss 2 harness study](#learning--evidence) reached a 100% held-out win rate after seven rounds of Boss 2 RSI.

<details>
<summary>Earlier two-model comparison: survival and health loss in ten fights per model</summary>

| Decision model | Player survival time (s) | Player health lost (% per minute) |
|---|---:|---:|
| Base KEV (`kev-4b`) | 66.1 ± 14.1 | 73.08 ± 20.15 |
| Boss 1 SFT + GRPO (`kevboss1-grpo-v1`) | 192.9 ± 59.9 | 33.93 ± 11.94 |

Survival time runs from the start of a fight to its recorded end. In wins, timing stops when the boss is defeated. Both metrics are reported as mean ± standard deviation across ten fights per model.

</details>

<a id="system1-budget"></a>

#### Cost to Reach a Target Win Rate After Fine-Tuning System 1

In the Astra-RSI experiments, fine-tuning KEV raised the observed win rates from **60% to 85%** on Grizzbolt, **90% to 100%** on Lyleen and **50% to 75%** on Orserk. We used the higher win rate on each boss as its target. We then used Astra-RSI round counts and token usage to estimate the budget for three ways of choosing combat actions: RSI-refined rules (code-as-policy, without KEV), the base KEV model and fine-tuned KEV. The **60%** Grizzbolt starting point belongs to this dataset. The [separate base, SFT and GRPO evaluation](#rl-training) reported a **29%** Boss 1 baseline.

![Estimated System 2 tokens for each boss with fine-tuned KEV, base KEV and no KEV. Fine-tuned KEV has the lowest projected budget on all three bosses.](img/system1-token-budget.png)

*Projected System 2 inference tokens needed to reach each boss’s target win rate. The vertical axis uses a logarithmic scale. For Grizzbolt, Astra-RSI projects 3.5M tokens at 85% wins. The [Opus-RSI run measured 3.5M tokens](#system1-milestone) through the round that reached 60% wins.*

| Opponent and target win rate | With fine-tuned KEV | With base KEV | Without KEV (code-as-policy) | Extra tokens with base KEV vs. fine-tuned KEV |
|---|---:|---:|---:|---:|
| Grizzbolt · 85% | 3.5M | 5.0M | 24.9M | 1.5M |
| Lyleen · 100% | 6.35M | 7.1M | 18.0M | 0.75M |
| Orserk · 75% | 27.2M | 40.3M | 51.4M+ | 13.1M |

All three budget columns are **estimates of Astra-RSI System 2 inference tokens** at the listed targets. For a 75% win rate against Orserk, we estimate 40.3M tokens with the base decision model and 27.2M with the fine-tuned model. Fine-tuning would save **13.1M tokens, about 33% of the base model’s budget**. The estimate excludes GPU compute for training and running the decision model locally.

<a id="rl-training"></a>

#### Gains from RL After SFT

The live-fight study compares the base decision model, the model after SFT, and the model after additional RL with GRPO. The damage ratio measures boss damage dealt per 1% of player HP lost. Higher values mean the agent deals more damage for the same health loss.

| Boss | Base<br>Win rate | SFT<br>Win rate | SFT + GRPO<br>Win rate | Base<br>Damage ratio | SFT<br>Damage ratio | SFT + GRPO<br>Damage ratio |
|---|---:|---:|---:|---:|---:|---:|
| Boss 1 · Grizzbolt | 29% | 70% | **85%** | 0.92 | 1.09 | **1.55** |
| Boss 2 · Lyleen | 90% | 100% | 100% | 2.33 | 2.24 | 2.24 |
| Boss 3 · Orserk | 50% | 75% | 75% | 1.45 | 1.73 | **2.39** |

Bold values mark observed increases from SFT to SFT + GRPO. Each fine-tuned model played 20 fights per boss. The 29% Grizzbolt baseline is a separately reported rate. The GRPO model's first ten Grizzbolt fights had a 90% win rate and are included in the full evaluation.

Against Grizzbolt, the observed win rate rose by 15 percentage points after GRPO, and the model dealt 42% more boss damage per 1% of player HP lost. Against Orserk, the damage ratio rose by 38% while the win rate held at 75%. Against Lyleen, SFT and SFT + GRPO recorded the same win rate and damage ratio. The separate [zero-shot transfer test](#zero-shot-transfer) measures performance on Lyleen after training on Grizzbolt alone.

<div style="page-break-after: always;"></div>

<a id="7-speculative-actions-and-reflexes"></a>

<a id="step-3-speculation--reflexes"></a>
<a id="speculation"></a>

## 4. Acting in Real Time: Speculation & Reflexes

**Choosing the right action is not enough if it arrives too late: prepare the next move in advance and let urgent reactions happen without waiting for a model response.**

This timing study uses the round-22 harness and the same off-the-shelf decision model in both groups. The decision model takes about 0.2 seconds to answer, creating a wait between actions. One wait is short, but a fight has about 80 decisions, and a boss charge leaves little more than a second to react. Two additions take this wait off most decisions, with no retraining:
- **Speculative actions:** while an action runs, the decision model answers ahead of time for the few ways the fight may look when it ends. If a prepared answer passes the state-match and freshness checks, the next action can use it without another foreground model call.
- **System 0, reflexes:** four ordered responses to selected states, such as a charge or a downed Pal. They are checked every 100 ms and do not require another model call. Avoiding another model call does not eliminate sensing, dispatch or movement latency.

### How a Speculative Decision Is Made

![Timeline: the baseline waits for the model after each action; the speculative agent predicts up to three futures while the action runs, checks state match and freshness, then uses a prepared answer or makes a live call](img/spec-timeline.png)

1. **Predict.** Shortly after an action starts, the agent projects where the action will leave the player, combined with four ways the fight may change: the boss holds its distance, charges in or backs off, or the player's shot is blocked. It keeps up to 3 distinct futures.
2. **Answer ahead.** The decision model answers each future in the background while the action is still running.
3. **Check.** When the action ends, the agent compares the real fight with each future on five coarse signals: danger, health, distance, Pal ready and can shoot. A prepared state passes the match check when all five agree. These coarse signals do not prove that the world is identical to the prediction or that the action is safe. The answer must also be fresh: at most 0.7 s old in danger and up to 3 s when calm.
4. **Use or ask.** If a fresh prepared answer matches, it is used without a new foreground model call. If none matches, the model is asked live on the current state. Sensing, the status-check interval, dispatch and execution still contribute latency.

<video src="video/baseline-vs-speculative-explained.mp4" poster="video/spec-pause-poster.png" controls preload="metadata" width="100%"></video>

*Video (about 20 s): standard action-loop gameplay on the left and speculative-action gameplay on the right. Added pauses illustrate prediction, preparation and matching; they are not a reconstruction of this fight's decision trace. The controlled comparison is reported below.* [▶ Open the video file](video/baseline-vs-speculative-explained.mp4)

### System 0: Reflexes

Speculation can reduce foreground waiting for the decision model, but the prepared action is selected when the current action ends. A boss charge can start in the middle of an action, when no decision is due. System 0 reflexes run in the [game agent’s execution layer](#2-game-agent-design), where they check for urgent conditions on each status update.

![Three decision layers: System 0 checks selected states every 100 ms without a model call; System 1 makes tactical choices live or uses prepared answers; System 2 sets goals. All three layers still depend on observation and action-execution time](img/spec-layers.png)

Reflexes are checked first, on every fight status (every 100 ms). They cover selected conditions; every other choice stays with the decision model. Matching a rule is not a general safety guarantee. Two of them can cut a running action short when a charge or a close hit comes mid-action:

![A charge starts in the middle of a bow shot: with the decision model only, the player waits for the model or for the action to end and dodges late; with System 0, the reflex cuts the shot short and dodges at once. In 10 fights: 102 charge dodges by the reflex, 67 of them cutting an action short, 1 hit taken](img/spec-reflex-cut.png)

There are four rules, checked in order; the first that fits acts:

![The four reflex rules in order: dodge the charge, replace a downed Pal, leave point-blank danger, take the safe shot; otherwise the decision model decides](img/spec-reflexes.png)

**Future refinement:** apply the proposal, live-test, and keep-or-rollback cycle to reflex policies themselves.

<a id="8-results-and-analysis"></a>
<a id="speculation-results"></a>

### Results & Analysis

Both groups use the round-22 harness and off-the-shelf decision model with the planner disabled. The control group achieved an 80% win rate with the standard action loop. The experimental group achieved a 90% win rate with speculative actions, reflexes and the full executable-action menu enabled together.⁴ This test measures their combined effect. The planned ablations will estimate each contribution.

**Planned ablation study.** We plan controlled comparisons to measure the separate contributions of harness improvements, online fine-tuning, speculation and reflexes, holding the remaining setup fixed. For speculation and reflexes, we will compare four conditions: neither, speculation only, reflexes only, and both, using the same save, RSI skills, decision model and action menu. We will test action-menu changes separately and compare win rate, boss health removed, player damage and decision waiting time.

![Results over 10 fights each: fights won 80% to 90%, player health lost 113% to 69%, panic escapes 12.9 to 0.8 per fight; 68% of decisions need no additional foreground model wait](img/spec-results.png)

| | RSI agent · standard loop | Speculation + reflexes |
|---|---|---|
| Win rate | 80% | **90%** |
| Player health lost per fight³ | 113% | **69%** |
| Length of a won fight | 4.3 min | **3.8 min** |
| Bow hits per fight | 35 | **49** |
| Decisions with no new foreground model wait | 0% | **68%** |
| Mean wait per decision | 179 ms | **133 ms** |
| Live model-call latency | About 180 ms | About 410 ms |

**Why it matters:**
- **Fast answers where they count.** About 68% of decisions need no additional foreground model call: roughly 45% come from reflexes and 24% from prepared speculative answers, which cover 44% of decisions left to the model. Rounded components need not sum exactly to the reported total. The agent dodges 2.4 times as many charges (4.4 → 10.7 per fight, almost all of them from the dodge reflex), almost stops panic escapes (12.9 → 0.8) and reduces cumulative health lost per fight from 113% to 69%.
- **No retraining.** The decision model's weights are unchanged; speculation only changes *when* it is asked. These results apply to the off-the-shelf model. Testing the same execution changes with a fine-tuned model is future work.
- **Task-specific adaptation.** Predictions about the opponent use distance and closing speed. Applying this approach elsewhere requires an appropriate projection of the player's action and suitable match signals. A failed check falls back to a live call; a matching coarse state does not guarantee the predicted action is safe. Cross-game performance has not been evaluated in this report.

³ *Every drop in health is counted, so the total can pass 100% when the player heals during the fight.*

⁴ *Win counts reflect the project’s updated figures; other metrics remain as reported. Supporting run records are pending. 10 fights per arm against Zoe & Grizzbolt, from the same save point, with the RSI skills from training round 22 and the same decision model; no planner or other model in either arm. With reflexes guarding the clear-cut dangers, the speculative arm also offers the decision model every action that can run, instead of the shortlist RSI had learned. With 10 fights per arm, the gap in fights won is not yet statistically firm (p = 1.00, Fisher's exact test). Live calls take longer with speculation (0.18 → 0.41 s) because the speculative calls share the same GPU.*

<a id="impact"></a>

<a id="4-impact-beyond-the-boss-fight"></a>

## 5. Impact: Beyond the Boss Fight

A decision policy learned against Grizzbolt carried over to Lyleen. With the first boss’s policy rules disabled and no training on the second boss, the base model won 0% of fights and the fine-tuned model won 40%. [See the zero-shot transfer experiment.](#zero-shot-transfer)

A service-recovery agent offers one way to test the learning loop outside games. After a service fails to recover from a timeout, the agent could use the incident log to propose a change to its recovery procedure. It could then replay the failure and previously successful cases in a test environment before adopting the change. Such cross-domain transfer remains to be tested.

<a id="related-work"></a>

<a id="5-comparison-with-related-work"></a>

## 6. Comparison with Related Work

### Prior art: how we differ

| | Every change tested live, kept or undone | Held-out validation | Makes its own verified training data | Self-triggered online fine-tuning | Speculative real-time decisions |
|---|:---:|:---:|:---:|:---:|:---:|
| **Voyager** [1] (2023), Minecraft | Partly | ✗ | ✗ | ✗ | ✗ |
| **VARP** [2] (2024), Black Myth: Wukong | ✗ | ✗ | ✗ | ✗ | ✗ |
| **SIMA 2** [3] (2025), several 3D games | ✗ | ✓ | ✓ | Partly | Partly |
| **Darwin Gödel Machine** [4] (2025), coding | ✓ | ✓ | ✗ | ✗ | ✗ |
| **Lumine** [5] (2025), Genshin Impact | ✗ | ✓ | ✗ | ✗ | Partly |
| **Speculative Actions** [6] (2025), games, e-commerce, web search | ✗ | ✗ | ✗ | ✗ | Partly |
| **Co-Harness** [7] (2026), math reasoning, AI research | ✓ | ✓ | ✓ | Partly | ✗ |
| **RRSI** [8] (2026), coding, document work, engineering design | ✓ | ✓ | ✗ | ✗ | ✗ |
| **Gamer** [9] (2026), Honkai: Star Rail and other games | ✗ | ✓ | ✓ | Partly | Partly |
| **Ours** (2026), Palworld | ✓ | ✓ | ✓ | ✓ | ✓ |

*✓ = yes, ✗ = no, Partly = a weaker form.* The original entries retain the report authors’ ratings, including their assessment of real-time decisions with System 0 in the final column. We added Gamer based on its paper. A cross in its row indicates a mechanism the paper does not report.

[1]: https://arxiv.org/abs/2305.16291
[2]: https://arxiv.org/abs/2409.12889
[3]: https://arxiv.org/abs/2512.04797
[4]: https://arxiv.org/abs/2505.22954
[5]: https://arxiv.org/abs/2511.08892
[6]: https://arxiv.org/abs/2510.04371
[7]: https://arxiv.org/abs/2607.22688
[8]: https://arxiv.org/abs/2609.24972
[9]: https://arxiv.org/abs/2611.18397
