Sandbox API

ModelEval

ModelEval API endpoints

ModelEval API endpoints

Every request needs a credential — see Authentication.

MethodPathSummary
POST/sandbox/modeleval/v1/inspectInspect
POST/sandbox/modeleval/v1/passkSubmit Passk
GET/sandbox/modeleval/v1/passk/jobs/{job_id}Get Job
GET/sandbox/modeleval/v1/passk/jobs/{job_id}/artifactsList pass@k job artifacts
GET/sandbox/modeleval/v1/passk/jobs/{job_id}/artifacts/archiveDownload pass@k job artifact archive
POST/sandbox/modeleval/v1/passk/jobs/{job_id}/cancelCancel Job
GET/sandbox/modeleval/v1/passk/rate-limitPeek trainer pass@k start quota
POST/sandbox/modeleval/v1/passk/retestRe-run unit tests for seeded sample code
POST/sandbox/modeleval/v1/scicode/agentSubmit Scicode Agent
GET/sandbox/modeleval/v1/scicode/agent/jobs/{job_id}Get Scicode Agent Job
GET/sandbox/modeleval/v1/scicode/agent/jobs/{job_id}/artifactsList scicode-agent job artifacts
GET/sandbox/modeleval/v1/scicode/agent/jobs/{job_id}/artifacts/archiveDownload scicode-agent job artifact archive
POST/sandbox/modeleval/v1/scicode/agent/jobs/{job_id}/cancelCancel Scicode Agent Job
POST/sandbox/modeleval/v1/scicode/golden-validateSubmit Golden Validate
GET/sandbox/modeleval/v1/scicode/golden-validate/jobs/{job_id}Get Golden Validate Job
POST/sandbox/modeleval/v1/scicode/model-eval-aggregateModel Eval Aggregate
POST/sandbox/modeleval/v1/scicode/prism-bundleSubmit Golden Validate
GET/sandbox/modeleval/v1/scicode/prism-bundle/jobs/{job_id}Get Golden Validate Job
POST/sandbox/modeleval/v1/validateValidate
POST/sandbox/modeleval/v1/validate/jobsSubmit Validate
GET/sandbox/modeleval/v1/validate/jobs/{job_id}Get Validate Job

Common headers

Accepted on every endpoint on this page.

NameInTypeRequiredDescription
x-correlation-idheaderstringnoEnd-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.

Endpoints

Inspect

POST /sandbox/modeleval/v1/inspect

Request body

application/json, required — InspectRequest

FieldTypeRequiredDescription
profilestring | nullnoProfile id; falls back to MODEL_EVAL_DEFAULT_PROFILE.
task_idstringyes
source_media_urlstringyes
context_overridesobject | nullnoOptional parsed-spec fields to overlay after parse.
dag_overrideobject | nullnoCanvas-owned Dependency Map override (SciCode v2).

Responses

StatusDescriptionBody
200Successful ResponseInspectionReport
422Validation ErrorHTTPValidationError

Submit Passk

POST /sandbox/modeleval/v1/passk

Request body

application/json, required — PasskRequest

FieldTypeRequiredDescription
profilestring | nullnoProfile id; falls back to MODEL_EVAL_DEFAULT_PROFILE.
solver"completion" | "agentic"noDefault: "completion".
task_idstringyes
work_unit_idstring | nullno
source_media_urlstring | nullnoSigned media / Drive / http(s) URL to the notebook. Exactly one of source_media_url, notebook, or task_data is required.
notebookobject | string | nullnoInline ipynb JSON (object or JSON string) from Prism. Exactly one of source_media_url, notebook, or task_data is required.
task_dataobject | string | nullnoInline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of source_media_url, notebook, or task_data is required.
kintegeryes
gate_metric"avg_across_models" | "min_across_models" | "per_model_all_pass"noDefault: "avg_across_models".
modelsModelSpec[]yes
idempotency_keystring | nullno
credentialsModelevalJobCredentialsSpec | nullno
gateway_workspacestring | nullnoLLM Gateway workspace slug (x-llmcp-workspace).
gateway_projectstring | nullnoLLM Gateway project slug (x-llmcp-project).
gateway_end_userstring | nullnoOptional Gateway end_user attribution (defaults to sandbox).
unitstring | nullno"main", "sub-<index>", or omitted for a full run.
context_protocol"with_context" | "without_context" | "with_generated_context"noDefault: "with_context".
exclude_backgroundbooleannoDefault: false.
rate_limit_maxinteger | nullno
rate_limit_cumulative_maxinteger | nullno
rate_limit_window_sinteger | nullno
rate_limit_count"all_starts" | "billable_only"noDefault: "billable_only".
llm_max_retryinteger | nullno
mode"S" | "C" | "O" | nullnoSciCode DAG mode: "S", "C", "O", or omitted for v1.
dag_overrideobject | nullnoCanvas-owned Dependency Map override (SciCode v2).

