Skip to content

feat(policy): add persistent Python code execution mode - #324

Open
wilburx813 wants to merge 3 commits into
RLinf:mainfrom
wilburx813:feat/code-policy-runtime
Open

wilburx813 wants to merge 3 commits into
RLinf:mainfrom
wilburx813:feat/code-policy-runtime

Conversation

@wilburx813

@wilburx813 wilburx813 commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Add --policy-mode code so planners can execute Python cells that call registered robot tools through robo.<tool_name>(...). Variables persist between cells, with per-cell time and tool-call limits and cancellation that drains in-flight robot operations.

  • Integrate code execution into CLI and Dashboard runs and propagate successful robo.finish(...) results through API, Claude Code, and Codex planners.
  • Provide separate code-policy prompts for the supported robot integrations. Initial user messages serialize the existing task_desc directly, without augmenting it from prompt_vars or rendering the tools-mode user prompt.
  • Disable task-memory access and recipe publication in code mode. Preserve ordinary tool-calling behavior by default.
  • Record cell source, results, and robot calls under code_policy/; add CPU lifecycle coverage and paired English/Chinese usage documentation.

adapted from PyRUA-Lean

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-30T04:21:01.454058Z
We couldn’t complete this review. Comment @codex review to try again.
7da9323 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@read-the-docs-community

read-the-docs-community Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 RPent-cn | 🛠️ Build #35515457 | 📁 Comparing c14d364 against latest (0e406bb)

  🔍 Preview build  

1 file changed
± rst_source/guides/advanced_deployment.html

@read-the-docs-community

read-the-docs-community Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 RPent | 🛠️ Build #35515456 | 📁 Comparing c14d364 against latest (0e406bb)

  🔍 Preview build  

1 file changed
± rst_source/guides/advanced_deployment.html

@panhe1818
panhe1818 requested a review from Sonorous281 November 2, 2026 01:22
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.

1 participant