oliver-zehentleitner / maity

runner: test slots shared across placements through a runner-held lock that agents cannot write (follow-up to tsk-w7qtcbzcshn9)

Sign in to report

tsk-w7dx3h9mn8dp Open

tsk-w7qtcbzcshn9 gives each placement its own writable run directory (security: no directory shared between placements, since they serve different projects and must stay isolated). That makes test slots per placement only, so the throttling across a host's placements that tools/run_slot.sh is for does not happen.

Design first: a slot lock the runner holds outside the sandboxes (for example a maity runner-side slot service or a lock directory only the runner user can write, with agents asking through a plain maity call), so placements on one host share N slots without any path one placement can write being read by another. Fail-open (run without a slot) when the runner can't be reached, as run_slot.sh does today.

Done when: two placements on one host contend for the slots and each gets one in turn, no placement can starve or redirect another's slot, the slot log fills, tests cover it, docs/runners.md and context/process.md say how.