Responses

StatusDescriptionBody
202Successful ResponsePasskAcceptedResponse
422Validation ErrorHTTPValidationError

Get Job

GET /sandbox/modeleval/v1/passk/jobs/{job_id}

Parameters

NameInTypeRequiredDescription
job_idpathstringyes
wait_msqueryintegerno

Responses

StatusDescriptionBody
200Successful ResponsePasskJobResponse
422Validation ErrorHTTPValidationError

List pass@k job artifacts

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.

Parameters

NameInTypeRequiredDescription
job_idpathstringyes

Responses

StatusDescriptionBody
200Successful ResponseArtifactsInventoryResponse
422Validation ErrorHTTPValidationError

Download pass@k job artifact archive

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.

Parameters

NameInTypeRequiredDescription
job_idpathstringyes

Responses

StatusDescriptionBody
200Successful Responseany
404Unknown job or missing artifact object—
409Job has no outputs yet—
422Validation ErrorHTTPValidationError

Cancel Job

POST /sandbox/modeleval/v1/passk/jobs/{job_id}/cancel

Parameters

NameInTypeRequiredDescription
job_idpathstringyes

Responses

StatusDescriptionBody
202Successful ResponsePasskCancelResponse
422Validation ErrorHTTPValidationError

Peek trainer pass@k start quota

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.

Parameters

NameInTypeRequiredDescription
task_idquerystringyes
modelquerystringyesSingle model name (cascade steps use one model per job).
unitquerystring | nullnoUnit selector: "main", "sub-<index>", or omit for all.
rate_limit_maxqueryinteger | nullno
rate_limit_cumulative_maxqueryinteger | nullno
rate_limit_bucketquerystringnoPeek "per_unit" (default) or "cumulative" task-wide bucket.
rate_limit_window_squeryinteger | nullno
rate_limit_countquerystringno

Responses

StatusDescriptionBody
200Successful ResponsePasskRateLimitStatus
422Validation ErrorHTTPValidationError

Re-run unit tests for seeded sample code

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/&#123;job_id&#125; like a normal pass@k job.

Request body

application/json, required — PasskRetestRequest

FieldTypeRequiredDescription
profilestring | nullnoProfile id; falls back to MODEL_EVAL_DEFAULT_PROFILE.
task_idstringyes
work_unit_idstring | nullno
source_media_urlstring | nullno
notebookobject | string | nullno
task_dataobject | string | nullno
unitstringyesRequired unit selector: main or sub-<index>.
gate_metric"avg_across_models" | "min_across_models" | "per_model_all_pass"noDefault: "avg_across_models".
context_protocol"with_context" | "without_context" | "with_generated_context"noDefault: "with_context".
exclude_backgroundbooleannoDefault: false.
model_samplesModelSeededSamples[]yes
idempotency_keystring | nullno
parent_run_idstring | nullno
parent_job_idstring | nullno
rate_limit_maxinteger | nullno
rate_limit_cumulative_maxinteger | nullno
rate_limit_window_sinteger | nullno
rate_limit_count"all_starts" | "billable_only"noDefault: "billable_only".
dag_overrideobject | nullnoCanvas-owned Dependency Map override (SciCode v2).

Responses

StatusDescriptionBody
202Successful ResponsePasskAcceptedResponse
422Validation ErrorHTTPValidationError

Submit Scicode Agent

POST /sandbox/modeleval/v1/scicode/agent

Request body

application/json, required — ScicodeAgentRequest

