Commit e9dfeba
redo_stress_test: add --workdir; warn when a cwd isn't remapped (overwrite hazard)
A manifest records each command's `# cwd=` (the original run dir). redo remaps it
along with the args, but if the recorded cwd prefix isn't covered by --remap (easy
to get wrong -- the manifest's cwd may differ from the dir you think you're
replaying), the command silently runs in the ORIGINAL run dir, overwriting its
boards and breaking the chain into a fresh dir (the next step can't find the
intermediate it expects -> degenerate replay).
--workdir DIR forces every command into one directory regardless of the recorded
cwd, so relative outputs chain correctly into a fresh dir -- the foolproof way to
replay. Also warn when --remap is given but a command's cwd isn't covered by it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent d7a9bc5 commit e9dfeba
1 file changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
72 | 80 | | |
73 | 81 | | |
74 | 82 | | |
| |||
88 | 96 | | |
89 | 97 | | |
90 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
91 | 102 | | |
92 | 103 | | |
93 | 104 | | |
| |||
102 | 113 | | |
103 | 114 | | |
104 | 115 | | |
105 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
106 | 126 | | |
107 | 127 | | |
108 | 128 | | |
| |||
0 commit comments