SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.19737 · 2026

Safe Continual Reinforcement Learning in Non-stationary Environments

Gautam Biswas, Austin Coursey, Abel Diaz-Gonzalez, Marcos Quinones-Grueiro

arXiv · PDF · Open in the Atlas

Code that ran

8 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2604.19737.json · badge: /api/ran/2604.19737.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
MACS-Research-Lab/safe-crl canonical (classifier label)
classifier basis: census
8 ran · 2 no recorded run
FunctionStatusWhere it lives
build_mlp_network Ran
ran; our contract draft was wrong, not the code
MACS-Research-Lab/safe-crl/code/Safe-Policy-Optimization/safepo/common/model.py
pointer only (licence: NONE) · get_code("66df63cc965e3218")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MACS-Research-Lab/safe-crl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

colorize Ran
ran; our contract draft was wrong, not the code
MACS-Research-Lab/safe-crl/code/Safe-Policy-Optimization/safepo/common/logger.py
pointer only (licence: NONE) · get_code("809acb410efac35d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MACS-Research-Lab/safe-crl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_fisher_info Ran
ran; our contract draft was wrong, not the code
MACS-Research-Lab/safe-crl/code/Safe-Policy-Optimization/safepo/single_agent/ppo_ewc_cost_loss.py
pointer only (licence: NONE) · get_code("2205dac1167fde2b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MACS-Research-Lab/safe-crl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

convert_json Ran
ran; our contract draft was wrong, not the code
MACS-Research-Lab/safe-crl/code/Safe-Policy-Optimization/safepo/common/logger.py
pointer only (licence: NONE) · get_code("625c592552749a98")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MACS-Research-Lab/safe-crl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

discount_cumsum Ran
ran; our contract draft was wrong, not the code
MACS-Research-Lab/safe-crl/code/Safe-Policy-Optimization/safepo/common/buffer.py
pointer only (licence: NONE) · get_code("185c4bf8b0d68d6c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MACS-Research-Lab/safe-crl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_json_serializable Ran
ran, violated the contract we drafted
MACS-Research-Lab/safe-crl/code/Safe-Policy-Optimization/safepo/common/logger.py
pointer only (licence: NONE) · get_code("9ca8b8e45f7fbebf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MACS-Research-Lab/safe-crl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_sa_isaac_env Ran
ran; our contract draft was wrong, not the code
MACS-Research-Lab/safe-crl/code/Safe-Policy-Optimization/safepo/common/env.py
pointer only (licence: NONE) · get_code("5b86ac2eed268258")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MACS-Research-Lab/safe-crl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

save_old_params Ran
ran; our contract draft was wrong, not the code
MACS-Research-Lab/safe-crl/code/Safe-Policy-Optimization/safepo/single_agent/ppo_ewc_cost_loss.py
pointer only (licence: NONE) · get_code("5fa56e888169271b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MACS-Research-Lab/safe-crl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

calculate_adv_and_value_targets Not yet run
unverified (harvested, no recorded run)
MACS-Research-Lab/safe-crl/code/Safe-Policy-Optimization/safepo/common/buffer.py
pointer only (licence: NONE) · get_code("9edb7571305f7445")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MACS-Research-Lab/safe-crl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_hyperparameters Not yet run
unverified (harvested, no recorded run)
MACS-Research-Lab/safe-crl/code/Safe-Policy-Optimization/safepo/single_agent/ppo_ewc_cost_loss.py
pointer only (licence: NONE) · get_code("ab324c5144b1d1f7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MACS-Research-Lab/safe-crl when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 1 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
is_json_serializable 9 other papers
8 dated earlier, 1 later
1802.09477 (2018-02)
Addressing Function Approximation Error in Actor-Critic Methods
2006.07442 (2020-06)
Self-Imitation Learning via Generalized Lower Bound Q-learning
2106.09110 (2021-06)
Safe Reinforcement Learning Using Advantage-Based Intervention
and 6 more not named here
build_mlp_network 1 other paper
1 dated earlier
2507.00485 (2025-07)
PNAct: Crafting Backdoor Attacks in Safe Reinforcement Learning

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Reinforcement learning (RL) offers a compelling data-driven paradigm for synthesizing controllers for complex systems when accurate physical models are unavailable; however, most existing control-oriented RL methods assume stationarity and, therefore, struggle in real-world nonstationary deployments where system dynamics and operating conditions can change unexpectedly. Moreover, RL controllers acting in physical environments must satisfy safety constraints throughout their learning and execution phases, rendering transient violations during adaptation unacceptable. Although continual RL and safe RL have each addressed non-stationarity and safety, respectively, their intersection remains comparatively unexplored, motivating the study of safe continual RL algorithms that can adapt over the system's lifetime while preserving safety. In this work, we systematically investigate safe continual reinforcement learning by introducing three benchmark environments that capture safety-critical continual adaptation and by evaluating representative approaches from safe RL, continual RL, and their combinations. Our empirical results reveal a fundamental tension between maintaining safety constraints and preventing catastrophic forgetting under non-stationary dynamics, with existing methods generally failing to achieve both objectives simultaneously. To address this shortcoming, we examine regularization-based strategies that partially mitigate this trade-off and characterize their benefits and limitations. Finally, we outline key open challenges and research directions toward developing safe, resilient learning-based controllers capable of sustained autonomous operation in changing environments.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2604.19737")
get_code_for_paper("2604.19737")
have("2604.19737")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2604.19737.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2604.19737.svg)](https://syntology.ai/paper/2604.19737)

Connect an agent — have() is free.