FieldTypeRequiredDescription
profilestring | nullnoProfile id; falls back to MODEL_EVAL_DEFAULT_PROFILE.
solver"completion" | "agentic"noDefault: "completion".
task_idstringyes
work_unit_idstring | nullno
source_media_urlstring | nullnoSigned media / Drive / http(s) URL to the notebook. Exactly one of source_media_url, notebook, or task_data is required.
notebookobject | string | nullnoInline ipynb JSON (object or JSON string) from Prism. Exactly one of source_media_url, notebook, or task_data is required.
task_dataobject | string | nullnoInline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of source_media_url, notebook, or task_data is required.
modelsModelSpec[]yes
idempotency_keystring | nullno
credentialsModelevalJobCredentialsSpec | nullno
gateway_workspacestring | nullnoLLM Gateway workspace slug (x-llmcp-workspace).
gateway_projectstring | nullnoLLM Gateway project slug (x-llmcp-project).
gateway_end_userstring | nullnoOptional Gateway end_user attribution (defaults to sandbox).
unitstring | nullno"main", "sub-<index>", or omitted for a full run.
context_protocol"with_context" | "without_context" | "with_generated_context"noDefault: "with_context".
exclude_backgroundbooleannoDefault: false.

Responses

StatusDescriptionBody
202Successful ResponseScicodeAgentAcceptedResponse
422Validation ErrorHTTPValidationError

Get Scicode Agent Job

GET /sandbox/modeleval/v1/scicode/agent/jobs/{job_id}

Parameters

NameInTypeRequiredDescription
job_idpathstringyes
wait_msqueryintegerno

Responses

StatusDescriptionBody
200Successful ResponseScicodeAgentJobResponse
422Validation ErrorHTTPValidationError

List scicode-agent job artifacts

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.

Parameters

NameInTypeRequiredDescription
job_idpathstringyes

Responses

StatusDescriptionBody
200Successful ResponseArtifactsInventoryResponse
422Validation ErrorHTTPValidationError

Download scicode-agent job artifact archive

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.

Parameters

NameInTypeRequiredDescription
job_idpathstringyes

Responses

StatusDescriptionBody
200Successful Responseany
404Unknown job or missing artifact object—
409Job has no outputs yet—
422Validation ErrorHTTPValidationError

Cancel Scicode Agent Job

POST /sandbox/modeleval/v1/scicode/agent/jobs/{job_id}/cancel

Parameters

NameInTypeRequiredDescription
job_idpathstringyes

Responses

StatusDescriptionBody
202Successful ResponseScicodeAgentCancelResponse
422Validation ErrorHTTPValidationError

Submit Golden Validate

POST /sandbox/modeleval/v1/scicode/golden-validate

Request body

application/json, required — GoldenValidateRequest

FieldTypeRequiredDescription
task_idstringyes
subject_storage_resourcestring | nullno
subject_manifest_urlstring | nullno
subject_manifest_expires_atstring | nullno
policySciCodePolicy | nullno
notebookobject | string | nullnoInline ipynb JSON (object or JSON string) from Prism. Exactly one of subject URL, manifest URL, notebook, or task_data is required.
task_dataobject | string | nullnoInline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of subject URL, manifest URL, notebook, or task_data is required.
tier2_rubricsTier2RubricSpec[] | nullnoWhen Metric Judge is configured, run these rubrics after Tier 1.
profilestring | nullno

Responses

StatusDescriptionBody
202Successful ResponseGoldenValidateAcceptedResponse
422Validation ErrorHTTPValidationError

Get Golden Validate Job

GET /sandbox/modeleval/v1/scicode/golden-validate/jobs/{job_id}

Parameters

NameInTypeRequiredDescription
job_idpathstringyes
wait_msqueryintegerno

Responses

StatusDescriptionBody
200Successful ResponseGoldenValidateJobResponse
422Validation ErrorHTTPValidationError

Model Eval Aggregate

POST /sandbox/modeleval/v1/scicode/model-eval-aggregate

Request body

application/json, required — ModelEvalAggregateRequest

FieldTypeRequiredDescription
trialsScicodeAgentResult[]yes
gate_metric"avg_across_models" | "min_across_models" | "per_model_all_pass"noDefault: "avg_across_models".
kinteger | nullnoUnbiased estimator k; defaults to sample count n after merge.
context_protocol"with_context" | "without_context" | "with_generated_context" | nullno
exclude_backgroundboolean | nullno

Responses

StatusDescriptionBody
200Successful ResponseModelEvalAggregateResponse
422Validation ErrorHTTPValidationError

Submit Golden Validate

POST /sandbox/modeleval/v1/scicode/prism-bundle

Request body

application/json, required — GoldenValidateRequest

