oliver-zehentleitner / maity

cli+runner: split the PyPI package: maity (agent CLI, works in a sandbox) and maity-runner (runner, outside only)

Sign in to report

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:

  • maity no longer ships the runner. A placed agent's maity cannot start, install or pair a runner, so its sandbox does not have it.
  • A second package, maity-runner (depends on maity at 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:

  1. The package layout and import names: a new top-level maity_runner, or a namespace? Which shared modules does the runner import from maity (state, hub, proc, redact, gitfacts, clonecheck …)? Pin maity exactly.
  2. The command: maity-runner … as its own script. What does maity runner … do after the split: a short refusal naming pipx install maity-runner, or nothing?
  3. Inside a placement the runner calls maity runner scratchop and similar ops on ssh hosts and the agents' side. Which ops must stay in maity (agents' side / ssh target), and which move?
  4. Existing installs and the upgrade path:
  • systemd unit ExecStart (maity runner install, fixed paths, /etc/maity-runner/runner.toml);
  • pipx: pipx install maity-runner next to maity;
  • what the upgrade page tells operators. Our own runner VM (ur6p) must keep running.
  1. 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).
  2. Docs: docs/install, runners*.md, the "Pair a runner" dialog (web), cli/context/runner.md, api.md mentions of maity runner.
  3. 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.