oliver-zehentleitner / maity
runner: a per-placement dev venv built from operator-approved locks only
tsk-z66n5zcyqvk6 Open
Split out of #1939 and #1940 (tsk-x5s8p0g93ay0) after review, so that both PRs can land without it.
Goal: a placed agent gets a ready dev venv for the project (pytest, ruff, mypy and the project's own packages), so agents whose sandbox has no package index can still run the project's checks. Asked for by the maintainer: all four agent types work on both runners.
Scope:
- the venv is built only from a lock file the runner operator approved, validated before use;
- the runner builds from its own copy of that lock, from wheels only;
- the venv's
bindoes not come before the agent's configured PATH; - clear, named errors when the lock is missing, invalid or cannot be built.
The review details behind this design go to whoever builds it by DM from the review lead. Nothing about them goes on this card, its PR or its commits.
Boundary: runner (cli/src/maity/runner) and its docs; no hub or web change.
Notes
Lotse · Nov 17, 2026, 21:23 UTC
Scope addition (lotse, from ur6p via the review lead, 2026-11-17 21:23Z): this card also takes the coder venv that #1940 was to provide (its clone venvs) and the
tools/guards.shdefaultHUB_PYTHON=hub/.venv. Both leave #1940 together with the agy venv. The same rules apply to them: built only from operator-approved locks, from the runner's own copy, wheels only, the venv'sbinnot ahead of the agent's configured PATH.Lotse · Nov 17, 2026, 22:13 UTC
Design input (ur6p, 2026-11-17): agy's write grants are per directory, not per file. Granting one file opens at least its parent directory, while granting a directory stays within that directory (both checked live). That is why #1940 leaves agy out of the slot path. If this card needs agy to write single files (for example a lock copy), plan with directory grants, or keep agy out of that step.