Repository navigation
Add model eval create and compatibility check - #591
leeclemnet wants to merge 9 commits into
Conversation
Add rfapi.create_model_eval and rfapi.preflight_model_eval, and the Workspace methods create_model_evaluation and preflight_model_evaluation. Both return the full response. A 409 with blocks raises ModelEvalBlockedError. A 429 with eval_concurrency_limit raises ModelEvalConcurrencyLimitError. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Exit code 6 means a pre-flight block. Exit code 7 means the workspace concurrency limit. Document both commands in the changelog and the CLI quickstart. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
With rerun, a done eval does not satisfy the request, so a new eval starts. A pending or running eval still returns with reused true. Pre-flight does not take the field. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Mega ReviewStatus: Two findings block, no Criticals. The request and response contract matches the platform change. ❌ Blocking
🤨 Non-blockingNine Minors
CaveatsThe contract was checked against the code of the platform change before its merge. No run against a live API was made. Review LedgerOpen findings
Prior key statuses
Unresolved prior open findings
Deliberate tradeoffs
Refuted
Implausible
Pre-existing
|
Give eval create and eval preflight their own error hints. Do not print null tags as unknown or not checked. Correct the docs for null tags, the blocked --json output, and the pre-flight arguments. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Mega ReviewStatus: One finding blocks, no Criticals. Not converged. ❌ Blocking
✅ Fixed since last round
🤨 Non-blockingSeven Minors
CaveatsNarrowed round. The rest of the PR was reviewed at Review LedgerOpen findings
Prior key statuses
Unresolved prior open findings
Deliberate tradeoffs
Refuted
Implausible
Pre-existing
|
A key without the training-job:create scope gets a 404, so the not-found hint names both causes. State the null tag rule once, list the errors that create and pre-flight can raise, and test the pre-flight hint. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Mega ReviewStatus: No Critical or Warning finding is open. Not converged yet: one new Minor needs a fix or an acceptance. ✅ Fixed since last round
🤨 Non-blocking
CaveatsNarrowed round. The rest of the PR was reviewed at Review LedgerOpen findings
Prior key statuses
Unresolved prior open findings
Deliberate tradeoffs
Refuted
Implausible
Pre-existing
|
A blocked pre-flight can return tags with values, so the null tag sentence no longer lists it. The not-found error also covers a key without the training-job:create scope. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Mega ReviewStatus: No finding is open. Each Minor is fixed or is an accepted author decision. ✅ Fixed since last round
🤨 Non-blocking
CaveatsNarrowed round. The rest of the PR was reviewed at Review LedgerOpen findings
Prior key statuses
Unresolved prior open findings
Deliberate tradeoffs
Refuted
Implausible
Pre-existing
|
The operation checks if a model is compatible with a dataset version. Use one term for it: the check-compatibility route, the check_model_evaluation_compatibility method and the eval check-compatibility command. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Mega ReviewStatus: No finding is open. The rename to "check compatibility" is complete and does not change behavior. ✅ Checked in this round
🤨 Non-blocking
CaveatsNarrowed round. The rest of the PR was reviewed at Review LedgerOpen findings
Prior key statuses
Unresolved prior open findings
Deliberate tradeoffs
Refuted
Implausible
Pre-existing
|
A blocked start returns the message in error, the code in code and the blocks in details.blocks. The concurrency limit returns a nested error object. The exception types and attributes stay the same. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Mega ReviewStatus: No Critical or Warning finding is open. Not converged yet: one new Minor needs a fix or an acceptance. ✅ Checked in this round
✅ Fixed since last round
🤨 Non-blocking
CaveatsNarrowed round. The rest of the PR was reviewed at Review LedgerOpen findings
Prior key statuses
Unresolved prior open findings
Deliberate tradeoffs
Refuted
Implausible
Pre-existing
|
The read routes keep their released error text and --json output for a body with a nested error object. Only create and the compatibility check read the new bodies. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Mega ReviewStatus: No finding is open. The Minor of round 6 is fixed. ✅ Fixed since last round
✅ Checked in this round
🤨 Non-blocking
CaveatsNarrowed round. The rest of the PR was reviewed at Review LedgerOpen findings
Prior key statuses
Unresolved prior open findings
Deliberate tradeoffs
Refuted
Implausible
Pre-existing
|
What does this PR do?
Motivation
The platform adds evaluation of a model on another dataset version of its project. Scripts and agents that use the SDK or the CLI need a way to start one.
Before
roboflow eval list,compare, and the result commands). They could not start one.After
Workspace.create_model_evaluation(model, project, version=None, rerun=False)starts the evaluation. It returns the response dict, withreused,trainedOnVersion,leakage, andclassMismatch.Workspace.check_model_evaluation_compatibility(model, project, version=None)checks the request and starts nothing.ModelEvalBlockedError(HTTP 409, with.blocks) andModelEvalConcurrencyLimitError(HTTP 429).roboflow eval createandroboflow eval check-compatibility. Exit code 6 means blocked, and 7 means the concurrency limit.Related Issue(s): none
This needs the platform release that adds the two routes.
Type of Change
Testing
Test details:
Checklist
Additional Context
The product docs for the new commands are not written yet.
🤖 Generated with Claude Code