FieldTypeRequiredDescription
task_idstringyes
subject_storage_resourcestring | nullno
subject_manifest_urlstring | nullno
subject_manifest_expires_atstring | nullno
policySciCodePolicy | nullno
notebookobject | string | nullnoInline ipynb JSON (object or JSON string) from Prism. Exactly one of subject URL, manifest URL, notebook, or task_data is required.
task_dataobject | string | nullnoInline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of subject URL, manifest URL, notebook, or task_data is required.
tier2_rubricsTier2RubricSpec[] | nullnoWhen Metric Judge is configured, run these rubrics after Tier 1.
profilestring | nullno

Responses

StatusDescriptionBody
202Successful ResponseGoldenValidateAcceptedResponse
422Validation ErrorHTTPValidationError

Get Golden Validate Job

GET /sandbox/modeleval/v1/scicode/prism-bundle/jobs/{job_id}

Parameters

NameInTypeRequiredDescription
job_idpathstringyes
wait_msqueryintegerno

Responses

StatusDescriptionBody
200Successful ResponseGoldenValidateJobResponse
422Validation ErrorHTTPValidationError

Validate

POST /sandbox/modeleval/v1/validate

Request body

application/json, required — ValidateRequest

FieldTypeRequiredDescription
task_idstringyes
notebook_media_urlstringyes
profilestring | nullnoProfile id; omitted → default SciCode v1 validator profile.
dag_overrideobject | nullnoCanvas-owned Dependency Map override (SciCode v2).
scope"all" | "main"nomain 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".

Responses

StatusDescriptionBody
200Successful ResponseSciCodeValidatorResult
422Validation ErrorHTTPValidationError

Submit Validate

POST /sandbox/modeleval/v1/validate/jobs

Request body

application/json, required — ValidateRequest

FieldTypeRequiredDescription
task_idstringyes
notebook_media_urlstringyes
profilestring | nullnoProfile id; omitted → default SciCode v1 validator profile.
dag_overrideobject | nullnoCanvas-owned Dependency Map override (SciCode v2).
scope"all" | "main"nomain 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".

Responses

StatusDescriptionBody
202Successful ResponseValidatorAcceptedResponse
422Validation ErrorHTTPValidationError

Get Validate Job

GET /sandbox/modeleval/v1/validate/jobs/{job_id}

Parameters

NameInTypeRequiredDescription
job_idpathstringyes
wait_msqueryintegerno

Responses

StatusDescriptionBody
200Successful ResponseValidatorJobResponse
422Validation ErrorHTTPValidationError

Schemas

The object shapes referenced above.

ArtifactsInventoryResponse

TB-style inventory for a job's persisted outputs tree.

FieldTypeRequiredDescription
job_idstringyes
run_idstring | nullno
archive_download_urlstringyes
archive_urlstring | nullno
filesManifestFile[]no

Finding

One thing an inspector noticed about a parsed problem.

FieldTypeRequiredDescription
check_idstringyes
categorystringyes
severitySeverityyesHow badly a finding should block. Only BLOCKER fails the report.
messagestringyes
unitstring | nullno
evidencestring | nullno

FindingSummary

Per-severity finding counts, so a client can gate without re-scanning.

FieldTypeRequiredDescription
blockerintegernoDefault: 0.
majorintegernoDefault: 0.
minorintegernoDefault: 0.

GoldenValidateAcceptedResponse

FieldTypeRequiredDescription
job_idstringyes
status_urlstringyes

GoldenValidateJobResponse

FieldTypeRequiredDescription
status"running" | "succeeded" | "failed"yes
progressGoldenValidateProgressyes
resultGoldenValidateResult | nullno
errorstring | nullno

GoldenValidateProgress

FieldTypeRequiredDescription
phase"tier1" | "inspect" | "tier2" | "done"noDefault: "tier1".
detailstring | nullno

GoldenValidateRequest

FieldTypeRequiredDescription
task_idstringyes
subject_storage_resourcestring | nullno
subject_manifest_urlstring | nullno
subject_manifest_expires_atstring | nullno
policySciCodePolicy | nullno
notebookobject | string | nullnoInline ipynb JSON (object or JSON string) from Prism. Exactly one of subject URL, manifest URL, notebook, or task_data is required.
task_dataobject | string | nullnoInline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of subject URL, manifest URL, notebook, or task_data is required.
tier2_rubricsTier2RubricSpec[] | nullnoWhen Metric Judge is configured, run these rubrics after Tier 1.
profilestring | nullno

