"""Candidate Cube transaction engine; real SQL with explicit SQLite dialect shim. This does not instantiate a live game actor or prove online cache fencing. """ import subprocess import tempfile import unittest from pathlib import Path ROOT=Path(__file__).resolve().parents[2] class CubeBatchTransactions(unittest.TestCase): def test_persistence_atomic_costs_reward_quantity_and_process_crash_recovery(self): with tempfile.TemporaryDirectory() as tmp: exe=Path(tmp)/'cube-batch' subprocess.run(['c++','-std=c++17','-fsanitize=address,undefined', '-fno-sanitize-recover=all','-I'+str(ROOT), str(ROOT/'tests/features/fixtures/cube_batch_probe.cpp'), '-lsqlite3','-o',str(exe)],check=True) subprocess.run([str(exe),str(Path(tmp)/'cube.db')],check=True) if __name__=='__main__':unittest.main()