Add versioned eval process protocol#1857
Draft
xeophon wants to merge 8 commits into
Draft
Conversation
Comment on lines
+21
to
+27
| resume_dir, rest = split_resume(args) | ||
| if resume_dir is not None and rest: | ||
| raise ValueError("--resume takes no other arguments") | ||
| if resume_dir is not None: | ||
| config = load_resume_config(resume_dir) | ||
| config.uuid = resume_dir.resolve().name | ||
| return config |
There was a problem hiding this comment.
🟡 Medium eval/resolver.py:21
resolve_eval() calls split_resume() and load_resume_config(), which raise SystemExit on invalid --resume input. A host process embedding this API gets terminated instead of receiving an exception it can catch and handle. Consider wrapping the resume handling in a try/except that re-raises as ValueError or another standard exception.
- resume_dir, rest = split_resume(args)
- if resume_dir is not None and rest:
- raise ValueError("--resume takes no other arguments")
- if resume_dir is not None:
- config = load_resume_config(resume_dir)
- config.uuid = resume_dir.resolve().name
- return config🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @verifiers/v1/cli/eval/resolver.py around lines 21-27:
`resolve_eval()` calls `split_resume()` and `load_resume_config()`, which raise `SystemExit` on invalid `--resume` input. A host process embedding this API gets terminated instead of receiving an exception it can catch and handle. Consider wrapping the resume handling in a try/except that re-raises as `ValueError` or another standard exception.
…o codex/eval-process-protocol # Conflicts: # verifiers/v1/cli/eval/main.py # verifiers/v1/cli/eval/resolver.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Adds a stable process boundary for eval hosts while Verifiers remains the sole owner of typed Pydantic configuration, dynamic taskset/harness resolution, execution, and artifact serialization.
Process contract
eval --protocol-versionadvertises the process and trace schema versions plus supported operations.eval resolve --format json <args>resolves argv without mutating global process state or starting execution.eval run <args> --uuid <run-id>, so resolution and execution share one in-memory identity.Artifacts
Verifiers keeps the existing artifact set: resolved
config.toml, append-only Traceresults.jsonl, andeval.log. The process protocol does not add a sidecar file.Resume reloads
config.toml, writes into the selected output directory, and derives its local run identity from that directory.Consumer
Prime CLI integration: PrimeIntellect-ai/prime#760