Repository navigation
Add model eval create and compatibility check - #591
leeclemnet wants to merge 9 commits into
Conversation
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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>
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>
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>
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>
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>
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>
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>
1434079 to
8bb8758
Compare
Mega ReviewStatus: No Critical, no Warning, no open Minor. ✅ Unchanged since round 7
✅ Checked in this round
Caveats
Review LedgerOpen findings
Prior key statuses
Unresolved prior open findings
Deliberate tradeoffs
Refuted
Implausible
Pre-existing
|
Mega ReviewStatus: No Critical, no Warning, no open Minor. ✅ Unchanged since round 7
✅ Checked in this round
Caveats
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:
Live test of
1434079against production (api.roboflow.com) on 2026-12-03, in the projectlee-sandbox/chess-pieces-mjzgj-v3mep. The model islee-sandbox/chess-pieces-mjzgj-v3mep-30-rfdetr-nano-t2, which trained on version 30.roboflow eval check-compatibility -m $M -p $P -v 30Allowed: yes.trainedOnVersion,leakageandclassMismatcharenull.roboflow eval check-compatibility -m $M -p $Proboflow eval check-compatibility -m $M -p $P -v 28Allowed: yes, trained on version 30, leakagenone(test 0 of 29, valid 0 of 58), no class difference.roboflow eval check-compatibility -m $M -p $P -v 19Allowed: no, blockpreprocessing_mismatch, exit code 0.ws.create_model_evaluation(M, P, 28)dQHBq4ShJ8MJYWUS5f4P,reused: false,status: pending. It went torunning, thendone.evalId,reused: true. The eval list of the project grew by one eval only.roboflow eval create -m $M -p $P -v 19Error: preprocessing_mismatch: ..., exit code 6. The SDK raisesModelEvalBlockedError(409) with.blocks. No eval starts.-v 999, check and createVersion not foundwith the hint, exit code 3. The SDK raisesModelEvalNotFoundError.-m lee-sandbox/no-such-modelModel not found, exit code 3.-p no-such-project-xyzProject not found, exit code 3.Text output of the check on version 28:
Not tested live: the 429 limit (
ModelEvalConcurrencyLimitError, exit code 7), the 401 and 403 errors,rerun, the output ofroboflow eval createfor a started eval, and a legacyproject/versionmodel id.Checklist
Additional Context
The product docs for the new commands are not written yet.
🤖 Generated with Claude Code