The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
test(gateguard): cover dd with an intervening option before if=
Nguyen Thanh Datc88b3f879ab0
diff --git a/tests/hooks/gateguard-fact-force.test.js b/tests/hooks/gateguard-fact-force.test.jsindex f83677b0d..323981096 100644--- a/tests/hooks/gateguard-fact-force.test.js+++ b/tests/hooks/gateguard-fact-force.test.js@@ -270,8 +270,10 @@ function runTests() {'dd if="/dev/zero" of=/dev/sda',// Wrapped invocations must still resolve to the dd command word.'sudo dd if=/dev/zero of=/dev/sda',- // dd operands are order-free; a text pattern anchored on `dd if=` missed this.- 'dd of=/dev/sda if=/dev/zero'+ // dd operands are order-free; a text pattern anchored on `dd if=` missed+ // both the reversed and the intervening-option spellings.+ 'dd of=/dev/sda if=/dev/zero',+ 'dd bs=1M if=/dev/zero of=/dev/sda']) {clearState();if (