@@ -33,11 +33,13 @@ Do not:
3333- chase speculative improvements
3434
3535## ZIP Output Rule
36- Codex should always package code/output ZIP files under:
36+ Codex must package code/output ZIP files under:
3737- ` <project folder>/tmp/ `
3838
3939Codex must not stage or commit ZIP files from ` <project folder>/tmp/ ` .
4040
41+ A BUILD task is not complete until the required ZIP exists at the exact requested path.
42+
4143## Scope Rule
4244- one PR purpose only
4345- no unrelated edits
@@ -78,7 +80,28 @@ Codex must report:
7880- whether engine-core was untouched if expected
7981- the ZIP output path under ` <project folder>/tmp/ `
8082
81-
83+ ## Windows Command Rule
84+ On Windows machines:
85+ - prefer Node.js or Python for file operations, directory normalization, renames, and packaging
86+ - do not use PowerShell string interpolation for path construction
87+ - do not use quoted variable interpolation such as ` "$var/path" ` , ` "$base\$child" ` , ` "${var}/path" ` , or nested interpolation for rename-heavy tasks
88+ - use ` path.join(...) ` / ` path.resolve(...) ` in Node.js or ` pathlib.Path ` / ` os.path.join(...) ` in Python
89+ - use PowerShell only when the BUILD doc explicitly requires it or when no safer runtime is available
90+
91+ ## PowerShell Safety Rules
92+ If PowerShell is required:
93+ - do not build paths with string interpolation
94+ - use ` Join-Path ` or ` [System.IO.Path]::Combine(...) `
95+ - stop immediately on parse errors
96+ - do not silently retry with rewritten commands
97+ - report the exact failing command shape and the safer replacement
98+
99+ ## Execution Output Rule
100+ Every BUILD execution command must state:
101+ - exact target files or directories
102+ - exact validation to run
103+ - exact ZIP output path under ` <project folder>/tmp/ `
104+ - exact failure conditions
82105
83106## 🚫 TESTABILITY GATE (NEW — REQUIRED)
84107
@@ -102,4 +125,3 @@ DO NOT EXECUTE:
102125Instead:
103126- Expand the BUILD scope to a vertical slice
104127- Or request a corrected BUILD PR with sufficient scope
105-
0 commit comments