GoldenValidateResult

FieldTypeRequiredDescription
passbooleanyes
run_atstringyes
policySciCodePolicyyesPer-request policy (Prism passes datapoint.metadata.scicode_policy).
tier1SciCodeValidatorResult | nullno
inspectInspectionReport | nullno
tier2Tier2BundleResultyes

HTTPValidationError

FieldTypeRequiredDescription
detailValidationError[]no

InspectRequest

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.

FieldTypeRequiredDescription
profilestring | nullnoProfile id; falls back to MODEL_EVAL_DEFAULT_PROFILE.
task_idstringyes
source_media_urlstringyes
context_overridesobject | nullnoOptional parsed-spec fields to overlay after parse.
dag_overrideobject | nullnoCanvas-owned Dependency Map override (SciCode v2).

InspectionReport

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.

FieldTypeRequiredDescription
status"pass" | "fail" | "error"yes
run_atstringyes
findingsFinding[]no
summaryFindingSummarynoPer-severity finding counts, so a client can gate without re-scanning.

MainUnitResult

FieldTypeRequiredDescription
testsUnitTestResult[]yes

ManifestFile

FieldTypeRequiredDescription
harbor_pathstringyes
sha256stringyes
size_bytesintegeryes

ModelEvalAggregateRequest

Merge N scicode-agent trial responses into pass@k rates + aggregate.

FieldTypeRequiredDescription
trialsScicodeAgentResult[]yes
gate_metric"avg_across_models" | "min_across_models" | "per_model_all_pass"noDefault: "avg_across_models".
kinteger | nullnoUnbiased estimator k; defaults to sample count n after merge.
context_protocol"with_context" | "without_context" | "with_generated_context" | nullno
exclude_backgroundboolean | nullno

ModelEvalAggregateResponse

FieldTypeRequiredDescription
model_evalSciCodeModelEvalResult[]yes
model_eval_aggregateSciCodeModelEvalAggregateyes

ModelSeededSamples

FieldTypeRequiredDescription
modelstringyes
samplesSeededSample[]yes

ModelSpec

One model to evaluate, with rich per-model parameters (CTP-policy driven).

FieldTypeRequiredDescription
modelstringyes
reasoning_effortstring | nullno
temperaturenumber | nullno
max_tokensinteger | nullno
harbor_agentstring | nullno

ModelevalJobCredentialsSpec

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.

FieldTypeRequiredDescription
openaiModelevalProviderCredentialRef | nullno
googleModelevalProviderCredentialRef | nullno
bedrockModelevalProviderCredentialRef | nullno
openrouterModelevalProviderCredentialRef | nullno
llmgatewayModelevalProviderCredentialRef | nullno

ModelevalProviderCredentialRef

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.

FieldTypeRequiredDescription
secret_refstring | nullno
envobject | nullno

OutputsManifest

FieldTypeRequiredDescription
archive_urlstring | nullno
filesManifestFile[]no

PasskAcceptedResponse

FieldTypeRequiredDescription
job_idstringyes
status_urlstringyes
cancel_urlstringyes
run_idstringyes
rate_limitPasskRateLimitStatus | nullno

PasskCancelResponse

FieldTypeRequiredDescription
job_idstringyes
status"cancelling" | "cancelled"yes

PasskJobResponse

FieldTypeRequiredDescription
status"running" | "succeeded" | "failed" | "cancelled"yes
progressPasskProgressyes
resultPasskResult | nullno
errorstring | nullno
cancel_requestedbooleannoDefault: false.

PasskProgress

FieldTypeRequiredDescription
units_doneintegernoDefault: 0.
units_totalintegernoDefault: 0.
samples_doneintegernoDefault: 0.
samples_totalintegernoDefault: 0.

PasskRateLimitStatus

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.

FieldTypeRequiredDescription
limitintegeryes
usedintegeryes
confirmed_usedintegernoDefault: 0.
reservedintegernoDefault: 0.
remainingintegeryes
window_sintegeryes
retry_after_sintegernoDefault: 0.
count"all_starts" | "billable_only"noDefault: "billable_only".

PasskRequest

