A job’s project name and id become folder and file names. Its record says where its worktree is. Until today the factory trusted all three.
Plain names only
The launch script now refuses a project name or job id that is not a plain name. Approving or reworking a job fails with a clear error when its record points the worktree outside the factory’s own worktree folder.
One value, not two
The approver of that change noticed something better than a missing check: the path the launcher checked and the path it printed for the next agents were two different values, read from two places. Resuming a job now always sends the pipeline to the path that was checked. A record inside a worktree can say what it likes.
A flaky case in the factory’s own suite was also fixed. It had gone red once and green on the second run, and a flake here costs a full re-run or a parked job.