{"openapi":"3.1.0","info":{"title":"Agent Challenge","version":"1.0.1"},"paths":{"/internal/v1/get_weights":{"get":{"summary":"Get Weights","operationId":"get_weights_internal_v1_get_weights_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-base-challenge-slug","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Challenge-Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WeightsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions":{"post":{"summary":"Create Submission","description":"Store a signed miner submission without starting evaluation.","operationId":"create_submission_submissions_post","parameters":[{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Submissions","description":"Return recent submissions with their latest score.","operationId":"list_submissions_submissions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SubmissionListItem"},"title":"Response List Submissions Submissions Get"}}}}}}},"/internal/v1/bridge/submissions":{"post":{"summary":"Create Base Bridge Submission","operationId":"create_base_bridge_submission_internal_v1_bridge_submissions_post","parameters":[{"name":"X-Base-Verified-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Verified-Hotkey"}},{"name":"X-Base-Verified-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Verified-Nonce"}},{"name":"X-Base-Request-Hash","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Request-Hash"}},{"name":"X-Submission-Filename","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Submission-Filename"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-base-challenge-slug","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Challenge-Slug"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/review/prepare":{"post":{"summary":"Prepare Submission Review","description":"Return the current immutable assignment and deliver its token once.","operationId":"prepare_submission_review_submissions__submission_id__review_prepare_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewPrepareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/review/retry":{"post":{"summary":"Retry Submission Review","description":"Create a fresh assignment only after an eligible terminal predecessor.","operationId":"retry_submission_review_submissions__submission_id__review_retry_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewRetryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewPrepareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/review/cancel":{"post":{"summary":"Cancel Submission Review","description":"Atomically revoke only the named current assignment capability and nonce.","operationId":"cancel_submission_review_submissions__submission_id__review_cancel_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewCancelRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Cancel Submission Review Submissions  Submission Id  Review Cancel Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/eval/prepare":{"post":{"summary":"Prepare Submission Eval","description":"Atomically issue the immutable external Eval run after verified allow.","operationId":"prepare_submission_eval_submissions__submission_id__eval_prepare_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalPrepareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/eval/retry":{"post":{"summary":"Retry Submission Eval","operationId":"retry_submission_eval_submissions__submission_id__eval_retry_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalExpectedRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalPrepareResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/eval/cancel":{"post":{"summary":"Cancel Submission Eval","operationId":"cancel_submission_eval_submissions__submission_id__eval_cancel_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalExpectedRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalMutationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/eval/failure":{"post":{"summary":"Fail Submission Eval","operationId":"fail_submission_eval_submissions__submission_id__eval_failure_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalFailureRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalMutationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/eval/status":{"get":{"summary":"Get Submission Eval Status","operationId":"get_submission_eval_status_submissions__submission_id__eval_status_get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalHistoryResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/v1/replay-audits/requests":{"get":{"summary":"List Replay Audit Requests","description":"Expose only the sampler-selected accepted attested population.","operationId":"list_replay_audit_requests_internal_v1_replay_audits_requests_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-base-challenge-slug","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Challenge-Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayAuditRequestListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/v1/replay-audits/{eval_run_id}/request":{"get":{"summary":"Get Replay Audit Request","description":"Expose only an accepted full-attested run through the replay seam.","operationId":"get_replay_audit_request_internal_v1_replay_audits__eval_run_id__request_get","parameters":[{"name":"eval_run_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-base-challenge-slug","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Challenge-Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayAuditRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/v1/replay-audits/{eval_run_id}/result":{"post":{"summary":"Receive Replay Audit Result","description":"Compare and persist one BASE replay result without mutating accepted state.","operationId":"receive_replay_audit_result_internal_v1_replay_audits__eval_run_id__result_post","parameters":[{"name":"eval_run_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-base-challenge-slug","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Challenge-Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayAuditResultResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evaluation/v1/runs/{eval_run_id}/result":{"post":{"summary":"Receive Direct Eval Result","description":"Receive one exact token-scoped result from the canonical Eval CVM.","operationId":"receive_direct_eval_result_evaluation_v1_runs__eval_run_id__result_post","parameters":[{"name":"eval_run_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalReceiptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evaluation/v1/runs/{eval_run_id}/telemetry-session":{"post":{"summary":"Open Eval Telemetry Session","description":"Open a hotkey-attested telemetry session for mid-run progress posts.\n\nAuth mirrors the final result route (Bearer EVAL_RUN_TOKEN). Body carries\nhotkey_ss58 + signature only — never a mnemonic. Progress POSTs must present\nthe issued session id via X-Telemetry-Session.","operationId":"open_eval_telemetry_session_evaluation_v1_runs__eval_run_id__telemetry_session_post","parameters":[{"name":"eval_run_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/evaluation/v1/runs/{eval_run_id}/progress":{"post":{"summary":"Receive Eval Progress","description":"Receive one mid-run task progress event from the canonical Eval CVM.\n\nAuth: Bearer EVAL_RUN_TOKEN (same as result) plus X-Telemetry-Session from a\nprior telemetry-session open. Events land in TaskLogEvent for the SSE feed.\nThis route never mutates scores — POST .../result remains the only score path.","operationId":"receive_eval_progress_evaluation_v1_runs__eval_run_id__progress_post","parameters":[{"name":"eval_run_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Run Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"X-Telemetry-Session","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Telemetry-Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/execution-pool/live":{"get":{"summary":"Execution Pool Live","description":"In-flight EvalRun units with latest TaskLogEvent. Empty pool is honest [].","operationId":"execution_pool_live_v1_execution_pool_live_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"items":{"additionalProperties":true,"type":"object"},"type":"array"},"type":"object","title":"Response Execution Pool Live V1 Execution Pool Live Get"}}}}}}},"/submissions/{submission_id}/review/deployed":{"post":{"summary":"Acknowledge Submission Review Deployment","description":"Record immutable deployment metadata without treating it as evidence.","operationId":"acknowledge_submission_review_deployment_submissions__submission_id__review_deployed_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewDeployedRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Acknowledge Submission Review Deployment Submissions  Submission Id  Review Deployed Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/review/history":{"get":{"summary":"Submission Review History","description":"Return safe, retained immutable assignment history for the owning miner.","operationId":"submission_review_history_submissions__submission_id__review_history_get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewAuditResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/review/report":{"get":{"summary":"Submission Review Report","description":"Return only the deterministic redacted public audit projection.","operationId":"submission_review_report_submissions__submission_id__review_report_get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewAuditResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/v1/reviews/{session_id}/report":{"get":{"summary":"Internal Review Report","description":"Return the immutable, authenticated internal audit bundle.","operationId":"internal_review_report_internal_v1_reviews__session_id__report_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-base-challenge-slug","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Challenge-Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewAuditResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/v1/reviews/{session_id}/approvals":{"post":{"summary":"Create Review Operator Approval","description":"Create a validator-only one-use approval for a prior immutable attempt.","operationId":"create_review_operator_approval_internal_v1_reviews__session_id__approvals_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-base-challenge-slug","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Challenge-Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewApprovalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Review Operator Approval Internal V1 Reviews  Session Id  Approvals Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/review/v1/assignments/{assignment_id}":{"get":{"summary":"Fetch Review Assignment","description":"Return the exact immutable Review assignment v1 to the scoped review CVM.\n\nAuthenticated only by the assignment-scoped bearer delivered through Phala\n``encrypted_env``.  This discovery surface exists so the measured runtime can\nbootstrap from ``REVIEW_SESSION_TOKEN`` alone (the token embeds the\nassignment_id) without a third secret channel.","operationId":"fetch_review_assignment_review_v1_assignments__assignment_id__get","parameters":[{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","title":"Assignment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Fetch Review Assignment Review V1 Assignments  Assignment Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/review/v1/assignments/{assignment_id}/artifact":{"get":{"summary":"Fetch Review Assignment Artifact","description":"Serve only immutable, rehashed ZIP bytes to the scoped review CVM.","operationId":"fetch_review_assignment_artifact_review_v1_assignments__assignment_id__artifact_get","parameters":[{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","title":"Assignment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/review/v1/assignments/{assignment_id}/rules":{"get":{"summary":"Fetch Review Assignment Rules","description":"Serve the exact immutable canonical Rules bundle v1 for an assignment.","operationId":"fetch_review_assignment_rules_review_v1_assignments__assignment_id__rules_get","parameters":[{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","title":"Assignment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/review/v1/assignments/{assignment_id}/model-call-started":{"post":{"summary":"Record Review Model Call Started","description":"Durably bind one planned request before the review CVM opens a socket.","operationId":"record_review_model_call_started_review_v1_assignments__assignment_id__model_call_started_post","parameters":[{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","title":"Assignment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Review Model Call Started Review V1 Assignments  Assignment Id  Model Call Started Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/review/v1/assignments/{assignment_id}/failure":{"post":{"summary":"Record Review Infrastructure Failure","description":"Record one bounded no-report review failure and revoke its capability.","operationId":"record_review_infrastructure_failure_review_v1_assignments__assignment_id__failure_post","parameters":[{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","title":"Assignment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Record Review Infrastructure Failure Review V1 Assignments  Assignment Id  Failure Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/review/v1/assignments/{assignment_id}/report":{"post":{"summary":"Submit Attested Review Report","description":"Receipt and verify one immutable quote-bound Review envelope v1.","operationId":"submit_attested_review_report_review_v1_assignments__assignment_id__report_post","parameters":[{"name":"assignment_id","in":"path","required":true,"schema":{"type":"string","title":"Assignment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewReportReceiptResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/v1/reviews/{session_id}/evidence/{object_ref}":{"get":{"summary":"Read Review Evidence Object","description":"Return one exact encrypted-evidence object, optionally by one byte range.","operationId":"read_review_evidence_object_internal_v1_reviews__session_id__evidence__object_ref__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"object_ref","in":"path","required":true,"schema":{"type":"string","title":"Object Ref"}},{"name":"Range","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-base-challenge-slug","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Challenge-Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/v1/evaluations/{attempt_id}/events":{"post":{"summary":"Ingest Evaluation Log Events","description":"Ingest real-time own_runner log events for one Terminal-Bench attempt.\n\nAuthenticated by the per-attempt scoped token (see\n``build_attempt_stream_auth_dependency``). Each NDJSON ``log`` line is\nattributed to the attempt's own submission/job/task (never values from the\nrequest body), redacted, and appended via ``record_task_event`` so the live\nSSE feed surfaces it. This route only ever records observability logs; it\nnever touches the attempt's score (which stays the authoritative\n``BASE_BENCHMARK_RESULT=`` stdout line finalized elsewhere).","operationId":"ingest_evaluation_log_events_internal_v1_evaluations__attempt_id__events_post","parameters":[{"name":"attempt_id","in":"path","required":true,"schema":{"type":"integer","title":"Attempt Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-base-challenge-slug","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Challenge-Slug"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer"},"title":"Response Ingest Evaluation Log Events Internal V1 Evaluations  Attempt Id  Events Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/env":{"get":{"summary":"Get Submission Env","operationId":"get_submission_env_submissions__submission_id__env_get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinerEnvMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Replace Submission Env","operationId":"replace_submission_env_submissions__submission_id__env_put","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinerEnvUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinerEnvMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/env/confirm-empty":{"post":{"summary":"Confirm Empty Submission Env","operationId":"confirm_empty_submission_env_submissions__submission_id__env_confirm_empty_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinerEnvMetadataResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/launch":{"post":{"summary":"Launch Submission Evaluation","operationId":"launch_submission_evaluation_submissions__submission_id__launch_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MinerEnvLaunchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/submissions/{submission_id}/revalidate":{"post":{"summary":"Owner Revalidate Submission","description":"Force a new evaluation job for an immutable submitted artifact.","operationId":"owner_revalidate_submission_owner_submissions__submission_id__revalidate_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerRevalidationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerRevalidationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/submissions/{submission_id}/override":{"post":{"summary":"Owner Override Submission","description":"Override only the submission's effective status.","operationId":"owner_override_submission_owner_submissions__submission_id__override_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerOverrideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerControlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/submissions/{submission_id}/admin-escalation":{"post":{"summary":"Owner Resolve Admin Escalation","operationId":"owner_resolve_admin_escalation_owner_submissions__submission_id__admin_escalation_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminEscalationResolutionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminEscalationResolutionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/submissions/{submission_id}/suspicious":{"post":{"summary":"Owner Mark Submission Suspicious","description":"Mark or clear only the submission's suspicious effective status.","operationId":"owner_mark_submission_suspicious_owner_submissions__submission_id__suspicious_post","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerSuspiciousRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerControlResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/owner/audit":{"get":{"summary":"Owner Audit History","description":"Return append-only owner action audit history.","operationId":"owner_audit_history_owner_audit_get","parameters":[{"name":"X-Hotkey","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Hotkey"}},{"name":"X-Signature","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Signature"}},{"name":"X-Nonce","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Nonce"}},{"name":"X-Timestamp","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Timestamp"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OwnerAuditResponse"},"title":"Response Owner Audit History Owner Audit Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/benchmarks":{"get":{"summary":"Benchmark Info","description":"Return the active benchmark configuration.","operationId":"benchmark_info_benchmarks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BenchmarkInfoResponse"}}}}}}},"/benchmarks/tasks":{"get":{"summary":"Benchmark Tasks","description":"Return benchmark tasks or Harbor shards selected by configuration.","operationId":"benchmark_tasks_benchmarks_tasks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BenchmarkTaskResponse"},"type":"array","title":"Response Benchmark Tasks Benchmarks Tasks Get"}}}}}}},"/internal/v1/work_units":{"get":{"summary":"List Work Units","description":"Expose pending task work units for the master coordination plane.\n\nUnits exist only for submissions whose central AST + LLM gates returned an\n``allow`` verdict (which created the evaluation job); ``reject``/``escalate``\nsubmissions and pre-verdict submissions surface nothing here.\n\nIn combined-worker mode the in-process worker owns evaluation end-to-end, so\nthe challenge does not participate in the decentralized coordination plane:\nit exposes no work units, giving the master nothing to assign or fold (a\nfold would otherwise clobber the in-process worker's real results).","operationId":"list_work_units_internal_v1_work_units_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-base-challenge-slug","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Challenge-Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkUnitsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/internal/v1/work_units/fold":{"post":{"summary":"Fold Work Unit","description":"Fold a permanently-failed work unit so its EvaluationJob can finalize.\n\nThe master coordination plane calls this when a work unit exhausts\n``max_attempts`` (no validator will ever report a result for it). The failed\ntask is recorded once (status ``failed``, score ``0.0``) and the job is\nfinalized if every task is now terminal, so a permanently-failed task never\nhangs its job forever. Idempotent: a task with an existing terminal result is\nleft untouched.\n\nIn combined-worker mode the in-process worker owns evaluation end-to-end and\nthe challenge exposes no work units, so a fold should never happen. As\ndefense-in-depth against an already-assigned unit, folding is a benign no-op\nhere: it writes nothing (a failed/score-0 result would clobber the worker's\nreal result via the ``(job_id, task_id)`` idempotency race) and finalizes\nnothing, returning a success response without touching the database.","operationId":"fold_work_unit_internal_v1_work_units_fold_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}},{"name":"x-base-challenge-slug","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Base-Challenge-Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoldWorkUnitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoldWorkUnitResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/count":{"get":{"summary":"Count Submissions","description":"Return the number of stored submissions.","operationId":"count_submissions_submissions_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionCountResponse"}}}}}}},"/submissions/{submission_id}":{"get":{"summary":"Get Submission","description":"Return one submission by id.","operationId":"get_submission_submissions__submission_id__get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/versions":{"get":{"summary":"Get Submission Versions","operationId":"get_submission_versions_submissions__submission_id__versions_get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SubmissionVersionItem"},"title":"Response Get Submission Versions Submissions  Submission Id  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/submissions/{submission_id}":{"get":{"summary":"Get V1 Submission","operationId":"get_v1_submission_v1_submissions__submission_id__get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionListItem"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/status":{"get":{"summary":"Get Submission Status","description":"Return a safe polling snapshot for one submission.\n\nFully legacy mode omits the review field entirely so the response bytes stay\nidentical to the pre-review schema. Full attested mode includes the safe\nreview projection.","operationId":"get_submission_status_submissions__submission_id__status_get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/submissions/{submission_id}/status":{"get":{"summary":"Get V1 Submission Status","operationId":"get_v1_submission_status_v1_submissions__submission_id__status_get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/review/tee":{"get":{"summary":"Public TEE math for independent inspectability","description":"Return the public unauthenticated TEE math projection.\n\nSame trust class as ``GET .../status``: no miner signature required. Body is\nexactly ``{\"available\": false}`` when no authorizing/current verified report\nenvelope is durable. Never exposes nonce plaintext, tokens, capabilities,\nevidence bodies, model IO, or encryption KEY material.","operationId":"get_submission_review_tee_submissions__submission_id__review_tee_get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}}],"responses":{"200":{"description":"Safe TEE math when a verified report exists; otherwise the locked closed form {\"available\": false}.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTeeMathResponse"}}}},"404":{"description":"submission not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/submissions/{submission_id}/review/tee":{"get":{"summary":"Public TEE math (v1 alias)","description":"v1 alias for the public TEE math surface (product bridge convention).","operationId":"get_v1_submission_review_tee_v1_submissions__submission_id__review_tee_get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicTeeMathResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/task-events":{"get":{"summary":"Get Submission Task Events","operationId":"get_submission_task_events_submissions__submission_id__task_events_get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}},{"name":"task_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"}},{"name":"event_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"}},{"name":"stream","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stream"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskEventReplayResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/task-events/stream":{"get":{"summary":"Stream Submission Task Events","operationId":"stream_submission_task_events_submissions__submission_id__task_events_stream_get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"stream","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stream"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/submissions/{submission_id}/events":{"get":{"summary":"Stream Submission Events","operationId":"stream_submission_events_submissions__submission_id__events_get","parameters":[{"name":"submission_id","in":"path","required":true,"schema":{"type":"integer","title":"Submission Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_hash}/evaluation":{"get":{"summary":"Get Agent Evaluation","description":"Return evaluation details for an agent hash.","operationId":"get_agent_evaluation_agents__agent_hash__evaluation_get","parameters":[{"name":"agent_hash","in":"path","required":true,"schema":{"type":"string","title":"Agent Hash"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_hash}/source":{"get":{"summary":"Get Agent Source","description":"Return an agent submission's source files with secrets redacted server-side.\n\n``agent_hash`` is unique per submission, so this resolves the same submission\n``get_agent_evaluation`` would (latest by ``created_at`` if ever duplicated).\nOnly the code files stored in the submission zip are exposed; miner env\nvariable values are never included. When the submission exists but its source\nartifact is missing or unreadable on disk the response is ``available=false``\nwith an empty file list rather than an error.","operationId":"get_agent_source_agents__agent_hash__source_get","parameters":[{"name":"agent_hash","in":"path","required":true,"schema":{"type":"string","title":"Agent Hash"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentSourceResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/{agent_hash}/source/download":{"get":{"summary":"Download Agent Source","description":"Return a ZIP of an agent submission's source with secrets redacted.\n\nResolves the same submission ``get_agent_source`` would (``agent_hash`` is\nunique; latest by ``created_at`` if ever duplicated) so the frontend can offer\na \"Download ZIP\" button. Text entries are passed through ``redact_secrets``\nexactly as the source viewer does, so raw secrets are never exposed; binary\nentries are copied through unchanged. Only manifest-listed, traversal-safe\npaths are written and a total uncompressed cap bounds memory. Responds ``404``\nwhen the submission or its source artifact is missing/unreadable.","operationId":"download_agent_source_agents__agent_hash__source_download_get","parameters":[{"name":"agent_hash","in":"path","required":true,"schema":{"type":"string","title":"Agent Hash"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/leaderboard":{"get":{"summary":"Leaderboard","description":"Return the latest score per miner for BASE dashboards.","operationId":"leaderboard_leaderboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/LeaderboardEntry"},"type":"array","title":"Response Leaderboard Leaderboard Get"}}}}}}}},"components":{"schemas":{"AdminEscalationResolutionRequest":{"properties":{"decision":{"type":"string","enum":["admin_allow","admin_reject","admin_request_rerun"],"title":"Decision"},"reason":{"type":"string","maxLength":4000,"minLength":1,"title":"Reason"}},"type":"object","required":["decision","reason"],"title":"AdminEscalationResolutionRequest"},"AdminEscalationResolutionResponse":{"properties":{"submission_id":{"type":"integer","title":"Submission Id"},"effective_status":{"type":"string","title":"Effective Status"},"decision_id":{"type":"integer","title":"Decision Id"},"decision":{"type":"string","title":"Decision"},"status":{"type":"string","title":"Status"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"}},"type":"object","required":["submission_id","effective_status","decision_id","decision","status"],"title":"AdminEscalationResolutionResponse"},"AgentSourceFile":{"properties":{"path":{"type":"string","title":"Path"},"size_bytes":{"type":"integer","title":"Size Bytes"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content"},"truncated":{"type":"boolean","title":"Truncated"},"redacted":{"type":"boolean","title":"Redacted"},"binary":{"type":"boolean","title":"Binary"}},"type":"object","required":["path","size_bytes","content","truncated","redacted","binary"],"title":"AgentSourceFile","description":"One file from an agent submission's source zip (secrets redacted)."},"AgentSourceResponse":{"properties":{"agent_hash":{"type":"string","title":"Agent Hash"},"submission_id":{"type":"integer","title":"Submission Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"miner_hotkey":{"type":"string","title":"Miner Hotkey"},"available":{"type":"boolean","title":"Available"},"total_files":{"type":"integer","title":"Total Files"},"total_bytes":{"type":"integer","title":"Total Bytes"},"truncated":{"type":"boolean","title":"Truncated"},"files":{"items":{"$ref":"#/components/schemas/AgentSourceFile"},"type":"array","title":"Files"}},"type":"object","required":["agent_hash","submission_id","agent_name","miner_hotkey","available","total_files","total_bytes","truncated","files"],"title":"AgentSourceResponse","description":"Redacted source listing for one agent submission."},"BenchmarkInfoResponse":{"properties":{"backend":{"type":"string","title":"Backend"},"dataset":{"type":"string","title":"Dataset"},"task_count":{"type":"integer","title":"Task Count"},"evaluation_concurrency":{"type":"integer","title":"Evaluation Concurrency"}},"type":"object","required":["backend","dataset","task_count","evaluation_concurrency"],"title":"BenchmarkInfoResponse","description":"Configured benchmark dataset metadata."},"BenchmarkTaskResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"benchmark":{"type":"string","title":"Benchmark"},"docker_image":{"type":"string","title":"Docker Image"},"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["task_id","benchmark","docker_image","prompt"],"title":"BenchmarkTaskResponse","description":"Benchmark task visible to miners and operators."},"EvalExpectedRunRequest":{"properties":{"schema_version":{"type":"integer","const":1,"title":"Schema Version"},"eval_run_id":{"type":"string","maxLength":128,"minLength":1,"title":"Eval Run Id"}},"additionalProperties":false,"type":"object","required":["schema_version","eval_run_id"],"title":"EvalExpectedRunRequest"},"EvalFailureRequest":{"properties":{"schema_version":{"type":"integer","const":1,"title":"Schema Version"},"eval_run_id":{"type":"string","maxLength":128,"minLength":1,"title":"Eval Run Id"},"reason_code":{"type":"string","enum":["eval_deploy_failed","eval_tunnel_failed","eval_key_release_unavailable","eval_no_result"],"title":"Reason Code"}},"additionalProperties":false,"type":"object","required":["schema_version","eval_run_id","reason_code"],"title":"EvalFailureRequest"},"EvalHistoryResponse":{"properties":{"schema_version":{"type":"integer","const":1,"title":"Schema Version"},"submission_id":{"type":"integer","title":"Submission Id"},"current_eval_run_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Eval Run Id"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"total_count":{"type":"integer","title":"Total Count"}},"additionalProperties":false,"type":"object","required":["schema_version","submission_id","items","next_cursor","total_count"],"title":"EvalHistoryResponse"},"EvalMutationResponse":{"properties":{"schema_version":{"type":"integer","const":1,"title":"Schema Version"},"run":{"additionalProperties":true,"type":"object","title":"Run"}},"additionalProperties":false,"type":"object","required":["schema_version","run"],"title":"EvalMutationResponse"},"EvalPrepareResponse":{"properties":{"schema_version":{"type":"integer","const":1,"title":"Schema Version"},"plan":{"additionalProperties":true,"type":"object","title":"Plan"},"plan_sha256":{"type":"string","title":"Plan Sha256"},"secret_delivery":{"anyOf":[{"$ref":"#/components/schemas/EvalSecretDeliveryResponse"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["schema_version","plan","plan_sha256"],"title":"EvalPrepareResponse","description":"One-time signed Eval authorization wrapper."},"EvalReceiptResponse":{"properties":{"schema_version":{"type":"integer","const":1,"title":"Schema Version"},"eval_run_id":{"type":"string","title":"Eval Run Id"},"receipt_id":{"type":"string","title":"Receipt Id"},"body_sha256":{"type":"string","title":"Body Sha256"},"received_at_ms":{"type":"integer","title":"Received At Ms"},"phase":{"type":"string","enum":["received","verifying","verified","rejected","verifier_unavailable"],"title":"Phase"},"terminal":{"type":"boolean","title":"Terminal"},"verified":{"type":"boolean","title":"Verified"},"retryable":{"type":"boolean","title":"Retryable"},"reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Code"},"result_available":{"type":"boolean","title":"Result Available"},"finalized_at_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Finalized At Ms"}},"additionalProperties":false,"type":"object","required":["schema_version","eval_run_id","receipt_id","body_sha256","received_at_ms","phase","terminal","verified","retryable","reason_code","result_available","finalized_at_ms"],"title":"EvalReceiptResponse"},"EvalSecretDeliveryResponse":{"properties":{"env_key":{"type":"string","const":"EVAL_RUN_TOKEN","title":"Env Key"},"token":{"type":"string","minLength":1,"title":"Token"}},"additionalProperties":false,"type":"object","required":["env_key","token"],"title":"EvalSecretDeliveryResponse"},"EvaluationResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"submission_id":{"type":"integer","title":"Submission Id"},"name":{"type":"string","title":"Name"},"agent_hash":{"type":"string","title":"Agent Hash"},"zip_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Sha256"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"family_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Id"},"version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Number"},"version_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Label"},"version_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Count"},"is_latest_version":{"type":"boolean","title":"Is Latest Version"},"latest_submission_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Submission Id"},"status":{"type":"string","title":"Status"},"effective_status":{"type":"string","title":"Effective Status"},"score":{"type":"number","title":"Score"},"passed_tasks":{"type":"integer","title":"Passed Tasks"},"total_tasks":{"type":"integer","title":"Total Tasks"},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict"},"rules_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rules Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"tasks":{"items":{"$ref":"#/components/schemas/TaskResultResponse"},"type":"array","title":"Tasks"},"task_phases":{"items":{"$ref":"#/components/schemas/TaskPhaseResponse"},"type":"array","title":"Task Phases"},"task_rows":{"items":{"$ref":"#/components/schemas/TaskRowResponse"},"type":"array","title":"Task Rows"}},"type":"object","required":["job_id","submission_id","name","agent_hash","zip_sha256","display_name","family_id","version_number","version_label","version_count","is_latest_version","latest_submission_id","status","effective_status","score","passed_tasks","total_tasks","verdict","rules_version","created_at","started_at","finished_at","tasks"],"title":"EvaluationResponse","description":"Evaluation progress and score."},"EvaluationSummaryResponse":{"properties":{"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"},"score":{"type":"number","title":"Score"},"passed_tasks":{"type":"integer","title":"Passed Tasks"},"total_tasks":{"type":"integer","title":"Total Tasks"},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict"},"rules_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rules Version"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"}},"type":"object","required":["job_id","status","score","passed_tasks","total_tasks","verdict","rules_version","created_at","started_at","finished_at"],"title":"EvaluationSummaryResponse"},"FoldWorkUnitRequest":{"properties":{"job_id":{"type":"string","title":"Job Id"},"task_id":{"type":"string","title":"Task Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["job_id","task_id"],"title":"FoldWorkUnitRequest","description":"Master request to fold a permanently-failed (max_attempts) work unit."},"FoldWorkUnitResponse":{"properties":{"work_unit_id":{"type":"string","title":"Work Unit Id"},"job_id":{"type":"string","title":"Job Id"},"task_id":{"type":"string","title":"Task Id"},"status":{"type":"string","title":"Status"},"score":{"type":"number","title":"Score"},"posted":{"type":"boolean","title":"Posted"},"finalized":{"type":"boolean","title":"Finalized"}},"type":"object","required":["work_unit_id","job_id","task_id","status","score","posted","finalized"],"title":"FoldWorkUnitResponse","description":"Outcome of folding a permanently-failed work unit into its job."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LeaderboardEntry":{"properties":{"miner_hotkey":{"type":"string","title":"Miner Hotkey"},"submission_id":{"type":"integer","title":"Submission Id"},"name":{"type":"string","title":"Name"},"agent_hash":{"type":"string","title":"Agent Hash"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"family_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Id"},"version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Number"},"version_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Label"},"version_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Count"},"is_latest_version":{"type":"boolean","title":"Is Latest Version"},"latest_submission_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Submission Id"},"score":{"type":"number","title":"Score"},"passed_tasks":{"type":"integer","title":"Passed Tasks"},"total_tasks":{"type":"integer","title":"Total Tasks"}},"type":"object","required":["miner_hotkey","submission_id","name","agent_hash","display_name","family_id","version_number","version_label","version_count","is_latest_version","latest_submission_id","score","passed_tasks","total_tasks"],"title":"LeaderboardEntry","description":"Leaderboard row."},"MinerEnvLaunchResponse":{"properties":{"submission_id":{"type":"integer","title":"Submission Id"},"status":{"type":"string","title":"Status"},"effective_status":{"type":"string","title":"Effective Status"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"env":{"$ref":"#/components/schemas/MinerEnvMetadataResponse"}},"type":"object","required":["submission_id","status","effective_status","job_id","env"],"title":"MinerEnvLaunchResponse"},"MinerEnvMetadataResponse":{"properties":{"submission_id":{"type":"integer","title":"Submission Id"},"keys":{"items":{"type":"string"},"type":"array","title":"Keys"},"count":{"type":"integer","title":"Count"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"locked":{"type":"boolean","title":"Locked"},"env_confirmed_empty":{"type":"boolean","title":"Env Confirmed Empty"},"env_confirmed_empty_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Env Confirmed Empty At"},"confirmation_state":{"type":"string","enum":["pending","env_vars_present","empty_confirmed"],"title":"Confirmation State"}},"type":"object","required":["submission_id","keys","count","updated_at","locked","env_confirmed_empty","env_confirmed_empty_at","confirmation_state"],"title":"MinerEnvMetadataResponse"},"MinerEnvUpdateRequest":{"properties":{"env":{"additionalProperties":true,"type":"object","title":"Env"}},"type":"object","title":"MinerEnvUpdateRequest","description":"Miner-owned submission environment replacement payload."},"OwnerAuditResponse":{"properties":{"id":{"type":"integer","title":"Id"},"submission_id":{"type":"integer","title":"Submission Id"},"owner_hotkey":{"type":"string","title":"Owner Hotkey"},"action":{"type":"string","title":"Action"},"reason":{"type":"string","title":"Reason"},"request_hash":{"type":"string","title":"Request Hash"},"nonce":{"type":"string","title":"Nonce"},"signature":{"type":"string","title":"Signature"},"request_timestamp":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Request Timestamp"},"before_effective_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Before Effective Status"},"after_effective_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After Effective Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","submission_id","owner_hotkey","action","reason","request_hash","nonce","signature","request_timestamp","before_effective_status","after_effective_status","created_at"],"title":"OwnerAuditResponse","description":"Owner audit event response."},"OwnerControlResponse":{"properties":{"submission_id":{"type":"integer","title":"Submission Id"},"effective_status":{"type":"string","title":"Effective Status"}},"type":"object","required":["submission_id","effective_status"],"title":"OwnerControlResponse","description":"Owner control response for submission status changes."},"OwnerOverrideRequest":{"properties":{"status":{"type":"string","enum":["overridden_valid","overridden_invalid"],"title":"Status"},"reason":{"type":"string","maxLength":4000,"minLength":1,"title":"Reason"}},"type":"object","required":["status","reason"],"title":"OwnerOverrideRequest","description":"Owner request to override a submission's effective status."},"OwnerRevalidationRequest":{"properties":{"reason":{"type":"string","maxLength":4000,"title":"Reason","default":""}},"type":"object","title":"OwnerRevalidationRequest","description":"Owner request to force a new evaluation job."},"OwnerRevalidationResponse":{"properties":{"submission_id":{"type":"integer","title":"Submission Id"},"effective_status":{"type":"string","title":"Effective Status"},"job_id":{"type":"string","title":"Job Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["submission_id","effective_status","job_id","status"],"title":"OwnerRevalidationResponse","description":"Owner revalidation response including the new job."},"OwnerSuspiciousRequest":{"properties":{"suspicious":{"type":"boolean","title":"Suspicious","default":true},"reason":{"type":"string","maxLength":4000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"OwnerSuspiciousRequest","description":"Owner request to mark or clear suspicious effective status."},"PublicTeeMathResponse":{"properties":{"available":{"type":"boolean","title":"Available"},"submission_id":{"anyOf":[{"type":"integer"},{"type":"string"},{"type":"null"}],"title":"Submission Id"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"review_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Digest"},"report_data_hex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Data Hex"},"report_data_preimage":{"anyOf":[{"$ref":"#/components/schemas/PublicTeeReportDataPreimageResponse"},{"type":"null"}]},"measurement":{"anyOf":[{"$ref":"#/components/schemas/PublicTeeMeasurementResponse"},{"type":"null"}]},"tdx_quote_hex":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tdx Quote Hex"},"event_log":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Event Log"},"verification_outcome":{"anyOf":[{"$ref":"#/components/schemas/PublicTeeVerificationOutcomeResponse"},{"type":"null"}]},"quote_fingerprint_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quote Fingerprint Sha256"},"agent_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Hash"},"zip_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Sha256"},"verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verdict"},"assignment_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignment Digest"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"assignment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assignment Id"}},"additionalProperties":false,"type":"object","required":["available"],"title":"PublicTeeMathResponse","description":"Public unauthenticated TEE math surface (architecture residual §5.1).\n\nWhen no authorizing/current verified report exists the body is exactly\n``{\"available\": false}``. When available, only the safe math subset is\npresent — never nonce plaintext, tokens, capabilities, evidence bodies,\nmodel IO, or KEY material."},"PublicTeeMeasurementResponse":{"properties":{"mrtd":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mrtd"},"rtmr0":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rtmr0"},"rtmr1":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rtmr1"},"rtmr2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rtmr2"},"rtmr3":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rtmr3"},"compose_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Compose Hash"},"os_image_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Os Image Hash"},"key_provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Provider"},"vm_shape":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vm Shape"}},"additionalProperties":false,"type":"object","title":"PublicTeeMeasurementResponse","description":"Safe measurement registers for independent public TEE inspection."},"PublicTeeReportDataPreimageResponse":{"properties":{"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain"},"schema_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Schema Version"},"review_digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Digest"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"},"issued_at_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Issued At Ms"},"received_at_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Received At Ms"},"review_nonce_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Nonce Sha256"}},"additionalProperties":false,"type":"object","title":"PublicTeeReportDataPreimageResponse","description":"Inspectable report_data preimage without raw review_nonce."},"PublicTeeVerificationOutcomeResponse":{"properties":{"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"measurement_allowlisted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Measurement Allowlisted"},"report_data_matched":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Report Data Matched"},"verified_at_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Verified At Ms"},"reason_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason Code"}},"additionalProperties":false,"type":"object","title":"PublicTeeVerificationOutcomeResponse","description":"Public subset of the durable review verification outcome."},"ReplayAuditRequestListResponse":{"properties":{"requests":{"items":{"$ref":"#/components/schemas/ReplayAuditRequestResponse"},"type":"array","title":"Requests"}},"type":"object","title":"ReplayAuditRequestListResponse","description":"Sampled labelled replay requests available to BASE."},"ReplayAuditRequestResponse":{"properties":{"schema_version":{"type":"integer","title":"Schema Version"},"audit_label":{"type":"string","const":"agent-challenge.replay-audit.v1","title":"Audit Label"},"kind":{"type":"string","const":"replay_audit_request","title":"Kind"},"audit_id":{"type":"string","title":"Audit Id"},"submission_id":{"type":"string","title":"Submission Id"},"eval_run_id":{"type":"string","title":"Eval Run Id"},"replay_attempt":{"type":"integer","title":"Replay Attempt"},"plan_sha256":{"type":"string","title":"Plan Sha256"},"eval_plan":{"additionalProperties":true,"type":"object","title":"Eval Plan"},"k":{"type":"integer","title":"K"},"selected_tasks":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Selected Tasks"},"scoring_policy":{"additionalProperties":true,"type":"object","title":"Scoring Policy"},"scoring_policy_digest":{"type":"string","title":"Scoring Policy Digest"},"attested_score":{"type":"number","title":"Attested Score"}},"type":"object","required":["schema_version","audit_label","kind","audit_id","submission_id","eval_run_id","replay_attempt","plan_sha256","eval_plan","k","selected_tasks","scoring_policy","scoring_policy_digest","attested_score"],"title":"ReplayAuditRequestResponse","description":"One explicitly labelled replay request for the BASE audit seam."},"ReplayAuditResultResponse":{"properties":{"schema_version":{"type":"integer","title":"Schema Version","default":1},"audit_label":{"type":"string","const":"agent-challenge.replay-audit.v1","title":"Audit Label","default":"agent-challenge.replay-audit.v1"},"kind":{"type":"string","const":"replay_audit_result","title":"Kind","default":"replay_audit_result"},"audit_id":{"type":"string","title":"Audit Id"},"submission_id":{"type":"string","title":"Submission Id"},"eval_run_id":{"type":"string","title":"Eval Run Id"},"replay_attempt":{"type":"integer","title":"Replay Attempt"},"status":{"type":"string","enum":["matched","mismatch"],"title":"Status"},"attested_score":{"type":"number","title":"Attested Score"},"replay_score":{"type":"number","title":"Replay Score"},"delta":{"type":"number","title":"Delta"},"dispute_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dispute Id"}},"type":"object","required":["audit_id","submission_id","eval_run_id","replay_attempt","status","attested_score","replay_score","delta"],"title":"ReplayAuditResultResponse","description":"Outcome of one labelled replay result submission."},"ReviewApprovalRequest":{"properties":{"assignment_id":{"type":"string","maxLength":128,"minLength":1,"title":"Assignment Id"},"action":{"type":"string","enum":["retry_policy","refresh_rules"],"title":"Action"},"rules_revision_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Rules Revision Id"}},"type":"object","required":["assignment_id","action"],"title":"ReviewApprovalRequest"},"ReviewAuditResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"current_assignment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Assignment Id"},"authorizing_assignment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorizing Assignment Id"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"total_count":{"type":"integer","title":"Total Count"}},"type":"object","required":["session_id","current_assignment_id","authorizing_assignment_id","items","next_cursor","total_count"],"title":"ReviewAuditResponse"},"ReviewCancelRequest":{"properties":{"expected_assignment_id":{"type":"string","maxLength":128,"minLength":1,"title":"Expected Assignment Id"}},"type":"object","required":["expected_assignment_id"],"title":"ReviewCancelRequest"},"ReviewDeployedComposeIdentity":{"properties":{"image_ref":{"type":"string","maxLength":1024,"minLength":73,"pattern":"^[^@\\s]+@sha256:[0-9a-f]{64}$","title":"Image Ref"},"compose_hash":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Compose Hash"},"app_kms_public_key_sha256":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"App Kms Public Key Sha256"}},"additionalProperties":false,"type":"object","required":["image_ref","compose_hash","app_kms_public_key_sha256"],"title":"ReviewDeployedComposeIdentity"},"ReviewDeployedPhalaCreateReceipt":{"properties":{"request_id":{"type":"string","maxLength":128,"minLength":1,"title":"Request Id"},"app_id":{"type":"string","maxLength":128,"minLength":1,"title":"App Id"},"cvm_id":{"type":"string","maxLength":128,"minLength":1,"title":"Cvm Id"},"receipt_sha256":{"type":"string","maxLength":64,"minLength":64,"pattern":"^[0-9a-f]{64}$","title":"Receipt Sha256"},"created_at_ms":{"type":"integer","maximum":9.223372036854776e+18,"minimum":0.0,"title":"Created At Ms"}},"additionalProperties":false,"type":"object","required":["request_id","app_id","cvm_id","receipt_sha256","created_at_ms"],"title":"ReviewDeployedPhalaCreateReceipt"},"ReviewDeployedRequest":{"properties":{"schema_version":{"type":"integer","const":1,"title":"Schema Version"},"assignment_id":{"type":"string","maxLength":128,"minLength":1,"title":"Assignment Id"},"cvm_id":{"type":"string","maxLength":128,"minLength":1,"title":"Cvm Id"},"phala_create_receipt":{"$ref":"#/components/schemas/ReviewDeployedPhalaCreateReceipt"},"compose_identity":{"$ref":"#/components/schemas/ReviewDeployedComposeIdentity"}},"additionalProperties":false,"type":"object","required":["schema_version","assignment_id","cvm_id","phala_create_receipt","compose_identity"],"title":"ReviewDeployedRequest","description":"Exact nested Review deployed acknowledgement v1."},"ReviewPrepareResponse":{"properties":{"session_id":{"type":"string","title":"Session Id"},"assignment_id":{"type":"string","title":"Assignment Id"},"attempt":{"type":"integer","title":"Attempt"},"assignment":{"additionalProperties":true,"type":"object","title":"Assignment"},"review_session_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Session Token"}},"type":"object","required":["session_id","assignment_id","attempt","assignment"],"title":"ReviewPrepareResponse"},"ReviewReportReceiptResponse":{"properties":{"assignment_id":{"type":"string","title":"Assignment Id"},"status":{"type":"string","title":"Status"},"terminal":{"type":"boolean","title":"Terminal"},"retryable":{"type":"boolean","title":"Retryable"},"reason_code":{"type":"string","title":"Reason Code"},"nonce_consumed":{"type":"boolean","title":"Nonce Consumed"}},"type":"object","required":["assignment_id","status","terminal","retryable","reason_code","nonce_consumed"],"title":"ReviewReportReceiptResponse"},"ReviewRetryRequest":{"properties":{"expected_assignment_id":{"type":"string","maxLength":128,"minLength":1,"title":"Expected Assignment Id"},"approval_id":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Approval Id"},"refresh_rules":{"type":"boolean","title":"Refresh Rules","default":false}},"type":"object","required":["expected_assignment_id"],"title":"ReviewRetryRequest"},"SubmissionCountResponse":{"properties":{"count":{"type":"integer","title":"Count"}},"type":"object","required":["count"],"title":"SubmissionCountResponse","description":"Aggregate submission count."},"SubmissionListItem":{"properties":{"id":{"type":"integer","title":"Id"},"miner_hotkey":{"type":"string","title":"Miner Hotkey"},"name":{"type":"string","title":"Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"agent_hash":{"type":"string","title":"Agent Hash"},"zip_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Sha256"},"family_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Id"},"version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Number"},"version_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Label"},"version_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Count"},"is_latest_version":{"type":"boolean","title":"Is Latest Version"},"latest_submission_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Submission Id"},"status":{"type":"string","title":"Status"},"effective_status":{"type":"string","title":"Effective Status"},"env_action_required":{"type":"boolean","title":"Env Action Required"},"env_keys":{"items":{"type":"string"},"type":"array","title":"Env Keys"},"env_var_count":{"type":"integer","title":"Env Var Count"},"env_confirmed_empty":{"type":"boolean","title":"Env Confirmed Empty"},"env_locked":{"type":"boolean","title":"Env Locked"},"env_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Env Updated At"},"score":{"type":"number","title":"Score"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"latest_evaluation":{"anyOf":[{"$ref":"#/components/schemas/EvaluationSummaryResponse"},{"type":"null"}]},"has_analysis":{"type":"boolean","title":"Has Analysis"},"analyzer_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analyzer Status"},"analyzer_verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Analyzer Verdict"},"llm_verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Verdict"},"llm_confidence":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Llm Confidence"},"similarity_max_score_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Similarity Max Score Percent"},"similarity_match_count":{"type":"integer","title":"Similarity Match Count"},"ast_feature_count":{"type":"integer","title":"Ast Feature Count"}},"type":"object","required":["id","miner_hotkey","name","display_name","agent_hash","zip_sha256","family_id","version_number","version_label","version_count","is_latest_version","latest_submission_id","status","effective_status","env_action_required","env_keys","env_var_count","env_confirmed_empty","env_locked","env_updated_at","score","submitted_at","created_at","latest_evaluation","has_analysis","analyzer_status","analyzer_verdict","llm_verdict","llm_confidence","similarity_max_score_percent","similarity_match_count","ast_feature_count"],"title":"SubmissionListItem","description":"Submission list item."},"SubmissionRequest":{"properties":{"miner_hotkey":{"anyOf":[{"type":"string","maxLength":128,"minLength":1},{"type":"null"}],"title":"Miner Hotkey"},"name":{"type":"string","maxLength":128,"minLength":1,"title":"Name","default":"agent"},"artifact_uri":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Artifact Uri"},"artifact_zip_base64":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Artifact Zip Base64"},"agent_hash":{"anyOf":[{"type":"string","maxLength":128,"minLength":8,"pattern":"^[A-Za-z0-9_.:-]+$"},{"type":"null"}],"title":"Agent Hash"}},"additionalProperties":false,"type":"object","title":"SubmissionRequest","description":"Miner agent submission payload.\n\nclosed schema (extra=forbid): client-supplied ``issued_at`` / ``received_at``\n/ freshness booleans cannot override challenge attestation-bound times\n(VAL-ACAT-038)."},"SubmissionResponse":{"properties":{"submission_id":{"type":"integer","title":"Submission Id"},"name":{"type":"string","title":"Name"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"agent_hash":{"type":"string","title":"Agent Hash"},"zip_sha256":{"type":"string","title":"Zip Sha256"},"package_tree_sha":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Package Tree Sha"},"family_id":{"type":"string","title":"Family Id"},"version_number":{"type":"integer","title":"Version Number"},"version_label":{"type":"string","title":"Version Label"},"version_count":{"type":"integer","title":"Version Count"},"is_latest_version":{"type":"boolean","title":"Is Latest Version"},"latest_submission_id":{"type":"integer","title":"Latest Submission Id"},"status":{"type":"string","title":"Status"},"effective_status":{"type":"string","title":"Effective Status"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"latest_evaluation":{"anyOf":[{"$ref":"#/components/schemas/EvaluationSummaryResponse"},{"type":"null"}]}},"type":"object","required":["submission_id","name","display_name","agent_hash","zip_sha256","family_id","version_number","version_label","version_count","is_latest_version","latest_submission_id","status","effective_status","submitted_at","created_at","latest_evaluation"],"title":"SubmissionResponse","description":"Submission response returned to the caller."},"SubmissionVersionItem":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"agent_hash":{"type":"string","title":"Agent Hash"},"zip_sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zip Sha256"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"family_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Id"},"version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Number"},"version_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Label"},"version_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Count"},"is_latest_version":{"type":"boolean","title":"Is Latest Version"},"latest_submission_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Submission Id"},"status":{"type":"string","title":"Status"},"effective_status":{"type":"string","title":"Effective Status"},"score":{"type":"number","title":"Score"},"submitted_at":{"type":"string","format":"date-time","title":"Submitted At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"latest_evaluation":{"anyOf":[{"$ref":"#/components/schemas/EvaluationSummaryResponse"},{"type":"null"}]}},"type":"object","required":["id","name","agent_hash","zip_sha256","display_name","family_id","version_number","version_label","version_count","is_latest_version","latest_submission_id","status","effective_status","score","submitted_at","created_at","latest_evaluation"],"title":"SubmissionVersionItem"},"TaskEventReplayItem":{"properties":{"id":{"type":"integer","title":"Id"},"sequence":{"type":"integer","title":"Sequence"},"submission_id":{"type":"integer","title":"Submission Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"task_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Task Id"},"event_type":{"type":"string","title":"Event Type"},"stream":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stream"},"message":{"type":"string","title":"Message"},"progress":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Progress"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"truncated":{"type":"boolean","title":"Truncated"},"cap_reached":{"type":"boolean","title":"Cap Reached"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","sequence","submission_id","job_id","task_id","event_type","stream","message","progress","status","truncated","cap_reached","metadata","created_at"],"title":"TaskEventReplayItem"},"TaskEventReplayResponse":{"properties":{"submission_id":{"type":"integer","title":"Submission Id"},"name":{"type":"string","title":"Name"},"agent_hash":{"type":"string","title":"Agent Hash"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"family_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Family Id"},"version_number":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Number"},"version_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version Label"},"version_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version Count"},"is_latest_version":{"type":"boolean","title":"Is Latest Version"},"latest_submission_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Submission Id"},"cursor":{"type":"integer","title":"Cursor"},"next_cursor":{"type":"integer","title":"Next Cursor"},"limit":{"type":"integer","title":"Limit"},"has_more":{"type":"boolean","title":"Has More"},"events":{"items":{"$ref":"#/components/schemas/TaskEventReplayItem"},"type":"array","title":"Events"}},"type":"object","required":["submission_id","name","agent_hash","display_name","family_id","version_number","version_label","version_count","is_latest_version","latest_submission_id","cursor","next_cursor","limit","has_more","events"],"title":"TaskEventReplayResponse"},"TaskPhaseResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"phase":{"type":"string","title":"Phase"},"status":{"type":"string","title":"Status"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"attempt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Attempt"}},"type":"object","required":["task_id","phase","status","updated_at","attempt"],"title":"TaskPhaseResponse"},"TaskResultResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"docker_image":{"type":"string","title":"Docker Image"},"status":{"type":"string","title":"Status"},"score":{"type":"number","title":"Score"},"passed":{"type":"boolean","title":"Passed"},"returncode":{"type":"integer","title":"Returncode"},"duration_seconds":{"type":"number","title":"Duration Seconds"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"detail_log":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail Log"}},"type":"object","required":["task_id","docker_image","status","score","passed","returncode","duration_seconds"],"title":"TaskResultResponse","description":"Public task result details."},"TaskRowResponse":{"properties":{"task_id":{"type":"string","title":"Task Id"},"display_name":{"type":"string","title":"Display Name"},"source":{"type":"string","title":"Source"},"phase":{"type":"string","title":"Phase"},"status":{"type":"string","title":"Status"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"attempt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Attempt"},"has_result":{"type":"boolean","title":"Has Result","default":false},"passed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Passed"}},"type":"object","required":["task_id","display_name","source","phase","status","updated_at","attempt"],"title":"TaskRowResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WeightsResponse":{"properties":{"challenge_slug":{"type":"string","title":"Challenge Slug"},"epoch":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Epoch"},"weights":{"additionalProperties":{"type":"number"},"type":"object","title":"Weights"},"metadata":{"additionalProperties":{"type":"string"},"type":"object","title":"Metadata"}},"type":"object","required":["challenge_slug","weights"],"title":"WeightsResponse","description":"Internal get_weights response consumed by the BASE master."},"WorkUnitResponse":{"properties":{"work_unit_id":{"type":"string","title":"Work Unit Id"},"submission_id":{"type":"integer","title":"Submission Id"},"submission_ref":{"type":"string","title":"Submission Ref"},"miner_hotkey":{"type":"string","title":"Miner Hotkey"},"job_id":{"type":"string","title":"Job Id"},"task_id":{"type":"string","title":"Task Id"},"docker_image":{"type":"string","title":"Docker Image"},"required_capability":{"type":"string","title":"Required Capability"}},"type":"object","required":["work_unit_id","submission_id","submission_ref","miner_hotkey","job_id","task_id","docker_image","required_capability"],"title":"WorkUnitResponse","description":"One pending task work unit exposed to the master coordination plane."},"WorkUnitsResponse":{"properties":{"challenge_slug":{"type":"string","title":"Challenge Slug"},"work_units":{"items":{"$ref":"#/components/schemas/WorkUnitResponse"},"type":"array","title":"Work Units"}},"type":"object","required":["challenge_slug","work_units"],"title":"WorkUnitsResponse","description":"The challenge's currently-assignable pending work units."}}}}