FieldTypeRequiredDescription
profilestring | nullnoProfile id; falls back to MODEL_EVAL_DEFAULT_PROFILE.
solver"completion" | "agentic"noDefault: "completion".
task_idstringyes
work_unit_idstring | nullno
source_media_urlstring | nullnoSigned media / Drive / http(s) URL to the notebook. Exactly one of source_media_url, notebook, or task_data is required.
notebookobject | string | nullnoInline ipynb JSON (object or JSON string) from Prism. Exactly one of source_media_url, notebook, or task_data is required.
task_dataobject | string | nullnoInline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of source_media_url, notebook, or task_data is required.
kintegeryes
gate_metric"avg_across_models" | "min_across_models" | "per_model_all_pass"noDefault: "avg_across_models".
modelsModelSpec[]yes
idempotency_keystring | nullno
credentialsModelevalJobCredentialsSpec | nullno
gateway_workspacestring | nullnoLLM Gateway workspace slug (x-llmcp-workspace).
gateway_projectstring | nullnoLLM Gateway project slug (x-llmcp-project).
gateway_end_userstring | nullnoOptional Gateway end_user attribution (defaults to sandbox).
unitstring | nullno"main", "sub-<index>", or omitted for a full run.
context_protocol"with_context" | "without_context" | "with_generated_context"noDefault: "with_context".
exclude_backgroundbooleannoDefault: false.
rate_limit_maxinteger | nullno
rate_limit_cumulative_maxinteger | nullno
rate_limit_window_sinteger | nullno
rate_limit_count"all_starts" | "billable_only"noDefault: "billable_only".
llm_max_retryinteger | nullno
mode"S" | "C" | "O" | nullnoSciCode DAG mode: "S", "C", "O", or omitted for v1.
dag_overrideobject | nullnoCanvas-owned Dependency Map override (SciCode v2).

PasskResult

FieldTypeRequiredDescription
model_evalSciCodeModelEvalResult[]yes
model_eval_aggregateSciCodeModelEvalAggregateyes
run_idstring | nullno
outputsOutputsManifest | nullno
task_idstring | nullno
problem_idstring | nullno
dag_summaryobject | nullno

PasskRetestRequest

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.

FieldTypeRequiredDescription
profilestring | nullnoProfile id; falls back to MODEL_EVAL_DEFAULT_PROFILE.
task_idstringyes
work_unit_idstring | nullno
source_media_urlstring | nullno
notebookobject | string | nullno
task_dataobject | string | nullno
unitstringyesRequired unit selector: main or sub-<index>.
gate_metric"avg_across_models" | "min_across_models" | "per_model_all_pass"noDefault: "avg_across_models".
context_protocol"with_context" | "without_context" | "with_generated_context"noDefault: "with_context".
exclude_backgroundbooleannoDefault: false.
model_samplesModelSeededSamples[]yes
idempotency_keystring | nullno
parent_run_idstring | nullno
parent_job_idstring | nullno
rate_limit_maxinteger | nullno
rate_limit_cumulative_maxinteger | nullno
rate_limit_window_sinteger | nullno
rate_limit_count"all_starts" | "billable_only"noDefault: "billable_only".
dag_overrideobject | nullnoCanvas-owned Dependency Map override (SciCode v2).

PasskUnitResult

FieldTypeRequiredDescription
labelstringyes
pass_ratenumberyes
samplesSciCodeModelSample[]yes
unbiased_pass_at_knumber | nullno
stage_indexinteger | nullno
is_mainboolean | nullno

SciCodeModelEvalAggregate

FieldTypeRequiredDescription
kintegeryes
modelsstring[]yes
metric"avg_across_models" | "min_across_models" | "per_model_all_pass"yes
main_pass_ratenumberyes
subproblem_pass_ratesobject[]yes
main_unbiased_pass_at_knumber | nullno
avg_subproblem_pass_ratenumber | nullno
avg_subproblem_unbiased_pass_at_knumber | nullno
context_protocol"with_context" | "without_context" | "with_generated_context" | nullno
exclude_backgroundboolean | nullno

SciCodeModelEvalResult

FieldTypeRequiredDescription
modelstringyes
kintegeryes
run_atstringyes
mainPasskUnitResultyes
subproblemsPasskUnitResult[]yes

SciCodeModelSample

FieldTypeRequiredDescription
sample_idstringyes
codestringyes
tests_passedintegeryes
tests_totalintegeryes
testsUnitTestResult[]no
harbor_pathstring | nullno
sample_indexinteger | nullno
promptstring | nullno
solution_codestring | nullno
verdict"pass" | "fail" | nullno
reasonstring | nullno
executed_atstring | nullno
solver_prompt_tokensinteger | nullno
solver_completion_tokensinteger | nullno
agent_trajectorystringnoDefault: "".
total_duration_secnumber | nullno
cost_usdnumber | nullno

