From 97b2a9506242b2827483026238a392a240605621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Thu, 15 Oct 2026 10:22:18 +0200 Subject: [PATCH] fix bmad setup: create staging dirs without mode so _bmad is readable on Windows mkdir(mode=0o700) yields an owner-only ACL on Windows with Python 3.13+, leaving _bmad unreadable after the rename. Use the default mode instead. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01Sk72AxLwQnYttF6VFSxQLt --- .agents/skills/bmad/scripts/render_skill.py | 2 +- .agents/skills/bmad/scripts/setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.agents/skills/bmad/scripts/render_skill.py b/.agents/skills/bmad/scripts/render_skill.py index 9ef0aa9..1f7882c 100644 --- a/.agents/skills/bmad/scripts/render_skill.py +++ b/.agents/skills/bmad/scripts/render_skill.py @@ -552,7 +552,7 @@ def _publish(destination: Path, outputs: dict[str, bytes], manifest: dict[str, A # for a name collision and tries the next name, some two billion times. The render # would hang in a folder it cannot write to instead of halting. staging = destination.parent / f".staging-{os.urandom(8).hex()}" - staging.mkdir(mode=0o700) + staging.mkdir() try: for name, content in outputs.items(): path = staging / name diff --git a/.agents/skills/bmad/scripts/setup.py b/.agents/skills/bmad/scripts/setup.py index e08a3bd..1e0a83b 100644 --- a/.agents/skills/bmad/scripts/setup.py +++ b/.agents/skills/bmad/scripts/setup.py @@ -2238,7 +2238,7 @@ def materialize_bmad( # for a name collision and tries the next name, some two billion times. Setup # would hang in a folder it cannot write to instead of reporting the failure. staging = project_root / f"_bmad.setup-{os.urandom(8).hex()}" - staging.mkdir(mode=0o700) + staging.mkdir() try: # Seed staging so custom/, extra *.user.toml, and leftovers # survive replace_dir.