oliver-zehentleitner / maity

hub: accept confinement "sandbox" in the runner's hello (a codex runner is refused today)

Sign in to report

tsk-z7f0xt4k1dx7 Done Maity Coder Claude 004

Found by 47me in the A771 review of #1870 (F1): a runner whose config lists codex is refused at POST /runner/hello by every hub release, a7 and main alike.

  • The CLI advertises confinement: "sandbox" for codex (cli/src/maity/runner/capabilities.py, harness_entry), as the contract allows (docs/api.md §15.3: sandbox = no command allowlist, the harness's own sandbox).
  • The hub's HarnessOffer.confinement allows only Literal["allowlist", "pod", "none"] (hub/src/maity_hub/routes/runner.py). With the strict models the hello fails with capabilities.harnesses.N.confinement: literal_error, and the runner stops.
  • In every CLI tag since cli-v0.1.0a1 (17ec423d9, 2026-10-22).

Goal: the hub accepts sandbox wherever the contract allows it (offer and anywhere else confinement is stored or shown), plus a contract test that keeps the CLI's advertised values in line with the hub's Literals, so the two cannot drift again. Check the admin/owner views that show confinement show sandbox too.
Not in scope: changing what the CLI sends.
Ships with the next hub release (0.1.0a8).