mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-03 22:12:01 +09:00
pre-bash took the command from `prompt`, which falls back to process.env.PROMPT. cmd.exe always sets PROMPT=$P$G, so under a cmd environment an empty or command-less payload validated "$p$g" and exited 0, defeating the #4743 fail-closed gate. The classic helper and the inline fallback now read the command only from the hook payload. The classic helpers, the inline fallback and the ruflo-mods guard also block wiping or formatting a whole Windows drive: format <drive>, rd/rmdir /s <drive>, and Remove-Item (or an alias) with -Recurse on a drive root (C:\, C:/, C:, "C:\", C:\*). Paths below the root and Format-Table pass. The DANGEROUS_COMMANDS list is unchanged, so ADR-404 list parity holds. helpers.manifest.json needs re-signing with the release key. Fixes #5166 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>