Skip to Content
Repo2RLEnv

Quality and verification

Distinguish generated tasks, execution controls, quality evidence and solver results.

Edit on GitHub

A generated task is not automatically a good RL task. Check whether the request is clear, the reference solves it, and the verifier accepts valid solutions while rejecting wrong ones. Solver success is a separate question: a good task may be hard.

Generated vs verified

EvidenceWhat you know
Exported taskThe generator reached its export conditions; some routes permit partial or unchecked output
Static validationThe expected files and metadata are present
Reference/baseline controlsThe known solution and untouched task produce the expected contrast
Quality resultA named review profile checked the bundle using the retained evidence
Blind solver resultOne model's outcome on that task revision

The published release inventory reports these scopes separately. Historical labels do not certify a dataset against later verifier fixes.

Controls

Static validation

For legacy native tasks containing version and [task]:

repo2rlenv validate ./tasks --deep
repo2rlenv validate ./tasks --oracle

--oracle adds checks for reference assets; it does not execute them. The CLI's legacy validator does not accept all newer schema_version bundles, including recipe, Tasksmith and trajectory output. Use Harbor parsing and controls for those bundles; release staging also parses selected tasks.

Nop and oracle runs

For binary test tasks, expect an untouched task to score 0 and the reference to score 1:

harbor run -p ./tasks -a nop --env docker
harbor run -p ./tasks -a oracle --env docker

Check the reward contract before applying those thresholds. SCALER uses −1/+1; FrontierSmith has a continuous optimization reward; PR-diff includes a model judge and needs verifier credentials. Missing rewards are ungraded failures, not zeros. See Rewards and Run with Harbor.

If the controls disagree with their expected outcomes, inspect the environment, reference and verifier before evaluating a learner. Passing both controls is useful but can still miss an incomplete or exploitable verifier.

Review and repair

repo2rlenv quality run takes a Harbor task and optional existing trial evidence. It keeps the original intact and writes repairs as new revisions.

ModeWhat it does
Review onlyMetered model calls and bounded reads; no task execution
--run-rolloutRun missing controls, verifier probes and a blind solver remotely
--repairEnable bounded edits and execution checks for each repaired revision

The default profile, practical-generation-v1, assesses the task, verifier and leakage. Optional evidence-review-v2 adds seven criteria with cited findings: alignment, feasibility, reference, coverage, alternatives, gaming and leakage. Both retain their evidence and cannot override failed execution controls with an optimistic model rating. Reviewer evaluation explains the experimental profile and benchmark.

Start with a review-only run; the amounts below are spending limits, not estimates:

repo2rlenv campaign init workspace/review --budget-usd 10
repo2rlenv quality run ./tasks/example \
  --campaign workspace/review --out workspace/review/example \
  --profile evidence-review-v2 --max-probes 0 --max-spend-usd 2
repo2rlenv quality show workspace/review/example

To execute or repair, follow the full loop guide and remote setup. CPU trials need a matching runtime wheel and a Modal or Daytona worker. GPU trials have a separate Modal route.

Result statusMeaning
usableReview, expected control/probe outcomes and legitimate rollout evidence satisfy the profile
reviewedReview completed, but execution evidence is incomplete or unresolved
needs_repairConcrete task or verifier defects remain
needs_evidenceEvidence, parsing or execution needs diagnosis
budget_exhaustedThe next paid step exceeded the available allowance

Check status == "usable" for full acceptance. Exit 0 also covers reviewed. Neither disposition means a learner must solve the task. The loop guide documents evidence reuse, models, retries and repair restrictions; the prompt guide links to the actual requests.

Evaluation labels

Labels live under [metadata.repo2env.evaluation] in task.toml:

LabelMeaning
unverifiedGenerated or partially checked; decisive evidence is missing
verifiedA saved quality result and its bound execution evidence satisfy the recorded profile
needs_repairA task or verifier defect was found
blockedAn operational limit prevented completion

The quality loop writes a labeled copy under OUT/labeled/. Importing verified requires matching task hashes, controls, probes, rollout review and trial-file digests; it cannot be assigned with a manual --status verified flag.

repo2rlenv tasks list ./tasks
repo2rlenv tasks list ./tasks --status needs_repair
repo2rlenv tasks show ./tasks/example

See evaluation labels for the full mapping, manual diagnoses and identity rules. Keep the supporting evidence with a labeled corpus: reading a label alone does not revalidate its contents.

Limits

  • Remote review execution supports single-container, offline Dockerfile tasks. Most native repository tasks need Harbor directly for their execution controls; review-only inspection is still available.
  • The quality loop uses its own acceptance thresholds. Continuous-reward tasks such as FrontierSmith need recipe-specific interpretation rather than an assumed binary pass criterion.
  • Probes test selected wrong solutions and alternatives. They cannot prove the verifier handles every possible submission.
  • Campaign limits bound dispatch. They do not replace provider billing controls.

On this page