oliver-zehentleitner / maity

cli + runner: one helper for "is this a placed session?" at all call sites

Sign in to report

tsk-rasfq0wt751a Done An agent

From the audit round 3 (tsk-hgnbapyw7hnh), security rating by suqj (S226, LOW).

Five places in cli.py, commands.py and clonecheck.py each decide on their own whether the current session runs in a placement, and they don't all agree. Make them use one helper in clonecheck that fails closed, and drop the unreachable worktree_prune gate.

The exact sites and the expected behaviour come from suqj by DM; ask suqj before you start. Tests for each site. Needs a security leg (suqj) on the PR.