SciCodePolicy

Per-request policy (Prism passes datapoint.metadata.scicode_policy).

FieldTypeRequiredDescription
run_tier1_validationbooleannoDefault: true.
require_validation_passbooleannoDefault: true.
run_inspectbooleannoDefault: false.
run_tier2booleannoDefault: true.
use_cached_tier1booleannoDefault: false.
cached_tier1SciCodeValidatorResult | nullno
tier2_precomputedTier2RubricResult[] | nullno

SciCodeValidatorResult

FieldTypeRequiredDescription
status"pass" | "fail"yes
run_atstringyes
mainMainUnitResultyes
subproblemsSubproblemUnitResult[]yes
qc_findingsFinding[]no

ScicodeAgentAcceptedResponse

FieldTypeRequiredDescription
job_idstringyes
status_urlstringyes
cancel_urlstringyes
run_idstringyes

ScicodeAgentCancelResponse

FieldTypeRequiredDescription
job_idstringyes
status"cancelling" | "cancelled"yes

ScicodeAgentJobResponse

FieldTypeRequiredDescription
status"running" | "succeeded" | "failed" | "cancelled"yes
progressPasskProgressyes
resultScicodeAgentResult | nullno
errorstring | nullno
cancel_requestedbooleannoDefault: false.

ScicodeAgentModelResult

FieldTypeRequiredDescription
modelstringyes
run_atstringyes
mainScicodeAgentUnitResultyes
subproblemsScicodeAgentUnitResult[]yes

ScicodeAgentRequest

Single-trial SciCode run (pass@k without k / aggregate metrics).

FieldTypeRequiredDescription
profilestring | nullnoProfile id; falls back to MODEL_EVAL_DEFAULT_PROFILE.
solver"completion" | "agentic"noDefault: "completion".
task_idstringyes
work_unit_idstring | nullno
source_media_urlstring | nullnoSigned media / Drive / http(s) URL to the notebook. Exactly one of source_media_url, notebook, or task_data is required.
notebookobject | string | nullnoInline ipynb JSON (object or JSON string) from Prism. Exactly one of source_media_url, notebook, or task_data is required.
task_dataobject | string | nullnoInline SciCode task_data / datapoint JSON (object or JSON string). Exactly one of source_media_url, notebook, or task_data is required.
modelsModelSpec[]yes
idempotency_keystring | nullno
credentialsModelevalJobCredentialsSpec | nullno
gateway_workspacestring | nullnoLLM Gateway workspace slug (x-llmcp-workspace).
gateway_projectstring | nullnoLLM Gateway project slug (x-llmcp-project).
gateway_end_userstring | nullnoOptional Gateway end_user attribution (defaults to sandbox).
unitstring | nullno"main", "sub-<index>", or omitted for a full run.
context_protocol"with_context" | "without_context" | "with_generated_context"noDefault: "with_context".
exclude_backgroundbooleannoDefault: false.

ScicodeAgentResult

FieldTypeRequiredDescription
model_evalScicodeAgentModelResult[]yes
run_idstring | nullno
outputsOutputsManifest | nullno
task_idstring | nullno
problem_idstring | nullno
context_protocol"with_context" | "without_context" | "with_generated_context" | nullno
exclude_backgroundboolean | nullno

ScicodeAgentUnitResult

FieldTypeRequiredDescription
labelstringyes
samplesSciCodeModelSample[]no
goldenUnitGoldenResultyesTier-1 golden sandbox outcome for one unit.
stage_indexinteger | nullno
is_mainboolean | nullno

SeededSample

One previously generated sample to re-execute (no LLM).

FieldTypeRequiredDescription
codestringyes
sample_idstring | nullno
sample_indexinteger | nullno
promptstring | nullno
prior_codesstring[] | nullno
solver_prompt_tokensinteger | nullno
solver_completion_tokensinteger | nullno
agent_trajectorystring | nullno
cost_usdnumber | nullno
harbor_pathstring | nullno

Severity

How badly a finding should block. Only BLOCKER fails the report.

"BLOCKER" | "MAJOR" | "MINOR"

SubproblemUnitResult

