[ENG-4321] Add raw v1 env CLI support for hosted evals#769
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 58e659d5e1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6353b60. Configure here.

What This Enables
This lets users submit a hosted eval from raw verifiers v1 config in the Prime CLI.
Before this PR, hosted eval TOML had to point at a published environment:
After this PR, hosted eval TOML can also use raw v1 selectors:
Then users can run:
prime eval run my-eval.toml --hostedWhat It Builds On
Base branch:
feat/v1-env-hosted-trainingThis builds on the existing v1 env CLI work from hosted training and reuses that shape for hosted eval submission.
The backend side is now consolidated in the platform PR:
This Prime PR is the CLI half:
environments.What Changed
env_idor raw v1taskset/harness.env_id+ v1 selectors.environment_idsfor the legacy published-env pathenvironmentsfor the raw v1 pathenv_idcontinue to work.Files To Review
packages/prime/src/prime_cli/commands/evals.pypackages/prime/src/prime_cli/utils/hosted_eval.pypackages/prime/tests/test_hosted_eval.pyOut Of Scope
Validation
Result:
79 passed