Repository navigation
v1.2.3 — hot-fix the v1.2.2 missing-fields bug
Hot-fix for v1.2.2: the live runtime's _read_mutation_check() was still returning the v1.2.1 four-field shape (stale_patches / imprecise_patches absent from gdocs_server_info), making v1.2.2's headline acceptance criterion non-verifiable from cloud chat.
Root cause
scripts/mutation_check.py's revert() used git checkout -- <file> to restore mutated sources. That works against a clean working tree but wipes uncommitted edits in any file that mutation_check also mutates. Three of the eight mutations target server.py. The v1.2.2 edit to _read_mutation_check was applied locally, then mutation_check.py ran, mutated server.py for test_trash_file_id, and reverted via git checkout — silently restoring server.py to HEAD and wiping the new return shape. The commit captured the wiped state; CI built that; live runtime served the old shape.
Fix
_read_mutation_check()now actually returnsstale_patches+imprecise_patches(v1.2.2 intent, restored).apply_mutation()returns the original file bytes on success (wasbool).revert()writes those bytes back from memory — never touches git. Uncommitted edits in mutated source files now survivemutation_check.pyruns. Workflow-safe against unclean working trees.
Tests
Two new tests:
test_revert_restores_original_bytes_not_via_gittest_revert_is_noop_when_original_is_none
19/19 unit tests pass. Local mutation_check.py: 8/8 caught cleanly.