Skip to content

rlm harness: install from arbitrary branch#1153

Merged
snimu merged 7 commits intomainfrom
sebastian/rlm-harness-branch-2026-04-16
Apr 16, 2026
Merged

rlm harness: install from arbitrary branch#1153
snimu merged 7 commits intomainfrom
sebastian/rlm-harness-branch-2026-04-16

Conversation

@snimu
Copy link
Copy Markdown
Contributor

@snimu snimu commented Apr 16, 2026

Description

In the rlm harness, allow environments to determine which branch of the rlm repo to install from. This will make testing easier.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Test improvement

Testing

  • All existing tests pass when running uv run pytest locally.
  • New tests have been added to cover the changes

Checklist

  • My code follows the style guidelines of this project as outlined in AGENTS.md
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

Note

Medium Risk
Changes the runtime installation shell command and remote script URL construction, which could break environment provisioning if branch/URL/token handling differs across runners.

Overview
Adds DEFAULT_RLM_BRANCH and threads a new rlm_branch parameter through rlm_harness/build_install_script, allowing environments to install RLM from a non-main branch.

Reworks the RLM install script command to ensure curl is available, build a branch-aware raw.githubusercontent.com URL (optionally using GH_TOKEN), and pass RLM_REPO_URL/RLM_REPO_BRANCH into the installer; exports DEFAULT_RLM_BRANCH from the harnesses package.

Reviewed by Cursor Bugbot for commit f612b36. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 5513e13. Configure here.

Comment thread verifiers/envs/experimental/composable/harnesses/rlm.py Outdated
f"RAW_BASE={shlex.quote(raw_base)}"
f" && RLM_INSTALL_BRANCH={shlex.quote(rlm_branch)}"
' && URL="https://${GH_TOKEN:+${GH_TOKEN}@}${RAW_BASE}/${RLM_INSTALL_BRANCH}/install.sh"'
' && (curl -fsSL "$URL" || wget -qO- "$URL") > /tmp/rlm-install.sh'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as we ensure curl is installed now in install.sh, you can delete any mentions of wget here

snimu and others added 2 commits April 16, 2026 14:02
Multi-SWE-RL sandbox images lack curl, causing the install.sh
download to fail before it ever runs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@snimu snimu merged commit 90f0b7e into main Apr 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants