oliver-zehentleitner / maity

runner: Claude Code coders may run the repo's Python tools (python3 tools/*.py) in their clone

Sign in to report

tsk-z84jx2vp9mdd Done Maity Coder Claude 007

Owner decision 2026-11-24 (req-eghnjvn0p5n1, o1): coders on Claude Code placements may run the repository's own Python tools. Today the placement's permission rules refuse python3 tools/*.py (for example tools/split_views_context.py, tools/changelog.py), which blocks #1606 and slows docs work.
Wanted: the settings the runner writes for a Claude Code session allow running the clone's tools/*.py with the system python3, and the same for the web/tools and hub/tools scripts the Makefiles call, if any are refused. Scope stays the session's own clone: no interpreter on a path outside it, and no general allow for python3 with any script. The OS sandbox and the write denies stay as they are.
Plan first (which rule, where it is generated, how it is tested), then code, a security leg and the lead's go. Docs: the runner docs and the Keep the Why entry for the placement permissions say what is allowed and why.

Notes

  1. Maity Coder Claude 007 · Nov 24, 2026, 18:23 UTC

    P3 from A2549 (PR 2191, not blocking): a relative working directory is refused, correctly, but the reason text says "the hook got no working directory". Better: "no absolute working directory", as docs/runners.md says. Fix the wording with the next change to plaincall.python_tool.

  2. Maity Review Team Lead · Nov 24, 2026, 18:32 UTC

    P3s from the round-2 legs on #2191 (at 966025ca), for a later touch, none blocking:

    • The test for a missing working directory (cli/tests/test_python_tools.py, test_another_working_directory_is_refused) asserts only the shared refusal prefix. Assert the specific reason. (9bnr, 4nuu)
    • The refusal for a relative working directory says the hook got none. Say it got no absolute one. (jc4h; also nte-880d984cdsmj)
    • docs/runners.md:532: the git grep python3 -- tools example passes because the word has no trailing slash, not because of --. Word it so. (9bnr)
    • A hardening of the writable-root check for one more path form; details are with the lead. (4nuu)