Skip to content

rlf-codex-rl:launcher 透传 YETO_RLF_* + rlf_modal_provider + 沙箱 idle_timeout 跟随 ttl_s - #232

Closed
michaellchung wants to merge 2 commits into
rlf-pr1-corefrom
rlf-pr3-modal-sandbox
Closed

michaellchung wants to merge 2 commits into
rlf-pr1-corefrom
rlf-pr3-modal-sandbox

Conversation

@michaellchung

Copy link
Copy Markdown
Contributor

范围

Modal 沙箱侧两个配合修复:

  1. launcher 接线:HARNESS_PASSTHROUGH_ENV_PREFIXES 增加 YETO_RLF_(RLF 配置随环境进岛);MODAL_SANDBOX_PROVIDERS 注册 yeto.cloud.modal_reward_env:rlf_modal_provider(RLF 的 Modal 沙箱 provider,实体在 rlf-codex-rl 核心:trusted flag、Qwen3-30B-A3B profile、RLF 入口接线与 baseline runner #230 的 modal_reward_env.py 中)
  2. idle_timeout 修复(yeto/rl/rlf/modal.py):沙箱 idle_timeout 跟随租约 ttl_s——此前默认 idle 超时比 TTL 短,长训练步之间沙箱被 idle 回收(5.8 gate attempt-3 根因之一),导致租约提前失效

对应 openspec change:rlf-codex-rl。

测试证据

tests/test_rlf_env_lease.py tests/test_reward_env.py: 43 passed in 2.62s

其中 test_rlf_env_lease.py 新增 idle_timeout 跟随 ttl_s 的回归用例。

依赖关系

Made with Cursor

chowhsu and others added 2 commits October 11, 2026 12:48
Gate attempt 5: a CTF VM was reclaimed mid-episode by Modal's 300s idle
kill while the model was in a long generation turn (no exec running), the
next exec raised NotFoundError, the episode aborted without trusted finish
and the fail-closed preflight discarded the group. Default idle_timeout
now follows ttl_s (hard cap still bounds leaks); overridable via the new
RlfModalVmConfig.idle_timeout_s field.

Co-authored-by: Cursor <cursoragent@cursor.com>
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