Limitations

Honest list of what rhscope v0.1 does not do, where its detection signal is known to be weak, and what to expect at v0.2. Read this before shipping a probe to production.

What v0.1 does not do

Explicit non-goals:

  1. ~~Evasion detection.~~ (Shipped - see rhscope.research.EvasionDetector.) Anchors a baseline probe direction, fits a fresh direction at each eval step, and tracks subspace angle + held-out AUROC drift to classify a trajectory as obfuscating / reforming / stable / undecided. Numerical thresholds should be calibrated against a known-reforming run on your own policy before relying on verdicts for research claims.

  2. Step-level localization. The RH-Detect benchmark scores one label per rollout. v0.1 probes score one activation vector per response, which is coarser than “which of the 400 tokens in this response was the hacking moment.”

  3. Multi-turn tool-use detection. RH-Detect itself is 10-16 pp harder on multi-turn tool-use trajectories across every baseline. v0.1 ships probes against single-turn categories only.

  4. Cross-model probe transfer. Probes are bound to a single base model via metadata.base_model and refuse to score a different model by default. HackMonitor.require_base_model(strict=False) lets you override at your own risk; expect silent nonsense.

  5. ~~Monitor ensembling.~~ (Shipped.) CompositeDetector fuses any set of Detectors with mean / max / min / sum / weighted_mean reducers. compare_detectors(...) emits agreement matrix + Pearson correlation + top disagreement cases for review.

  6. Streaming scoring during generation. v0.1 scores after the rollout is complete. Mid-generation scoring (useful for early-stop on hacking) is deferred.

  7. SimHack-style pre-training prediction. Predicting whether a recipe will induce hacking before the training run starts is a separate project; not in scope.

  8. Reward-model forensics. rhscope evaluates the policy, not the reward model that produced the signal being gamed.

  9. Multimodal probes. Text-only.

  10. vLLM / verl / OpenRLHF backends. TRL only in v0.1. The reward- function integration uses TRL’s native “sum of reward functions” surface, so most of the design will port, but the integrations themselves are v0.2.

Known failure modes of the detection signal

Even within the intended scope, the probe is imperfect. If any of these apply to your setting, calibrate your penalty_coef conservatively and cross-check with an LLM-judge or human review.

Distribution shift from training data

The probe was trained on a specific curated subset of RH-Detect. Hacking patterns that do not resemble that subset - new languages, novel exploits, different code styles - will score near chance.

Mitigation: train your own probe with rhscope train-probe on data from your deployment distribution.

Policy drift during long RL runs

As the policy diverges from its base model (large LoRA updates, long training), the activation subspace the probe was calibrated on drifts. Scores become less reliable the further you are from the pre-training distribution.

Mitigation: use the monitor as an in-flight warning signal and retrain the probe periodically against a frozen snapshot of the policy.

Monitor-aware obfuscation

If penalty_coef > 0, you are training against the probe. The policy will find ways to earn reward while suppressing probe activations. This is the monitor-evasion failure mode documented in the research literature; we reproduce it in-house and have no fully-general defense at v0.1.

Mitigation: keep penalty_coef small (start at 0.1), monitor the monitor/hack_fraction metric alongside your reward curve, and watch for the pattern “hacking rate drops but task performance also degrades suddenly”

  • that is usually evasion, not learning.

Category mismatch

A code_shortcut probe applied to a conversation-style domain that never emits code will score noise. Probes are category-specific by design.

Mitigation: use the general probe for broad coverage, or compose multiple category-specific probes.

Weak probes

Some (model, category) cells in the trained grid will yield val_auroc < 0.7. ProbeGridResult.weak surfaces these explicitly; they ship with warnings in their model cards and should not be used for reward shaping.

Security caveats

Code execution sandbox

rhscope.sandbox.run_python executes model-generated Python code. Two backends are available:

backend="subprocess" (default). Plain Python subprocess with -I isolated mode, a wall-clock timeout, and (on POSIX) resource.setrlimit memory/CPU caps. Not a security boundary. Specifically:

  • Filesystem access is restricted only to the tempdir the subprocess runs in; it can still read files elsewhere on disk.

  • Network access is not restricted (rlimit does not cover it).

  • Memory caps are POSIX-only. On Windows only the wall-clock timeout applies.

  • Arbitrary Python imports work - a hostile model output can import os and attempt anything a Python process can.

Use for code of known provenance only.

backend="docker" (opt-in). Runs the snippet in a container with --network=none, --read-only, --cap-drop=ALL, --security-opt=no-new-privileges, --pids-limit=128, --user 65534:65534, memory + CPU caps. Requires Docker; feature-detect with rhscope.sandbox.is_docker_available(). Substantially stronger isolation than the subprocess backend, though container escapes exist and this is not a formal security guarantee.

Hub secrets

push_probe_to_hub expects your Hub token to be present in the environment (HF_TOKEN) or your huggingface-cli login cache. Never pass tokens via command-line arguments on a shared machine - they will land in ~/.bash_history.

v0.2 roadmap

Targeted for the next release:

  • Step-level localization probes for multi-turn tool-use.

  • verl / OpenRLHF adapters.

  • More environments - math-with-buggy-verifier, format-gated.

  • Intervention recipe library - curriculum, mixed-penalty schedules.

  • Cross-model probe transfer tooling.

  • vLLM rollout backend.

  • Full mkdocs documentation site.

If you find something not on this list

Open an issue. Better to grow this list than to oversell the library.