RadOncGym: An Agent-Based Framework for Radiotherapy Dose-Mimicking Optimization
Summary
RadOncGym is an agent-based framework enabling an LLM agent to iteratively tune 12 planning-objective weights for radiotherapy dose-mimicking optimization, using a surrogate verifier to cut evaluation cost. Evaluated on 600 OpenKBP head-and-neck patient–prediction contexts, a GPT-5.6 Sol agent under a three-solve budget reduces clinical-criterion violations and DVH/dose errors while using 75–77.6% less runtime than comparable methods.
View Cached Full Text
Cached at: 11/27/26, 09:33 AM
# RadOncGym: An Agent-Based Framework for Radiotherapy Dose-Mimicking Optimization Source: [https://arxiv.org/html/2611.33821](https://arxiv.org/html/2611.33821) Shupeng Cheng11footnotemark:1Xiwen Chen11footnotemark:1Ruishan Liu†Affiliation:University of Southern California, USAAffiliation:[miaot@usc\.edu](mailto:[email protected]),[shupengc@usc\.edu](mailto:[email protected]),[xiwenc@usc\.edu](mailto:[email protected]),[ruishanl@usc\.edu](mailto:[email protected]) ###### Abstract AI dose\-prediction models generate patient\-specific 3D dose distributions from patient anatomy, providing an important intermediate representation for automated radiotherapy planning\. However, an AI\-predicted dose must undergo downstream optimization to produce a physically constrained treatment plan, a process that requires balancing competing planning objectives\. We present RadOncGym, an agent\-based framework that enables an LLM agent to iteratively tune 12 planning\-objective weights for dose\-mimicking optimization\. To reduce iterative evaluation cost, RadOncGym incorporates a surrogate verifier that provides rapid feedback while allowing the agent to decide when to request a full planning solve within a fixed solve budget\. We evaluate RadOncGym on 60 OpenKBP head\-and\-neck patients, each paired with 10 predictions from OpenKBP\-Opt dose\-prediction sets, yielding 600 patient–prediction contexts per experimental configuration\. Under RadOncGym’s 16\-turn setting with a three\-solve budget, a GPT\-5\.6 Sol agent reduces mean clinical\-criterion violation by 0\.6131 Gy and improves DVH and dose scores by 0\.5986 and 0\.2204 Gy relative to leaving all 12 weights fixed at 1, outperforming all evaluated non\-agent weight\-tuning methods under the same solve budget\. It remains competitive with the 16\-solve variants of these methods while requiring 75\.0–77\.6% less normalized runtime\. RadOncGym demonstrates the potential of LLM agents as optimization planners in downstream radiotherapy plan optimization and provides a public testbed for their systematic evaluation\. Code and configurations are available at[https://github\.com/miaot\-usc/RadOncGym](https://github.com/miaot-usc/RadOncGym)\. ## 1Introduction AI dose\-prediction models estimate patient\-specific 3D radiotherapy dose distributions from patient anatomy\[[3](https://arxiv.org/html/2611.33821#bib.bib3),[9](https://arxiv.org/html/2611.33821#bib.bib9),[28](https://arxiv.org/html/2611.33821#bib.bib28)\]\. However, dose prediction and treatment\-plan optimization are distinct stages of the planning pipeline: an AI\-predicted dose distribution must still undergo downstream optimization to produce a physically constrained plan that balances target coverage against sparing of surrounding organs at risk\[[4](https://arxiv.org/html/2611.33821#bib.bib4)\]\(Figure[1](https://arxiv.org/html/2611.33821#S1.F1)\)\. In general, the resulting plan depends on how planning objectives are defined and weighted\. Dose\-mimicking optimization specializes this stage by using the AI\-predicted dose to define patient\-specific objective targets\. Within this formulation, a fixed weighting scheme may not be equally suitable across patients or across predictions generated by different dose\-prediction models\. We therefore ask: given an AI\-predicted dose distribution, how could planning\-objective weights be adapted to improve the resulting plan? Figure 1:Overview of dose\-mimicking optimization in RadOncGym\.Given patient anatomy and an AI\-predicted dose distribution, RadOncGym iteratively adapts 12 planning\-objective weights that control how the dose\-mimicking optimizer generates a physically constrained treatment plan\.Prior work has explored automated planning\-parameter tuning using black\-box optimization, including random and Bayesian search, as well as reinforcement learning and LLM\-based planning agents\[[18](https://arxiv.org/html/2611.33821#bib.bib18),[12](https://arxiv.org/html/2611.33821#bib.bib12),[26](https://arxiv.org/html/2611.33821#bib.bib26),[24](https://arxiv.org/html/2611.33821#bib.bib24),[25](https://arxiv.org/html/2611.33821#bib.bib25),[1](https://arxiv.org/html/2611.33821#bib.bib1),[17](https://arxiv.org/html/2611.33821#bib.bib17),[27](https://arxiv.org/html/2611.33821#bib.bib27),[23](https://arxiv.org/html/2611.33821#bib.bib23),[31](https://arxiv.org/html/2611.33821#bib.bib31),[22](https://arxiv.org/html/2611.33821#bib.bib22),[29](https://arxiv.org/html/2611.33821#bib.bib29),[2](https://arxiv.org/html/2611.33821#bib.bib2)\]\. Although these methods differ in how they propose candidate planning parameters, evaluating a candidate typically requires running the underlying treatment\-planning optimizer and evaluating the resulting plan\[[18](https://arxiv.org/html/2611.33821#bib.bib18),[26](https://arxiv.org/html/2611.33821#bib.bib26),[17](https://arxiv.org/html/2611.33821#bib.bib17),[23](https://arxiv.org/html/2611.33821#bib.bib23)\]\. Repeated high\-fidelity planning solves can therefore dominate the cost of the search, creating a trade\-off between the number of candidate configurations explored and the fidelity of their evaluation\. This motivates a multi\-fidelity strategy that evaluates candidate configurations rapidly while reserving expensive planning solves for a selected subset\. We introduce RadOncGym, an agent\-based framework and benchmark for dose\-mimicking optimization\. Given a patient–prediction context, an LLM agent iteratively proposes a 12\-dimensional vector of planning\-objective weights\. Every proposal receives rapid surrogate feedback, while the agent jointly decides how to update the weights, when to spend its remaining solve budget on a full Gurobi solve, and when to terminate the search\. This multi\-fidelity interaction enables the agent to explore candidate weight vectors using surrogate feedback while reserving full planning solves for candidates it considers informative or promising\. Across 600 patient–prediction contexts, the GPT\-5\.6 Sol configuration reduces mean clinical\-criterion violation by 0\.6131 Gy under a three\-solve budget, outperforming all evaluated non\-agent weight\-tuning methods under the same solve budget\. Our contributions are threefold: - •We introduce RadOncGym, a public agent environment and standardized benchmark for dose\-mimicking optimization, enabling controlled comparison of agent configurations and non\-agent weight\-tuning methods\. - •We develop a budget\-aware agent loop that combines rapid surrogate feedback with selectively requested full planning solves, allowing the agent to allocate a fixed solve budget across iterations\. - •We demonstrate that LLM agents within RadOncGym’s budget\-aware optimization loop can achieve a favorable performance–cost trade\-off, outperforming matched\-budget non\-agent methods and remaining competitive with their higher\-budget variants while requiring up to 77\.6% less normalized runtime\. ## 2Related Work ### 2\.1Dose Prediction Deep learning has substantially advanced voxel\-wise dose prediction\. CNN\-based models\[[13](https://arxiv.org/html/2611.33821#bib.bib13),[20](https://arxiv.org/html/2611.33821#bib.bib20),[30](https://arxiv.org/html/2611.33821#bib.bib30)\]have been applied across disease sites, including prostate\[[21](https://arxiv.org/html/2611.33821#bib.bib21)\], lung\[[5](https://arxiv.org/html/2611.33821#bib.bib5),[9](https://arxiv.org/html/2611.33821#bib.bib9)\], esophageal\[[32](https://arxiv.org/html/2611.33821#bib.bib32)\], and head\-and\-neck\[[19](https://arxiv.org/html/2611.33821#bib.bib19),[16](https://arxiv.org/html/2611.33821#bib.bib16),[10](https://arxiv.org/html/2611.33821#bib.bib10)\]\. Generative methods based on GAN\[[14](https://arxiv.org/html/2611.33821#bib.bib14)\]and diffusion models\[[33](https://arxiv.org/html/2611.33821#bib.bib33),[7](https://arxiv.org/html/2611.33821#bib.bib7),[8](https://arxiv.org/html/2611.33821#bib.bib8)\]have also been explored\. ### 2\.2Automated Radiotherapy Plan Optimization A predicted dose distribution, however, is not necessarily achievable under a fixed beam configuration and physical planning constraints\. Dose\-mimicking optimization uses the predicted distribution as a reference and optimizes a physically constrained plan that approximates it while balancing clinical objectives\. OpenKBP\-Opt\[[4](https://arxiv.org/html/2611.33821#bib.bib4)\]provides a public formulation of this downstream stage, in which each patient–prediction pair defines a separate planning context\. RadOncGym operates at this downstream stage, adapting objective weights without modifying the prediction model, and is therefore orthogonal to dose\-prediction methods\. Prior work has optimized planning parameters using black\-box search and Bayesian optimization, including Gaussian\-process and high\-dimensional methods\[[18](https://arxiv.org/html/2611.33821#bib.bib18),[26](https://arxiv.org/html/2611.33821#bib.bib26),[6](https://arxiv.org/html/2611.33821#bib.bib6)\]\. Other approaches use reinforcement\-learning planners\[[24](https://arxiv.org/html/2611.33821#bib.bib24),[25](https://arxiv.org/html/2611.33821#bib.bib25),[1](https://arxiv.org/html/2611.33821#bib.bib1)\]or LLM\-based agents\[[2](https://arxiv.org/html/2611.33821#bib.bib2),[17](https://arxiv.org/html/2611.33821#bib.bib17),[22](https://arxiv.org/html/2611.33821#bib.bib22),[23](https://arxiv.org/html/2611.33821#bib.bib23),[27](https://arxiv.org/html/2611.33821#bib.bib27),[29](https://arxiv.org/html/2611.33821#bib.bib29),[31](https://arxiv.org/html/2611.33821#bib.bib31)\]to update planning parameters sequentially\. Despite their different proposal mechanisms, these methods generally require a full solve to evaluate each candidate, making iterative search costly\. Many prior studies have also been evaluated on institution\-specific cohorts\[[26](https://arxiv.org/html/2611.33821#bib.bib26),[17](https://arxiv.org/html/2611.33821#bib.bib17),[23](https://arxiv.org/html/2611.33821#bib.bib23)\], limiting direct comparison across methods\. Building on OpenKBP\-Opt\[[4](https://arxiv.org/html/2611.33821#bib.bib4)\], RadOncGym compares agent and non\-agent weight\-tuning methods under shared patient–prediction contexts, objective\-weight space, planning backend, and solve budget, while using surrogate feedback to reduce reliance on full solves\. ## 3Methods Figure 2:RadOncGym environment and agent optimization loop\.Context\-specific patient anatomy and AI\-predicted dose inputs are loaded once\. The agent iteratively proposes objective weights, may request a full solve, and may stop optimization\. Every proposal receives feedback from a surrogate verifier, while full solves are requested selectively under a limited budget\. DVH and dose scores are computed after plan selection\.### 3\.1Problem Formulation Within each patient–prediction context provided by OpenKBP\-Opt, letaadenote patient anatomy,AaA\_\{a\}the patient\-specific dose\-influence matrix, andd^\\hat\{d\}an AI\-predicted 3D dose distribution\. OpenKBP\-Opt uses a fixed geometry of nine equally spaced coplanar 6 MV beams, each discretized into beamlets\[[4](https://arxiv.org/html/2611.33821#bib.bib4)\]\. Let𝐱\\mathbf\{x\}denote the corresponding vector of beamlet intensities\. The resulting dose distribution is d\(𝐱\)=Aa𝐱\.d\(\\mathbf\{x\}\)=A\_\{a\}\\mathbf\{x\}\.\(1\) A full solve for a planning\-objective weight vector𝐰\\mathbf\{w\}computes 𝐱⋆\(𝐰\)∈argmin𝐱∈𝒳\(a\)ℒDM\(d\(𝐱\),d^,𝐰\),\\mathbf\{x\}^\{\\star\}\(\\mathbf\{w\}\)\\in\\arg\\min\_\{\\mathbf\{x\}\\in\\mathcal\{X\}\(a\)\}\\mathcal\{L\}\_\{\\mathrm\{DM\}\}\\left\(d\(\\mathbf\{x\}\),\\hat\{d\};\\mathbf\{w\}\\right\),\(2\)where𝒳\(a\)\\mathcal\{X\}\(a\)denotes the feasible set of beamlet intensities under the OpenKBP\-Opt planning constraints andℒDM\\mathcal\{L\}\_\{\\mathrm\{DM\}\}denotes the weighted dose\-mimicking loss\. We denote the resulting optimized dose distribution byd𝐰\(a,d^\)d\_\{\\mathbf\{w\}\}\(a,\\hat\{d\}\)\. The vector𝐰\\mathbf\{w\}is the planning parameter exposed to the outer RadOncGym loop\. Its 12 entries are planning\-objective weights associated with coverage of the three planning target volumes \(PTVs\), sparing of seven organs at risk \(OARs\), ring falloff, and posterior\-neck sparing\. ### 3\.2RadOncGym Environment As shown in Figure[2](https://arxiv.org/html/2611.33821#S3.F2), RadOncGym comprises an agent\-facing environment, a surrogate verifier, and a Gurobi planning backend\. The environment derives structured planning summaries from patient anatomy and AI\-predicted dose to form the agent’s initial observation\. At each turn, the agent either stops optimization or proposes 12 planning\-objective weights𝐰∈\[0\.25,4\.0\]12\\mathbf\{w\}\\in\[0\.25,4\.0\]^\{12\}and decides whether to request a full solve\. Every proposal receives a surrogate estimate of clinical violation \(described in Section[3\.3](https://arxiv.org/html/2611.33821#S3.SS3)\) and its uncertainty\. If a full solve is requested and budget remains, the environment additionally runs Gurobi to generate an optimized dose plan and returns exact clinical\-criterion violations, plan\-specific DVH statistics, and a rendered DVH diagram calculated from the optimized plan\. The next observation contains the planning summaries, interaction history, returned feedback, and remaining solve budget\. This loop continues until the agent stops or the turn horizon is reached\. The environment then selects the candidate with the lowest observed mean clinical\-criterion violation among those successfully evaluated by a full solve\. The selected plan is evaluated using the benchmark endpoints, with expert\-reference information used only for post\-hoc DVH and dose scoring and never exposed during optimization\. We implement three memory mechanisms for representing prior optimization turns\. Lossless full\-history memory retains all previous weight proposals and feedback in chronological order\. Criterion\-response contrast memory\[[23](https://arxiv.org/html/2611.33821#bib.bib23)\]retains recent turns and the current best candidates, together with contrasting best\- and worst\-response examples for the dominant clinical\-criterion violation\. Pareto\-tradeoff memory\[[15](https://arxiv.org/html/2611.33821#bib.bib15)\]maintains a Pareto archive of full\-solve candidates based on their mean and individual clinical\-criterion violations\. We implement three role structures for organizing model calls\. Direct planner uses one planner call per environment turn\. Evaluator planner\[[17](https://arxiv.org/html/2611.33821#bib.bib17)\]first produces a structured assessment of the current observation and then provides it to the planner\. Candidate critic follows the self\-critique approach of CRITIC\[[11](https://arxiv.org/html/2611.33821#bib.bib11)\]and reviews only proposals that request a full solve\. The critic may accept the proposal or request a revision before it is executed\. ### 3\.3Surrogate Verifier The clinical criteria are not constraints in the dose\-mimicking objective above and are scored only after the solve, so a weight vector’s clinical quality is observable only after a full Gurobi solve, which dominates the cost of the loop\. RadOncGym provides a surrogate verifier that scores proposals between full solves, letting a search method rank candidates and spend its budget on the most promising\. Here, “verifier” denotes an approximate plan\-quality scorer rather than a physical\-feasibility checker\. The clinical objective is the mean positive violation of the 10 OpenKBP\-Opt clinical criteria in Table[1](https://arxiv.org/html/2611.33821#S3.T1)\. For criterionccwith measured metricmc\(d\)m\_\{c\}\(d\), thresholdbcb\_\{c\}, and orientationsc∈\{\+1,−1\}s\_\{c\}\\in\\\{\+1,\-1\\\}, over the applicable set𝒞\(a\)\\mathcal\{C\}\(a\), Jclin\(d\)=1\|𝒞\(a\)\|∑c∈𝒞\(a\)max\(sc\(mc\(d\)−bc\),0\),J\_\{\\mathrm\{clin\}\}\(d\)=\\frac\{1\}\{\|\\mathcal\{C\}\(a\)\|\}\\sum\_\{c\\in\\mathcal\{C\}\(a\)\}\\max\\\!\\left\(s\_\{c\}\\left\(m\_\{c\}\(d\)\-b\_\{c\}\\right\),\\,0\\right\),\(3\) All quantities are in Gy, andJclin=0J\_\{\\mathrm\{clin\}\}=0means every applicable criterion is satisfied; criteria for structures unavailable in a patient are omitted from𝒞\(a\)\\mathcal\{C\}\(a\)\. Results are reported relative to the*all\-ones initialization*d𝟏d\_\{\\mathbf\{1\}\}, the context\-matched plan with all 12 weights equal to 1 and the neutral initialization of OpenKBP\-Opt\[[4](https://arxiv.org/html/2611.33821#bib.bib4)\]:ΔJclin\(d\)=Jclin\(d𝟏\)−Jclin\(d\)\\Delta J\_\{\\mathrm\{clin\}\}\(d\)=J\_\{\\mathrm\{clin\}\}\(d\_\{\\mathbf\{1\}\}\)\-J\_\{\\mathrm\{clin\}\}\(d\), so positive values indicate improvement\. The standardized OpenKBP DVH and dose scores\[[3](https://arxiv.org/html/2611.33821#bib.bib3),[4](https://arxiv.org/html/2611.33821#bib.bib4)\]follow the same convention and are computed only after plan selection\. Table 1:Clinical criteria used to compute mean clinical\-criterion violation\.Thresholds in Gy, following OpenKBP\-Opt\[[4](https://arxiv.org/html/2611.33821#bib.bib4)\]; upper\-bound criteria takesc=\+1s\_\{c\}=\+1in Eq\. \([3](https://arxiv.org/html/2611.33821#S3.E3)\) and the threeD99D\_\{99\}criteriasc=−1s\_\{c\}=\-1\.The surrogate verifier is an ensemble of 24 histogram\-based gradient\-boosting regressors over 309 features, all available without a solve: the 12 proposed weights together with region\-of\-interest geometry, CT summaries, and AI\-predicted\-dose summaries, the complete list is in the supplementary material\. We report a scalar approximatingΔJclin\(d𝐰\)\\Delta J\_\{\\mathrm\{clin\}\}\(d\_\{\\mathbf\{w\}\}\)together with an uncertainty estimate, so positive predictions indicate expected improvement over the all\-ones initialization, and verifier error is directly comparable to the improvements of Section[4](https://arxiv.org/html/2611.33821#S4)\. It returns no dose, DVH, or per\-criterion prediction\. Training targets come from a fixed offline design, not from agent trajectories\. Each patient receives the all\-ones initialization and 15 vectors from an independently scrambled Sobol design in log\-weight space,wj=0\.25⋅16ujw\_\{j\}=0\.25\\cdot 16^\{u\_\{j\}\}withuj∈\[0,1\]u\_\{j\}\\in\[0,1\], giving log\-uniform marginals on\[0\.25,4\.0\]\[0\.25,4\.0\]; these 16 vectors are reused across the patient’s ten prediction contexts\. Each is solved with Gurobi and scored by Eq\. \([3](https://arxiv.org/html/2611.33821#S3.E3)\), yielding 4,618 and 1,440 usable rows from 4,800 and 1,600 attempts over 30 training and 10 validation patients\. The separate 60\-patient benchmark cohort is patient\-disjoint from both\. The ensemble is trained with scikit\-learn and combines six gradient\-boosting configurations at four seeds each, selected on the validation patients, and is frozen throughout: at inference it does not sample but scores whatever vector the agent or optimizer proposes\. ## 4Experiments and Results ### 4\.1Experimental Setup We evaluate RadOncGym on 60 OpenKBP evaluation patients using the top 10 AI dose\-prediction sets from OpenKBP\-Opt, yielding 600 patient–prediction contexts per complete configuration\[[3](https://arxiv.org/html/2611.33821#bib.bib3),[4](https://arxiv.org/html/2611.33821#bib.bib4)\]\. \(Please see the supplementary material for a comparison of baseline plan quality across sets\.\) The primary evaluation uses a 16\-turn horizon and a budget of at most three full solves per context\. A context\-matched all\-ones plan is precomputed as a common reference and fallback\. This reference solve is excluded from the three\-solve budget, and its runtime is reported separately in Figure[3](https://arxiv.org/html/2611.33821#S4.F3)\. For each method, the reported plan is the successfully full\-solved candidate with the lowest observedJclinJ\_\{\\mathrm\{clin\}\}; if no full solve succeeds, the all\-ones plan is used\. DVH and dose scores are computed only after plan selection and never influence optimization or selection\. We use Sobol search as the matched baseline and CMA\-ES, Exact\-GP LogEI, and SAAS\-BO as black\-box comparators, collectively referred to as non\-agent methods\. All methods share the same patient–prediction contexts, objective\-weight space, surrogate verifier, Gurobi backend, turn horizon, and solve budget\. Agents choose which proposals receive full solves, whereas the standard non\-agent methods use surrogate feedback for the first 13 turns and spend their three full solves on terminal candidate verification\. Non\-agent methods can only receive the scalar clinical\-criterion objective; agents additionally receive per\-criterion and DVH feedback after successful full solves\. Table[3](https://arxiv.org/html/2611.33821#S4.T3)includes three controls targeting differences in solve timing, feedback content, and horizon length\. Adaptive LogEI augments Exact\-GP LogEI with a deterministic fidelity\-selection controller that interleaves full solves using an online bias\-corrected estimate of the full\-solve objective\. Fixed clinical\-only GPT\-5\.6 Sol uses the same 13\-surrogate\-then\-3\-solve schedule and scalar feedback as the non\-agent methods, without adaptive solve timing or per\-criterion and DVH feedback\. Extended Exact\-GP LogEI increases the horizon to 64 turns, comprising 61 surrogate evaluations followed by the same three full solves\. The complete controller and scheduling rules are provided in the supplementary material\. We additionally evaluate the non\-agent methods and a representative GPT\-5\.6 Sol agent with up to 16 full solves under the same 16\-turn horizon\. The memory–role comparison evaluates GPT\-5\.6 Sol across the full Cartesian product of three memory mechanisms and three role structures\. For the cross\-model comparison, we fix the agent configuration to criterion\-response contrast memory with the candidate\-critic role and vary the underlying language model among GPT\-5\.6 Sol, Claude Sonnet 5, and Qwen3\.6\-27B, each using its provider\-default reasoning setting\. Outcomes are evaluated using improvements in clinical violation, DVH score and dose score, denotedΔ\\DeltaClin,Δ\\DeltaDVH, andΔ\\DeltaDose, respectively\. Min/ctx is normalized runtime per patient–prediction context\. We compute uncertainty intervals using patient ID as the resampling unit, treating the 60 patients rather than the 600 contexts as independent\. All methods share the frozen trained surrogate verifier and the evaluation protocol described above; all three LLM backbones support image input and receive the rendered DVH diagram when available\. Additional details of LLM usage are provided in the supplementary material\. ### 4\.2Main Comparison Table 2:Main comparison of benchmark improvement and normalized runtime\.Blocks separate non\-agent and agent families at each budget\. The 16\-solve rows are upper\-budget references, not part of the matched three\-solve comparison\.Table 3:Controls targeting full\-solve timing, feedback content, and horizon length\.GPT\-5\.6 Sol \(fixed, clin\.\) uses only scalar clinical feedback, with 13 surrogate turns followed by three full solves; Exact\-GP LogEI \(ext\.\) uses 64 total turns\.As shown in Table[2](https://arxiv.org/html/2611.33821#S4.T2)and Figure[3](https://arxiv.org/html/2611.33821#S4.F3), under the common 16\-turn horizon and three\-solve budget, GPT\-5\.6 Sol reduces mean clinical\-criterion violation by0\.6130\.613Gy and improves DVH score and dose score by0\.5990\.599and0\.2200\.220Gy, respectively, whereas the best non\-agent improvement for each endpoint is\+0\.228\+0\.228,\+0\.259\+0\.259, and\+0\.096\+0\.096Gy, attained respectively by SAAS\-BO, CMA\-ES, and SAAS\-BO; the adaptive non\-agent control, Adaptive LogEI, reaches\+0\.236\+0\.236Gy on the clinical\-criterion endpoint\. This comparison matches methods on maximum turn horizon rather than actual surrogate\-query count, and the horizon materially affects the result: extending Exact\-GP LogEI to 61 surrogate turns before the same three solves raises its clinical\-criterion improvement from\+0\.155\+0\.155to\+0\.484\+0\.484Gy, narrowing but not closing the gap\. Accordingly, the matched\-budget comparison is specific to the 16\-turn protocol; the extended\-horizon control evaluates performance under a larger surrogate\-query budget\. For GPT\-5\.6 Sol with contrast memory and the candidate\-critic role, the mean improvements are\+0\.613\+0\.613Gy for clinical\-criterion violation \(95% CI\[0\.490,0\.729\]\[0\.490,0\.729\]\),\+0\.599\+0\.599Gy for DVH score \(95% CI\[0\.484,0\.718\]\[0\.484,0\.718\]\), and\+0\.220\+0\.220Gy for dose score \(95% CI\[0\.126,0\.322\]\[0\.126,0\.322\]\)\. Paired patient\-clustered intervals favor GPT\-5\.6 Sol over all four non\-agent methods at three solves, Adaptive LogEI, and Qwen3\.6\-27B on all three endpoints; detailed marginal and paired intervals are reported in the supplementary material\. The controls in Table[3](https://arxiv.org/html/2611.33821#S4.T3)clarify the sources of this difference\. Adaptive LogEI improves clinical\-criterion reduction relative to fixed\-schedule Exact\-GP LogEI, but produces smaller DVH and dose improvements, indicating that adaptive fidelity selection primarily benefits the scalar objective it observes\. Fixed clinical\-only GPT\-5\.6 Sol achieves nearly the same performance as the full agent on all three endpoints \(\+0\.590\+0\.590versus\+0\.613\+0\.613Gy on clinical\-criterion violation,\+0\.596\+0\.596versus\+0\.599\+0\.599Gy on DVH score, and\+0\.198\+0\.198versus\+0\.220\+0\.220Gy on dose score\)\. These results suggest that iterative agent\-based weight selection contributes substantially beyond shared verifier access, whereas adaptive solve timing and richer per\-criterion and DVH feedback account for only a small share of the agent’s advantage under this protocol\. Under the three\-solve budget, GPT\-5\.6 Sol remains competitive with the 16\-solve non\-agent methods while requiring 75\.0–77\.6% less normalized runtime\. When allowed 16 full solves, GPT\-5\.6 Sol achieves improvements of \+0\.690, \+0\.692, and \+0\.223 Gy on the three endpoints, exceeding all evaluated 16\-solve non\-agent methods\. Model\-invocation counts, solver failures, and post\-hoc endpoint audits are reported in the supplementary material\. #### Constraint satisfaction To complement mean clinical\-criterion violation, we evaluate pooled individual\-criterion satisfaction, strict all\-criteria feasibility, and the largest remaining criterion violation in each selected plan\. For the expert reference, all\-ones plans, and GPT\-5\.6 Sol, respectively, individual\-criterion satisfaction is 73\.7%, 77\.9%, and 82\.0%, while strict all\-criteria feasibility is 15\.0%, 13\.0%, and 20\.5%\. The two endpoints are distinct, and our expert\-reference figure differs from the 69\.7% OpenKBP\-Opt reports for its full cohort\[[4](https://arxiv.org/html/2611.33821#bib.bib4)\]because we evaluate a 60\-patient subset\. Under the three\-solve budget, strict all\-criteria feasibility is 14\.3% for Sobol, 14\.7% for CMA\-ES, 13\.7% for Exact\-GP LogEI, 16\.2% for SAAS\-BO, 17\.5% for Adaptive LogEI, 18\.7% for Claude Sonnet 5, and 18\.5% for Qwen3\.6\-27B\. For each selected plan, we identify the largest positive violation among its applicable criteria and then average this worst remaining violation across contexts\. This mean decreases from 10\.01 Gy for the all\-ones initialization to 6\.65 Gy for GPT\-5\.6 Sol\. Patient\-clustered intervals, full per\-method maximum\-violation summaries, exact aggregate counts, and per\-criterion distributions are reported in the supplementary material\. Figure[3](https://arxiv.org/html/2611.33821#S4.F3)plots improvement against normalized runtime, using the runtimes of Table[2](https://arxiv.org/html/2611.33821#S4.T2)\. Figure 3:Cost–performance trade\-off\.Improvement over the context\-matched all\-ones initialization versus normalized runtime per patient–prediction context, shown for clinical\-criterion violation \(top\), DVH score \(middle\), and dose score \(bottom\)\. All improvements are in Gy and higher is better on all three endpoints, so points toward the upper left are preferable\. Both the three\-solve and 16\-solve conditions of Table[2](https://arxiv.org/html/2611.33821#S4.T2)are included; the all\-ones reference solve is excluded from the solve budget and is plotted separately at 5\.2 min/context\. ### 4\.3Memory and Role\-Structure Comparison Table[4](https://arxiv.org/html/2611.33821#S4.T4)compares all nine memory–role configurations using GPT\-5\.6 Sol with its provider\-default reasoning setting, evaluated on the same 600 patient–prediction contexts\. Table 4:GPT\-5\.6 Sol memory and role\-structure comparison\.Values report improvement over the context\-matched all\-ones plan in Gy, across the same 60 patients and 600 patient–prediction contexts; higher is better\. Bold denotes the best value for each endpoint across the nine configurations\.Performance varies only modestly across the nine configurations, and no memory–role combination is best on all three endpoints\. The role structures also incur different model\-call costs, so the rows represent complete pipeline configurations rather than controlled estimates of an individual role component\. Under criterion\-response contrast memory, paired critic\-versus\-direct\-planner intervals cross zero on all three endpoints; we therefore do not infer a robust advantage for the critic\. Detailed paired estimates are provided in the supplementary material\. Figure 4:Visualization for a representative plan and its weight\-update trajectory\.\(a–c\) Dose distributions for the all\-ones initialization, the GPT\-5\.6 Sol optimized plan, and the expert reference\. Expert\-reference isodose contours are shown in white on all three panels; black contours in \(a,b\) show the generated plans\. Closer agreement between black and white contours indicates smaller spatial dose error\. \(d–e\) Absolute voxelwise error relative to the expert reference; slice mean absolute error decreases from 5\.98 to 3\.29 Gy\. \(f\) DVH comparison for the three plans\. \(g\) Within\-context weight history by objective group; vertical bands mark full solves and the final gray marker the stop action\. ### 4\.4Surrogate Verifier Utility We evaluate whether the surrogate verifier supports candidate screening between full solves\. On validation patients, Figure[5](https://arxiv.org/html/2611.33821#S4.F5)compares the verifier\-predicted change in mean clinical\-criterion violation with the change obtained from a full solve\. The verifier achieves MAE=0\.216=0\.216Gy and mean within\-context Spearman correlationρ=0\.705\\rho=0\.705, and the true best candidate falls within its predicted top three in 58\.9% of validation contexts, supporting its use as a low\-cost ranking and screening signal\. To test for distribution shift under adaptive optimization, we additionally evaluate the verifier on agent\-generated actions that were subsequently sent to Gurobi\. Of 1,765 requested full solves, 1,732 yield paired surrogate and full\-solve outcomes after excluding 33 timeouts\. On these adaptive queries the verifier has MAE=0\.358=0\.358Gy and agrees with the full solve on whether a candidate improves over the all\-ones initialization in 81\.6% of cases, with the largest turn\-binned error during turns 5–8; correlation statistics are reported in the supplementary material\. Predictive error increases on agent\-generated queries, but the verifier retains 81\.6% agreement on improvement direction, supporting its use as a screening signal under this distribution shift\. Figure 5:Surrogate\-verifier utility on validation patients\.Surrogate\-predicted against true full\-solve change in mean clinical\-criterion violation relative to the all\-ones initialization\. ### 4\.5Agent Behavior and Weight Adaptation The representative GPT\-5\.6 Sol configuration typically spends its budget early rather than conserving it\. It obtains three successful full solves in 91\.8% of contexts, while 5\.8%, 1\.5%, and 0\.8% use two, one, and zero solves; five contexts have no successful solve and fall back to the all\-ones plan\. Explicit stopping occurs in 599 of 600 contexts, with median turns of 2, 4, 7, and 9 for the three full solves and the stop, so the gap before stopping reflects when the agent chooses to end rather than additional optimization\. Carrying the best incumbent forward, mean clinical\-criterion improvement reaches 54% of the final\+0\.6131\+0\.6131Gy after the first full solve and 88% after the second; among contexts reaching the second and third solves, new candidates replace the incumbent in 77\.1% and 65\.5%, respectively\. Full\-solve usage, conditional turn distributions, and stage\-wise gains are reported in the supplementary material\. Table[5](https://arxiv.org/html/2611.33821#S4.T5)summarizes the direction of each final proposal weight relative to the all\-ones initialization and its mean value\. The final direction differs substantially across objectives\. PTV70 is increased in 96\.2% of contexts, and PTV56 and both parotid weights more often increase than decrease, while the serial\-organ, larynx, ring\-falloff, and posterior\-neck weights more often decrease\. PTV63 more often decreases, although its mean final weight stays near one\. These patterns describe the joint behavior of the 12\-dimensional agent and should not be interpreted as causal effects of individual weights\. Table 5:Planning\-objective weight behavior for the representative GPT\-5\.6 Sol agent\.“Final↑\\uparrow/↓\\downarrow” gives the fraction of the 600 contexts whose final proposal weight ends more than 5% above or below the all\-ones initialization\. Per\-step movement frequencies are in the supplementary material\. ### 4\.6Qualitative Plan Visualization Figure[4](https://arxiv.org/html/2611.33821#S4.F4)presents a representative case in which planning\-objective weight tuning brings the optimized dose distribution closer to the expert reference, as reflected by reduced voxelwise error and improved DVH agreement\. ## 5Limitations and Future Work Benchmark scope\.RadOncGym is evaluated on 60 head\-and\-neck patients, one fixed OpenKBP\-Opt planning formulation, the top 10 OpenKBP\-Opt dose\-prediction sets, and an action space restricted to 12 planning\-objective weights\. This fixed scope enables controlled comparison but does not establish generalization to other disease sites, clinical protocols, prediction models, planning formulations, or treatment\-planning systems\. Future extensions could incorporate standardized adapters for additional public datasets, planning backends, and optimization parameters\. Statistical dependence and run\-to\-run variability\.The 600 patient–prediction contexts arise from 60 patients, each paired with 10 dose predictions\. We therefore cluster uncertainty estimates by patient to account for the shared anatomy within each group of 10 contexts\. All campaigns use one fixed seed, so the reported intervals characterize variation across patients but not variation across repeated runs\. Multi\-seed experiments would provide a fuller assessment of run\-to\-run variability\. Comparison interpretation\.The primary comparison holds the turn horizon, surrogate verifier, and full\-solve budget fixed across methods\. However, agents receive richer observations and feedback and can choose when to request full solves, whereas the non\-agent methods use scalar feedback and a fixed solve schedule\. Although the controls in Table[3](https://arxiv.org/html/2611.33821#S4.T3)evaluate some of these differences, the observed performance gap reflects the overall agent pipeline and should not be attributed to the LLM alone\. Clinical interpretation\.The reported endpoints summarize 10 fixed clinical criteria and agreement with the expert reference dose\. The clinical implications of improvements in these benchmark metrics require further study\. OpenKBP\-Opt produces fluence\-based plans under a research dose\-influence model and plan\-complexity constraint; it does not reproduce the complete clinical workflow of machine\-specific sequencing, treatment\-planning\-system dose recalculation, and quality assurance\. The reported improvements should therefore be interpreted as benchmark gains rather than evidence of clinical benefit or deployability\. Any generated plan would require standard quality assurance and expert clinical review, and prospective evaluation within clinical planning systems is needed before translation\. ## 6Conclusion We introduced RadOncGym, an agent\-based framework for budget\-aware dose\-mimicking optimization\. By combining surrogate feedback with agent\-selected full planning solves, RadOncGym enables an LLM agent to adapt planning\-objective weights while allocating a limited solve budget across iterations\. Across 600 patient–prediction contexts, its GPT\-5\.6 Sol configuration under a three\-solve budget improved all three benchmark endpoints, including a 0\.6131 Gy reduction in mean clinical\-criterion violation\. Under the same solve budget, it outperformed all evaluated non\-agent weight\-tuning methods and remained competitive with their 16\-solve variants at 75\.0–77\.6% lower normalized runtime\. These findings support the use of LLM agents as optimization planners under limited solve budgets\. RadOncGym also offers a public testbed for studying agent\-based optimization in downstream radiotherapy planning\. ## Acknowledgments This work was supported by the National Science Foundation \(NSF\) under grants 2613950 and 2613761\. ## References - \[1\]Md Mainul Abrar, Parvat Sapkota, Damon Sprouts, Xun Jia, and Yujie Chi\.Actor critic with experience replay\-based automatic treatment planning for prostate cancer intensity modulated radiotherapy\.*Medical Physics*, 52\(7\):e17915, 2025\. - \[2\]Md Mainul Abrar, Xun Jia, and Yujie Chi\.A machine\-to\-machine knowledge\-guided LLM agent for generalizable radiotherapy treatment planning\.*arXiv preprint arXiv:2606\.00922*, 2026\. - \[3\]Aaron Babier, Binghao Zhang, Rafid Mahmood, Kevin L\. Moore, Thomas G\. Purdie, Andrea L\. McNiven, and Timothy C\. Y\. Chan\.OpenKBP: The open\-access knowledge\-based planning grand challenge and dataset\.*Medical Physics*, 48\(9\):5549–5561, 2021\.arXiv:2011\.14076\. - \[4\]Aaron Babier, Rafid Mahmood, Binghao Zhang, Victor G\. L\. Alves, Ana Maria Barragán\-Montero, Joel Beaudry, Carlos E\. Cardenas, Yankui Chang, Zijie Chen, Jaehee Chun, et al\.OpenKBP\-Opt: An international and reproducible evaluation of 76 knowledge\-based planning pipelines\.*Physics in Medicine and Biology*, 67\(18\):185012, 2022\.arXiv:2202\.08303\. - \[5\]Ana María Barragán\-Montero, Dan Nguyen, Weiguo Lu, Mu\-Han Lin, Roya Norouzi\-Kandalan, Xavier Geets, Edmond Sterpin, and Steve Jiang\.Three\-dimensional dose prediction for lung imrt patients with deep neural networks: robust learning from heterogeneous beam configurations\.*Medical physics*, 46\(8\):3679–3691, 2019\. - \[6\]David Eriksson and Martin Jankowiak\.High\-dimensional bayesian optimization with sparse axis\-aligned subspaces\.In*Proceedings of the Thirty\-Seventh Conference on Uncertainty in Artificial Intelligence*, pages 493–503\. PMLR, 2021\. - \[7\]Zhenghao Feng, Lu Wen, Peng Wang, Binyu Yan, Xi Wu, Jiliu Zhou, and Yan Wang\.DiffDP: Radiotherapy dose prediction via a diffusion model\.In*International conference on medical image computing and computer\-assisted intervention*, pages 191–201\. Springer, 2023\. - \[8\]Linjie Fu, Xia Li, Xiuding Cai, Xueyao Wang, Yali Shen, and Yu Yao\.MD\-Dose: A diffusion model based on the Mamba for radiation dose prediction\.In*2024 IEEE international conference on bioinformatics and biomedicine \(BIBM\)*, pages 911–918\. IEEE, 2024\. - \[9\]Riqiang Gao, Bin Lou, Zhoubing Xu, Dorin Comaniciu, and Ali Kamen\.Flexible\-Cm GAN: towards precise 3D dose prediction in radiotherapy\.In*2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition \(CVPR\)*, pages 715–725\. IEEE, 2023\. - \[10\]Tara Gheshlaghi, Shahabedin Nabavi, Samireh Shirzadikia, Mohsen Ebrahimi Moghaddam, and Nima Rostampour\.A cascade transformer\-based model for 3d dose distribution prediction in head and neck cancer radiotherapy\.*Physics in Medicine & Biology*, 69\(4\):045010, 2024\. - \[11\]Zhibin Gou, Zhihong Shao, Yeyun Gong, Yelong Shen, Yujiu Yang, Nan Duan, and Weizhu Chen\.CRITIC: Large language models can self\-correct with tool\-interactive critiquing\.In*International Conference on Learning Representations*, 2024\. - \[12\]Charles Huang, Yusuke Nomura, Yong Yang, and Lei Xing\.Meta\-optimization for fully automated radiation therapy treatment planning\.*Physics in Medicine and Biology*, 67\(5\):055011, 2022\. - \[13\]Vasant Kearney, Jason W Chan, Samuel Haaf, Martina Descovich, and Timothy D Solberg\.Dosenet: a volumetric dose prediction algorithm using 3d fully\-convolutional neural networks\.*Physics in Medicine & Biology*, 63\(23\):235022, 2018\. - \[14\]Vasant Kearney, Jason W Chan, Tianqi Wang, Alan Perry, Martina Descovich, Olivier Morin, Sue S Yom, and Timothy D Solberg\.Dosegan: a generative adversarial network for synthetic dose prediction using attention\-gated discrimination and generation\.*Scientific reports*, 10\(1\):11073, 2020\. - \[15\]Joshua D\. Knowles and David W\. Corne\.The pareto archived evolution strategy: A new baseline algorithm for pareto multiobjective optimisation\.In*Proceedings of the 1999 Congress on Evolutionary Computation*, pages 98–105\. IEEE, 1999\. - \[16\]Shuolin Liu, Jingjing Zhang, Teng Li, Hui Yan, and Jianfei Liu\.Technical note: A cascade 3D U\-Net for dose prediction in radiotherapy\.*Medical physics*, 48\(9\):5574–5582, 2021\. - \[17\]Sheng Liu, Oscar Pastor\-Serrano, Yizheng Chen, Matthew Gopaulchan, Weixing Liang, Mark Buyyounouski, Erqi Pollom, Quynh\-Thu Le, Michael Gensheimer, Peng Dong, Yong Yang, James Zou, and Lei Xing\.Automated radiotherapy treatment planning guided by GPT\-4Vision\.*Physics in Medicine and Biology*, 70\(15\):155002, 2025\.Preprint: arXiv:2406\.15609\. - \[18\]Kelsey Maass, Aleksandr Aravkin, and Minsun Kim\.A hyperparameter\-tuning approach to automated inverse planning\.*Medical Physics*, 49\(5\):3405–3415, 2022\. - \[19\]Dan Nguyen, Xun Jia, David Sher, Mu\-Han Lin, Zohaib Iqbal, Hui Liu, and Steve Jiang\.3d radiotherapy dose prediction on head and neck cancer patients with a hierarchically densely connected u\-net deep learning architecture\.*Physics in medicine & Biology*, 64\(6\):065020, 2019a\. - \[20\]Dan Nguyen, Troy Long, Xun Jia, Weiguo Lu, Xuejun Gu, Zohaib Iqbal, and Steve Jiang\.A feasibility study for predicting optimal radiation therapy dose distributions of prostate cancer patients from patient anatomy using deep learning\.*Scientific reports*, 9\(1\):1076, 2019b\. - \[21\]Dan Nguyen, Rafe McBeth, Azar Sadeghnejad Barkousaraie, Gyanendra Bohara, Chenyang Shen, Xun Jia, and Steve Jiang\.Incorporating human and learned domain knowledge into training deep neural networks: a differentiable dose\-volume histogram and adversarial inspired framework for generating pareto optimal dose distributions in radiation therapy\.*Medical physics*, 47\(3\):837–849, 2020\. - \[22\]Humza Nusrat, Luke Francisco, Bing Luo, Hassan Bagher\-Ebadian, Joshua Kim, Karen Chin\-Snyder, Salim Siddiqui, Mira Shah, Eric Mellon, Mohammad Ghassemi, Anthony Doemer, Benjamin Movsas, and Kundan Thind\.Automated stereotactic radiosurgery planning using a human\-in\-the\-loop reasoning large language model agent\.*arXiv preprint arXiv:2512\.20586*, 2025a\. - \[23\]Humza Nusrat, Bing Luo, Ryan Hall, Joshua Kim, Hassan Bagher\-Ebadian, Anthony Doemer, Benjamin Movsas, and Kundan Thind\.Autonomous radiotherapy treatment planning using DOLA: A privacy\-preserving, LLM\-based optimization agent\.*arXiv preprint arXiv:2503\.17553*, 2025b\. - \[24\]Chenyang Shen, Yesenia Gonzalez, Peter Klages, Nan Qin, Hyunuk Jung, Liyuan Chen, Dan Nguyen, Steve B\. Jiang, and Xun Jia\.Intelligent inverse treatment planning via deep reinforcement learning, a proof\-of\-principle study in high dose\-rate brachytherapy for cervical cancer\.*Physics in Medicine and Biology*, 64\(11\):115013, 2019\. - \[25\]Chenyang Shen, Dan Nguyen, Liyuan Chen, Yesenia Gonzalez, Rafe McBeth, Nan Qin, Steve B\. Jiang, and Xun Jia\.Operating a treatment planning system using a deep\-reinforcement\-learning\-based virtual treatment planner for prostate cancer intensity\-modulated radiation therapy treatment planning\.*Medical Physics*, 47\(6\):2329–2336, 2020\. - \[26\]Qingying Wang, Ruoxi Wang, Jiacheng Liu, Fan Jiang, Haizhen Yue, Yi Du, and Hao Wu\.High\-dimensional automated radiation therapy treatment planning via bayesian optimization\.*Medical Physics*, 50\(6\):3773–3787, 2023\.arXiv:2205\.10980\. - \[27\]Qingxin Wang, Zhongqiu Wang, Minghua Li, Xinye Ni, Rong Tan, Wenwen Zhang, Maitudi Wubulaishan, Wei Wang, Zhiyong Yuan, Zhen Zhang, and Cong Liu\.A feasibility study of automating radiotherapy planning with large language model agents\.*Physics in Medicine and Biology*, 70\(7\):075007, 2025\. - \[28\]Yuhan Wang, Zihan Li, Han Liu, Simon Arberet, Martin Kraus, Yuyin Zhou, Florin\-Cristian Ghesu, Dorin Comaniciu, Ali Kamen, and Riqiang Gao\.Any2Any 3D diffusion models with knowledge transfer: A radiotherapy planning study\.In*IEEE/CVF Conference on Computer Vision and Pattern Recognition*, pages 16520–16530, 2026\.arXiv:2605\.09622\. - \[29\]Shuoyang Wei, Ankang Hu, Yongguang Liang, Jingru Yang, Lang Yu, Wenbo Li, Bo Yang, and Jie Qiu\.Feasibility study of automatic radiotherapy treatment planning for cervical cancer using a large language model\.*Radiation Oncology*, 20:77, 2025\. - \[30\]Hui Yan, Shoulin Liu, Jingjing Zhang, Jianfei Liu, and Teng Li\.Utilizing pre\-determined beam orientation information in dose prediction by 3d fully\-connected network for intensity modulated radiotherapy\.*Quantitative Imaging in Medicine and Surgery*, 11\(12\):4742–4752, 2021\. - \[31\]Dongrong Yang, Xin Wu, Yibo Xie, Xinyi Li, Qiuwen Wu, Jackie Wu, and Yang Sheng\.Zero\-shot large language model agents for fully automated radiotherapy treatment planning\.*arXiv preprint arXiv:2510\.11754*, 2025\.NeurIPS 2025 GenAI4Health workshop\. - \[32\]Jingjing Zhang, Shuolin Liu, Hui Yan, Teng Li, Ronghu Mao, and Jianfei Liu\.Predicting voxel\-level dose distributions for esophageal radiotherapy using densely connected network with dilated convolutions\.*Physics in Medicine & Biology*, 65\(20\):205013, 2020\. - \[33\]Yiwen Zhang, Chuanpu Li, Liming Zhong, Zeli Chen, Wei Yang, and Xuetao Wang\.Dosediff: distance\-aware diffusion model for dose prediction in radiotherapy\.*IEEE Transactions on Medical Imaging*, 43\(10\):3621–3633, 2024\. \\thetitle Supplementary Material ###### Contents 1. [1Introduction](https://arxiv.org/html/2611.33821#S1) 2. [2Related Work](https://arxiv.org/html/2611.33821#S2)1. [2\.1Dose Prediction](https://arxiv.org/html/2611.33821#S2.SS1) 2. [2\.2Automated Radiotherapy Plan Optimization](https://arxiv.org/html/2611.33821#S2.SS2) 3. [3Methods](https://arxiv.org/html/2611.33821#S3)1. [3\.1Problem Formulation](https://arxiv.org/html/2611.33821#S3.SS1) 2. [3\.2RadOncGym Environment](https://arxiv.org/html/2611.33821#S3.SS2) 3. [3\.3Surrogate Verifier](https://arxiv.org/html/2611.33821#S3.SS3) 4. [4Experiments and Results](https://arxiv.org/html/2611.33821#S4)1. [4\.1Experimental Setup](https://arxiv.org/html/2611.33821#S4.SS1) 2. [4\.2Main Comparison](https://arxiv.org/html/2611.33821#S4.SS2) 3. [4\.3Memory and Role\-Structure Comparison](https://arxiv.org/html/2611.33821#S4.SS3) 4. [4\.4Surrogate Verifier Utility](https://arxiv.org/html/2611.33821#S4.SS4) 5. [4\.5Agent Behavior and Weight Adaptation](https://arxiv.org/html/2611.33821#S4.SS5) 6. [4\.6Qualitative Plan Visualization](https://arxiv.org/html/2611.33821#S4.SS6) 5. [5Limitations and Future Work](https://arxiv.org/html/2611.33821#S5) 6. [6Conclusion](https://arxiv.org/html/2611.33821#S6) 7. [References](https://arxiv.org/html/2611.33821#bib) 8. [AReproducibility Details](https://arxiv.org/html/2611.33821#A1)1. [A\.1Terminology](https://arxiv.org/html/2611.33821#A1.SS1) 2. [A\.2Models and Seeds](https://arxiv.org/html/2611.33821#A1.SS2) 3. [A\.3Agent Textual Interface](https://arxiv.org/html/2611.33821#A1.SS3) 4. [A\.4Planning Backend and Optimizer Settings](https://arxiv.org/html/2611.33821#A1.SS4) 5. [A\.5Runtime Accounting](https://arxiv.org/html/2611.33821#A1.SS5) 6. [A\.6Campaign Accounting](https://arxiv.org/html/2611.33821#A1.SS6) 7. [A\.7Verifier Development](https://arxiv.org/html/2611.33821#A1.SS7) 8. [A\.8Release and Licensing](https://arxiv.org/html/2611.33821#A1.SS8) 9. [BAgent Prompts and Structured Interfaces](https://arxiv.org/html/2611.33821#A2)1. [B\.1Common Planner System Instruction](https://arxiv.org/html/2611.33821#A2.SS1) 2. [B\.2Planner Input Object](https://arxiv.org/html/2611.33821#A2.SS2) 3. [B\.3Planner Output Objects](https://arxiv.org/html/2611.33821#A2.SS3) 4. [B\.4Role\-Specific Prompts](https://arxiv.org/html/2611.33821#A2.SS4) 5. [B\.5Memory\-View Construction](https://arxiv.org/html/2611.33821#A2.SS5) 6. [B\.6Fixed Clinical\-Only Control](https://arxiv.org/html/2611.33821#A2.SS6) 7. [B\.7Validation, Retries, and Model Settings](https://arxiv.org/html/2611.33821#A2.SS7) 10. [CPlanning Formulation and Objective Weights](https://arxiv.org/html/2611.33821#A3)1. [C\.1Reference Objectives from the Predicted Dose](https://arxiv.org/html/2611.33821#A3.SS1) 2. [C\.2Absolute\-Mean Dose\-Mimicking Objective](https://arxiv.org/html/2611.33821#A3.SS2) 3. [C\.3Voxel\-Derived Objective Families](https://arxiv.org/html/2611.33821#A3.SS3) 4. [C\.4Objective\-Weight Controls](https://arxiv.org/html/2611.33821#A3.SS4) 5. [C\.5Additional Planning Constraints](https://arxiv.org/html/2611.33821#A3.SS5) 6. [C\.6Inner and Outer Objectives](https://arxiv.org/html/2611.33821#A3.SS6) 11. [DAgent Observation and Public Context](https://arxiv.org/html/2611.33821#A4)1. [D\.1Public Case Description](https://arxiv.org/html/2611.33821#A4.SS1) 2. [D\.2Protocol and Criterion Margins](https://arxiv.org/html/2611.33821#A4.SS2) 3. [D\.3DVH Feedback](https://arxiv.org/html/2611.33821#A4.SS3) 4. [D\.4Structured Action Interface](https://arxiv.org/html/2611.33821#A4.SS4) 5. [D\.5Prompt Construction, Schemas, and Retries](https://arxiv.org/html/2611.33821#A4.SS5) 6. [D\.6Information Withheld from the Agent](https://arxiv.org/html/2611.33821#A4.SS6) 12. [ESurrogate\-Verifier Details](https://arxiv.org/html/2611.33821#A5)1. [E\.1Ordered Feature Schema](https://arxiv.org/html/2611.33821#A5.SS1) 2. [E\.2Development Split and Uncertainty Estimate](https://arxiv.org/html/2611.33821#A5.SS2) 3. [E\.3Static and Adaptive\-Query Evaluation](https://arxiv.org/html/2611.33821#A5.SS3) 13. [FBaseline Quality and Controller Rules](https://arxiv.org/html/2611.33821#A6)1. [F\.1All\-Ones Baseline Plan Quality by Prediction Set](https://arxiv.org/html/2611.33821#A6.SS1) 2. [F\.2Common Action and Final\-Selection Rules](https://arxiv.org/html/2611.33821#A6.SS2) 3. [F\.3Non\-Agent Method Policies](https://arxiv.org/html/2611.33821#A6.SS3) 14. [GPatient\-Clustered Uncertainty](https://arxiv.org/html/2611.33821#A7)1. [G\.1Memory and Role\-Structure Comparison](https://arxiv.org/html/2611.33821#A7.SS1) 15. [HAgent\-Loop and Weight\-Update Details](https://arxiv.org/html/2611.33821#A8)1. [H\.1Full\-Solve Timing and Stage\-Wise Gains](https://arxiv.org/html/2611.33821#A8.SS1) 2. [H\.2Per\-Control Weight Movement](https://arxiv.org/html/2611.33821#A8.SS2) 3. [H\.3Cross\-Backbone Behavioral Comparison](https://arxiv.org/html/2611.33821#A8.SS3) 16. [IExample Planning Episode](https://arxiv.org/html/2611.33821#A9)1. [I\.1Episode State Before the Decision](https://arxiv.org/html/2611.33821#A9.SS1) 2. [I\.2Proposal, Critique, and Revision](https://arxiv.org/html/2611.33821#A9.SS2) 3. [I\.3Full\-Solve Feedback and Budget Reallocation](https://arxiv.org/html/2611.33821#A9.SS3) 4. [I\.4Post\-Hoc Endpoint Audit](https://arxiv.org/html/2611.33821#A9.SS4) 17. [JClinical\-Criterion Satisfaction and Violation Details](https://arxiv.org/html/2611.33821#A10) ## Appendix AReproducibility Details This section provides the model, solver, runtime, verifier\-development, and release details referenced by the main paper\. ### A\.1Terminology We use the terms of the main paper throughout the supplement: the*surrogate verifier*is the learned scorer; a*full solve*is a Gurobi planning solve; budgets are counted in*full\-solve attempts*, which include timeouts and exact\-cache replays, while reported outcome counts are*successful full solves*; and the*non\-agent methods*are Sobol, CMA\-ES, Exact\-GP LogEI, and SAAS\-BO\. Information described as*public*is visible to the agent during optimization; the expert reference dose and the DVH and dose scores are not\. The agent\-facing JSON interface reproduced in Section[B](https://arxiv.org/html/2611.33821#A2)uses the implementation namescheapandfullfor the two fidelities and is shown as the model receives it; the instruction also calls the full solve the*physics verifier*or the*expensive verifier*\. Improvement is reported asΔJclin=Jclin\(d1\)−Jclin\(dw\)\\Delta J\_\{\\mathrm\{clin\}\}=J\_\{\\mathrm\{clin\}\}\(d\_\{1\}\)\-J\_\{\\mathrm\{clin\}\}\(d\_\{w\}\), so that positive values indicate improvement over the all\-ones initialization\. The planner uses lower\-is\-better objectives\. Criterion violations and plan objective values remain lower\-is\-better quantities throughout\. ### A\.2Models and Seeds All reported planner and non\-agent optimizer campaigns use seed 23 and ran in August 2026\. Seed 23 controls the environment, optimizer, and other local random number generators\. The language\-model routes expose no sampling seed and use provider defaults, so seed 23 does not make provider model outputs deterministically replayable\. The planner identifiers aregpt\-5\.6\-solthrough Codex CLI 0\.147\.0,claude\-sonnet\-5through Claude Code CLI 2\.1\.233, andqwen3\.6\-27bthrough the DashScope OpenAI\-compatible Beijing endpoint with OpenAI Python SDK 2\.54\.0\. Each route uses its default reasoning setting: medium for GPT and Claude, and thinking enabled with a 4096\-token budget for Qwen\. None of the three routes exposes or sends a temperature, top\-pp, or output\-token setting, so all use provider defaults\. GPT and Claude were accessed through subscription execution routes rather than metered APIs, keeping a campaign of this size within an academic research budget; the model identifier, prompt, and structured\-output schema supplied by our runner are the same on either route\. All planner actions use structured JSON\-Schema output\. In the cross\-model comparison, all three backbones use criterion\-response contrast memory with the candidate\-critic role and support image input; the memory–role comparison varies both factors for GPT\-5\.6 Sol\. Numerical DVH metrics and a rendered DVH diagram for the optimized plan are provided only after a successful full solve, and are unavailable on surrogate\-only turns\. The nine memory/role configurations and the architecture used for the cross\-model comparison were fixed in advance of the final\-cohort results\. ### A\.3Agent Textual Interface The common planner system instruction is fixed text and is reproduced in full in Section[B\.1](https://arxiv.org/html/2611.33821#A2.SS1)\. The surrounding observation is constructed programmatically for each turn, so no single stored prompt string exists for a complete turn\. The common observation fields, the per\-criterion and DVH feedback added after a full solve, the fixed clinical\-only omissions, and the structured action interface are documented in Section[D](https://arxiv.org/html/2611.33821#A4)\. ### A\.4Planning Backend and Optimizer Settings The planning backend is Gurobi 11\.0\.3 through OR\-Tools 9\.10\.4067 \(GUROBI\_LP\), using the full\-resolutionabsolute\_meanformulation withMethod=2,Crossover=0,BarConvTol=10−510^\{\-5\},BarHomogeneous=1, four solver threads, and a 1800\-s time limit per full solve\. A local compatibility patch alters solver selection and status handling only and does not change the linear program\. Table[S1](https://arxiv.org/html/2611.33821#A1.T1)lists the non\-agent optimizer settings\. Sobol uses the common all\-ones anchor followed by the seeded Sobol sequence\. The anchor is the precomputed all\-ones plan and does not consume one of the 13 surrogate\-screening turns\. Table S1:Non\-agent optimizer settings\.The same configuration is used at both solve budgets\.Experiments used Python 3\.10\.20; the verifier artifact was serialized with scikit\-learn 1\.7\.2, CMA\-ES usescma4\.4\.4, and Exact\-GP LogEI and SAAS\-BO use BoTorch 0\.16\.1, GPyTorch 1\.15\.2, and PyTorch 2\.12\.0\. In the three\-solve non\-agent track, 13 surrogate clinical\-screening actions precede three full solves\. Sobol, CMA\-ES, Exact\-GP LogEI, and SAAS\-BO retain their standard scalar interfaces and do not jointly model surrogate\-verifier and Gurobi outcomes or select fidelity online; an interleaved schedule would require a separate adaptive multi\-fidelity implementation\. ### A\.5Runtime Accounting Experiments ran on an institutional Slurm cluster\. Reported solver cost is elapsed wall time around each full solve, summed per context; Slurm queue time and provider\-gate waiting are excluded\. Non\-agent method runtime adds optimizer/update and runner overhead, while GPT and Claude runtime uses low\-contention, capacity\-normalized call latency to avoid attributing rare provider stalls to algorithmic time\. We recorded no provider\-gate waiting on the Qwen route, so its measured call time is taken as the algorithmic time\. Exact\-cache replays retain the logical cost of the original solve and are not counted as zero\-cost evaluations\. For methodmmand patient–prediction contextcc, normalized active time is defined as Tm,cactive=∑s∈𝒮m,ctc,ssolve\+tm,crunner\+∑q∈𝒬m,cτ¯g\(q\),T^\{\\mathrm\{active\}\}\_\{m,c\}=\\sum\_\{s\\in\\mathcal\{S\}\_\{m,c\}\}t^\{\\mathrm\{solve\}\}\_\{c,s\}\+t^\{\\mathrm\{runner\}\}\_\{m,c\}\+\\sum\_\{q\\in\\mathcal\{Q\}\_\{m,c\}\}\\bar\{\\tau\}\_\{g\(q\)\},\(1\)where𝒮m,c\\mathcal\{S\}\_\{m,c\}is the set of charged full solves,tm,crunnert^\{\\mathrm\{runner\}\}\_\{m,c\}includes optimizer updates and orchestration, and𝒬m,c\\mathcal\{Q\}\_\{m,c\}is the set of language\-model calls\. For GPT and Claude, the normalized latency assigned to call groupggis τ¯g=1\|ℛg\|∑q∈ℛg\(tqwall−tqgate\),\\bar\{\\tau\}\_\{g\}=\\frac\{1\}\{\|\\mathcal\{R\}\_\{g\}\|\}\\sum\_\{q\\in\\mathcal\{R\}\_\{g\}\}\\left\(t^\{\\mathrm\{wall\}\}\_\{q\}\-t^\{\\mathrm\{gate\}\}\_\{q\}\\right\),\(2\)withℛg\\mathcal\{R\}\_\{g\}the low\-contention reference calls in the same call\-type and turn\-position group\. The non\-agent methods have𝒬m,c=∅\\mathcal\{Q\}\_\{m,c\}=\\varnothing\. The reported minutes per context are T¯m=1\|𝒞\|∑c∈𝒞Tm,cactive,\|𝒞\|=600,\\overline\{T\}\_\{m\}=\\frac\{1\}\{\|\\mathcal\{C\}\|\}\\sum\_\{c\\in\\mathcal\{C\}\}T^\{\\mathrm\{active\}\}\_\{m,c\},\\qquad\|\\mathcal\{C\}\|=600,\(3\)after converting seconds to minutes\. For Qwen, Eq\. \([2](https://arxiv.org/html/2611.33821#A1.E2)\) reduces to the measured call time\. ### A\.6Campaign Accounting Both GPT\-5\.6 Sol campaigns cover the same 60 patients and 600 patient–prediction contexts\. In the 16\-solve campaign, mean solver time is 124\.088 min/context \(median 89\.11\) and normalized model time is 12\.240 min/context, giving a normalized full\-method runtime of 136\.328 min/context\. For the primary three\-solve campaign, the corresponding values are 23\.376 min/context of Gurobi solver time and 4\.074 min/context of capacity\-normalized model time\. These rounded components sum, using their unrounded values, to the 27\.449 min/context reported in the main comparison table\. Model time covers planner, candidate\-critic, and planner\-revision calls\. No numerical\-optimizer update time applies to a language condition, and runner overhead was not measured or charged separately for it\. Table[S2](https://arxiv.org/html/2611.33821#A1.T2)reports model invocations, full\-solve outcomes, and audit results for both conditions\. Table S2:Model invocations, full\-solve outcomes, and audits for the two GPT\-5\.6 Sol campaigns\.Stopping is disabled in the 16\-solve condition, so its planner and candidate\-critic counts are exactly 16 per context\. In the three\-solve condition the candidate critic is invoked on proposed escalations rather than on every turn, and its count exceeds the 1,765 executed requests because the critic sometimes intercepted a proposed escalation that the planner then revised to a surrogate\-only action\. Timeout is the only observed solver failure, so contexts with no successful solve are exactly those whose every attempt timed out; each falls back to the all\-ones plan\.A call is low\-contention if it lasts at most 60 s after recorded provider\-gate waiting is subtracted; 16,002 such calls set the group latencies in Eq\. \([2](https://arxiv.org/html/2611.33821#A1.E2)\)\. This is a standardized algorithmic\-time estimate rather than provider\-side GPU time\. Recorded episode wall time is 128\.21 min/context \(median 92\.19\); it excludes Slurm queueing and includes agent and provider\-gate waiting\. The normalized full\-method runtime exceeds it because exact\-cache replays are charged the logical cost of the original solve rather than their elapsed time\. A replay is a repeat request for a weight vector already solved in that context, and it returns the stored plan without running a new solve\. Charged solver time is therefore larger than elapsed solver time\. The cost–performance analysis uses the normalized full\-method runtimes reported in the main comparison table; for Exact\-GP LogEI, SAAS\-BO, CMA\-ES, and Sobol at budget 16, these are 112\.062, 122\.680, 109\.913, and 110\.463 min/context, respectively\. In the 16\-solve condition, 576 contexts solve all 16 attempts successfully, 15 record at least one timeout while still yielding a valid selected plan, and 9 time out on every attempt and fall back to the all\-ones plan\. The final normalized runtime is 21\.25 min/context for fixed clinical\-only GPT\-5\.6 Sol, 21\.65 min/context for Adaptive LogEI, and 37\.55 min/context for the 64\-turn extended Exact\-GP LogEI control\. These totals use the same active\-time convention as the main comparison\. ### A\.7Verifier Development Surrogate\-verifier development records 6,400 full\-solve attempts over the 40\-patient training and validation cohort, of which 342 time out\. The fitting and validation sets contain the remaining 4,618 and 1,440 rows\. ### A\.8Release and Licensing RadOncGym code and configurations are available under the MIT license\. The release preserves the upstream OpenKBP\-Opt MIT software license, README, and citation, while directing users to the official upstream data downloads instead of mirroring CT volumes, masks, reference doses, submitted predictions, or official plan archives until data\-specific redistribution permission is confirmed\. #### Released package\. The public package is a minimal reference implementation: the environment and evaluation code, prompt and schema construction code, controller definitions, the experiment configurations for the reported conditions, and the frozen surrogate\-verifier artifact together with its ordered feature schema\. Reproducing Gurobi\-based planning requires a separately obtained commercial or academic Gurobi license\. ## Appendix BAgent Prompts and Structured Interfaces The language\-model interface is defined by three components: a common planner system instruction, a turn\-specific public observation, and a strict structured output format\. The observation grows as public surrogate and full\-solve results become available, but the instruction and field meanings remain fixed\. The boxes below give the prompt specification and the JSON structures used by the planner, evaluator, and candidate critic\. Angle\-bracketed entries denote turn\-specific data or, when the content is itself structured, an abbreviated sub\-object\. They do not indicate omitted fields\. The instruction and observation template contain conditional clauses for two facilities that no reported experiment enabled: retrieval of training\-split examples and the memory\-management budget\. Neither was ever activated, and the corresponding observation fields are absent throughout\. ### B\.1Common Planner System Instruction The boxes below give the full common planner instruction, reformatted for a two\-column page\. Planner instruction: role and response formatYou are a radiotherapy objective\-weight planning agent in RadOncGym\. Choose exactly one next action from the supplied JSON observation\. Return one JSON object only: no Markdown, prose outside JSON, assistant tags, copied observation text, or hidden reasoning blocks\. Planner instruction: action rulesObey the supplied task and action rules\. For an agent\-choice task, propose one complete objective\-weight vector and decide whether that identical candidate should also receive a budgeted full physics\-verifier call\. For a full\-only task, every proposed candidate must request full verification\. There is no external router, and the environment does not force or rewrite an action\. Planner instruction: evidence and prioritiesEvidence and planning priorities\.Cheap feedback is an approximate learned estimate\. Full feedback comes from a physics optimization and contains generated\-plan protocol metrics, but never hidden expert\-reference errors\. Lower reported objective and constraint violations are better\. Preserve target coverage before pursuing discretionary OAR gains\. Use the explicitly identified memory view to avoid unproductive duplicates\. Any retrieved example comes only from public training\-split trajectories and includes its source and retrieval score\. Planner instruction: meaning of the controlsMeaning of the controls\.Interpret weights as relative priorities inside the inverse\-planning objective, not as direct dose prescriptions\. Increasing a target\-coverage weight raises the relative penalty for missing that target objective\. Increasing an OAR\-sparing weight raises the relative penalty attached to that OAR objective\. The ring and posterior\-neck controls emphasize dose falloff and avoidance in their derived structures\. Because all effects interact through patient geometry, infer direction from the observed weight–response history rather than assuming independent or monotonic improvement in every metric\. Planner instruction: use of the expensive verifierUse of the expensive verifier\.Use cheap evaluations to explore and compare candidates\. A full request is scarce and should be attached to the exact candidate whose generated\-plan DVH and protocol response would materially inform a later decision or final choice\. To escalate a previously cheap\-evaluated candidate, resubmit its exact weights withrequest\_full\_verifier=true; this deliberate duplicate is accepted and returns cheap and full feedback for identical weights\.Do not request a full evaluation merely because budget remains, and do not avoid one when cheap and observed physics evidence disagree or an important trade\-off requires confirmation\. A full call on the last turn cannot guide a revision\. When several full calls are available, distribute their information value across the remaining horizon so that at least an earlier call can inform later proposals\. The planner owns this decision\. Planner instruction: memory\-management rulesIf memory\-management rules are present, memory operations are advisory, evidence\-checked requests with a separate budget\. They become visible only on a later turn, never replace the required planning action, and never alter the environment’s immutable public history\. ### B\.2Planner Input Object Each user message contains one serialized object with the following top\-level structure\. Optional advisory blocks appear only in the corresponding role or memory condition\. Planner input: top\-level template[⬇](data:text/plain;base64,ewogICJzY2hlbWFfdmVyc2lvbiI6ICI8aW50ZXJmYWNlIHZlcnNpb24+IiwKICAidGFzayI6IHsKICAgICJ0YXNrX2lkIjogIjxpZD4iLCAia2luZCI6ICI8dGFzayBraW5kPiIsCiAgICAiZmlkZWxpdHlfY29udHJvbCI6ICI8YWdlbnQgY2hvaWNlIG9yIGZ1bGwgb25seT4iLAogICAgImZ1bGxfaW5jdW1iZW50X3J1bGUiOiAiPHJ1bGU+IiwKICAgICJzdG9wX3JlcXVpcmVzX2V2YWx1YXRlZF9jYW5kaWRhdGUiOiA8Ym9vbD4sCiAgICAibWluaW11bV9ldmFsdWF0ZWRfY2FuZGlkYXRlc19iZWZvcmVfc3RvcCI6IDxpbnQ+LAogICAgInJlbWFpbmluZ19ldmFsdWF0ZWRfY2FuZGlkYXRlc19iZWZvcmVfc3RvcCI6IDxpbnQ+CiAgfSwKICAiaW5mb3JtYXRpb25fcG9saWN5IjogewogICAgImhpc3RvcnkiOiAiPHJlZ2lzdGVyZWQgbWVtb3J5IHZpZXc+IiwKICAgICJoaWRkZW5fcmVmZXJlbmNlX2ZlZWRiYWNrX2F2YWlsYWJsZSI6IGZhbHNlLAogICAgImV4dGVybmFsX3JvdXRlciI6IGZhbHNlLAogICAgImF1dG9tYXRpY19mdWxsX2NhbGxfZm9yY2luZyI6IGZhbHNlLAogICAgImZlZWRiYWNrX3NvdXJjZXMiOiB7PGNoZWFwLCBmdWxsLCBhdWRpdCBtZWFuaW5ncz59LAogICAgImNoZWFwX2Z1bGxfc2VtYW50aWNzIjogezx0YXJnZXRzIGFuZCBhbGlnbm1lbnQ+fQogIH0sCiAgImFjdGlvbl9jb250cmFjdCI6IHsKICAgICJvYmplY3RpdmVfbmFtZXNfaW5fb3JkZXIiOiBbPDEyIG5hbWVzPl0sCiAgICAid2VpZ2h0X21pbmltdW0iOiAwLjI1LCAid2VpZ2h0X21heGltdW0iOiA0LjAsCiAgICAiY29tcGxldGVfd2VpZ2h0X3ZlY3Rvcl9yZXF1aXJlZCI6IHRydWUsCiAgICAiYWdlbnRfY29udHJvbHNfZnVsbF9yZXF1ZXN0IjogPGJvb2w+LAogICAgImNhbmRpZGF0ZV9tdXN0X3JlcXVlc3RfZnVsbCI6IDxib29sPiwKICAgICJhbGxvd2VkX2FjdGlvbnMiOiBbInByb3Bvc2Vfd2VpZ2h0cyI8LCAic3RvcCI+XQogIH0KfQ==)\{"schema\_version":"<interfaceversion\>","task":\{"task\_id":"<id\>","kind":"<taskkind\>","fidelity\_control":"<agentchoiceorfullonly\>","full\_incumbent\_rule":"<rule\>","stop\_requires\_evaluated\_candidate":<bool\>,"minimum\_evaluated\_candidates\_before\_stop":<int\>,"remaining\_evaluated\_candidates\_before\_stop":<int\>\},"information\_policy":\{"history":"<registeredmemoryview\>","hidden\_reference\_feedback\_available":false,"external\_router":false,"automatic\_full\_call\_forcing":false,"feedback\_sources":\{<cheap,full,auditmeanings\>\},"cheap\_full\_semantics":\{<targetsandalignment\>\}\},"action\_contract":\{"objective\_names\_in\_order":\[<12names\>\],"weight\_minimum":0\.25,"weight\_maximum":4\.0,"complete\_weight\_vector\_required":true,"agent\_controls\_full\_request":<bool\>,"candidate\_must\_request\_full":<bool\>,"allowed\_actions":\["propose\_weights"<,"stop"\>\]\}\} Planner input: public observation fields[⬇](data:text/plain;base64,ewogICJjbGluaWNhbF9wcmVmZXJlbmNlIjogezxjcml0ZXJpb24gcHJpb3JpdGllcz59LAogICJvYmplY3RpdmVfc2VtYW50aWNzIjogezxtZWFuaW5nIG9mIGVhY2ggY29udHJvbD59LAogICJ2ZXJpZmllcl9zdHJhdGVneSI6IHs8Y2hlYXAvZnVsbCByb2xlcyBhbmQgYnVkZ2V0IGd1aWRhbmNlPn0sCiAgImNsaW5pY2FsX3Byb3RvY29sIjogWwogICAgeyJtZXRyaWMiOiA8bmFtZT4sICJyb2kiOiA8bmFtZT4sCiAgICAgInJlbGF0aW9uIjogPHVwcGVyL2xvd2VyPiwgInRocmVzaG9sZF9neSI6IDx2YWx1ZT59LCAuLi5dLAogICJwdWJsaWNfY2FzZSI6IHs8Y2FzZSBJRHMsIGFuYXRvbXksIHByZWRpY3Rpb24sIDI5NyBmZWF0dXJlcz59LAogICJwdWJsaWNfZHZoIjogPGdlbmVyYXRlZC1wbGFuIERWSCBkZXNjcmlwdG9yIG9yIG51bGw+LAogICJtZW1vcnlfdmlldyI6IHs8c2VsZWN0ZWQgcHVibGljIHN0ZXBzIGFuZCBvdXRjb21lcz59LAogICJwZXJmb3JtYW5jZV9zdXBwb3J0IjogezxlbmFibGVkIHB1YmxpYyBzdXBwb3J0IG1vZHVsZXM+fSwKICAiZXBpc29kZV9vYnNlcnZhdGlvbiI6IHsKICAgICJjb250ZXh0IjogezxwdWJsaWMgaWRlbnRpZmllcnM+fSwKICAgICJidWRnZXRzIjogezxzdGVwcywgY2hlYXAgY2FsbHMsIGZ1bGwgY2FsbHMgcmVtYWluaW5nPn0sCiAgICAiaW5jdW1iZW50cyI6IHs8YmVzdCBjaGVhcCBzdGVwLCBiZXN0IGZ1bGwgc3RlcD59LAogICAgImhpc3RvcnkiOiBbPGFjY2VwdGVkL3JlamVjdGVkIGFjdGlvbnMgYW5kIHB1YmxpYyBvdXRjb21lcz5dCiAgfSwKICAicGxhbm5lcl9jcml0aXF1ZSI6IDxldmFsdWF0b3IgSlNPTiwgd2hlbiBlbmFibGVkPiwKICAicGxhbm5lcl9jcml0aXF1ZV9jb250cmFjdCI6IDxhZHZpc29yeS1vbmx5IHJ1bGVzPiwKICAibWVtb3J5X21hbmFnZW1lbnRfY29udHJhY3QiOiA8b3B0aW9uYWwgcnVsZXM+Cn0=)\{"clinical\_preference":\{<criterionpriorities\>\},"objective\_semantics":\{<meaningofeachcontrol\>\},"verifier\_strategy":\{<cheap/fullrolesandbudgetguidance\>\},"clinical\_protocol":\[\{"metric":<name\>,"roi":<name\>,"relation":<upper/lower\>,"threshold\_gy":<value\>\},\.\.\.\],"public\_case":\{<caseIDs,anatomy,prediction,297features\>\},"public\_dvh":<generated\-planDVHdescriptorornull\>,"memory\_view":\{<selectedpublicstepsandoutcomes\>\},"performance\_support":\{<enabledpublicsupportmodules\>\},"episode\_observation":\{"context":\{<publicidentifiers\>\},"budgets":\{<steps,cheapcalls,fullcallsremaining\>\},"incumbents":\{<bestcheapstep,bestfullstep\>\},"history":\[<accepted/rejectedactionsandpublicoutcomes\>\]\},"planner\_critique":<evaluatorJSON,whenenabled\>,"planner\_critique\_contract":<advisory\-onlyrules\>,"memory\_management\_contract":<optionalrules\>\} The public case contains leak\-safe CT, anatomy, overlap, and predicted\-dose summaries\. The history contains previous weight vectors, acceptance status, surrogate predictions and uncertainty, successful full\-solve status and cost, optimized\-plan endpoints, criterion violations, and public incumbent pointers as applicable\. In image\-enabled conditions, the current optimized\-plan DVH diagram is supplied as an image alongside this object once a full solve has succeeded\. The expert reference dose, DVH score, dose score, oracle ranks, and any reference\-derived routing signal are absent\. The task fields above take fixed values within each reported condition, though some differ across conditions\. All dynamic language\-agent conditions usefull\_incumbent\_rule=quality\_only, under which the successful full\-solved candidate with the lowest mean clinical\-criterion violation is selected and an exact tie is broken in favor of the earlier step\. Stopping requires at least one accepted, evaluated candidate:stop\_requires\_evaluated\_candidate=trueandminimum\_evaluated\_candidates\_before\_stop= 1\. Accordingly,remaining\_evaluated\_candidates\_before\_stopis one at reset and zero after the first accepted candidate evaluation, so the earliest legal stop is turn 2; the earliest observed stop, on turn 6, reflects model behavior rather than an environment restriction\. The fixed clinical\-only and 16\-full\-solve conditions disable stopping and execute their complete 16\-turn schedules, and the non\-agent methods execute their registered horizons without emitting stop actions\. ### B\.3Planner Output Objects The planner returns exactly one of the following objects\. Additional top\-level fields and incomplete weight vectors are invalid\. Planner output: complete proposal[⬇](data:text/plain;base64,ewogICJhY3Rpb24iOiAicHJvcG9zZV93ZWlnaHRzIiwKICAicmVxdWVzdF9mdWxsX3ZlcmlmaWVyIjogPHRydWUgb3IgZmFsc2U+LAogICJ3ZWlnaHRzIjogewogICAgIlBUVjU2X2NvdmVyYWdlIjogPDAuMjUtNC4wPiwKICAgICJQVFY2M19jb3ZlcmFnZSI6IDwwLjI1LTQuMD4sCiAgICAiUFRWNzBfY292ZXJhZ2UiOiA8MC4yNS00LjA+LAogICAgIkJyYWluc3RlbV9zcGFyaW5nIjogPDAuMjUtNC4wPiwKICAgICJTcGluYWxDb3JkX3NwYXJpbmciOiA8MC4yNS00LjA+LAogICAgIlJpZ2h0UGFyb3RpZF9zcGFyaW5nIjogPDAuMjUtNC4wPiwKICAgICJMZWZ0UGFyb3RpZF9zcGFyaW5nIjogPDAuMjUtNC4wPiwKICAgICJFc29waGFndXNfc3BhcmluZyI6IDwwLjI1LTQuMD4sCiAgICAiTGFyeW54X3NwYXJpbmciOiA8MC4yNS00LjA+LAogICAgIk1hbmRpYmxlX3NwYXJpbmciOiA8MC4yNS00LjA+LAogICAgInJpbmdfZmFsbG9mZiI6IDwwLjI1LTQuMD4sCiAgICAicG9zdGVyaW9yX25lY2tfc3BhcmluZyI6IDwwLjI1LTQuMD4KICB9Cn0=)\{"action":"propose\_weights","request\_full\_verifier":<trueorfalse\>,"weights":\{"PTV56\_coverage":<0\.25\-4\.0\>,"PTV63\_coverage":<0\.25\-4\.0\>,"PTV70\_coverage":<0\.25\-4\.0\>,"Brainstem\_sparing":<0\.25\-4\.0\>,"SpinalCord\_sparing":<0\.25\-4\.0\>,"RightParotid\_sparing":<0\.25\-4\.0\>,"LeftParotid\_sparing":<0\.25\-4\.0\>,"Esophagus\_sparing":<0\.25\-4\.0\>,"Larynx\_sparing":<0\.25\-4\.0\>,"Mandible\_sparing":<0\.25\-4\.0\>,"ring\_falloff":<0\.25\-4\.0\>,"posterior\_neck\_sparing":<0\.25\-4\.0\>\}\} Planner output: stop action[⬇](data:text/plain;base64,ewogICJhY3Rpb24iOiAic3RvcCIsCiAgInJlcXVlc3RfZnVsbF92ZXJpZmllciI6IGZhbHNlLAogICJ3ZWlnaHRzIjogbnVsbAp9)\{"action":"stop","request\_full\_verifier":false,"weights":null\}Stopping is valid only whenstopappears in the turn’sallowed\_actions\. A stop action can never request a full solve\. ### B\.4Role\-Specific Prompts #### Evaluator planner\. Before the planner acts, the evaluator receives the same public observation and DVH diagram, when enabled\. Its system instruction is: diagnose only from supplied public values; never claim access to an expert reference dose; prioritize target coverage, then critical serial or maximum\-dose organs, then discretionary mean\-dose sparing; explicitly identify uncertainty and surrogate/full\-solve disagreement; and remain advisory by emitting neither weights nor the final action\. The planner receives the resulting object underplanner\_critique\. Evaluator output JSON template[⬇](data:text/plain;base64,ewogICJzdW1tYXJ5IjogIjxzdGF0ZSBkaWFnbm9zaXM+IiwKICAicHJpb3JpdHlfaXNzdWVzIjogWwogICAgeyJjcml0ZXJpb24iOiAiPGNyaXRlcmlvbj4iLAogICAgICJzdGF0dXMiOiAiPHZpb2xhdGVkfHNhdGlzZmllZHx0cmFkZW9mZnx1bmNlcnRhaW4+IiwKICAgICAiZXZpZGVuY2UiOiAiPHB1YmxpYyBldmlkZW5jZT4ifSwgLi4uXSwKICAicmVjb21tZW5kZWRfYWRqdXN0bWVudHMiOiBbCiAgICB7Im9iamVjdGl2ZV9uYW1lIjogIjxvbmUgb2YgdGhlIDEyIGNvbnRyb2xzPiIsCiAgICAgImRpcmVjdGlvbiI6ICI8aW5jcmVhc2V8ZGVjcmVhc2V8aG9sZD4iLAogICAgICJyZWFzb24iOiAiPHB1YmxpY2x5IHN1cHBvcnRlZCByZWFzb24+In0sIC4uLl0sCiAgInZlcmlmaWVyX3JlcXVlc3Rfd29ydGhfY29uc2lkZXJpbmciOiA8Ym9vbD4sCiAgInZlcmlmaWVyX3JlYXNvbiI6ICI8cmVhc29uPiIsCiAgImNvbmZpZGVuY2UiOiAiPGxvd3xtZWRpdW18aGlnaD4iCn0=)\{"summary":"<statediagnosis\>","priority\_issues":\[\{"criterion":"<criterion\>","status":"<violated\|satisfied\|tradeoff\|uncertain\>","evidence":"<publicevidence\>"\},\.\.\.\],"recommended\_adjustments":\[\{"objective\_name":"<oneofthe12controls\>","direction":"<increase\|decrease\|hold\>","reason":"<publiclysupportedreason\>"\},\.\.\.\],"verifier\_request\_worth\_considering":<bool\>,"verifier\_reason":"<reason\>","confidence":"<low\|medium\|high\>"\} #### Candidate critic\. Except in the fixed clinical\-only control of Section[B\.6](https://arxiv.org/html/2611.33821#A2.SS6), where critic invocation follows the registered fidelity schedule, the candidate critic is called only for a planner proposal that requests a full evaluation\. It receives the public observation and the proposed action\. Its system instruction is to check for avoidable target compromise, unsupported weight–response assumptions, duplicate or negligible changes, and whether the requested full call is likely to provide useful information\. It must use public evidence only and cannot claim access to the expert reference, emit replacement weights, or determine which action is executed\. Candidate\-critic input payload[⬇](data:text/plain;base64,PFBVQkxJQ19PQlNFUlZBVElPTj4KICB7PGNvbXBsZXRlIHBsYW5uZXIgaW5wdXQgSlNPTiBvYmplY3Q+fQo8L1BVQkxJQ19PQlNFUlZBVElPTj4KPFBST1BPU0VEX0FDVElPTj4KICB7PGNvbXBsZXRlIHByb3Bvc2FsIEpTT04gb2JqZWN0Pn0KPC9QUk9QT1NFRF9BQ1RJT04+)<PUBLIC\_OBSERVATION\>\{<completeplannerinputJSONobject\>\}</PUBLIC\_OBSERVATION\><PROPOSED\_ACTION\>\{<completeproposalJSONobject\>\}</PROPOSED\_ACTION\> When the critic requests a revision, the planner receives its original proposal, the advisory critique, and a statement that it may keep, revise, or replace its weights\. Exactly one revision call is permitted\. The critic never edits the proposal directly, and the planner remains responsible for the final vector and full\-request decision\. Candidate\-critic output object[⬇](data:text/plain;base64,ewogICJ2ZXJkaWN0IjogIjxhY2NlcHR8cmV2aXNlPiIsCiAgImlzc3VlcyI6IFsKICAgIHsiaXNzdWVfdHlwZSI6ICI8dGFyZ2V0X2NvbXByb21pc2V8dW5zdXBwb3J0ZWRfcmVzcG9uc2V8ZHVwbGljYXRlX29yX25lZ2xpZ2libGV8bG93X3ZhbHVlX2Z1bGxfcmVxdWVzdHxjbGluaWNhbF90cmFkZW9mZj4iLAogICAgICJldmlkZW5jZSI6ICI8cHVibGljIGV2aWRlbmNlPiIsCiAgICAgInNldmVyaXR5IjogIjxsb3d8bWVkaXVtfGhpZ2g+In0sIC4uLl0sCiAgInJldmlzaW9uX2d1aWRhbmNlIjogIjxzcGVjaWZpYyBhZHZpc29yeSBndWlkYW5jZT4iLAogICJmdWxsX3JlcXVlc3RfYXNzZXNzbWVudCI6ICI8d29ydGh3aGlsZXx1bmNlcnRhaW58bG93X3ZhbHVlPiIsCiAgImNvbmZpZGVuY2UiOiAiPGxvd3xtZWRpdW18aGlnaD4iCn0=)\{"verdict":"<accept\|revise\>","issues":\[\{"issue\_type":"<target\_compromise\|unsupported\_response\|duplicate\_or\_negligible\|low\_value\_full\_request\|clinical\_tradeoff\>","evidence":"<publicevidence\>","severity":"<low\|medium\|high\>"\},\.\.\.\],"revision\_guidance":"<specificadvisoryguidance\>","full\_request\_assessment":"<worthwhile\|uncertain\|low\_value\>","confidence":"<low\|medium\|high\>"\} ### B\.5Memory\-View Construction The three memory mechanisms differ only in how thememory\_viewfield of the planner input object is populated\. All three are deterministic and are rebuilt from scratch from the complete public trajectory before every model decision; none relies on hidden incremental state\. Given an episode trace, the exact memory view presented at every turn is reproducible\. #### Lossless full history\. Every prior environment step is retained in chronological order\. Nothing is dropped or summarized, including surrogate\-only evaluations, full\-solve evaluations, rejected or malformed actions, duplicate proposals, and stop actions\. No length cap or truncation is applied, so the 16\-turn horizon exposes at most 16 prior steps\. #### Criterion\-response contrast\. The reported configuration usesrecent\_steps=2=2\. The view is the union of the two most recent environment steps, regardless of acceptance or fidelity; the current best\-surrogate incumbent, if one exists; the current best successful\-full\-solve incumbent, if one exists; the most recent successful full solve; and best and worst full\-solve examples for the active criterion\. Exactly one best\-surrogate and one best\-full incumbent pointer are carried, and the union removes repeated step indices while combining their selection reasons\. The active criterion is determined from the most recent successful full solve\. Among its strictly positive clinical\-criterion violations, the criterion with the largest violation magnitude is selected; an exact magnitude tie is broken by the lexicographically larger criterion name\. If every violation is zero, no contrast pair is added\. The best and worst examples are then chosen from all successful full\-solve steps containing that criterion: best is the smallest violation and worst the largest, with exact ties resolved in favor of the earlier step\. Surrogate\-only turns are not eligible for these criterion\-specific roles, though they may still enter the view through recency or as the best\-surrogate incumbent\. Duplicate proposals remain distinct history entries; when duplicate full\-solve entries carry identical criterion values, the earlier entry wins both exact\-value tie breaks unless the later one is retained through recency or another incumbent role\. #### Pareto\-tradeoff\. This mechanism augments lossless full history rather than replacing or truncating it, so no separate recency window is used and the entire history remains visible alongside the archive\. It adds verified response records for full\-request steps, containing the weights, the weight changes from the preceding accepted proposal, the public surrogate and full metrics, the criterion violations, and the changes from the preceding full result; and a Pareto archive over successful full solves only\. For each successful full solve the lower\-is\-better Pareto vector contains the mean clinical\-criterion violation, falling back to the objective where that value is unavailable, together with every available individual clinical violation clipped asmax\(0,vi\)\\max\(0,v\_\{i\}\)\. Dominance is evaluated over the objective keys shared by all eligible candidates, a≺b⇔ak≤bk∀kandak<bkfor at least onek\.a\\prec b\\iff a\_\{k\}\\leq b\_\{k\}\\ \\ \\forall k\\quad\\text\{and\}\\quad a\_\{k\}<b\_\{k\}\\ \\text\{for at least one \}k\.\(4\)Failed and timed\-out full solves cannot enter the frontier, and surrogate\-only turns cannot enter it although they remain visible in the full history\. There is no archive\-size cap or truncation rule, and frontier order follows original step order\. Equal objective vectors do not dominate one another, since strict improvement on at least one objective is required, so both are retained, and exact duplicate candidates remain separate history and archive entries when nondominated\. The frontier therefore holds at most three successful full\-solve entries in the primary condition and at most sixteen in the 16\-solve condition\. The fixed clinical\-only control uses the contrast structure with a scalar substitution, described in Section[B\.6](https://arxiv.org/html/2611.33821#A2.SS6)\. ### B\.6Fixed Clinical\-Only Control The fixed clinical\-only control uses criterion\-response contrast memory with the candidate\-critic role, as in the main agent conditions\. It preserves the common system instruction, public case description, clinical protocol, meanings and bounds of the 12 controls, scalar clinical outcomes, surrogate\-verifier uncertainty, and public history\. It removes per\-criterion feedback, numerical DVH metrics, and the rendered DVH diagram\. After a full solve it receives no optimized\-plan summaries at all: the returned feedback is the scalarΔJclin\\Delta J\_\{\\mathrm\{clin\}\}together with the solve status and cost, matching the outcome feedback available to the non\-agent methods\. Criterion\-response contrast memory therefore operates in scalar form in this control\. Contrasting best\- and worst\-response examples are selected among successful full solves by the mean clinical\-criterion violation rather than by a dominant individual criterion: best is the lowest violation and worst the highest, with exact ties resolved in favor of the earlier step\. No active criterion is computed, and the retained examples carry weights and scalar outcomes only\. No criterion identity or per\-criterion value enters memory, so the mechanism becomes a scalar best/worst contrast over prior turns\. Routing is fixed rather than chosen by the model: turns 1–13 are surrogate evaluations and turns 14–16 are full solves\. The turn payload therefore adds the following fields, and stopping is disabled\. Fixed\-schedule planner rules[⬇](data:text/plain;base64,ewogICJ0dXJuX251bWJlcl9vbmVfaW5kZXhlZCI6IDwxLTE2PiwKICAiaG9yaXpvbl90dXJucyI6IDE2LAogICJmdWxsX3ZlcmlmaWVyX3R1cm5zX29uZV9pbmRleGVkIjogWzE0LDE1LDE2XSwKICAidGhpc190dXJuX2ZpZGVsaXR5IjogIjxjaGVhcF9vbmx5fGZ1bGw+IiwKICAiY29udHJhY3QiOiB7CiAgICAicm91dGluZ19pc19maXhlZF9ieV9leHBlcmltZW50IjogdHJ1ZSwKICAgICJwbGFubmVyX211c3RfcHJvcG9zZV9jb21wbGV0ZV93ZWlnaHRzX2V2ZXJ5X3R1cm4iOiB0cnVlLAogICAgInBsYW5uZXJfbXVzdF9ub3Rfc3RvcF9lYXJseSI6IHRydWUsCiAgICAicmVxdWVzdF9mdWxsX3ZlcmlmaWVyX211c3RfZXF1YWxfc2NoZWR1bGUiOiA8ZmFsc2V8dHJ1ZT4sCiAgICAiY2FuZGlkYXRlX2NyaXRpY19yZXZpZXdzX3dlaWdodHNfbm90X3JvdXRpbmciOiB0cnVlCiAgfQp9)\{"turn\_number\_one\_indexed":<1\-16\>,"horizon\_turns":16,"full\_verifier\_turns\_one\_indexed":\[14,15,16\],"this\_turn\_fidelity":"<cheap\_only\|full\>","contract":\{"routing\_is\_fixed\_by\_experiment":true,"planner\_must\_propose\_complete\_weights\_every\_turn":true,"planner\_must\_not\_stop\_early":true,"request\_full\_verifier\_must\_equal\_schedule":<false\|true\>,"candidate\_critic\_reviews\_weights\_not\_routing":true\}\} This control contains a known prompt–environment inconsistency\. The common agent\-choice instruction reproduced in Section[B\.1](https://arxiv.org/html/2611.33821#A2.SS1)tells the planner that there is no external router and that the environment does not force or rewrite an action\. That statement does not hold in this condition: the planner receives the instruction unchanged while the environment overwrites its routing decisions\. Where the two conflict, the turn\-specific schedule fields determine what is executed\. After a structurally valid action is parsed, the environment preserves the planner’s proposed weight vector but overwrites its fidelity request according to the registered schedule, settingrequest\_full\_verifierto false on turns 1–13 and true on turns 14–16, and settingstopto false on every turn\. The candidate critic is invoked on the three full\-solve turns and not on surrogate turns\. A fidelity mismatch is ignored rather than rejected or retried, and triggers no additional attempt; only ordinary structured\-output errors follow the rejection path of Section[B\.7](https://arxiv.org/html/2611.33821#A2.SS7)\. Therequest\_full\_verifier\_must\_equal\_schedulefield is named misleadingly in the frozen artifact: it carries the required fidelity value for the current turn, false on surrogate turns and true on full\-solve turns, rather than a Boolean enabling equality validation\. It duplicatesthis\_turn\_fidelity\. The planner is therefore told it controls routing when it does not\. Any effect this has on its proposals cannot be separated from the effects the condition is meant to isolate, so the condition controls feedback content and the scheduled number of full solves rather than routing or the prompt itself\. Matched scalar feedback also does not imply matched adaptation: the language controller remains sequentially adaptive across the three terminal full solves, generating each new candidate after seeing the previous full\-solve outcome, whereas the non\-agent terminal candidates are frozen before any of those solves\. ### B\.7Validation, Retries, and Model Settings The parser requires exactlyaction,request\_full\_verifier, andweights; extra properties are forbidden\. It rejects malformed JSON, unknown or missing controls, non\-finite values, weights outside\[0\.25,4\.0\]\[0\.25,4\.0\], illegal stop/full combinations, and requests exceeding the remaining budget\. Evaluator and candidate\-critic objects are validated with the same exact\-field policy, enumerated categorical values, and at most five issues or adjustments\. Semantic response repair is disabled\. Transport recovery remains inside one logical language decision and therefore does not consume another environment turn\. GPT planner/evaluator/critic calls permit up to seven attempts for transient transport failures; Qwen permits up to three\. Claude uses native structured output without response repair; no transport retry was recorded on the Claude route\. The three backbones use their default reasoning configurations\. Every recorded trace contains the public input object, attached optimized\-plan DVH when enabled, raw structured response, validated action, public outcome, and retry count\. ## Appendix CPlanning Formulation and Objective Weights This section gives the dose\-mimicking linear program summarized in the main paper, the objective families controlled by each of the 12 weights, and the relation between the inner planning objective and the benchmark clinical\-criterion score\. ### C\.1Reference Objectives from the Predicted Dose The planning pipeline loads the AI\-predicted three\-dimensional dose map and reduces it to structure\-level reference values within each anatomical mask\. Gurobi does not receive the predicted dose map itself; it receives a linear program whose constants are these summaries\. For a structureSSwith predicted dosedAId^\{\\mathrm\{AI\}\}, the reference objectives comprise the mean dose, the maximum dose, upper\-tail dose terms for organs at risk, overdose and underdose terms for planning target volumes, and analogous terms for target rings and the posterior neck\. We writerjr\_\{j\}for the reference value of objectivejj\. Two families of reference structures are derived rather than supplied\. For every present PTV, 3\-mm and 6\-mm Euclidean expansions are formed within the external patient contour, the PTV voxels are removed, and overlaps between derived regions are pruned by the fixed priority rule of OpenKBP\-Opt; all objective rows belonging to these rings share thering\_falloffmultiplier\. The posterior\-neck region is a 5\-mm ring around the spinal cord, or around the brainstem when the cord is absent\. On each axial slice it retains external\-contour voxels whose lateral coordinate lies between the extrema of that ring and whose remaining in\-plane coordinate lies beyond the ring’s mean coordinate, after which all target voxels are removed\. Every such objective row maps toposterior\_neck\_sparing\. The formulation is therefore not a voxelwise matching loss: it does not minimize∑v\|dv−dvAI\|\\sum\_\{v\}\|d\_\{v\}\-d^\{\\mathrm\{AI\}\}\_\{v\}\|\. The predicted dose influences the plan through its structure\-level summaries\. ### C\.2Absolute\-Mean Dose\-Mimicking Objective Letxxbe the beamlet\-intensity vector andAAthe dose\-influence matrix, so that the optimized voxel dose isd=Axd=Ax\. Each objective valueϕj\(d\)\\phi\_\{j\}\(d\)is computed from these optimized voxel doses\. Under the*absolute\-mean*formulation used in all reported experiments, the model introduces nonnegative deviation variablesσj\\sigma\_\{j\}andψj\\psi\_\{j\}satisfying rj\+σj−ψj=ϕj\(d\),r\_\{j\}\+\\sigma\_\{j\}\-\\psi\_\{j\}=\\phi\_\{j\}\(d\),\(5\)whereσj\\sigma\_\{j\}is an increase andψj\\psi\_\{j\}a reduction relative to the reference\. Gurobi minimizes ∑jwc\(j\)\(σj−10−5ψj\),\\sum\_\{j\}w\_\{c\(j\)\}\\left\(\\sigma\_\{j\}\-10^\{\-5\}\\psi\_\{j\}\\right\),\(6\)withwc\(j\)w\_\{c\(j\)\}the agent\-selected weight for the control governing objectivejj\. At the optimum this is equivalent to ∑jwc\(j\)\[max\(ϕj\(d\)−rj,0\)−10−5max\(rj−ϕj\(d\),0\)\]\.\\sum\_\{j\}w\_\{c\(j\)\}\\left\[\\max\\\!\\left\(\\phi\_\{j\}\(d\)\-r\_\{j\},\\,0\\right\)\-10^\{\-5\}\\max\\\!\\left\(r\_\{j\}\-\\phi\_\{j\}\(d\),\\,0\\right\)\\right\]\.\(7\)The formulation penalizes objectives that worsen relative to the predicted dose and gives a small preference to those that improve\.*Absolute*indicates that deviations are expressed in Gy rather than normalized by the reference value;*mean*indicates aggregation across objective components rather than minimization of the single worst component\. ### C\.3Voxel\-Derived Objective Families For a structureSS, the mean\-dose component is μS\(d\)=1\|S\|∑v∈Sdv,\\mu\_\{S\}\(d\)=\\frac\{1\}\{\|S\|\}\\sum\_\{v\\in S\}d\_\{v\},\(8\)and the maximum\-dose component is represented by an auxiliary variable satisfyingmS\(d\)≥dvm\_\{S\}\(d\)\\geq d\_\{v\}for allv∈Sv\\in S\. Hinge components are taken at a fractional thresholdτ\\tauof a structure\-level scaleMSM\_\{S\}and a signs∈\{\+1,−1\}s\\in\\\{\+1,\-1\\\}, qS,τ,s\(d\)=1\|S\|∑v∈Smax\(0,s\(dv−τMS\)\),q\_\{S,\\tau,s\}\(d\)=\\frac\{1\}\{\|S\|\}\\sum\_\{v\\in S\}\\max\\\!\\left\(0,\\,s\\left\(d\_\{v\}\-\\tau M\_\{S\}\\right\)\\right\),\(9\)whereMSM\_\{S\}is the maximum predicted dose withinSSfor an organ at risk and the prescriptionpS∈\{56,63,70\}p\_\{S\}\\in\\\{56,63,70\\\}Gy for a target\. Organs at risk carry upper\-tail terms,s=\+1s=\+1, at τ∈\{0\.975,0\.90,0\.75,0\.50,0\.25\}\.\\tau\\in\\\{0\.975,\\,0\.90,\\,0\.75,\\,0\.50,\\,0\.25\\\}\.\(10\)Targets carry two terms: overdose at\(τ,s\)=\(1\.05,\+1\)\(\\tau,s\)=\(1\.05,\+1\)and underdose at\(τ,s\)=\(1\.00,−1\)\(\\tau,s\)=\(1\.00,\-1\)\. These expressions are linearized with auxiliary variables, so the planning problem remains a linear program\. ### C\.4Objective\-Weight Controls The agent supplies one multiplier per control, listed in Table[S3](https://arxiv.org/html/2611.33821#A3.T3)\. Each multiplier scales every objective component associated with that control rather than an individual dose term\. For example,LeftParotid\_sparingscales the left\-parotid mean\-, maximum\-, and tail\-dose contributions together, andPTV70\_coveragescales the PTV70 maximum\-dose, overdose, and underdose components\. Weights are bounded to0\.25≤wc≤4\.00\.25\\leq w\_\{c\}\\leq 4\.0\. Increasing a weight gives the corresponding objectives greater influence over the optimized beamlet intensities; decreasing it permits more trade\-off against competing structures and targets\. Table S3:Objective\-weight controls and the components each multiplier scales\.The action keys append\_coverageto target names and\_sparingto organ names; the two auxiliary keys arering\_falloffandposterior\_neck\_sparing\. All weights are bounded to\[0\.25,4\.0\]\[0\.25,4\.0\]\. ### C\.5Additional Planning Constraints The linear program also enforces the physical fluence\-to\-dose relationship and machine\-related restrictions\. Beamlet intensities are bounded by0≤xj≤150\\leq x\_\{j\}\\leq 15and the optimization voxel doses by0≤di≤820\\leq d\_\{i\}\\leq 82Gy, subject to dose\-influence consistencyd=Axd=Ax\. The optimization voxel set is the complete set of voxels belonging to the clinical and derived optimization structures, taken without downsampling; it is a subset of the possible\-dose grid rather than a sample drawn from it\.*Full resolution*in Section[A](https://arxiv.org/html/2611.33821#A1)refers to this absence of downsampling, not to optimization over every possible\-dose voxel\. Fluence complexity is limited by a sum of positive gradients\. For each beamletjjan auxiliary variable satisfies gj≥max\(0,xj−xj\+1\),g\_\{j\}\\geq\\max\\\!\\left\(0,\\,x\_\{j\}\-x\_\{j\+1\}\\right\),\(11\)takingxj\+1=0x\_\{j\+1\}=0where the right neighbor is missing\. For every rowrrof the fluence grid at beam angleaa, an auxiliary variable satisfiesua≥∑j∈rgju\_\{a\}\\geq\\sum\_\{j\\in r\}g\_\{j\}, and the imposed limit is∑aua≤65\\sum\_\{a\}u\_\{a\}\\leq 65\. This is equivalent to ∑amax∑j∈rrmax\(0,xj−xj\+1\)≤65\.\\sum\_\{a\}\\max\_\{r\}\\sum\_\{j\\in r\}\\max\\\!\\left\(0,\\,x\_\{j\}\-x\_\{j\+1\}\\right\)\\leq 65\.\(12\)After optimization the fluence vector is applied to the full\-resolution dose\-influence matrix,dfull=Afullxd\_\{\\mathrm\{full\}\}=A\_\{\\mathrm\{full\}\}x, to generate the final dose distribution\. All remaining linear\-program construction details follow OpenKBP\-Opt commit16fbe0dbc64c94ed4b7e8378a090b47c6596bbd7\. RadOncGym changes only the twelve groups of objective coefficients and the solver configuration of Section[A](https://arxiv.org/html/2611.33821#A1)\. ### C\.6Inner and Outer Objectives The planning objective in Eq\. \([7](https://arxiv.org/html/2611.33821#A3.E7)\) and the benchmark objective are distinct\. The criteria listed in the clinical\-criteria table of the main paper are evaluated on the generated dose after the solve and are not imposed as hard constraints in the linear program\. The objective weights influence these criteria only indirectly through the generated dose\. Thus, the inner optimization matches predicted\-dose\-derived reference objectives, while the outer benchmark evaluates clinical\-criterion violations after the solve\. ## Appendix DAgent Observation and Public Context ### D\.1Public Case Description Every context is initialized with a public case description serialized into the first model request, both as a flat 297\-value vector and as a nested readable JSON object\. It is derived from the CT, structure masks, possible\-dose mask, and the selected model prediction, and never loads the patient reference dose\. The vector comprises the four blocks in Table[S4](https://arxiv.org/html/2611.33821#A4.T4)\. Table S4:Blocks of the 297\-value public context vector\.Indices are zero\-based and give the position of each block within the serialized vector\.The code includes the full per\-index feature list\. The global block contains per\-axis voxel spacing, voxel volume, possible\-dose mask voxel count and volume, eight summary statistics of the stored CT grid, and the same eight summaries of predicted dose within the possible\-dose mask\. Summary statistics are always ordered minimum, mean, maximum, p01, p05, median, p95, and p99\. Structures appear in the order Brainstem, SpinalCord, RightParotid, LeftParotid, Esophagus, Larynx, Mandible, PTV56, PTV63, PTV70\. Each contributes a presence flag, voxel count, volume in cm3, a normalized centroid, three bounding\-box extents in mm, and eight predicted\-dose summaries within the structure\. A missing structure is retained at fixed length with presence flag 0 and zeroed geometry and dose features\. Each OAR–PTV pair contributes intersection volume, the fraction of the OAR overlapping the PTV, the fraction of the PTV overlapping the OAR, and their Dice coefficient\. Centroids are mean voxel coordinates divided bygrid shape−1\\text\{grid shape\}\-1per axis; bounding boxes are inclusive voxel extents scaled by voxel spacing; empty\-region fractions and Dice values are set to 0\. ### D\.2Protocol and Criterion Margins Every prompt lists the ten clinical criteria from the main paper\. Prescriptions of 56, 63, and 70 Gy are implicit in the PTV names rather than given as a separate table; the prompt states the evaluated thresholds directly\. A patient\-specific goal\-deviation table reports each applicable criterion’s predicted value and margin, approximating targetD99D\_\{99\}by predicted\-dose p01, serial\-OARD0\.1ccD\_\{0\.1\\mathrm\{cc\}\}by p99, and mean\-dose criteria by the predicted mean\. The table includes only criteria whose structures are present\. These percentile substitutions are agent\-facing display heuristics rather than scored quantities: the percentile corresponding to0\.10\.1cc depends on structure volume, so p99 is not in general equal toD0\.1ccD\_\{0\.1\\mathrm\{cc\}\}\. Every reported clinical\-criterion result is computed from the criterion definitions of the main paper on the full\-solve dose\. ### D\.3DVH Feedback In the main agent conditions a DVH diagram is attached only after a successful full solve; no image is supplied on surrogate\-only turns, including every turn before the first successful solve\. The image is a PNG showing the whole\-volume predicted curves together with the optimized\-plan curves, and it is updated after each further successful solve; the candidate critic receives the same image when reviewing a proposal\. The predicted DVH is not duplicated numerically\. After a full solve, textual feedback reports exact whole\-plan DVH endpoints, per\-criterion violations, plan maximum dose, homogeneity, conformity, spill, and falloff\. The fixed clinical\-only condition receives no image and no per\-criterion detail\. ### D\.4Structured Action Interface Each planner response is parsed as a structured object that is either a proposal carrying the 12\-dimensional weight vector and a binary full\-solve request, or a stop action\. The weights follow the control order in Table[S3](https://arxiv.org/html/2611.33821#A3.T3)and are constrained to\[0\.25,4\.0\]\[0\.25,4\.0\]\. In the fixed clinical\-only condition, the environment enforces 13 surrogate evaluations followed by three full solves, so the model cannot alter full\-solve timing\. The candidate critic does not emit replacement weights: it either accepts the proposed action or requests one planner revision, after which the revised structured action is executed\. ### D\.5Prompt Construction, Schemas, and Retries The system instruction identifies the task as radiotherapy objective\-weight planning; explains that weights are relative priorities rather than dose prescriptions; distinguishes approximate surrogate feedback from full\-solve feedback; directs the model to preserve target coverage while considering OAR trade\-offs; and requires one structured action without free\-form text\. The prompt instructions and JSON templates are shown in Section[B](https://arxiv.org/html/2611.33821#A2)\. The planner object contains exactly three top\-level fields:action,request\_full\_verifier, andweights\. A proposal requires all 12 named finite weights and forbids additional properties; a stop requires a false full\-request bit and null weights\. The environment rejects unknown controls, incomplete vectors, out\-of\-range values, illegal stop/full combinations, and actions exceeding the remaining budget\. The candidate critic returns an accept\-or\-revise verdict, typed issues, revision guidance, an assessment of the proposed full request, and a confidence level\. Validation, transport\-retry, and structured\-output settings are given in Section[B\.7](https://arxiv.org/html/2611.33821#A2.SS7)\. The traces contain no structured\-output parse errors, invalid executed actions, or memory\-integrity errors\. ### D\.6Information Withheld from the Agent The patient reference dose, expert plan, DVH score, and dose score are withheld from the agent throughout, as are the all\-ones plan and its absolute objective value\. Surrogate feedback is expressed relative to that baseline, so the agent observes differences from it without observing the baseline itself\. The all\-ones plan is solved once per context, outside every method’s full\-solve budget, and its result is not exposed to the language agents: it serves as the evaluation reference and as the fallback when no full solve succeeds\. The Adaptive LogEI control is the sole condition that additionally receives the clinical objective of that solve, which its promotion rule requires in order to calibrate surrogate values against full\-solve outcomes; this is an information asymmetry in favor of that control relative to the agents\. ## Appendix ESurrogate\-Verifier Details The frozen surrogate verifier is a 24\-member ensemble of histogram\-based gradient\-boosting regressors\. Its input has 309 values: the candidate’s 12 objective weights followed by the 297\-value public context vector described in Section[D](https://arxiv.org/html/2611.33821#A4)\. It predicts only the clinical\-criterion improvement relative to the context\-matched all\-ones plan and an uncertainty estimate; it never predicts individual violations, DVH score, or dose score\. ### E\.1Ordered Feature Schema Table[S5](https://arxiv.org/html/2611.33821#A5.T5)enumerates all 309 positions\. Repeated blocks follow the displayed object and field orders, so every feature and its position is specified\. Table S5:Ordered 309\-feature schema for the surrogate verifier\.Within each repeated block, the object order is outermost and the field order is innermost\. The final evaluation uses prediction sets 1–10, but the frozen schema retains all 21 released identifiers\.Missing structures retain their fixed positions withpresent=0=0and zero\-filled numeric fields\. Centroids are normalized by grid extent, bounding boxes are inclusive voxel extents multiplied by voxel spacing, and empty\-region overlap statistics are zero\. No feature contains the expert reference dose or any reference\-derived endpoint\. ### E\.2Development Split and Uncertainty Estimate The verifier\-development cohort uses 30 training patients and 10 validation patients, all disjoint from the 60 evaluation patients\. It contains 4,618 fitting rows and 1,440 validation rows\. The cohort is the full 100\-patient OpenKBP\-Opt set,pt\_241throughpt\_340, so the three groups partition it exactly and patient disjointness holds by construction\. The split was drawn at random, was frozen before any final\-cohort result was examined, and is included with the released code\. The 30 training patients arept\_241, pt\_242, pt\_248, pt\_249, pt\_252, pt\_254, pt\_255, pt\_256, pt\_270, pt\_272, pt\_273, pt\_276, pt\_277, pt\_282, pt\_284, pt\_287, pt\_290, pt\_295, pt\_297, pt\_301, pt\_306, pt\_310, pt\_317, pt\_320, pt\_321, pt\_323, pt\_328, pt\_335, pt\_338, pt\_339\. The 10 validation patients arept\_250, pt\_260, pt\_262, pt\_268, pt\_283, pt\_294, pt\_307, pt\_311, pt\_313, pt\_319\. The 60 evaluation patients are the remaining members of the cohort\. Verifier development uses the same ten prediction sets, 1–10, applied to the 40 development patients, giving 400 development contexts against the 600 evaluation contexts\. The partition is by patient, so no evaluation patient contributes a fitting or validation row and no evaluation context is solved during development\. These are the 10 held\-out patients used in the verifier figure in the main paper\. They are held out from regressor fitting and are also the cohort on which the ensemble was selected, so the diagnostics below are validation diagnostics; the 60 evaluation patients are the patient\-disjoint cohort used for the planning\-method comparisons\. We evaluated all 72 hyperparameter configurations, spanning loss, learning rate, leaf count, minimum leaf samples, andL2L\_\{2\}regularization, on the verifier\-validation cohort using seed 17, and screened them jointly on context\-delta mean absolute error, within\-context Spearman correlation, pairwise preference accuracy, top\-1 recovery, top\-3 retention, and selection regret\. We retained configurations 7, 15, 31, 43, 62, and 67 as the multi\-metric stability set, listed in Table[S6](https://arxiv.org/html/2611.33821#A5.T6), refit each using seeds 17, 29, 43, and 71, and averaged all 24 resulting models\. The resulting ensemble is included in the release, so its prediction for any weight vector and context is exactly reproducible\. The verifier is frozen before every evaluation campaign and does not update from agent trajectories\. Table S6:The six gradient\-boosting configurations in the frozen ensemble\.All usemax\_iter= 800 with early stopping \(validation\_fraction= 0\.15,n\_iter\_no\_change= 50\) under scikit\-learn 1\.7\.2, and each is fitted at four seeds, giving 24 members\.Each regressor is trained on the internal targety\(w\)=Jclin\(dw\)−Jclin\(d1\)y\(w\)=J\_\{\\mathrm\{clin\}\}\(d\_\{w\}\)\-J\_\{\\mathrm\{clin\}\}\(d\_\{1\}\), rather than on absolute clinical\-criterion violation\. This is a lower\-is\-better training target\. Each member is scored at the candidate weights and at the all\-ones weights, and its anchored prediction is the difference between the two, which forces an exact zero prediction at the all\-ones anchor and removes residual context offset\. The ensemble prediction is the arithmetic mean of the 24 anchored predictions\. For reporting, that mean is negated to expressΔJclin=Jclin\(d1\)−Jclin\(dw\)\\Delta J\_\{\\mathrm\{clin\}\}=J\_\{\\mathrm\{clin\}\}\(d\_\{1\}\)\-J\_\{\\mathrm\{clin\}\}\(d\_\{w\}\), for which positive values indicate predicted improvement\. All reported verifier diagnostics and figures use this convention\. Both axes of the verifier figure in the main paper plotΔJclin\\Delta J\_\{\\mathrm\{clin\}\}in this orientation, so a positive coordinate on either axis is an improvement over the all\-ones plan\. The uncertainty reported with each prediction isσ2\+q902\\sqrt\{\\sigma^\{2\}\+q\_\{90\}^\{2\}\}, whereσ\\sigmais the population standard deviation of the 24 anchored predictions andq90=0\.4922q\_\{90\}=0\.4922Gy is the 90th percentile of the absolute residuals of the ensemble prediction over the 1,440 validation rows\. It is a percentile of absolute residuals, not a residual standard deviation or a root\-mean\-square error\. ### E\.3Static and Adaptive\-Query Evaluation Table[S7](https://arxiv.org/html/2611.33821#A5.T7)evaluates the verifier on two candidate populations\. Static validation uses the offline candidates from the development cohort, whereas the adaptive queries are the full\-solve requests issued by the representative GPT\-5\.6 Sol campaign with criterion\-response contrast memory and the candidate\-critic role, so they follow the distribution the verifier actually encounters inside the loop\. Mean absolute error rises from 0\.216 to 0\.358 Gy under that shift and is largest during turns 5–8, while agreement with the full solve on whether a candidate improves over the all\-ones initialization remains 81\.6%\. The validation cohort contains ten patients, of which nine contribute solved target rows to the model\-selection diagnostics: one patient times out on every candidate in all ten of its prediction contexts, removing 160 rows and contributing none\. The static diagnostics are therefore computed over the remaining nine patients, which give 90 contexts with a complete set of 16 candidates each and the 1,440 solved surrogate–full pairs counted in the table\. Those 16 candidates include the all\-ones anchor, so 90 of those rows contribute a zero target and a zero anchored prediction; mean absolute error and every within\-context ranking diagnostic use the complete pool\. Preference accuracy is the fraction of non\-tied candidate pairs within a context on which the verifier and the full solve agree about which candidate has the largerΔJclin\\Delta J\_\{\\mathrm\{clin\}\}, that is, the greater improvement over the all\-ones initialization\. Top\-3 retained is the fraction of contexts in which the true best candidate falls within the verifier’s three highest\-ranked candidates\. Selected regret is the full\-solveΔJclin\\Delta J\_\{\\mathrm\{clin\}\}of the oracle\-best candidate minus that of the candidate the verifier ranks first, averaged over contexts; zero means the verifier selected the true best\. Static validationAdaptive queriesDiagnosticValueDiagnosticValueSolved pairs1,440Solved pairs1,732MAE \(Gy\)0\.216MAE \(Gy\)0\.358Mean Spearman0\.705RMSE \(Gy\)0\.492Pref\. accuracy0\.780Mean Spearman0\.571Top\-3 retained58\.9%Sign agreement81\.6%Selected regret \(Gy\)0\.104Timeouts33Adaptive\-query error by turnTurn binNNMAE \(Gy\)RMSE \(Gy\)1–49670\.3190\.4425–85650\.4380\.5839–121580\.3270\.45413–16420\.3000\.408Table S7:Surrogate\-verifier evaluation\.Adaptive queries are the full\-solve requests of the representative GPT\-5\.6 Sol campaign, subsequently evaluated by Gurobi; 33 timed\-out attempts have no paired target and are excluded, leaving 1,732 of 1,765 requests\. The adaptive within\-context Spearman is computed over at most three full solves per context and therefore takes few distinct values; it indicates ordering agreement only coarsely\. The adaptive RMSE of0\.4920\.492Gy and the uncertainty percentileq90=0\.4922q\_\{90\}=0\.4922Gy are unrelated quantities\. ## Appendix FBaseline Quality and Controller Rules ### F\.1All\-Ones Baseline Plan Quality by Prediction Set Table[S8](https://arxiv.org/html/2611.33821#A6.T8)reports the comparison referenced in the main paper, based on the plan generated with all 12 weights fixed at one\. It therefore measures*baseline plan quality*, which reflects both the upstream prediction and the downstream dose\-mimicking solve rather than the prediction alone\. Each row contains the same 60 patients under one ranked prediction set\. Lower values are better, and intervals resample patients with 10,000 bootstrap replicates\. Baseline plan quality is close to uniform across the ten sets: clinical\-criterion violation spans 1\.597–1\.726 Gy with every interval overlapping\. The DVH score varies more, from 4\.093 Gy for set 3 to 5\.244 Gy for set 7\. Table S8:Context\-matched all\-ones baseline plan quality across the ten OpenKBP\-Opt prediction sets\.Set identifiers follow the official rank order\. The rows are repeated predictions on the same 60 anatomies and are not independent cohorts\.Table[S9](https://arxiv.org/html/2611.33821#A6.T9)stratifies contexts into thirds by all\-ones dose score and reports the GPT gain in each third, together with the Spearman correlation between the baseline dose score and the gain\. Clinical\-criterion and DVH gains show no monotone trend across the thirds, whereas the dose gain is concentrated in the third with the worst baseline\. Table S9:GPT\-5\.6 Sol gain by all\-ones baseline difficulty\.Contexts are split into thirds by all\-ones dose score\. All entries except the Spearmanρ\\rhorow are in Gy\. The final row is the Spearman correlation between a context’s baseline dose score and its gain on that endpoint\. ### F\.2Common Action and Final\-Selection Rules Every accepted proposal is a 12\-weight vector in\[0\.25,4\.0\]12\[0\.25,4\.0\]^\{12\}\. The environment scores every accepted vector with the surrogate verifier and sends the identical vector to Gurobi when a full solve is scheduled and budget remains\. The fixed clinical\-only control is the one exception: its turn 14–16 proposals are sent directly to Gurobi and are not surrogate\-scored\. Every accepted proposal in every other condition receives a surrogate estimate\. Final selection is deterministic: among successful full solves, select the plan with the smallest mean clinical\-criterion violation and break an exact tie in favor of the earlier step\. Surrogate predictions cannot directly become final plans\. If no full solve succeeds, reporting uses the predefined all\-ones fallback\. DVH and dose scores are computed only after this selection is frozen\. The full\-solve budget counts requested attempts rather than successful outcomes, identically for the agents and the non\-agent methods\. Every accepted full\-verifier request consumes one budget unit, including attempts that time out or return another solver failure\. A successful exact\-cache replay likewise consumes one logical unit although it performs no new physical solve, and runtime accounting charges it the stored original solver time rather than its replay latency\. Timeouts are charged their observed elapsed solver time up to the 1800\-s limit\. The precomputed all\-ones reference is excluded from the method budget and reported separately\. Attempted and successful calls are tracked separately: the three\-solve GPT campaign issues 1,765 requests and records 1,732 successful solves, and the per\-episode counts in Section[H](https://arxiv.org/html/2611.33821#A8)are successes\. ### F\.3Non\-Agent Method Policies Table[S10](https://arxiv.org/html/2611.33821#A6.T10)summarizes how each non\-agent method proposes candidates and what it observes in return\. Table S10:Non\-agent proposal policies\.The numerical optimizers are not directly provided CT features, structure summaries, criterion\-level feedback, or DVH diagrams; the shared surrogate verifier that scores their proposals does consume anatomical and predicted\-dose features\.In the standard three\-solve comparison, all four methods use the 16\-turn protocol reported in the main paper: 13 surrogate\-screening turns followed by three terminal full solves of the best distinct unverified candidates\. A full\-solve outcome may enter an optimizer’s state on the turn it is returned, but it cannot change which candidate is promoted afterwards\. The three terminal candidates are fixed by surrogate rank at the end of screening, and each of turns 14–16 promotes the next\-best remaining candidate in that order, so an earlier full\-solve result never changes which candidate is promoted later\. Interleaving full\-solve outcomes into subsequent proposals requires the explicit fidelity\-selection controller of the Adaptive LogEI control\. The fixed clinical\-only GPT control uses the same schedule and scalar clinical feedback, while retaining the named 12\-control descriptions and iterative language policy\. Surrogate\-evaluation counts are therefore matched alongside horizons: every method in this comparison receives 13 surrogate evaluations and three full\-solve attempts per context\. That control proposes a complete weight vector on all 16 turns, but its turn 14–16 proposals are solved directly rather than surrogate\-scored\. One difference remains, and it favors the control\. At each full\-solve turn it generates a new candidate conditioned on the full\-solve outcomes observed so far, whereas the non\-agent methods promote candidates fixed by surrogate rank at the end of screening\. The fixed clinical\-only control therefore retains adaptive use of full\-solve feedback that the non\-agent methods do not have, while matching them on horizon, surrogate\-evaluation count, solve budget, and scalar feedback\. Extended Exact\-GP LogEI uses 61 surrogate turns followed by three full\-solve attempts, for 64 turns total\. In the 16\-solve condition the schedule contains no surrogate\-screening turns: each of the 16 turns is full\-solved\. Every turn therefore returns the full\-solveΔJclin\\Delta J\_\{\\mathrm\{clin\}\}, no surrogate score enters these methods’ updates, and the condition is a single\-fidelity optimization over 16 evaluations rather than a screen\-then\-verify schedule\. At both solve budgets, each non\-agent optimizer exposes a single scalar channel and receives one value per turn: the surrogate\-verifier prediction ofΔJclin\\Delta J\_\{\\mathrm\{clin\}\}on a surrogate turn and the full\-solveΔJclin\\Delta J\_\{\\mathrm\{clin\}\}on a full\-solve turn\. Both are improvements over the context\-matched all\-ones plan in the reported convention of Section[A](https://arxiv.org/html/2611.33821#A1), so the scalar channel has a single orientation throughout and higher is always better\. It receives no per\-criterion, DVH, or dose information at either fidelity\. CMA\-ES updates its population statistics, Exact\-GP LogEI and SAAS\-BO condition their surrogate models, and Sobol advances its sequence, each using whichever scalar the turn returned\. The optimizers differ only in the sign they require internally: the LogEI and qLogEI acquisitions of Exact\-GP LogEI and SAAS\-BO maximize and therefore consumeΔJclin\\Delta J\_\{\\mathrm\{clin\}\}directly; CMA\-ES minimizes by construction and is passed−ΔJclin\-\\Delta J\_\{\\mathrm\{clin\}\}; and Sobol consumes no outcome at all\. No other transformation is applied at either budget\. Consistent with Section[A](https://arxiv.org/html/2611.33821#A1), none of the four models the two sources as distinct fidelities and none selects fidelity online; the schedule fixes which fidelity a turn uses\. The 16\-solve rows of the main comparison table use the optimizer configurations of Table[S1](https://arxiv.org/html/2611.33821#A1.T1), unchanged from the three\-solve rows\. #### Adaptive LogEI\. This control uses a 16\-turn horizon and at most three full solves; promoting a candidate to a full solve does not consume an additional turn\. It first reads the full solve of the all\-ones anchor, which is precomputed once per context and excluded from every method’s budget, so all three of its own full solves remain available\. For later candidates it estimates the mean observed discrepancy between full and surrogate clinical objectives and forms ΔJ^full\(w\)=ΔJsur\(w\)\+meanv∈𝒱\[ΔJfull\(v\)−ΔJsur\(v\)\],\\Delta\\widehat\{J\}\_\{\\mathrm\{full\}\}\(w\)=\\Delta J\_\{\\mathrm\{sur\}\}\(w\)\+\\operatorname\{mean\}\_\{v\\in\\mathcal\{V\}\}\\left\[\\Delta J\_\{\\mathrm\{full\}\}\(v\)\-\\Delta J\_\{\\mathrm\{sur\}\}\(v\)\\right\],\(13\)where𝒱\\mathcal\{V\}is the set of successfully verified candidates\. It promotes the unverified candidate with the largest calibrated value when that value improves on the best observed full\-solve value\. When the remaining turn count equals the remaining full budget, it promotes the best eligible unverified candidates to avoid leaving legal calls unused\. Thus Adaptive LogEI can incorporate each successful Gurobi outcome before later proposals, while retaining a scalar observation and deterministic fidelity\-selection rule\. #### Upper\-budget reference\. The 16\-full\-solve condition holds the 16\-turn agent architecture fixed while allowing every proposed candidate to receive a Gurobi solve\. It estimates performance headroom when the full\-solve bottleneck is relaxed; it is not part of the matched three\-solve comparison\. ## Appendix GPatient\-Clustered Uncertainty We treat the 60 patients, rather than the 600 patient–prediction contexts, as the independent units\. Confidence intervals use 10,000 bootstrap replicates \(seed 20260824\), resampling patients with replacement and retaining all ten prediction contexts for each sampled patient\. Reported intervals are percentile intervals: the 2\.5th and 97\.5th percentiles of the replicate distribution\. Table S11:Patient\-clustered uncertainty for the matched three\-solve comparison\.Panel \(a\) reports the mean improvement and marginal 95% confidence interval relative to the all\-ones plan; positive values indicate improvement\. Panel \(b\) reports paired 95% confidence intervals for the improvement difference between GPT\-5\.6 Sol and each comparator; positive values favor GPT\-5\.6 Sol\. Pairing is by patient and prediction set\.Every paired interval in Table[S11](https://arxiv.org/html/2611.33821#A7.T11)\(b\) lies above zero\. ### G\.1Memory and Role\-Structure Comparison Table[S12](https://arxiv.org/html/2611.33821#A7.T12)pairs each of the remaining eight memory–role configurations against criterion\-response contrast memory with the candidate critic, the configuration used for the cross\-model comparison in the main paper\. Positive values favor that reference\. Point estimates are the differences of the means in the main\-paper memory–role table, and the intervals use the resampling procedure described above\. Under criterion\-response contrast memory, the candidate\-critic versus direct\-planner intervals contain zero on all three endpoints, with mean differences of\+0\.003\+0\.003,−0\.007\-0\.007, and\+0\.000\+0\.000Gy\. Lossless full history with the direct planner likewise has intervals containing zero on all three\. Across the eight reference comparisons, 11 of the 24 endpoint\-specific intervals exclude zero\. These are pointwise intervals, unadjusted for multiplicity\. Other comparisons show endpoint\-specific differences\. The evaluator\-planner role has lower clinical\-criterion and DVH improvements than the reference under all three memory mechanisms, by 0\.072–0\.091 Gy and 0\.095–0\.138 Gy respectively, with intervals excluding zero in every case\. Pareto\-tradeoff memory has lower clinical\-criterion improvement with both the direct planner and the candidate critic, and with the candidate critic also lower DVH improvement\. Lossless full history with the candidate critic has lower clinical\-criterion improvement by 0\.010 Gy but higher dose improvement by 0\.013 Gy\. Seven of the eight dose\-score intervals contain zero; the remaining interval favors lossless full history with the candidate critic\. No comparator is separated from the reference on all three endpoints simultaneously\. Table S12:Paired patient\-clustered differences among the nine GPT\-5\.6 Sol memory–role configurations\.Each row compares the reference configuration, criterion\-response contrast memory with the candidate critic, against one of the other eight\. Positive values favor the reference\. Pairing is by patient and prediction set\. The bold row is the comparison between the two role structures under the memory mechanism used elsewhere in the paper; all three of its intervals contain zero\. ## Appendix HAgent\-Loop and Weight\-Update Details \(a\) Successful full solves \(b\) Full\-solve and stopping\-turn distributions Figure S1:Agent\-loop behavior for GPT\-5\.6 Sol with criterion\-response contrast memory and the candidate\-critic role\.\(a\) Successful full solves per context\. \(b\) Context frequency by turn for the first, second, and third successful full solves and the explicit stop\.### H\.1Full\-Solve Timing and Stage\-Wise Gains \(a\) Episode\-level use \(b\) Timing and incumbent quality by solve stage Table S13:Episode timing and staged performance for the representative GPT\-5\.6 Sol agent\.Improvements are measured against the all\-ones initialization\. The two panels use different denominators: turn statistics are conditional on theNNcontexts that reach a stage, whereas the endpoint means are over all 600 contexts, carrying the previous incumbent forward \(or the all\-ones fallback\) for contexts that have not reached it\. The final row therefore reproduces the 600\-context values reported in the main paper\. DVH and dose scores are computed post hoc\. One context reaches the 16\-turn horizon without an explicit stop\. Selection minimizes clinical\-criterion violation only, so the post\-hoc DVH and dose scores need not improve monotonically across stages; dose\-score improvement falls from0\.2320\.232to0\.2200\.220Gy between solve 2 and solve 3\.Figure[S1](https://arxiv.org/html/2611.33821#A8.F1)and Table[S13](https://arxiv.org/html/2611.33821#A8.T13)summarize how the agent spends its solve budget\. The first solve occurs on turn 2 in 452 of 595 contexts, and the second occurs on turn 4 in 371 of 586 contexts\. The third solve most commonly occurs on turns 6, 7, and 8 \(152, 124, and 83 contexts\)\. The successful\-solve\-count distribution is 5, 9, 35, and 551 contexts with zero, one, two, and three successful solves, respectively\. Counts in this section are successful solves rather than requests: the campaign issues 1,765 full\-solve requests, of which 33 time out, leaving 1,732 successful solves\. Those timeouts fall in 21 contexts, 16 of which still yield a valid selected plan; Table[S2](https://arxiv.org/html/2611.33821#A1.T2)gives the full breakdown\. The first solve captures approximately 54% of the final clinical\-criterion gain and the second brings the carried\-forward incumbent to approximately 88%\. A new candidate replaces the clinical incumbent in 77\.1% of contexts reaching the second solve and 65\.5% of contexts reaching the third\. ### H\.2Per\-Control Weight Movement Table[S14](https://arxiv.org/html/2611.33821#A8.T14)reports how the 12 weights move during an episode\. A movement is counted when the relative change exceeds 5%\. Step movement compares consecutive accepted weight proposals; turn\-1 and final movement compare against the all\-ones initialization\. \(a\) Per\-control proposal and final movement \(b\) Movement frequency by accepted proposal index Table S14:Planning\-objective weight\-update behavior for the representative GPT\-5\.6 Sol agent\.A movement is a relative change greater than 5%\. In \(a\), “Ever,” “T1,” and “Step” are proposal\-movement frequencies; “Factor” is the typical multiplicative change across consecutive accepted proposals; and “Up” and “Down” give the fraction of contexts whose final proposal weight ends more than 5% above or below the all\-ones initialization\. In \(b\),NNis the number of episodes reaching each proposal index and the remaining entries are family\-level movement percentages\. The four families are target coverage \(PTV56, PTV63, PTV70\), serial\-OAR sparing \(brainstem, spinal cord, mandible\), mean\-dose OAR sparing \(both parotids, esophagus, larynx\), and shaping \(ring falloff, posterior neck\); the same grouping and naming are used in Table[S16](https://arxiv.org/html/2611.33821#A8.T16)\. The stop action contains no weight vector and is excluded\. ### H\.3Cross\-Backbone Behavioral Comparison The three backbones share the same environment, memory mechanism, role structure, turn horizon, and full\-solve budget, so differences in how they act reflect differences among the end\-to\-end model deployments under a common RadOncGym protocol rather than differences in the protocol itself\. The three routes differ in provider, client, and default reasoning configuration as described in Section[A](https://arxiv.org/html/2611.33821#A1), so these rows are not controlled comparisons of model identity alone\. Table[S15](https://arxiv.org/html/2611.33821#A8.T15)reports timing and termination and Table[S16](https://arxiv.org/html/2611.33821#A8.T16)reports weight\-update behavior\. Values come from the 600 episode records of each campaign\. \(a\) Turns, solve timing, and stopping \(mean / median, withNNwhere conditional\) \(b\) Episode\-level solve use and termination Table S15:Turn, solve\-timing, and termination behavior of the three backbones\.All rows use criterion\-response contrast memory, the candidate\-critic role, a 16\-turn horizon, and at most three full solves on the same 600 contexts\. Solve\-turn statistics are conditional on episodes that reached that solve, withNNin parentheses\. Explicit\-stop percentages count episodes that emitted a stop action; the remainder reached the horizon\.All three backbones use the budget: each completes three successful full solves in more than 90% of contexts, so the endpoint gap is not explained by refusal to escalate\. The differences are in timing and termination\. Claude reaches all three solves earliest, at mean turns 1\.85, 3\.62, and 6\.63\. Qwen uses the most turns, averaging 13\.61, reaches its first full solve latest, and reaches the horizon without an explicit stop in 35\.3% of contexts against 0\.2% for GPT\. Qwen also has the largest zero\-solve fallback count, 20 contexts compared with 5 for GPT\. Table S16:Weight\-update behavior by control family and backbone\.“Step” is the fraction of consecutive accepted proposals in which a control changes by more than 5%, averaged across the family\. “Factor” is the typical multiplicative change across consecutive accepted proposals, as in Table[S14](https://arxiv.org/html/2611.33821#A8.T14)\. “Final” compares the last accepted proposal’s weight vector with the all\-ones initialization, and “Mean” is the mean final proposal weight\.The edit policies also differ\. Claude makes the smallest and least persistent changes, moving the falloff and posterior\-neck controls on 19\.1% of steps and leaving 70\.4% of those controls within 5% of 1\.0 at the end\. Qwen edits most often and most aggressively, with a 1\.39×\\timestypical factor on the shaping controls and the highest mean final weights in every family\. GPT falls between the two in step magnitude but moves every family persistently, ending more than 5% away from the all\-ones initialization on 87\.5–92\.9% of controls\. These are descriptive differences in policy, not causal explanations of the endpoint gap\. ## Appendix IExample Planning Episode This section follows one retained trace end to end\. It is a recorded episode rather than a reconstructed illustration, and it uses the representative configuration: GPT\-5\.6 Sol with criterion\-response contrast memory and the candidate\-critic role, on patientpt\_274with predictionset\_6\. The episode ran 14 turns, completed three full solves, and ended with an explicit stop\. The excerpt below covers the decision cycle around the second full solve\. It reports the structured actions and summarizes the critic’s advisory output; no hidden reasoning is claimed or shown\. ### I\.1Episode State Before the Decision The first full solve, on turn 2, returned a mean clinical\-criterion violation of 2\.567 Gy with three nonzero criterion violations: 7\.578 Gy on right\-parotid mean dose, 9\.556 Gy on left\-parotid mean dose, and a 5\.971 Gy PTV70D99D\_\{99\}shortfall\. The agent then screened two candidates with the surrogate verifier, whose predictedΔJclin\\Delta J\_\{\\mathrm\{clin\}\}values were\+0\.223\+0\.223and\+0\.243\+0\.243Gy, so both were predicted to improve on the all\-ones initialization\. At turn 5, eleven subsequent turns and two full solves remained\. ### I\.2Proposal, Critique, and Revision The planner proposed escalating the better screened candidate to a full solve\. The candidate critic returned areviseverdict, identifying a target\-compromise risk: PTV70 remained undercovered while the proposal lowered PTV56 protection and retained strong bilateral\-parotid priorities\. It advised preserving PTV56 coverage while still testing the unresolved PTV70–parotid trade\-off\. Table[S17](https://arxiv.org/html/2611.33821#A9.T17)lists the controls that changed between the planner’s initial proposal and the executed revision\. Table S17:Controls changed by the planner after the candidate critique\.Unlisted controls were unchanged\. The executed action retained PTV70 coverage at 4\.00, PTV63 coverage at 0\.25, and spinal\-cord, esophagus, and larynx sparing at 0\.25, and requested the second full solve\. ### I\.3Full\-Solve Feedback and Budget Reallocation The revised candidate lowered mean clinical\-criterion violation from 2\.567 to 2\.219 Gy\. The per\-criterion response was highly uneven \(Table[S18](https://arxiv.org/html/2611.33821#A9.T18)\): Table S18:Per\-criterion response to the revised candidate\.Violations in Gy for the first and second full solves of the episode\.The parotid burden fell sharply while PTV70 coverage barely moved, so the agent continued surrogate screening rather than treating the target\-weight change as having resolved the coverage problem\. On turn 8 the critic intercepted another proposed escalation and the planner instead executed a surrogate\-only evaluation, preserving the last full call\. After four further surrogate probes, the agent used its final full\-solve call on turn 13, reaching 2\.193 Gy, and stopped on turn 14\. ### I\.4Post\-Hoc Endpoint Audit Final selection used public clinical feedback alone\. Relative to the context\-matched all\-ones plan, the selected plan improved clinical\-criterion violation by 0\.5649 Gy\. After selection was frozen, the audit measured improvements of 0\.6931 Gy in DVH score and 0\.1857 Gy in dose score\. Neither post\-hoc endpoint appeared in any observation, proposal, critic message, or stopping decision\. The episode shows the intended mechanism in one context: surrogate screening proposes a trade\-off, the planner revises an escalation flagged by the critic as risking target compromise, full feedback shows which part transferred to physics, and the budget is reallocated\. ## Appendix JClinical\-Criterion Satisfaction and Violation Details Individual\-criterion satisfaction pools all applicable criterion decisions, whereas strict all\-criteria feasibility requires every applicable clinical criterion for a plan to be satisfied within a10−910^\{\-9\}Gy numerical tolerance\. Strict feasibility here means simultaneous satisfaction of the benchmark clinical criteria; it does not refer to feasibility of the inner linear program, in which these criteria are not constraints \(Section[C](https://arxiv.org/html/2611.33821#A3)\)\. Structures absent for a patient are excluded from both pass and failure denominators\. For the per\-criterion summaries below, each entry is*violation rate / median positive violation / 95th\-percentile positive violation*; the latter two quantities are in Gy and are shown with em dashes when no positive violations exist\. The intervals in Table[S19](https://arxiv.org/html/2611.33821#A10.T19)\(b\) are marginal patient\-clustered intervals for each method separately; Section[G](https://arxiv.org/html/2611.33821#A7)reports paired comparisons for the three improvement endpoints; no paired interval is computed for strict feasibility\. Table[S20](https://arxiv.org/html/2611.33821#A10.T20)compares the principal methods criterion by criterion, and Table[S21](https://arxiv.org/html/2611.33821#A10.T21)gives the same breakdown for the nine GPT\-5\.6 Sol memory–role configurations\. Across all nine configurations, brainstem, spinal cord, mandible, and esophagus are satisfied in every context in which the structure is present, and the target criteria differ little, so the configurations separate almost entirely on parotid and larynx violation rates\. The evaluator planner has the highest violation rate on both parotids under all three memory mechanisms, which is the same ordering as the paired intervals in Section[G](https://arxiv.org/html/2611.33821#A7)\. The gain is concentrated in the organs at risk: target\-coverage violation rates rise slightly for GPT\-5\.6 Sol, from 48\.3% to 50\.2% on PTV70 and from 10\.3% to 11\.3% on PTV63, even though the PTV70 weight is raised in most contexts\. \(a\) Aggregate criterion satisfaction \(b\) Selected\-plan largest remaining violations Table S19:Aggregate constraint\-satisfaction results\.The largest\-remaining\-violation statistics in \(b\) are in Gy\. The expert reference contains one plan per patient; repeating it across ten prediction contexts leaves its percentages unchanged\. The SAAS\-BO\-3 row uses 590 audited selections and 10 predefined all\-ones fallbacks\.\(a\) Violation rate \(%\) / median positive violation \(Gy\) \(b\) P95 positive violation \(Gy\) Table S20:Per\-criterion comparison across principal methods\.Em dashes indicate that no positive violation occurred\. Adaptive, GPT, Claude, and Qwen abbreviate Adaptive LogEI, GPT\-5\.6 Sol, Claude Sonnet 5, and Qwen3\.6\-27B; the−3\-3suffix marks the three\-solve condition\.Table S21:Per\-criterion results for the nine GPT\-5\.6 Sol memory\-role configurations\.Cells report violation rate \(%\) / median positive violation \(Gy\) / P95 positive violation \(Gy\)\.
Similar Articles
RadOnc-Agent: An LLM-Orchestrated Framework for AI Workflows Across the Radiotherapy Care Pathway
RadOnc-Agent 是一个由大语言模型编排的智能体框架,将放疗流程形式化为四个临床阶段,通过对话界面提供26个可调用函数,在单功能执行、跨阶段工作流和真实患者工作流测试中达到约96-98%的完成率,验证了LLM编排架构在放疗纵向工作流中的技术可行性。
"OncoAgent: A Dual-Tier Multi-Agent Framework for Privacy-Preserving Oncology Clinical Decision Support"
The article introduces OncoAgent, a dual-tier multi-agent framework designed for privacy-preserving clinical decision support in oncology. It details a system architecture that combines corrective RAG, a reflexion safety loop, and dual-tier QLoRA fine-tuning optimized for AMD hardware.
ProgramGym: Scaling Training Environments for Long-Horizon Program Reproduction Agents
ProgramGym introduces a framework with Program-Env and Program-Agent for building scalable, verifiable training environments for long-horizon program reproduction agents, achieving notable performance gains when fine-tuning Qwen3.8-27B on the generated environments.
OPERA: Offline Policy-guided Expert Routing and Adaptation for Universal Biomedical Image Analysis
OPERA proposes a multi-agent ensemble framework that treats expert weight assignment as an offline policy learning problem for universal biomedical image analysis, enabling test-time adaptation without retraining and consistently improving performance across 9 datasets and 30+ baselines.
Adaptive Chemotherapy Control under Tumor Heterogeneity via Reinforcement Learning
This paper develops and compares deep reinforcement learning policies for adaptive chemotherapy dosing under tumor heterogeneity, revealing a trade-off between tumor reduction efficacy and dosing consistency in virtual patient cohorts.