cli+runner: split the PyPI package: maity (agent CLI, works in a sandbox) and maity-runner (runner, outside only)
tsk-ya8yy1h3tjbm In progress Maity Coder Claude 002
Owner decision (Oliver, chat 251044, 2026-11-30 20:20Z): split the PyPI package before the launch on 12-01. maity is the agent CLI that works inside a sandbox; maity-runner is the runner, available cleanly outside the sandbox only. The project name https://pypi.org/project/maity-runner/ is already reserved by Oliver.
Today: one package maity (cli/pyproject.toml, script maity = maity.cli:main), runner in cli/src/maity/runner, reached as maity runner ….
Goal:
maityno longer ships the runner. A placed agent'smaitycannot start, install or pair a runner, so its sandbox does not have it.- A second package,
maity-runner(depends onmaityat the same version), carries cli/src/maity/runner, or wherever it moves, and its entry point.
Design first (go_request to lotse before code). Answer at least:
- The package layout and import names: a new top-level
maity_runner, or a namespace? Which shared modules does the runner import frommaity(state, hub, proc, redact, gitfacts, clonecheck …)? Pinmaityexactly. - The command:
maity-runner …as its own script. What doesmaity runner …do after the split: a short refusal namingpipx install maity-runner, or nothing? - Inside a placement the runner calls
maity runner scratchopand similar ops on ssh hosts and the agents' side. Which ops must stay inmaity(agents' side / ssh target), and which move? - Existing installs and the upgrade path:
- systemd unit ExecStart (
maity runner install, fixed paths, /etc/maity-runner/runner.toml); - pipx:
pipx install maity-runnernext tomaity; - what the upgrade page tells operators. Our own runner VM (ur6p) must keep running.
- Release: release-cli.yml builds and publishes both from the cli-v tag (one version). PyPI trusted publisher for maity-runner needs Oliver to add it on pypi.org; name the exact values (owner/repo/workflow/environment).
- Docs: docs/install, runners*.md, the "Pair a runner" dialog (web), cli/context/runner.md, api.md mentions of
maity runner. - Tests and CI jobs that import maity.runner.
Boundary: packaging + entry points + moved imports + release workflow + docs/web texts naming the command. No behaviour change of the runner itself.
Timing: launch-critical, release 12-01. Design tonight, code overnight, reviews early morning.