diff --git a/bin/autohands b/bin/autohands old mode 100644 new mode 100755 diff --git a/tests/test_autohands_registry.py b/tests/test_autohands_registry.py index bf3711ab..843b664d 100644 --- a/tests/test_autohands_registry.py +++ b/tests/test_autohands_registry.py @@ -112,3 +112,23 @@ def test_subcommands_and_internal_modules_are_disjoint(): f"names declared as both a subcommand and internal: {both}. " "A module is one or the other." ) + + +def test_dispatcher_is_committed_executable(): + """The Brain runs bin/autohands directly, so git must record it as 100755. + + bfb4887 (2026-10-16) silently flipped it to 100644 from a checkout with + core.fileMode=false, and the release door then failed with "autohands not + found" until a local chmod. Read the index mode, not the disk mode, since + the disk mode is what core.fileMode=false hides. + """ + import subprocess + + out = subprocess.run( + ["git", "ls-files", "-s", "bin/autohands"], + cwd=REPO, + capture_output=True, + text=True, + check=True, + ).stdout + assert out.startswith("100755 "), f"bin/autohands is not committed executable: {out!r}"