Skip to Content
Repo2RLEnv

How it works

Follow a task from source material through generation, evidence, execution and publication.

Edit on GitHub

Every route produces the same kind of artifact: a Harbor task. The generation method determines its starting state, instruction, verifier and reference solution. Later checks determine what you can claim about its quality.

A failed or incomplete review can leave a task available for diagnosis. Export, control success, quality acceptance and solver success are separate outcomes.

Generation

RouteWhat happensEntry point
Native pipelinesMine existing changes or author tasks against source code; trajectory generation replays recorded sessionsrepo2rlenv generate
TasksmithInvestigate a merged PR, bootstrap its dependencies, design private behavioral tests, construct and review the taskrepo2rlenv tasksmith run
Research recipesApply a specific published method through an in-repo implementationrepo2rlenv generate --config FILE with a recipe

Repository-based runtime pipelines use the shared bootstrap to prepare a reusable image. Trajectory generation has its own image-building lifecycle. Tasksmith can reuse dependency layers while checking each PR's pinned revision. Choose a pipeline explains which route fits which input.

Where prompts enter

Model calls author instructions, tests or task designs, interpret evidence and propose repairs. Builds, test execution, schema checks and budget accounting are code. A stage named “reviewer” does not necessarily use a different model.

Each pipeline guide maps its model calls to inputs, outputs and retry limits. Prompt stages links to the exact templates and request assembly. Saved request receipts show the concrete source and failure feedback sent during a particular run; keep those private from the learner.

Where code runs

Native pipelines run locally

Native generation runs on the controller. When it executes target code, it uses Docker. pr_diff only mines and packages during generation; its judge is called later during grading. Trajectory tasks use Docker directly rather than the shared repository bootstrap.

Recipes, Tasksmith and the quality loop use a controller and a worker

ControllerRemote worker
Validate configuration and track budgetsClone targets and build images
Dispatch model requests and retain receiptsExecute target code and generated tests
Assemble artifacts and bind evidence to hashesRun controls, verifier probes and solver trials

CPU execution uses Modal or Daytona. Supported GPU trials use native Modal L4 sandboxes. These routes have no local execution fallback.

A campaign holds the ledger and receipts. Operations reserve budget before dispatch; uncertain outcomes retain their reservations until reconciled. The limit controls dispatch, not the provider's invoice. Remote execution covers setup, reuse and cleanup.

Verification

CheckWhat it establishesWhat it does not establish
Static format checkRequired files and metadata existThe image builds or the task is solvable
Reference and baseline controlsThe expected contrast in this environmentComplete coverage or resistance to reward hacks
Review and verifier probesEvidence for instruction quality, coverage, alternatives and leakageAn exhaustive proof of verifier correctness
Blind solver rolloutHow one model attempted this exact taskGeneral difficulty or task quality by itself

repo2rlenv validate --deep --oracle checks the legacy native task layout. Schema 1.2/1.3 bundles need Harbor's parser and execution controls; do not treat the legacy validator's schema error as a failed task. See quality for commands and the remote review loop's supported task shapes.

Publishing

CommandUse
repo2rlenv push DIR org/namePublish native output, including distribution of bootstrap images
repo2rlenv release stage, verify, publishPublish an explicit, hash-bound selection of recipe or Tasksmith bundles
repo2rlenv pull org/name[@rev]Download a dataset using the Hub bridge

For an exact copy of a recipe or Tasksmith release, use its tasks.tar.gz archive as shown on the dataset card. Keep evidence and labels bound to the same revision. Publishing explains the two publication paths.

Consumption

Harbor runs the reference, a no-op agent or a learner against the task. Its trial results contain rewards, errors and trajectories. For RL, consume scored results and distinguish ungraded failures from zero rewards. For evaluation, report the controls, task revision, model and runtime with the score.

Continue with Run with Harbor, Rewards and Quality and verification.

On this page