You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Sad Catapella B8][Data safety] CLI --log opens arbitrary files before validating experiment and output paths #99
CLI tests use only a safe tmp_path/run.log; no experiment/manifest collision test.
Reproduction outline
morphobricks-preprocessing run EXP --axes YX --log EXP/notes.txt creates a new file inside the experiment before processing; --log EXP/image.tif appends logging messages to an existing microscopy input (potential file corruption); --log OUTPUT/experiment_design.csv can append text to a published scientific artifact. Even an invalid run can produce these writes.
Impact / fix
Contradicts read-only input guarantee, can change discovered inputs and corrupt source or generated records. Before constructing any FileHandler, resolve and validate --log target against the experiment root, input file identities, reserved output artifacts, and output staging paths (including symlink containment policy from #81). Prefer requiring a dedicated logs directory outside the data tree; document any explicit override. Keep log path validation before any write and report actionable CLI errors. Add negative tests for input and output collisions and a positive external path. Numba irrelevant.
Activity
Check --log before opening it, and open it after the arguments (#99)
Document the link and log rules (#81, #99): contract, user guide, pla…
Review #128: refuse a --log that is the design file given with --desi…
Merge origin/main (#128) into claude/pp-12-staging-resume