# RL environment feasibility for CoRectron

**Feasible as a benchmark after GenPQR.** The existing simulator, three learners, and aggregate verifier provide the reusable core. Harbor fits the first goal of evaluating whether a coding agent can reproduce the scientific result. OpenEnv fits a second goal of running sequential action-only recommendation episodes. The official award accepts either and describes the goal as training or evaluating agents on paper reproduction. Design and selection are deferred until GenPQR completes. [Competition rules](https://huggingface.co/spaces/Neurips-2026-MLIntern-Repro/README)

## Interaction contract

| Element | Proposed contract |
| --- | --- |
| Observation | At reset and before each decision, the current float64 10-vector context, round number and horizon, with fixed item IDs and action schema. At later rounds the previous optimal item set is available as feedback. |
| Action | Five distinct IDs in `0..9`, mapped server-side to five entries of `1/sqrt(10)` in a 10-vector. Reject malformed or duplicate selections without advancing the episode. |
| Feedback | After committing the recommendation, reveal the user's five optimal IDs. Construct the lifted residual from the difference of the two actions and the context. |
| End | After the 10,000th committed action, return its feedback and mark the episode terminal. Short smoke episodes get designated separately. |
| Reward | Use a constant zero or an absent scalar during decisions. The evaluator privately accumulates `u_t @ (x*_t - x_t)`. Report the aggregate externally after evaluation, with the complete episode policy frozen. |

Keep the preference, exact utilities, budgets for hidden runs, future contexts, and held-out seeds in an evaluator-owned process. The current Python underscore fields and NumPy read-only flags are convenience measures inside a trusted offline process. An untrusted agent in that same process could inspect them. A deployed wrapper should expose an explicit serialized interface, avoid downloading seed secrets or private arrays to the agent container, and test reset, state, exception, and terminal payloads for leakage. Deterministic replay seeds 0–9 are public and their true preferences are reconstructible by design. Use independently generated evaluator-held seeds for behavior testing and disallow side channels through state, logs or regret-shaped intermediate rewards. [Simulator](src/linear_env.py) · [Updates](src/learners.py) · [Experiment runner](src/experiment.py)

## Evaluate reproduction and generalization separately

1. **Scientific reproduction task.** Supply the paper, claim and a runnable scaffold. Require an agent to produce a runnable workflow that reports the correct action and context normalization, method updates, shared round sequences, 210 runs, minimum of seed means, uncertainty, and both ratios. The verifier reruns submitted code using controlled inputs and checks artifacts, report arithmetic, coverage, and the verdict. Check the ONS projector under forced-active cases because the best coefficient has zero active projections. Probe hidden-utility access and hard-coded outputs with withheld replay inputs. Read the submitted package's commands and logs as part of the rubric.
2. **Fresh seeds.** Precommit fresh seed count and uncertainty reporting. Tune coefficients on public or designated development seeds and freeze them before evaluator-held testing. Compare all three baseline strategies under the same held-out sequences using paired differences and confidence intervals. A distinct re-tuned sensitivity analysis may repeat the whole sweep on development seeds. Report held-out performance separately from the fixed-seed Figure 1 verdict. Use an unseen-seed verification run to prevent a script that only prints the public values from passing the scientific task.
3. **Reuse.** `LinearSequence` supplies synthetic contexts and oracle feedback for trusted evaluator-side code. `make_learner` constructs all three baseline policies. `run_sequence` supplies the current action-only loop, while `load_formal`, `summarize`, and `compare` provide the initial verifier logic. A future wrapper should carry these contracts through to its own process and API boundaries.

## Format fit and existing projects

| Format | Fit for this project |
| --- | --- |
| Harbor | A containerized coding task can give an agent instructions and judge files, with a verifier that runs submissions and scores the reproduction workflow. Compare its existing task benchmarks such as SWE-bench and Aider Polyglot for harness and verifier design. Deterministic learner sessions can run behind a trusted simulator process if stepwise testing is needed. |
| OpenEnv | Its Gymnasium-style `reset`, `step` and `state` support a streaming recommendation environment. Adapt observation and action serialization and verify that `state` and any framework reward field preserve the paper's information boundary. Echo provides a minimal interface example, while Coding and BrowserGym illustrate isolated execution and evaluation. Its Harbor integration can capture full harness traces if both views are needed. |

The inspected catalogs give reusable interfaces and evaluation patterns. This review found no drop-in environment for the Figure 1 optimal-action feedback and claim-verification protocol. A future comparison can confirm overlap before choosing the submission format. [Harbor tasks](https://harborframework.com/docs/tasks) · [Harbor benchmarks](https://github.com/harbor-framework/harbor) · [OpenEnv catalog](https://openenv.github.io/OpenEnv/main/environments/) · [OpenEnv Harbor integration](https://openenv.github.io/OpenEnv/main/environments/harbor)
