Skip to content

v1.2.3 — hot-fix the v1.2.2 missing-fields bug

Choose a tag to compare

@Sundeepg98 Sundeepg98 released this 19 May 04:16
· 246 commits to main since this release

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 returns stale_patches + imprecise_patches (v1.2.2 intent, restored).
  • apply_mutation() returns the original file bytes on success (was bool). revert() writes those bytes back from memory — never touches git. Uncommitted edits in mutated source files now survive mutation_check.py runs. Workflow-safe against unclean working trees.

Tests

Two new tests:

  • test_revert_restores_original_bytes_not_via_git
  • test_revert_is_noop_when_original_is_none

19/19 unit tests pass. Local mutation_check.py: 8/8 caught cleanly.