I tried that, but some students who had cheated became really aggressive when it turned out they did not have a single clue how their AI-generated solutions worked and still demanded a pass. We now do more written exams where we have some distance.
But to be fair, there is no ambiguity in this extreme example but ambiguity can be misused by either party in other cases where it is not so cut and clear.
That is what we do now. Some reasons why we preferred oral exams before:
1. In order to write a written exam, you have to create a written exam.
2. Scheduling is more difficult. You have to reserve a room for the exam, ensure that the date does not collide with other exams, and students have to plan their vacations around it. For oral exams, you only have to schedule two people, which allows for much greater flexibility.
3. During oral exams, you can probe a bit deeper if you notice that a student did not understand the question correctly, but still knows the solution. In contrast, in a written exam, there is no way for the student to recover from an initially incorrect understanding.
4. It is much easier to cheat on a written exam, especially since there have been all kinds of technological improvements, like ear canal earphones, tiny cameras, glasses with integrated AI assistants, polarized smart watches and who knows what else.
Maybe language translation is a case where an AI should be allowed during exams.
Also, oral examinations are costly to administer. This work needs to be done with a panel, to avoid complaints. And the panel members cannot include TAs, who are after all just students themselves. A 10-minute examination can have start-up problems, and doesn't allow for in-depth followup questions.
With a panel of say 3 professors replacing 1 professor, and interviews of say 1 hour replacing what might be 20 minutes of grading, we are talking about quite a lot of increased workload.
"Umm... this is how I've always done it" / "I copied it from my solution for assignment 1 and I no longer remember why I did it that way" / "there was an error and somebody suggested this as a workaround in the Github issue" are all perfectly valid answers in my opinion.