Add sandboxed Python for the assistant and a Python check of generated quizzes
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 51s

- Pyodide (Python 3.14, WebAssembly) in a separate Node process under the permission
  model: read-only access to Pyodide's files, no writes, processes or network, empty
  environment, JS bridges removed, time limit with kill and restart.
- Assistant tool run_python, which can load a draft or quiz as Python data.
- After quiz generation the model checks question count, type mix, correct answers per
  type, duplicates and recomputed calculations with Python, then submits fixes that are
  applied only if the question still validates. Switch in the Generate dialog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Elijah 2026-11-15 13:03:24 -07:00
parent f0aabe4d5d
commit 5ea61c882c
13 changed files with 800 additions and 6 deletions

View file

@ -35,6 +35,7 @@
"lucide-react": "^1.71.0",
"mammoth": "^1.13.0",
"pdf-lib": "^1.17.1",
"pyodide": "^314.0.7",
"radix-ui": "^1.8.1",
"react": "^19.3.1",
"react-dom": "^19.3.1",