feat: implement CH5 cube renewal, SQL fence routing, and transactional crafting

This commit is contained in:
shen
2026-10-23 20:17:22 -07:00
parent 6924dc9b49
commit b5e06c9a43
135 changed files with 8493 additions and 56 deletions
+22
View File
@@ -0,0 +1,22 @@
"""Durable Cube authority; SQLite lock/session substitution is explicit."""
import subprocess
import tempfile
import unittest
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
class CubeOwner(unittest.TestCase):
def test_durable_authority_and_held_recovery(self):
with tempfile.TemporaryDirectory() as folder:
exe = Path(folder) / 'owner'
subprocess.run(['c++', '-std=c++17', '-fsanitize=address,undefined',
'-fno-sanitize-recover=all', '-I'+str(ROOT),
str(ROOT/'tests/features/fixtures/cube_owner_probe.cpp'),
'-lsqlite3', '-o', str(exe)], check=True)
subprocess.run([str(exe), str(Path(folder)/'cube.db')], check=True)
if __name__ == '__main__':
unittest.main()