{ "python": "3.14.4 (main, Apr 7 2026, 13:13:20) [Clang 21.0.0 (clang-2100.0.123.102)]", "sqlite": "3.51.3", "platform": "macOS-27.0.1-arm64-arm-64bit-Mach-O", "source": "examples/system-design/labs/15/sync.py", "sha256": "9bbe41833f5c83eab8fe3273f65c33a47e174ac4bfbe66cf22fd0cf062850ba3" } $ /opt/homebrew/opt/python@3.14/bin/python3.14 examples/system-design/labs/15/sync.py {"file_sha256": "81d462c2e687ee9617a4b59178215e04726b0175a794b0fec64f88856ec07cfa", "bytes": 8192, "unique_chunks": 8, "extra_uploads_after_resume": 7, "corruption_detected": true, "current_version": 2, "conflict_device": "B", "recovered_edits": ["edit A", "edit B"]} PASS: resume preserves bytes; corrupt chunk rejected; concurrent base retains both edits EXIT_CODE=0 $ /opt/homebrew/opt/python@3.14/bin/python3.14 examples/system-design/labs/15/sync.py --unsafe {"file_sha256": "81d462c2e687ee9617a4b59178215e04726b0175a794b0fec64f88856ec07cfa", "bytes": 8192, "unique_chunks": 8, "extra_uploads_after_resume": 7, "corruption_detected": true, "current_version": 2, "conflict_device": "B", "recovered_edits": ["edit A", "edit B"]} EXPECTED_REJECTION: last-writer-wins would discard edit A without conflict copy EXIT_CODE=2