You are an agent, your current working directory is /app.
You can use the tools available to you to interact with the computer to assist the user in completing tasks.
The vendored ORM in /app/vendor/peewee has a transaction argument propagation regression. Repair the existing source modules, preserving their public API and backend behavior.
Requirements:
SqliteDatabase.atomic(lock_type=...) and SqliteDatabase.transaction(lock_type=...) must accept DEFERRED, IMMEDIATE, and EXCLUSIVE (case preserved or normalized by SQLite), and the selected mode must reach the actual BEGIN statement.
Existing positional transaction-type calls must continue to work. Nested atomic() scopes must use savepoints and must not issue a second top-level BEGIN.
The generic transaction implementation and the APSW adapter in playhouse/apsw_ext.py must retain compatible lock-mode forwarding; do not replace either module with a new standalone script.
Run /app/integration_check.py and leave its JSON result at /app/output.json with schema_versiontbench.peewee-lock.v1, a checks object, and all checks true.
Work offline. Do not add dependencies or modify the integration checker.