From e95dc62bf71f96aa8ce63d155675383dcb2092ab Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Fri, 23 Oct 2026 13:43:00 +0100 Subject: [PATCH] fix: restore executable bit on bin/autohands bfb4887 flipped bin/autohands from 100755 to 100644 (core.fileMode=false checkout), so the Brain release door failed with 'autohands not found' during the 2026.10.23.1 release. Restore the mode and add a test that reads the git index mode so it cannot silently flip again. Co-Authored-By: Claude Opus 5.5 --- bin/autohands | 0 tests/test_autohands_registry.py | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+) mode change 100644 => 100755 bin/autohands 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}"