API referenceΒΆ
Auto-generated from the package docstrings. Each class and function
appears once, under its canonical module. For the flatter top-level
names (rhscope.HackMonitor, rhscope.DoMProbe, etc.) see the
API overview or rhscope/__init__.py.
User-facing monitor object. |
|
Abstract base class for reward-hacking probes. |
|
Difference-of-means (DoM) probe. |
|
L2-regularized logistic regression probe over pooled activations. |
|
Shallow MLP probe for cases where the hacking concept is not linearly separable. |
|
Streaming DoM probe fit incrementally with |
|
Token-level probe scoring - localise reward hacking inside a response. |
|
Head-to-head detector comparison. |
|
Curate |
|
Detector interface and baseline implementations. |
|
Multi-probe benchmark runner. |
|
Reference-model delta detector for reward hacking. |
|
Benchmark result container. |
|
RH-Detect benchmark runner. |
|
Evasion detection via probe-subspace drift. |
|
Backend-agnostic monitor-penalty primitive. |
|
Offline monitor scoring for DPO-style preference datasets. |
|
Metric sinks. |
|
TRL integration - monitor-driven reward penalty for rollout-based RL. |
|
verl integration - reward-model adapter for the second major RLHF framework. |
|
Data types and loaders for probe training. |
|
Layer-candidate selection for probe training. |
|
Probe training orchestration. |
|
Abstract hacking-environment interface + registry. |
|
Code-shortcut environment - the first concrete hacking environment. |
|
Recipe configuration schema. |
|
GRPO recipe runner - model-agnostic. |
|
Grid trainer for the pre-trained probe matrix. |
|
Module entry point for |
|
Activation extraction from causal language models. |
|
Hugging Face Hub helpers for probe artifacts. |
|
Low-level I/O for probe artifacts. |
|
Metadata model for probe artifacts. |
|
Metric primitives used throughout rhscope. |
|
Hugging Face model-card rendering for probe artifacts. |
|
Code sandbox for evaluating untrusted Python snippets. |
|
Command-line interface. |