SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.12523 · 2026

OOD-RL-Bench: A Benchmark Framework for Out-of-Distribution Detection in Reinforcement Learning

Peter Vamplew, Richard Dazeley, Emil Mittag

arXiv · PDF · Open in the Atlas

Code that ran

17 of 29 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (11 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 11 have no contract verdict; 5 failures of our instrument; 12 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/2607.12523.json · badge: /api/ran/2607.12523.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
ood-rl-bench/ood-rl-bench community
Papers with Code archive
17 ran · 12 no recorded run
FunctionStatusWhere it lives
AggregatedResult Ran
ran on a synthesized input · constructed an object; no result was computed
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("1f6f194ab884ba83")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, AggregatedResult: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from dataclasses import dataclass
from typing import Any, Dict, List, Tuple

torch.manual_seed(0)

ARGS = {
    "detector_name": "test_detector",
    "anomaly_name": "test_anomaly",
    "metric_means": {
        "auc": 0.85,
        "precision": 0.90,
        "recall": 0.80
    },
    "metric_stds": {
        "auc": 0.05,
        "precision": 0.03,
        "recall": 0.07
    },
    "metric_cis": {
        "auc": (0.80, 0.90),
        "precision": (0.87, 0.93),
        "recall": (0.73, 0.87)
    },
    "n_seeds": 5,
    "raw_values": {
        "auc": [0.81, 0.84, 0.86, 0.88, 0.85],
        "precision": [0.88, 0.91, 0.89, 0.92, 0.90],
        "recall": [0.75, 0.82, 0.79, 0.84, 0.80]
    },
    "raw_by_seed": {
        "auc": {0: 0.81, 1: 0.84, 2: 0.86, 3: 0.88, 4: 0.85},
        "precision": {0: 0.88, 1: 0.91, 2: 0.89, 3: 0.92, 4: 0.90},
        "recall": {0: 0.75, 1: 0.82, 2: 0.79, 3: 0.84, 4: 0.80}
    },
    "metric_ci_methods": {
        "auc": "percentile",
        "precision": "percentile",
        "recall": "percentile"
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type AggregatedResult — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a AggregatedResult output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
AnomalyConfig Ran
ran on a synthesized input · constructed an object; no result was computed
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("7d5314b3bbd8152f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, AnomalyConfig: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from dataclasses import dataclass, field
from typing import Any, Dict, List, Tuple

torch.manual_seed(0)

ARGS = {
    "name": "sensor_drift",
    "severity": 0.75,
    "onset_fraction": 0.3,
    "duration_fraction": 0.6,
    "params": {
        "noise_scale": 0.1,
        "drift_rate": 0.05,
        "seed": 42
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type AnomalyConfig — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a AnomalyConfig output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
AnomalySpec Ran
ran on a synthesized input · constructed an object; no result was computed
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("e54bc879db15c08c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, AnomalySpec: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional

torch.manual_seed(0)

@dataclass
class AnomalySpec:
    name: str
    category: str
    severity: float
    onset_step: int
    offset_step: Optional[int]
    params: Dict[str, Any] = field(default_factory=dict)

    def is_active(self, t: int) -> bool:
        if self.offset_step is None:
            return t >= self.onset_step
        return self.onset_step <= t < self.offset_step

ARGS = {
    "name": "temperature_spike",
    "category": "sensor_fault",
    "severity": 0.85,
    "onset_step": 10,
    "offset_step": 50,
    "params": {"amplitude": 2.5, "noise_level": 0.1}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type AnomalySpec — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a AnomalySpec output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
DetectionResult Ran
ran on a synthesized input · constructed an object; no result was computed
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("11557293ad03cbd4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, DetectionResult: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from dataclasses import dataclass, field
from typing import Any, Dict, List, Tuple

@dataclass
class DetectionResult:
    scores: np.ndarray
    labels: np.ndarray
    threshold: float
    metadata: Dict[str, Any] = field(default_factory=dict)

    @property
    def detection_rate(self) -> float:
        return float(self.labels.mean())


# Create sample data
scores = np.array([0.9, 0.7, 0.5, 0.3], dtype=np.float32)
labels = np.array([1, 1, 0, 0], dtype=np.int32)
threshold = 0.6
metadata = {"image_id": 42, "source": "test_detector"}

ARGS = {
    "scores": scores,
    "labels": labels,
    "threshold": threshold,
    "metadata": metadata,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DetectionResult — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DetectionResult output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
DetectorConfig Ran
ran on a synthesized input · constructed an object; no result was computed
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("0a78a2bfb5ce612b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, DetectorConfig: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional, Sequence, Tuple

torch.manual_seed(0)

ARGS = {
    "name": "detector_v1",
    "params": {
        "model_type": "resnet",
        "num_classes": 10,
        "backbone_depth": 50,
    },
    "threshold": 0.5,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DetectorConfig — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a DetectorConfig output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
EpisodeEvaluation Ran
ran on a synthesized input · constructed an object; no result was computed
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("304049d890290246")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, EpisodeEvaluation: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional, Tuple

@dataclass
class MetricResult:
    name: str
    value: float
    confidence_interval: Optional[Tuple[float, float]] = None
    metadata: Dict[str, Any] = field(default_factory=dict)

    def __repr__(self) -> str:
        ci = ''
        if self.confidence_interval:
            ci = f' CI=[{self.confidence_interval[0]:.4f}, {self.confidence_interval[1]:.4f}]'
        return f'{self.name}: {self.value:.4f}{ci}'

@dataclass
class EpisodeEvaluation:
    detector_name: str
    anomaly_name: str
    seed: int
    metrics: Dict[str, MetricResult]
    ground_truth: Optional[np.ndarray] = None
    scores: Optional[np.ndarray] = None
    labels: Optional[np.ndarray] = None

np.random.seed(42)

metric_result_1 = MetricResult(
    name="precision",
    value=0.95,
    confidence_interval=(0.90, 0.99),
    metadata={"threshold": 0.5}
)

metric_result_2 = MetricResult(
    name="recall",
    value=0.88,
    confidence_interval=(0.82, 0.93),
    metadata={}
)

metrics_dict = {
    "precision": metric_result_1,
    "recall": metric_result_2
}

ground_truth = np.array([0, 1, 0, 1, 0, 1, 0, 1], dtype=np.int32)
scores = np.array([0.1, 0.9, 0.2, 0.85, 0.15, 0.88, 0.05, 0.92], dtype=np.float32)
labels = np.array([0, 1, 0, 1, 0, 1, 0, 1], dtype=np.int32)

ARGS = {
    "detector_name": "isolation_forest",
    "anomaly_name": "point_anomaly",
    "seed": 42,
    "metrics": metrics_dict,
    "ground_truth": ground_truth,
    "scores": scores,
    "labels": labels
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EpisodeEvaluation — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a EpisodeEvaluation output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
MetricConfig Ran
ran on a synthesized input · constructed an object; no result was computed
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("431034dde087b734")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, MetricConfig: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from dataclasses import dataclass, field
from typing import Any, Dict, List, Tuple

torch.manual_seed(0)

ARGS = {
    'names': ['auroc', 'auprc', 'fpr_at_95tpr', 'detection_delay', 'temporal_auroc', 'segment_precision', 'segment_recall'],
    'confidence_level': 0.95,
    'bootstrap_samples': 1000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MetricConfig — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MetricConfig output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
MetricResult Ran
ran on a synthesized input · constructed an object; no result was computed
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("e6e056bb7c66da46")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, MetricResult: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional, Tuple

torch.manual_seed(0)

ARGS = {
    "name": "accuracy",
    "value": 0.9542,
    "confidence_interval": (0.9234, 0.9850),
    "metadata": {"dataset": "test", "model": "resnet50", "samples": 1000}
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type MetricResult — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MetricResult output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
RegistryError Ran
ran on a synthesized input · constructed an object; no result was computed
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("d62f8000f7f208cb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, RegistryError: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

class RegistryError(Exception):
    pass

ARGS = {}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type RegistryError — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a RegistryError output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
Trajectory Ran
ran on a synthesized input · constructed an object; no result was computed
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("f89ed0a99412feb7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, Trajectory: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from dataclasses import dataclass, field
from typing import Any, Dict, List, Tuple

# Construct small numpy arrays for the Trajectory
num_steps = 5
state_dim = 4
action_dim = 3

states = np.random.randn(num_steps, state_dim).astype(np.float32)
actions = np.random.randn(num_steps, action_dim).astype(np.float32)
rewards = np.random.randn(num_steps).astype(np.float32)
next_states = np.random.randn(num_steps, state_dim).astype(np.float32)
dones = np.random.randint(0, 2, size=num_steps).astype(bool)

# Optional info dict with some sample data
info = {
    "episode_id": np.array([1, 1, 1, 1, 2]),
    "step_info": "sample"
}

ARGS = {
    "states": states,
    "actions": actions,
    "rewards": rewards,
    "next_states": next_states,
    "dones": dones,
    "info": info
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Trajectory — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a Trajectory output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
_RegistryStore Ran
ran on a synthesized input · constructed an object; no result was computed
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("38247e6e9ec1bf4e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, _RegistryStore: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from typing import Any, Dict, List, Optional, Type

torch.manual_seed(0)

# The _RegistryStore.__init__ takes:
# - category: str

# Looking at the body:
# - category is stored and used in error messages
# - _registry is a Dict[str, Type] that stores registered classes
# - _metadata is a Dict[str, Dict[str, Any]] that stores metadata

# The simplest valid arguments:

ARGS = {
    "category": "test_category"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type _RegistryStore — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a _RegistryStore output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
_fast_auprc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("1d5956a5640037a3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create ground truth labels (binary)
ground_truth = np.array([1, 0, 1, 0, 1, 1, 0, 0], dtype=int)

# Create scores (confidence/prediction scores)
scores = np.array([0.9, 0.2, 0.8, 0.3, 0.7, 0.85, 0.1, 0.15], dtype=float)

ARGS = {
    "ground_truth": ground_truth,
    "scores": scores,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
_fast_auroc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("63223460956aeb43")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct valid arguments for _fast_auroc
ground_truth = np.array([0, 1, 1, 0, 1, 0], dtype=int)
scores = np.array([0.1, 0.9, 0.8, 0.2, 0.95, 0.3], dtype=float)

ARGS = {
    "ground_truth": ground_truth,
    "scores": scores,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
_fast_fpr_at_95tpr Ran
ran, violated the contract we drafted
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("699cfcfcb68582f2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct arguments for _fast_fpr_at_95tpr
# The function expects:
# - ground_truth: np.ndarray of binary labels (0 or 1)
# - scores: np.ndarray of float scores

# Create a simple test case with both positive and negative samples
np.random.seed(0)

ground_truth = np.array([0, 1, 1, 0, 1, 0, 1, 0, 1, 1], dtype=int)
scores = np.array([0.1, 0.9, 0.85, 0.2, 0.95, 0.15, 0.8, 0.25, 0.88, 0.92], dtype=float)

ARGS = {
    "ground_truth": ground_truth,
    "scores": scores,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
_json_sanitize Ran
ran; our contract draft was wrong, not the code
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("178a8e749f1067a6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import math
from typing import Any, Dict, List, Tuple

def _json_sanitize(obj: Any) -> Any:
    """Recursively replace non-finite floats (NaN/Inf) with None."""
    if isinstance(obj, dict):
        return {k: _json_sanitize(v) for k, v in obj.items()}
    if isinstance(obj, (list, tuple)):
        return [_json_sanitize(v) for v in obj]
    if isinstance(obj, float) and (not math.isfinite(obj)):
        return None
    return obj


# Test cases covering various input types
ARGS = {
    "obj": {
        "valid_float": 3.14,
        "nan_value": float('nan'),
        "inf_value": float('inf'),
        "neg_inf_value": float('-inf'),
        "integer": 42,
        "string": "test",
        "nested_dict": {
            "inner_nan": float('nan'),
            "inner_valid": 2.71,
        },
        "list_with_nan": [1.0, float('nan'), 3.0],
        "tuple_with_inf": (1.5, float('inf'), -2.5),
        "nested_list": [[float('nan'), 4.2], [float('-inf'), 0.0]],
        "none_value": None,
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
_metric_value_from_arrays Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("7edb98faaf0ce7cc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned float, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seeds for reproducibility
np.random.seed(0)

# Create small sample arrays for testing
# ground_truth: binary labels (0 or 1)
ground_truth = np.array([1, 0, 1, 1, 0, 1, 0, 0], dtype=int)

# scores: continuous prediction scores
scores = np.array([0.9, 0.2, 0.8, 0.7, 0.3, 0.85, 0.1, 0.15], dtype=float)

# labels: another set of predictions for accuracy calculation
labels = np.array([1, 0, 1, 1, 0, 1, 0, 0], dtype=int)

# metric_name: one of the supported metrics
metric_name = 'auroc'

ARGS = {
    'metric_name': metric_name,
    'ground_truth': ground_truth,
    'scores': scores,
    'labels': labels
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
_moving_block_sample Ran
ran; our contract draft was wrong, not the code
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("05464b1a88378334")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create sample data
ground_truth = np.array([0, 1, 1, 0, 1, 1], dtype=int)
scores = np.array([0.1, 0.9, 0.8, 0.2, 0.7, 0.95], dtype=float)
labels = np.array([0, 1, 1, 0, 1, 1], dtype=int)
block_length = 2
rng = np.random.RandomState(42)

ARGS = {
    "ground_truth": ground_truth,
    "scores": scores,
    "labels": labels,
    "block_length": block_length,
    "rng": rng,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
BaseAnomalyInjector Not yet run
unverified (harvested, no recorded run)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("78f7d2bccc043d53")
How it ran

no invocation recorded.

BaseDetector Not yet run
unverified (harvested, no recorded run)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("9efbe03a7851253a")
How it ran

no invocation recorded.

BaseMetric Not yet run
unverified (harvested, no recorded run)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("e8a2607a060828ab")
How it ran

no invocation recorded.

BenchmarkConfig Not yet run
unverified (harvested, no recorded run)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("b529a39e5d3ba6fd")
How it ran

no invocation recorded.

BenchmarkReport Not yet run
unverified (harvested, no recorded run)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("97835433cf696d46")
How it ran

no invocation recorded.

BenchmarkRunner Not yet run
unverified (harvested, no recorded run)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("0e27ba3756bfadf4")
How it ran

no invocation recorded.

EvaluationProtocol Not yet run
unverified (harvested, no recorded run)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("87478d03655653dd")
How it ran

no invocation recorded.

Registry Not yet run
unverified (harvested, no recorded run)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("f3e73bfa41ed3ff1")
How it ran

no invocation recorded.

_anomaly_requires_online_environment Not yet run
unverified (harvested, no recorded run)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("cad24bffab7efd74")
How it ran

no invocation recorded.

_check_constructor_params Not yet run
unverified (harvested, no recorded run)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("c1ce2debe89e235e")
How it ran

no invocation recorded.

_ensure_builtin_components_registered Not yet run
unverified (harvested, no recorded run)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("382a83b52ac5776f")
How it ran

no invocation recorded.

_stable_seed Not yet run
unverified (harvested, no recorded run)
ood-rl-bench/ood-rl-bench/ood_rl_bench/core/benchmark.py
code served (permissive licence) · get_code("73e5896978f9ae19")
How it ran

no invocation recorded.

Also present in other papers' code

Of 29 samples lifted from this paper's linked repositories, 29 carry a function identity and 0 do not. Of the 29 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 29 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.

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

Reliable reinforcement learning (RL) agents must maintain operational integrity amidst sensor malfunctions, dynamic disturbances, and slow environmental shifts. The detection of out-ofdistribution conditions is pivotal to determining when an agent's observations, transitions, or trajectory dynamics deviate from the assumptions underpinning its policy training. Current out-of-distribution (OOD) detection benchmarks typically evaluate image classifiers or static low-dimensional datasets, failing to account for the complex, action-dependent temporal structure inherent in RL trajectories. To address this gap, we present OOD-RL-Bench, a comprehensive and extensible framework designed to evaluate OOD detectors against categories of anomalies injected into RL trajectories. Detectors and anomaly injectors are integrated through shared interfaces and configuration, which allows new scoring methods and perturbation families to be evaluated without modification of the core benchmark loop. We evaluate the utility of the framework using a Deep Q-Network policy within the LunarLander-v3 environment. We assess the performance of each detector across a suite of anomaly types using matched-time AUROC, matched-time AUPRC, matched-time false-positive rate, detection delay, and segmented-onset metrics. Our analysis reveals significant performance variance across anomaly types: observation perturbations and regime switches are identified with high accuracy by several methods, while observation delay and action-conditioned dynamics remain difficult even when post-onset anomaly scores are compared against clean scores from the same timesteps. We make the framework, trained policy checkpoint, and complete results publicly available as a reproducible artefact.

For agents

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

get_harvested_code_for_paper("2607.12523")
get_code_for_paper("2607.12523")
have("2607.12523")

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

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

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

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

Connect an agent — have() is free.