ModelEval API endpoints
Every request needs a credential — see Authentication.
| Method | Path | Summary |
|---|
POST | /sandbox/modeleval/v1/inspect | Inspect |
POST | /sandbox/modeleval/v1/passk | Submit Passk |
GET | /sandbox/modeleval/v1/passk/jobs/{job_id} | Get Job |
GET | /sandbox/modeleval/v1/passk/jobs/{job_id}/artifacts | List pass@k job artifacts |
GET | /sandbox/modeleval/v1/passk/jobs/{job_id}/artifacts/archive | Download pass@k job artifact archive |
POST | /sandbox/modeleval/v1/passk/jobs/{job_id}/cancel | Cancel Job |
GET | /sandbox/modeleval/v1/passk/rate-limit | Peek trainer pass@k start quota |
POST | /sandbox/modeleval/v1/passk/retest | Re-run unit tests for seeded sample code |
POST | /sandbox/modeleval/v1/scicode/agent | Submit Scicode Agent |
GET | /sandbox/modeleval/v1/scicode/agent/jobs/{job_id} | Get Scicode Agent Job |
GET | /sandbox/modeleval/v1/scicode/agent/jobs/{job_id}/artifacts | List scicode-agent job artifacts |
GET | /sandbox/modeleval/v1/scicode/agent/jobs/{job_id}/artifacts/archive | Download scicode-agent job artifact archive |
POST | /sandbox/modeleval/v1/scicode/agent/jobs/{job_id}/cancel | Cancel Scicode Agent Job |
POST | /sandbox/modeleval/v1/scicode/golden-validate | Submit Golden Validate |
GET | /sandbox/modeleval/v1/scicode/golden-validate/jobs/{job_id} | Get Golden Validate Job |
POST | /sandbox/modeleval/v1/scicode/model-eval-aggregate | Model Eval Aggregate |
POST | /sandbox/modeleval/v1/scicode/prism-bundle | Submit Golden Validate |
GET | /sandbox/modeleval/v1/scicode/prism-bundle/jobs/{job_id} | Get Golden Validate Job |
POST | /sandbox/modeleval/v1/validate | Validate |
POST | /sandbox/modeleval/v1/validate/jobs | Submit Validate |
GET | /sandbox/modeleval/v1/validate/jobs/{job_id} | Get Validate Job |
Accepted on every endpoint on this page.
| Name | In | Type | Required | Description |
|---|
x-correlation-id | header | string | no | End-to-end correlation id for this eval run. When set, the gateway and downstream services honor it verbatim in logs, Cloud Trace span attributes, async job payloads, and Langfuse trace.id. When omitted, the gateway generates a ULID and echoes it on the response. |
POST /sandbox/modeleval/v1/inspect
application/json, required — InspectRequest
| Field | Type | Required | Description |
|---|
profile | string | null | no | Profile id; falls back to MODEL_EVAL_DEFAULT_PROFILE. |
task_id | string | yes | |
source_media_url | string | yes | |
context_overrides | object | null | no | Optional parsed-spec fields to overlay after parse. |
dag_override | object | null | no | Canvas-owned Dependency Map override (SciCode v2). |
| Status | Description | Body |
|---|
200 | Successful Response | InspectionReport |
422 | Validation Error | HTTPValidationError |
POST /sandbox/modeleval/v1/passk
application/json, required — PasskRequest
| Field | Type | Required | Description |
|---|
profile | string | null | no | Profile id; falls back to MODEL_EVAL_DEFAULT_PROFILE. |
solver | "completion" | "agentic" | no | Default: "completion". |
task_id | string | yes | |
work_unit_id | string | null | no | |
source_media_url | string | null | no | Signed media / Drive / http(s) URL to the notebook. Exactly one of source_media_url, notebook, or task_data is required. |
notebook | object | string | null | no | Inline ipynb JSON (object or JSON string) from Prism. Exactly one of source_media_url, notebook, or task_data is required. |
task_data | object | string | null | no | Inline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of source_media_url, notebook, or task_data is required. |
k | integer | yes | |
gate_metric | "avg_across_models" | "min_across_models" | "per_model_all_pass" | no | Default: "avg_across_models". |
models | ModelSpec[] | yes | |
idempotency_key | string | null | no | |
credentials | ModelevalJobCredentialsSpec | null | no | |
gateway_workspace | string | null | no | LLM Gateway workspace slug (x-llmcp-workspace). |
gateway_project | string | null | no | LLM Gateway project slug (x-llmcp-project). |
gateway_end_user | string | null | no | Optional Gateway end_user attribution (defaults to sandbox). |
unit | string | null | no | "main", "sub-<index>", or omitted for a full run. |
context_protocol | "with_context" | "without_context" | "with_generated_context" | no | Default: "with_context". |
exclude_background | boolean | no | Default: false. |
rate_limit_max | integer | null | no | |
rate_limit_cumulative_max | integer | null | no | |
rate_limit_window_s | integer | null | no | |
rate_limit_count | "all_starts" | "billable_only" | no | Default: "billable_only". |
llm_max_retry | integer | null | no | |
mode | "S" | "C" | "O" | null | no | SciCode DAG mode: "S", "C", "O", or omitted for v1. |
dag_override | object | null | no | Canvas-owned Dependency Map override (SciCode v2). |
| Status | Description | Body |
|---|
202 | Successful Response | PasskAcceptedResponse |
422 | Validation Error | HTTPValidationError |
GET /sandbox/modeleval/v1/passk/jobs/{job_id}
| Name | In | Type | Required | Description |
|---|
job_id | path | string | yes | |
wait_ms | query | integer | no | |
| Status | Description | Body |
|---|
200 | Successful Response | PasskJobResponse |
422 | Validation Error | HTTPValidationError |
GET /sandbox/modeleval/v1/passk/jobs/{job_id}/artifacts
Inventory of the persisted outputs tree for a pass@k job. Use archive_download_url to download a zip without AWS credentials.
| Name | In | Type | Required | Description |
|---|
job_id | path | string | yes | |
| Status | Description | Body |
|---|
200 | Successful Response | ArtifactsInventoryResponse |
422 | Validation Error | HTTPValidationError |
GET /sandbox/modeleval/v1/passk/jobs/{job_id}/artifacts/archive
Stream a zip of the job's outputs tree (solution.py, tests.json, …). Authenticated with the same bearer token as job poll — no AWS credentials.
| Name | In | Type | Required | Description |
|---|
job_id | path | string | yes | |
| Status | Description | Body |
|---|
200 | Successful Response | any |
404 | Unknown job or missing artifact object | — |
409 | Job has no outputs yet | — |
422 | Validation Error | HTTPValidationError |
POST /sandbox/modeleval/v1/passk/jobs/{job_id}/cancel
| Name | In | Type | Required | Description |
|---|
job_id | path | string | yes | |
| Status | Description | Body |
|---|
202 | Successful Response | PasskCancelResponse |
422 | Validation Error | HTTPValidationError |
GET /sandbox/modeleval/v1/passk/rate-limit
Report used/remaining starts for one quota bucket without starting a job. Use rate_limit_bucket=cumulative for task-wide quota. limit=0 means that bucket is not configured.
| Name | In | Type | Required | Description |
|---|
task_id | query | string | yes | |
model | query | string | yes | Single model name (cascade steps use one model per job). |
unit | query | string | null | no | Unit selector: "main", "sub-<index>", or omit for all. |
rate_limit_max | query | integer | null | no | |
rate_limit_cumulative_max | query | integer | null | no | |
rate_limit_bucket | query | string | no | Peek "per_unit" (default) or "cumulative" task-wide bucket. |
rate_limit_window_s | query | integer | null | no | |
rate_limit_count | query | string | no | |
| Status | Description | Body |
|---|
200 | Successful Response | PasskRateLimitStatus |
422 | Validation Error | HTTPValidationError |
POST /sandbox/modeleval/v1/passk/retest
Execute-only pass@k for one unit: reuse previously generated model_samples[].samples[].code and skip LLM generation. Poll GET /v1/passk/jobs/{job_id} like a normal pass@k job.
application/json, required — PasskRetestRequest
| Field | Type | Required | Description |
|---|
profile | string | null | no | Profile id; falls back to MODEL_EVAL_DEFAULT_PROFILE. |
task_id | string | yes | |
work_unit_id | string | null | no | |
source_media_url | string | null | no | |
notebook | object | string | null | no | |
task_data | object | string | null | no | |
unit | string | yes | Required unit selector: main or sub-<index>. |
gate_metric | "avg_across_models" | "min_across_models" | "per_model_all_pass" | no | Default: "avg_across_models". |
context_protocol | "with_context" | "without_context" | "with_generated_context" | no | Default: "with_context". |
exclude_background | boolean | no | Default: false. |
model_samples | ModelSeededSamples[] | yes | |
idempotency_key | string | null | no | |
parent_run_id | string | null | no | |
parent_job_id | string | null | no | |
rate_limit_max | integer | null | no | |
rate_limit_cumulative_max | integer | null | no | |
rate_limit_window_s | integer | null | no | |
rate_limit_count | "all_starts" | "billable_only" | no | Default: "billable_only". |
dag_override | object | null | no | Canvas-owned Dependency Map override (SciCode v2). |
| Status | Description | Body |
|---|
202 | Successful Response | PasskAcceptedResponse |
422 | Validation Error | HTTPValidationError |
POST /sandbox/modeleval/v1/scicode/agent
application/json, required — ScicodeAgentRequest
| Field | Type | Required | Description |
|---|
profile | string | null | no | Profile id; falls back to MODEL_EVAL_DEFAULT_PROFILE. |
solver | "completion" | "agentic" | no | Default: "completion". |
task_id | string | yes | |
work_unit_id | string | null | no | |
source_media_url | string | null | no | Signed media / Drive / http(s) URL to the notebook. Exactly one of source_media_url, notebook, or task_data is required. |
notebook | object | string | null | no | Inline ipynb JSON (object or JSON string) from Prism. Exactly one of source_media_url, notebook, or task_data is required. |
task_data | object | string | null | no | Inline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of source_media_url, notebook, or task_data is required. |
models | ModelSpec[] | yes | |
idempotency_key | string | null | no | |
credentials | ModelevalJobCredentialsSpec | null | no | |
gateway_workspace | string | null | no | LLM Gateway workspace slug (x-llmcp-workspace). |
gateway_project | string | null | no | LLM Gateway project slug (x-llmcp-project). |
gateway_end_user | string | null | no | Optional Gateway end_user attribution (defaults to sandbox). |
unit | string | null | no | "main", "sub-<index>", or omitted for a full run. |
context_protocol | "with_context" | "without_context" | "with_generated_context" | no | Default: "with_context". |
exclude_background | boolean | no | Default: false. |
| Status | Description | Body |
|---|
202 | Successful Response | ScicodeAgentAcceptedResponse |
422 | Validation Error | HTTPValidationError |
GET /sandbox/modeleval/v1/scicode/agent/jobs/{job_id}
| Name | In | Type | Required | Description |
|---|
job_id | path | string | yes | |
wait_ms | query | integer | no | |
| Status | Description | Body |
|---|
200 | Successful Response | ScicodeAgentJobResponse |
422 | Validation Error | HTTPValidationError |
GET /sandbox/modeleval/v1/scicode/agent/jobs/{job_id}/artifacts
Inventory of the persisted outputs tree for a scicode-agent job. Use archive_download_url to download a zip without AWS credentials.
| Name | In | Type | Required | Description |
|---|
job_id | path | string | yes | |
| Status | Description | Body |
|---|
200 | Successful Response | ArtifactsInventoryResponse |
422 | Validation Error | HTTPValidationError |
GET /sandbox/modeleval/v1/scicode/agent/jobs/{job_id}/artifacts/archive
Stream a zip of the job's outputs tree (golden.json, solution.py, …). Authenticated with the same bearer token as job poll — no AWS credentials.
| Name | In | Type | Required | Description |
|---|
job_id | path | string | yes | |
| Status | Description | Body |
|---|
200 | Successful Response | any |
404 | Unknown job or missing artifact object | — |
409 | Job has no outputs yet | — |
422 | Validation Error | HTTPValidationError |
POST /sandbox/modeleval/v1/scicode/agent/jobs/{job_id}/cancel
| Name | In | Type | Required | Description |
|---|
job_id | path | string | yes | |
| Status | Description | Body |
|---|
202 | Successful Response | ScicodeAgentCancelResponse |
422 | Validation Error | HTTPValidationError |
POST /sandbox/modeleval/v1/scicode/golden-validate
application/json, required — GoldenValidateRequest
| Field | Type | Required | Description |
|---|
task_id | string | yes | |
subject_storage_resource | string | null | no | |
subject_manifest_url | string | null | no | |
subject_manifest_expires_at | string | null | no | |
policy | SciCodePolicy | null | no | |
notebook | object | string | null | no | Inline ipynb JSON (object or JSON string) from Prism. Exactly one of subject URL, manifest URL, notebook, or task_data is required. |
task_data | object | string | null | no | Inline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of subject URL, manifest URL, notebook, or task_data is required. |
tier2_rubrics | Tier2RubricSpec[] | null | no | When Metric Judge is configured, run these rubrics after Tier 1. |
profile | string | null | no | |
| Status | Description | Body |
|---|
202 | Successful Response | GoldenValidateAcceptedResponse |
422 | Validation Error | HTTPValidationError |
GET /sandbox/modeleval/v1/scicode/golden-validate/jobs/{job_id}
| Name | In | Type | Required | Description |
|---|
job_id | path | string | yes | |
wait_ms | query | integer | no | |
| Status | Description | Body |
|---|
200 | Successful Response | GoldenValidateJobResponse |
422 | Validation Error | HTTPValidationError |
POST /sandbox/modeleval/v1/scicode/model-eval-aggregate
application/json, required — ModelEvalAggregateRequest
| Field | Type | Required | Description |
|---|
trials | ScicodeAgentResult[] | yes | |
gate_metric | "avg_across_models" | "min_across_models" | "per_model_all_pass" | no | Default: "avg_across_models". |
k | integer | null | no | Unbiased estimator k; defaults to sample count n after merge. |
context_protocol | "with_context" | "without_context" | "with_generated_context" | null | no | |
exclude_background | boolean | null | no | |
| Status | Description | Body |
|---|
200 | Successful Response | ModelEvalAggregateResponse |
422 | Validation Error | HTTPValidationError |
POST /sandbox/modeleval/v1/scicode/prism-bundle
application/json, required — GoldenValidateRequest
| Field | Type | Required | Description |
|---|
task_id | string | yes | |
subject_storage_resource | string | null | no | |
subject_manifest_url | string | null | no | |
subject_manifest_expires_at | string | null | no | |
policy | SciCodePolicy | null | no | |
notebook | object | string | null | no | Inline ipynb JSON (object or JSON string) from Prism. Exactly one of subject URL, manifest URL, notebook, or task_data is required. |
task_data | object | string | null | no | Inline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of subject URL, manifest URL, notebook, or task_data is required. |
tier2_rubrics | Tier2RubricSpec[] | null | no | When Metric Judge is configured, run these rubrics after Tier 1. |
profile | string | null | no | |
| Status | Description | Body |
|---|
202 | Successful Response | GoldenValidateAcceptedResponse |
422 | Validation Error | HTTPValidationError |
GET /sandbox/modeleval/v1/scicode/prism-bundle/jobs/{job_id}
| Name | In | Type | Required | Description |
|---|
job_id | path | string | yes | |
wait_ms | query | integer | no | |
| Status | Description | Body |
|---|
200 | Successful Response | GoldenValidateJobResponse |
422 | Validation Error | HTTPValidationError |
POST /sandbox/modeleval/v1/validate
application/json, required — ValidateRequest
| Field | Type | Required | Description |
|---|
task_id | string | yes | |
notebook_media_url | string | yes | |
profile | string | null | no | Profile id; omitted → default SciCode v1 validator profile. |
dag_override | object | null | no | Canvas-owned Dependency Map override (SciCode v2). |
scope | "all" | "main" | no | main runs only the Main Problem golden (MP-alone gate before Mode S) with required dependencies and no SP code, the same program Mode S executes, and skips the mutation / DAG execution phases. Default: "all". |
| Status | Description | Body |
|---|
200 | Successful Response | SciCodeValidatorResult |
422 | Validation Error | HTTPValidationError |
POST /sandbox/modeleval/v1/validate/jobs
application/json, required — ValidateRequest
| Field | Type | Required | Description |
|---|
task_id | string | yes | |
notebook_media_url | string | yes | |
profile | string | null | no | Profile id; omitted → default SciCode v1 validator profile. |
dag_override | object | null | no | Canvas-owned Dependency Map override (SciCode v2). |
scope | "all" | "main" | no | main runs only the Main Problem golden (MP-alone gate before Mode S) with required dependencies and no SP code, the same program Mode S executes, and skips the mutation / DAG execution phases. Default: "all". |
| Status | Description | Body |
|---|
202 | Successful Response | ValidatorAcceptedResponse |
422 | Validation Error | HTTPValidationError |
GET /sandbox/modeleval/v1/validate/jobs/{job_id}
| Name | In | Type | Required | Description |
|---|
job_id | path | string | yes | |
wait_ms | query | integer | no | |
| Status | Description | Body |
|---|
200 | Successful Response | ValidatorJobResponse |
422 | Validation Error | HTTPValidationError |
The object shapes referenced above.
TB-style inventory for a job's persisted outputs tree.
| Field | Type | Required | Description |
|---|
job_id | string | yes | |
run_id | string | null | no | |
archive_download_url | string | yes | |
archive_url | string | null | no | |
files | ManifestFile[] | no | |
One thing an inspector noticed about a parsed problem.
| Field | Type | Required | Description |
|---|
check_id | string | yes | |
category | string | yes | |
severity | Severity | yes | How badly a finding should block. Only BLOCKER fails the report. |
message | string | yes | |
unit | string | null | no | |
evidence | string | null | no | |
Per-severity finding counts, so a client can gate without re-scanning.
| Field | Type | Required | Description |
|---|
blocker | integer | no | Default: 0. |
major | integer | no | Default: 0. |
minor | integer | no | Default: 0. |
| Field | Type | Required | Description |
|---|
job_id | string | yes | |
status_url | string | yes | |
| Field | Type | Required | Description |
|---|
status | "running" | "succeeded" | "failed" | yes | |
progress | GoldenValidateProgress | yes | |
result | GoldenValidateResult | null | no | |
error | string | null | no | |
| Field | Type | Required | Description |
|---|
phase | "tier1" | "inspect" | "tier2" | "done" | no | Default: "tier1". |
detail | string | null | no | |
| Field | Type | Required | Description |
|---|
task_id | string | yes | |
subject_storage_resource | string | null | no | |
subject_manifest_url | string | null | no | |
subject_manifest_expires_at | string | null | no | |
policy | SciCodePolicy | null | no | |
notebook | object | string | null | no | Inline ipynb JSON (object or JSON string) from Prism. Exactly one of subject URL, manifest URL, notebook, or task_data is required. |
task_data | object | string | null | no | Inline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of subject URL, manifest URL, notebook, or task_data is required. |
tier2_rubrics | Tier2RubricSpec[] | null | no | When Metric Judge is configured, run these rubrics after Tier 1. |
profile | string | null | no | |
| Field | Type | Required | Description |
|---|
pass | boolean | yes | |
run_at | string | yes | |
policy | SciCodePolicy | yes | Per-request policy (Prism passes datapoint.metadata.scicode_policy). |
tier1 | SciCodeValidatorResult | null | no | |
inspect | InspectionReport | null | no | |
tier2 | Tier2BundleResult | yes | |
| Field | Type | Required | Description |
|---|
detail | ValidationError[] | no | |
Wire request for POST /v1/inspect — generic, mirrors PasskRequest.
profile is optional (falls back to MODEL_EVAL_DEFAULT_PROFILE);
source_media_url is a signed URL or file:// URL to the task source.
context_overrides merges onto the parsed profile context after parse —
e.g. SciCode canvas metadata (domain/subdomain) that lives outside the
trainer notebook.
| Field | Type | Required | Description |
|---|
profile | string | null | no | Profile id; falls back to MODEL_EVAL_DEFAULT_PROFILE. |
task_id | string | yes | |
source_media_url | string | yes | |
context_overrides | object | null | no | Optional parsed-spec fields to overlay after parse. |
dag_override | object | null | no | Canvas-owned Dependency Map override (SciCode v2). |
The verdict for one inspection run.
error means the source could not be parsed (nothing was inspectable);
fail means at least one BLOCKER finding; pass otherwise.
| Field | Type | Required | Description |
|---|
status | "pass" | "fail" | "error" | yes | |
run_at | string | yes | |
findings | Finding[] | no | |
summary | FindingSummary | no | Per-severity finding counts, so a client can gate without re-scanning. |
| Field | Type | Required | Description |
|---|
tests | UnitTestResult[] | yes | |
| Field | Type | Required | Description |
|---|
harbor_path | string | yes | |
sha256 | string | yes | |
size_bytes | integer | yes | |
Merge N scicode-agent trial responses into pass@k rates + aggregate.
| Field | Type | Required | Description |
|---|
trials | ScicodeAgentResult[] | yes | |
gate_metric | "avg_across_models" | "min_across_models" | "per_model_all_pass" | no | Default: "avg_across_models". |
k | integer | null | no | Unbiased estimator k; defaults to sample count n after merge. |
context_protocol | "with_context" | "without_context" | "with_generated_context" | null | no | |
exclude_background | boolean | null | no | |
| Field | Type | Required | Description |
|---|
model_eval | SciCodeModelEvalResult[] | yes | |
model_eval_aggregate | SciCodeModelEvalAggregate | yes | |
| Field | Type | Required | Description |
|---|
model | string | yes | |
samples | SeededSample[] | yes | |
One model to evaluate, with rich per-model parameters (CTP-policy driven).
| Field | Type | Required | Description |
|---|
model | string | yes | |
reasoning_effort | string | null | no | |
temperature | number | null | no | |
max_tokens | integer | null | no | |
harbor_agent | string | null | no | |
Optional per-job model credentials, keyed by provider slug. When absent,
ModelEval uses the compute-layer keys from settings (single-tenant default).
bedrock expects a Prism-aligned env map / JSON secret
(AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY and/or
AWS_BEARER_TOKEN_BEDROCK, optional AWS_REGION).
openrouter expects OPENROUTER_API_KEY (inline env or secret string /
JSON blob).
llmgateway prefers Harbor-aligned top-level gateway_workspace /
gateway_project with platform M2M egress (no body tk_live_).
Legacy inline LLM_GATEWAY_API_KEY plus workspace/project remains
accepted while MODEL_EVAL_LEGACY_LLM_GATEWAY_BODY_KEY=1.
| Field | Type | Required | Description |
|---|
openai | ModelevalProviderCredentialRef | null | no | |
google | ModelevalProviderCredentialRef | null | no | |
bedrock | ModelevalProviderCredentialRef | null | no | |
openrouter | ModelevalProviderCredentialRef | null | no | |
llmgateway | ModelevalProviderCredentialRef | null | no | |
One provider's credential source on a job request (§13 H-6).
secret_ref is resolved at run time via the SecretStore (safe to log /
persist); env is inline BYOK and is NEVER written to the outputs tree.
| Field | Type | Required | Description |
|---|
secret_ref | string | null | no | |
env | object | null | no | |
| Field | Type | Required | Description |
|---|
archive_url | string | null | no | |
files | ManifestFile[] | no | |
| Field | Type | Required | Description |
|---|
job_id | string | yes | |
status_url | string | yes | |
cancel_url | string | yes | |
run_id | string | yes | |
rate_limit | PasskRateLimitStatus | null | no | |
| Field | Type | Required | Description |
|---|
job_id | string | yes | |
status | "cancelling" | "cancelled" | yes | |
| Field | Type | Required | Description |
|---|
status | "running" | "succeeded" | "failed" | "cancelled" | yes | |
progress | PasskProgress | yes | |
result | PasskResult | null | no | |
error | string | null | no | |
cancel_requested | boolean | no | Default: false. |
| Field | Type | Required | Description |
|---|
units_done | integer | no | Default: 0. |
units_total | integer | no | Default: 0. |
samples_done | integer | no | Default: 0. |
samples_total | integer | no | Default: 0. |
Trainer-facing quota snapshot for one (task, unit, model-set) bucket.
used splits into confirmed_used (starts durably counted under the
active policy) and reserved (in-flight jobs still holding a slot, which a
zero-cost or provider-429 failure releases in billable_only mode). Clients
must not label reserved as spent.
| Field | Type | Required | Description |
|---|
limit | integer | yes | |
used | integer | yes | |
confirmed_used | integer | no | Default: 0. |
reserved | integer | no | Default: 0. |
remaining | integer | yes | |
window_s | integer | yes | |
retry_after_s | integer | no | Default: 0. |
count | "all_starts" | "billable_only" | no | Default: "billable_only". |
| Field | Type | Required | Description |
|---|
profile | string | null | no | Profile id; falls back to MODEL_EVAL_DEFAULT_PROFILE. |
solver | "completion" | "agentic" | no | Default: "completion". |
task_id | string | yes | |
work_unit_id | string | null | no | |
source_media_url | string | null | no | Signed media / Drive / http(s) URL to the notebook. Exactly one of source_media_url, notebook, or task_data is required. |
notebook | object | string | null | no | Inline ipynb JSON (object or JSON string) from Prism. Exactly one of source_media_url, notebook, or task_data is required. |
task_data | object | string | null | no | Inline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of source_media_url, notebook, or task_data is required. |
k | integer | yes | |
gate_metric | "avg_across_models" | "min_across_models" | "per_model_all_pass" | no | Default: "avg_across_models". |
models | ModelSpec[] | yes | |
idempotency_key | string | null | no | |
credentials | ModelevalJobCredentialsSpec | null | no | |
gateway_workspace | string | null | no | LLM Gateway workspace slug (x-llmcp-workspace). |
gateway_project | string | null | no | LLM Gateway project slug (x-llmcp-project). |
gateway_end_user | string | null | no | Optional Gateway end_user attribution (defaults to sandbox). |
unit | string | null | no | "main", "sub-<index>", or omitted for a full run. |
context_protocol | "with_context" | "without_context" | "with_generated_context" | no | Default: "with_context". |
exclude_background | boolean | no | Default: false. |
rate_limit_max | integer | null | no | |
rate_limit_cumulative_max | integer | null | no | |
rate_limit_window_s | integer | null | no | |
rate_limit_count | "all_starts" | "billable_only" | no | Default: "billable_only". |
llm_max_retry | integer | null | no | |
mode | "S" | "C" | "O" | null | no | SciCode DAG mode: "S", "C", "O", or omitted for v1. |
dag_override | object | null | no | Canvas-owned Dependency Map override (SciCode v2). |
| Field | Type | Required | Description |
|---|
model_eval | SciCodeModelEvalResult[] | yes | |
model_eval_aggregate | SciCodeModelEvalAggregate | yes | |
run_id | string | null | no | |
outputs | OutputsManifest | null | no | |
task_id | string | null | no | |
problem_id | string | null | no | |
dag_summary | object | null | no | |
Re-run unit tests for existing sample code (one unit × k samples × models).
Skips LLM generation. Used when sandbox timeouts / transient executor errors
scored a sample as fail despite usable generated code.
| Field | Type | Required | Description |
|---|
profile | string | null | no | Profile id; falls back to MODEL_EVAL_DEFAULT_PROFILE. |
task_id | string | yes | |
work_unit_id | string | null | no | |
source_media_url | string | null | no | |
notebook | object | string | null | no | |
task_data | object | string | null | no | |
unit | string | yes | Required unit selector: main or sub-<index>. |
gate_metric | "avg_across_models" | "min_across_models" | "per_model_all_pass" | no | Default: "avg_across_models". |
context_protocol | "with_context" | "without_context" | "with_generated_context" | no | Default: "with_context". |
exclude_background | boolean | no | Default: false. |
model_samples | ModelSeededSamples[] | yes | |
idempotency_key | string | null | no | |
parent_run_id | string | null | no | |
parent_job_id | string | null | no | |
rate_limit_max | integer | null | no | |
rate_limit_cumulative_max | integer | null | no | |
rate_limit_window_s | integer | null | no | |
rate_limit_count | "all_starts" | "billable_only" | no | Default: "billable_only". |
dag_override | object | null | no | Canvas-owned Dependency Map override (SciCode v2). |
| Field | Type | Required | Description |
|---|
label | string | yes | |
pass_rate | number | yes | |
samples | SciCodeModelSample[] | yes | |
unbiased_pass_at_k | number | null | no | |
stage_index | integer | null | no | |
is_main | boolean | null | no | |
| Field | Type | Required | Description |
|---|
k | integer | yes | |
models | string[] | yes | |
metric | "avg_across_models" | "min_across_models" | "per_model_all_pass" | yes | |
main_pass_rate | number | yes | |
subproblem_pass_rates | object[] | yes | |
main_unbiased_pass_at_k | number | null | no | |
avg_subproblem_pass_rate | number | null | no | |
avg_subproblem_unbiased_pass_at_k | number | null | no | |
context_protocol | "with_context" | "without_context" | "with_generated_context" | null | no | |
exclude_background | boolean | null | no | |
| Field | Type | Required | Description |
|---|
model | string | yes | |
k | integer | yes | |
run_at | string | yes | |
main | PasskUnitResult | yes | |
subproblems | PasskUnitResult[] | yes | |
| Field | Type | Required | Description |
|---|
sample_id | string | yes | |
code | string | yes | |
tests_passed | integer | yes | |
tests_total | integer | yes | |
tests | UnitTestResult[] | no | |
harbor_path | string | null | no | |
sample_index | integer | null | no | |
prompt | string | null | no | |
solution_code | string | null | no | |
verdict | "pass" | "fail" | null | no | |
reason | string | null | no | |
executed_at | string | null | no | |
solver_prompt_tokens | integer | null | no | |
solver_completion_tokens | integer | null | no | |
agent_trajectory | string | no | Default: "". |
total_duration_sec | number | null | no | |
cost_usd | number | null | no | |
Per-request policy (Prism passes datapoint.metadata.scicode_policy).
| Field | Type | Required | Description |
|---|
run_tier1_validation | boolean | no | Default: true. |
require_validation_pass | boolean | no | Default: true. |
run_inspect | boolean | no | Default: false. |
run_tier2 | boolean | no | Default: true. |
use_cached_tier1 | boolean | no | Default: false. |
cached_tier1 | SciCodeValidatorResult | null | no | |
tier2_precomputed | Tier2RubricResult[] | null | no | |
| Field | Type | Required | Description |
|---|
status | "pass" | "fail" | yes | |
run_at | string | yes | |
main | MainUnitResult | yes | |
subproblems | SubproblemUnitResult[] | yes | |
qc_findings | Finding[] | no | |
| Field | Type | Required | Description |
|---|
job_id | string | yes | |
status_url | string | yes | |
cancel_url | string | yes | |
run_id | string | yes | |
| Field | Type | Required | Description |
|---|
job_id | string | yes | |
status | "cancelling" | "cancelled" | yes | |
| Field | Type | Required | Description |
|---|
status | "running" | "succeeded" | "failed" | "cancelled" | yes | |
progress | PasskProgress | yes | |
result | ScicodeAgentResult | null | no | |
error | string | null | no | |
cancel_requested | boolean | no | Default: false. |
| Field | Type | Required | Description |
|---|
model | string | yes | |
run_at | string | yes | |
main | ScicodeAgentUnitResult | yes | |
subproblems | ScicodeAgentUnitResult[] | yes | |
Single-trial SciCode run (pass@k without k / aggregate metrics).
| Field | Type | Required | Description |
|---|
profile | string | null | no | Profile id; falls back to MODEL_EVAL_DEFAULT_PROFILE. |
solver | "completion" | "agentic" | no | Default: "completion". |
task_id | string | yes | |
work_unit_id | string | null | no | |
source_media_url | string | null | no | Signed media / Drive / http(s) URL to the notebook. Exactly one of source_media_url, notebook, or task_data is required. |
notebook | object | string | null | no | Inline ipynb JSON (object or JSON string) from Prism. Exactly one of source_media_url, notebook, or task_data is required. |
task_data | object | string | null | no | Inline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of source_media_url, notebook, or task_data is required. |
models | ModelSpec[] | yes | |
idempotency_key | string | null | no | |
credentials | ModelevalJobCredentialsSpec | null | no | |
gateway_workspace | string | null | no | LLM Gateway workspace slug (x-llmcp-workspace). |
gateway_project | string | null | no | LLM Gateway project slug (x-llmcp-project). |
gateway_end_user | string | null | no | Optional Gateway end_user attribution (defaults to sandbox). |
unit | string | null | no | "main", "sub-<index>", or omitted for a full run. |
context_protocol | "with_context" | "without_context" | "with_generated_context" | no | Default: "with_context". |
exclude_background | boolean | no | Default: false. |
| Field | Type | Required | Description |
|---|
model_eval | ScicodeAgentModelResult[] | yes | |
run_id | string | null | no | |
outputs | OutputsManifest | null | no | |
task_id | string | null | no | |
problem_id | string | null | no | |
context_protocol | "with_context" | "without_context" | "with_generated_context" | null | no | |
exclude_background | boolean | null | no | |
| Field | Type | Required | Description |
|---|
label | string | yes | |
samples | SciCodeModelSample[] | no | |
golden | UnitGoldenResult | yes | Tier-1 golden sandbox outcome for one unit. |
stage_index | integer | null | no | |
is_main | boolean | null | no | |
One previously generated sample to re-execute (no LLM).
| Field | Type | Required | Description |
|---|
code | string | yes | |
sample_id | string | null | no | |
sample_index | integer | null | no | |
prompt | string | null | no | |
prior_codes | string[] | null | no | |
solver_prompt_tokens | integer | null | no | |
solver_completion_tokens | integer | null | no | |
agent_trajectory | string | null | no | |
cost_usd | number | null | no | |
harbor_path | string | null | no | |
How badly a finding should block. Only BLOCKER fails the report.
"BLOCKER" | "MAJOR" | "MINOR"
| Field | Type | Required | Description |
|---|
label | string | yes | |
tests | UnitTestResult[] | yes | |
| Field | Type | Required | Description |
|---|
status | "pass" | "fail" | "skipped" | "partial" | yes | |
rubrics | Tier2RubricResult[] | no | |
detail | string | null | no | |
| Field | Type | Required | Description |
|---|
name | string | yes | |
status | "pass" | "fail" | "skipped" | "error" | yes | |
score | number | null | no | |
explanation | string | null | no | |
| Field | Type | Required | Description |
|---|
name | string | yes | |
prompt | string | yes | |
model | string | null | no | |
timeout_sec | integer | no | Default: 1800. |
Tier-1 golden sandbox outcome for one unit.
| Field | Type | Required | Description |
|---|
status | "pass" | "fail" | yes | |
tests | UnitTestResult[] | no | |
| Field | Type | Required | Description |
|---|
test_id | string | yes | |
passed | boolean | yes | |
stderr | string | null | no | |
duration_ms | integer | null | no | |
sandbox_output | string | null | no | |
| Field | Type | Required | Description |
|---|
task_id | string | yes | |
notebook_media_url | string | yes | |
profile | string | null | no | Profile id; omitted → default SciCode v1 validator profile. |
dag_override | object | null | no | Canvas-owned Dependency Map override (SciCode v2). |
scope | "all" | "main" | no | main runs only the Main Problem golden (MP-alone gate before Mode S) with required dependencies and no SP code, the same program Mode S executes, and skips the mutation / DAG execution phases. Default: "all". |
| Field | Type | Required | Description |
|---|
loc | string | integer[] | yes | |
msg | string | yes | |
type | string | yes | |
input | any | no | |
ctx | object | no | |
| Field | Type | Required | Description |
|---|
job_id | string | yes | |
status_url | string | yes | |
| Field | Type | Required | Description |
|---|
status | "running" | "succeeded" | "failed" | yes | |
progress | ValidatorProgress | yes | Live progress for an async validate job. phase distinguishes golden unit execution from the post-pass mutation tail. Trainers previously saw units_done == units_total with the job still running and assumed a hang — mutation can take many extra sandbox runs after every unit already passed. |
result | SciCodeValidatorResult | null | no | |
error | string | null | no | |
Live progress for an async validate job.
phase distinguishes golden unit execution from the post-pass mutation
tail. Trainers previously saw units_done == units_total with the job
still running and assumed a hang — mutation can take many extra
sandbox runs after every unit already passed.
| Field | Type | Required | Description |
|---|
units_done | integer | no | Default: 0. |
units_total | integer | no | Default: 0. |
tests_done | integer | no | Default: 0. |
phase | "units" | "mutation" | no | Default: "units". |
mutation_done | integer | no | Default: 0. |
mutation_total | integer | no | Default: 0. |
Machine-readable spec: OpenAPI YAML.