# Detecting Silent Faults at the Environment-Trainer Boundary in Reinforcement Learning

Robotics.world

> Silent RL environment-trainer faults slip past learning-curve checks; the released protocol and checks give practitioners a way to catch bad runs before trusting results.

**arXiv**: 2611.08144 · accepted · CORL workshop

**Published**: 2026-11-05

**Authors**: Zuo Gou, Chenhao Lu

## In plain words

Robot RL increasingly runs environments outside the trainer: in another process, on another machine, or in another language.

## AI summary

## Overview

**Research area:** Reinforcement learning systems and robot learning infrastructure — specifically, fault detection at the environment–trainer boundary, where the code that steps an environment hands data to the code that updates the policy.

**Technical level:** Advanced. The core argument is simple, but the paper assumes familiarity with PPO training pipelines, vectorized environments, Stable-Baselines3, Gymnasium conventions, and distributed RL stacks.

**Scope:** The paper makes the environment–trainer boundary an explicit wire protocol (PlugRL), injects up to 23 boundary faults and 2 trainer-log faults into four simulated environments trained with SB3's PPO, and measures which checks — learning curves, seed spread, clean evaluation, byte identity, an episode record, and a step ledger — actually notice a fault.

## What This Paper Is About

Robot RL increasingly runs environments outside the trainer: in another process, on another machine, or in another language. Faults at that boundary often raise no error and no warning — training simply continues, so the usual evidence that the boundary is correct is that "the policy still learned." The paper asks what, if anything, reliably notices such a fault, and argues that checks of the run's own record (not its outcome) are the answer.

## Key Contributions

1. **A measured demonstration that outcome-based checks miss most boundary faults.** On Pendulum, HalfCheetah, Hopper and Pusher, a learning-curve gain threshold caught at most one run in ten at doses up to 10% of values, and a comparison against ten fault-free seeds caught at most 21%. A clean evaluation of all 1,060 final policies agreed: of the 728 boundary-fault runs that passed both curve checks, 723 scored no more than three standard deviations below fault-free seeds.
2. **A step ledger that catches and locates every boundary fault.** Wrappers record what each environment gave and received and what the trainer sent and received, compared step by step. It caught all 189 boundary-fault runs on Pendulum, 207 on Hopper and 189 on Pusher at the first changed value and field, flagged none of the 27 fault-free runs on each, and cost a median 3% of Pendulum's training time.
3. **A protocol design (PlugRL) plus written specification and conformance checkers** that make structural faults loud, keep runs deterministic on one machine, and let SB3, CleanRL and RLinf train through the same boundary via adapters.
4. **Evidence that these faults occur in practice**, catalogued in Gymnasium 1.3, the authors' own code, and — as reported by others — five multi-agent libraries, none of which raised an error.

## Main Findings

- **Silent faults change the run, not the policy.** In 888 of 900 runs the final weights differed from the fault-free run at the same seed, and reward or log faults changed the returns the trainer logged. Only 5 of the 255 Pendulum runs that passed both curve checks scored more than three standard deviations below fault-free seeds, under five different faults and doses.
- **Zeroed rewards look optimal in the log.** With every reward zeroed, the trainer's log reads 0 — the best possible return on Pendulum and on Pusher — while the policies actually score −1196 to −1639 and −99 to −129.
- **Seed variance explains the blindness.** One changed value moved a boundary-fault run's final return by a median of 15, 85, 197 and 0.7 (Pendulum, HalfCheetah, Hopper, Pusher), while changing the seed moved it by standard deviations of 11, 146, 259 and 1.9.
- **The step ledger works across machines.** With the env client on a laptop and SB3 on a workstation, it caught and located all 21 faults at one value and found no difference in the fault-free run — though that run ended on other weights than on the workstation, so byte identity cannot judge across machines.
- **Byte identity sees only what training reads.** Weights changed in all 504 boundary-fault runs on Pendulum and HalfCheetah, and in none of 48 runs with a 1 ms delay, a float64 wire or a log fault. On Hopper, weights changed in 195 of 207; in the other 12 a final observation changed at a fall, which SB3 bootstraps from only at a time limit, so training never read it — the ledger still caught all 12.
- **The episode record must live at the environment.** Kept there, it caught every log fault and every boundary fault that changed a reward beyond tolerance, an episode end or some steps, but missed faults in observations, final observations and actions, ends sent as the wrong kind, and every skipped step. A bridge log kept on the trainer's side caught only the log faults.
- **The boundary can be moved without changing results, on one machine.** SB3 trained 16 Pendulum, HalfCheetah or Atari environments in-process and behind the bridge: all nine pairs ended on byte-identical weights and logged identical episodes, and all 12 Pendulum runs behind a proxy holding every byte 0–25 ms each way ended on the in-process weights. Across machines a seed no longer reproduces: two MuJoCo builds differ by 8.9 × 10⁻¹⁶ at the first step.
- **The cost is modest.** The bridge added 0.4–0.6 ms a step for 16 state vectors and 2.6–3.0 ms for 16 frames. On one machine an exchange costs 0.1 ms with states only and under 1 ms at 588 KiB. The negotiated `reuse-feedback-obs` feature cut a 588 KiB round trip from 49.8 to 27.1 ms with byte-identical weights.
- **A real fault found in Gymnasium 1.3.** Under `SAME_STEP` autoreset, every episode after an environment's first lost its first reward and counted its length one short (fixed in 1.4); in the controlled test, Gymnasium's vector counter logged 2 × (15, 5) then 4 × (14, 4) where the single-env counter logged 6 × (15, 5). CleanRL on Gymnasium 1.3 logged no episode at all.

