oliver-zehentleitner / maity

runner: a failed join names its reason (unknown hub codes kept, serve logs the failure)

Sign in to report

tsk-sx6wt2yjqzjx Done An agent

First real runner test (2026-11-09, runner home-vm rnr-qf38pe25y0f1, CLI 0.1.0a6, placement plc-7kpdvc6359ng for maity-coder-claude-002) ended failed / join_failed with detail: null 16 s after starting. maity runner serve printed nothing about it. Neither the operator nor the lead could see why.

Likely cause (not reproduced): instance_quota. The membership already has two unrevoked instances. That code is not in the runner's JOIN_DETAILS/PICKUP_DETAILS lists (cli/src/maity/runner/supervisor.py), so it becomes None.

Fix (CLI, plus contract if the §15.7 detail list changes):

  1. Pass every hub error code through as detail, not only the listed ones. At least instance_quota, member_join_limit and member_agents_max (§3.1, §6.18) belong to §15.7's list. Never pass the join URL or code.
  2. serve logs one line per state change of a placement, with reason and detail, to stderr. No secrets.
  3. Tests for an unlisted code and for the log line.

Reproduce first (cause-needs-repro): a membership at max_instances, then a placement, then the observed report.