Merged
Conversation
…provements-2026-01-24 merge in main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Simplifies RLM code without touching functionality.
Type of Change
Testing
uv run pytestlocally.Checklist
Note
Major internal cleanup with no intended behavior changes, focusing on maintainability and consistency.
_build_python_worker_script_template(sandboxed=...); extract reusable blocks (guardrails, FIFOs, FS context, jail); generate both local_RLM_WORKER_SCRIPT_TEMPLATEand sandbox_RLM_SANDBOX_PY_WORKER_SCRIPT_TEMPLATEfrom one source._build_worker_env_vars()used by local and sandbox executors; toggles inclusion of code-exec restrictions.RLMMonitorRubricnow auto-registers simple state metrics via a factory (_SIMPLE_METRICS,_make_state_metric); dynamic per-root-tool metrics retained._call_repl()and_maybe_add_context_warning();call_python_replappends execution time,call_bash_repldoes not; warning text parameterized._append_tool_docs()to avoid duplication; annotate OAI tool lists withChatCompletionFunctionToolParam; simplify root tool schema handling._extract_tokens_from_responsehelper;llm_batchsummary now shows prompt vs completion tokens separately; minor log/message tweaks.Risk is primarily around template generation and executor env var changes affecting worker startup and token/metric reporting.
Written by Cursor Bugbot for commit c619cc8. This will update automatically on new commits. Configure here.