## Methodology in Plain English

The authors first turned the boundary into an explicit protocol: the environment side sends observations, receives actions, and feeds back rewards and episode ends, over msgpack-encoded NumPy arrays on a WebSocket. Because the bridge is a lockstep server on one machine, a run through it is deterministic, so a run with an injected fault can be compared against the same seed without it.

They then injected faults deliberately — the mutation-testing approach — changing one field of what crossed the wire in one way: observations, actions, rewards, final observations or episode ends replaced by zeros, by the previous step's value, by the next environment's value, or rounded through float16; an action clipped to half its range; episode ends invented, dropped or sent as the wrong kind; a step skipped and its feedback filled in. Each fault changed one value, 1%, or every value it could reach (on Pendulum also 0.1% and 10%), the same values at every seed, seeds 0–2. Two further faults sat in the trainer's own episode log, of the kind found in Gymnasium.

They then asked which checks noticed: a gain threshold fixed before the runs, a three-standard-deviation comparison against ten fault-free seeds, byte identity of final weights, an episode record kept at the environment, and a step ledger compared step by step. Every final policy was additionally run for 50 deterministic episodes on a fresh environment.

## Why This Matters

**Impact on research:** The paper adds the environment–trainer boundary to the list of implementation details that change RL results — alongside PPO implementation choices, time-limit handling, and reporting practice. Because a reward or log fault can read as a difference between methods in an A/B comparison, silent boundary faults are a plausible source of irreproducible results in distributed and robot RL.

**Real-world applications:**

- **Robot fleets reached over a network:** a policy served to a robot through a client can be wrapped no closer than that client, so knowing what such a wrapper can and cannot see determines what guarantees are possible.
- **Distributed training with environment workers:** environments in another process, on a machine with no GPU stack, or in another language, where a changed value raises nothing.
- **Cross-language simulators:** MuJoCo and other physics engines run as external clients, where two builds already differ in the last bit at the first step.
- **Large vision-language-action policies:** the measured cost of a camera observation crossing Wi-Fi (184 KiB in 11.6 ms, 12% of the 100 ms measured for one action chunk from a full-size π0.5 in openpi) frames how much protocol overhead is affordable.

**Industry relevance:** The recommendation is cheap and testable — keep a step ledger and count episodes at the environment, show that a change beneath the policy leaves weights byte-identical on one machine, and report where the boundary sits (bytes per step, time per step, episode-end convention). The protocol's environment side is thin: a C++ client with 0 packages, 86 KB and no torch, compared with 64 packages and 6.1 GB for RLlib's external env and 144 packages and 6.1 GB for LeRobot's HIL-SERL.

## Future Directions

- **Checking ledgers online rather than after the run.** The authors compared ledgers after each run (150 MB a run on Hopper); checking a digest of each step as the run goes is stated as future work.
- **Testing whether missed faults stay harmless outside the studied setting.** The finding that curve-missed faults leave the policy intact may not hold for sparse rewards, long horizons, replay buffers, images or real robots.
- **Environments that keep moving while the client waits for an action**, as a real robot does — explicitly not studied here.
- **Seeing inside the environment.** A wrapper around the environment sees nothing that goes wrong within it, and a robot reachable only through its own client can be wrapped no closer than that client.

## Target Audience

Researchers and engineers who build or maintain RL training infrastructure — distributed RL frameworks, robot learning stacks, simulator bridges, and cross-language or cross-machine environment services — and empirically minded RL scientists who care about whether a reported result reflects the method or the plumbing. Readers evaluating reproducibility claims in robot learning will get the most from the fault catalogue and the recommended checks.

## Authors’ abstract

Robot reinforcement learning increasingly runs environments outside the trainer: in another process, on another machine, in another language. Many faults at this boundary raise no error. We make the boundary a wire protocol and ask what notices a fault in it. On Pendulum, HalfCheetah, Hopper and a 7-joint arm (Pusher), we injected up to 23 faults into what crosses the wire and 2 into the trainer's log, from one value to every value. Unless every value was wrong, a…

[The full abstract on arXiv](https://arxiv.org/abs/2611.08144)

[Read the original paper](https://arxiv.org/abs/2611.08144)

## Related papers

- [BURGER: Benchmarking and Understanding Robotic Generalization via Embodied Drawing](https://robotics.world/paper/burger-benchmarking-and-understanding-robotic-generalization-via-2610.40532) 2026-10-29 · cs.RO · Also by Chenhao Lu
- [Detecting Silent Action-Interface Mismatch with Calibrated Relational World Models](https://robotics.world/paper/detecting-silent-action-interface-mismatch-with-calibrated-relational-2611.06653) 2026-11-04 · cs.RO · Key terms of the title in common
- [MATCH: Execution-Aware Hierarchical Reinforcement Learning for Vision-and-Language Navigation in Continuous Environment](https://robotics.world/paper/match-execution-aware-hierarchical-reinforcement-learning-for-vision-2610.38248) 2026-10-28 · cs.RO · Key terms of the title in common
- [NeuralParker: A Reinforcement Learning Planner for Irregular Parking Environments](https://robotics.world/paper/neuralparker-a-reinforcement-learning-planner-for-irregular-parking-2608.24485) 2026-08-25 · cs.RO · Key terms of the title in common
- [Search-Aided Joint Agent-Environment Reinforcement Learning for Robust Lifelong Multi-Agent Path Finding with Rotations](https://robotics.world/paper/search-aided-joint-agent-environment-reinforcement-learning-for-robust-2608.05588) 2026-08-06 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/detecting-silent-faults-at-the-environment-trainer-boundary-in-2611.08144
