Skip to content

Commit 2c32035

Browse files
committed
Define tmp directory ownership and restrict Codex artifact placement to final ZIP outputs only - PR_26146_007-tmp-directory-ownership-rules
1 parent a584a00 commit 2c32035

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

docs/dev/PROJECT_INSTRUCTIONS.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,33 @@ Before Codex returns any ZIP, Codex must:
264264
6. Place ZIP under `<project folder>/tmp/`.
265265
7. Never reuse a previous file handle or path.
266266

267+
## TMP DIRECTORY OWNERSHIP
268+
269+
`tmp/` is user-facing artifact output only.
270+
271+
Codex may place only final ZIP artifacts in `tmp/` unless explicitly instructed otherwise.
272+
273+
Codex must not use `tmp/` as:
274+
- scratch workspace
275+
- temp extraction directory
276+
- intermediate build output
277+
- report staging area
278+
- cache location
279+
280+
Reports remain under `docs/dev/reports`.
281+
282+
Runtime temp data must use proper temporary or system locations outside repo `tmp/`.
283+
284+
Every ZIP filename must remain unique.
285+
286+
`tmp/` should stay clean and human-readable.
287+
288+
Nested temporary directories inside `tmp/` are prohibited.
289+
290+
Loose files in `tmp/` are prohibited except approved final artifacts.
291+
292+
Generated review artifacts do not belong in `tmp/`.
293+
267294
## FAILURE HANDLING
268295

269296
If ZIP delivery fails more than once:

0 commit comments

Comments
 (0)