FieldTypeRequiredDescription
labelstringyes
testsUnitTestResult[]yes

Tier2BundleResult

FieldTypeRequiredDescription
status"pass" | "fail" | "skipped" | "partial"yes
rubricsTier2RubricResult[]no
detailstring | nullno

Tier2RubricResult

FieldTypeRequiredDescription
namestringyes
status"pass" | "fail" | "skipped" | "error"yes
scorenumber | nullno
explanationstring | nullno

Tier2RubricSpec

FieldTypeRequiredDescription
namestringyes
promptstringyes
modelstring | nullno
timeout_secintegernoDefault: 1800.

UnitGoldenResult

Tier-1 golden sandbox outcome for one unit.

FieldTypeRequiredDescription
status"pass" | "fail"yes
testsUnitTestResult[]no

UnitTestResult

FieldTypeRequiredDescription
test_idstringyes
passedbooleanyes
stderrstring | nullno
duration_msinteger | nullno
sandbox_outputstring | nullno

ValidateRequest

FieldTypeRequiredDescription
task_idstringyes
notebook_media_urlstringyes
profilestring | nullnoProfile id; omitted → default SciCode v1 validator profile.
dag_overrideobject | nullnoCanvas-owned Dependency Map override (SciCode v2).
scope"all" | "main"nomain 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".

ValidationError

FieldTypeRequiredDescription
locstring | integer[]yes
msgstringyes
typestringyes
inputanyno
ctxobjectno

ValidatorAcceptedResponse

FieldTypeRequiredDescription
job_idstringyes
status_urlstringyes

ValidatorJobResponse

FieldTypeRequiredDescription
status"running" | "succeeded" | "failed"yes
progressValidatorProgressyesLive 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.
resultSciCodeValidatorResult | nullno
errorstring | nullno

ValidatorProgress

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.

FieldTypeRequiredDescription
units_doneintegernoDefault: 0.
units_totalintegernoDefault: 0.
tests_doneintegernoDefault: 0.
phase"units" | "mutation"noDefault: "units".
mutation_doneintegernoDefault: 0.
mutation_totalintegernoDefault: 0.

Machine-readable spec: OpenAPI YAML.

On this page

Common headersEndpointsInspectRequest bodyResponsesSubmit PasskRequest bodyResponsesGet JobParametersResponsesList pass@k job artifactsParametersResponsesDownload pass@k job artifact archiveParametersResponsesCancel JobParametersResponsesPeek trainer pass@k start quotaParametersResponsesRe-run unit tests for seeded sample codeRequest bodyResponsesSubmit Scicode AgentRequest bodyResponsesGet Scicode Agent JobParametersResponsesList scicode-agent job artifactsParametersResponsesDownload scicode-agent job artifact archiveParametersResponsesCancel Scicode Agent JobParametersResponsesSubmit Golden ValidateRequest bodyResponsesGet Golden Validate JobParametersResponsesModel Eval AggregateRequest bodyResponsesSubmit Golden ValidateRequest bodyResponsesGet Golden Validate JobParametersResponsesValidateRequest bodyResponsesSubmit ValidateRequest bodyResponsesGet Validate JobParametersResponsesSchemasArtifactsInventoryResponseFindingFindingSummaryGoldenValidateAcceptedResponseGoldenValidateJobResponseGoldenValidateProgressGoldenValidateRequestGoldenValidateResultHTTPValidationErrorInspectRequestInspectionReportMainUnitResultManifestFileModelEvalAggregateRequestModelEvalAggregateResponseModelSeededSamplesModelSpecModelevalJobCredentialsSpecModelevalProviderCredentialRefOutputsManifestPasskAcceptedResponsePasskCancelResponsePasskJobResponsePasskProgressPasskRateLimitStatusPasskRequestPasskResultPasskRetestRequestPasskUnitResultSciCodeModelEvalAggregateSciCodeModelEvalResultSciCodeModelSampleSciCodePolicySciCodeValidatorResultScicodeAgentAcceptedResponseScicodeAgentCancelResponseScicodeAgentJobResponseScicodeAgentModelResultScicodeAgentRequestScicodeAgentResultScicodeAgentUnitResultSeededSampleSeveritySubproblemUnitResultTier2BundleResultTier2RubricResultTier2RubricSpecUnitGoldenResultUnitTestResultValidateRequestValidationErrorValidatorAcceptedResponseValidatorJobResponseValidatorProgress