oliver-zehentleitner / maity
[runner-stability] runner: the hub counts 0 running placements while the runner holds two running (oliver-pc01-l)
tsk-yfc9n6kmvs52 Done An agent
Found by ops 3yc2 on 2026-11-18 11:54Z during the preflight for the runner upgrade a14 → a15. The hub lists 0/10 running for runner oliver-pc01-l (rnr-ybdpez66sjt3). The runner's local status shows plc-yfgeed5ds29p (maity-review-agy-003, instance 6mn6, actively working) and plc-6ee0m3w2nc1q (maity-review-agy-004, offline in the hub) as desired running / state running, with live tmux sessions.
To clarify: does the hub's count leave out running placements (which states count as running, and is GET …/runners computing it from stale rows?), or does the runner keep sessions the hub no longer wants (missed desired: stopped, adoption after restart)? Either way, hub and runner must agree; that is the basis for 24/7 runner operation (team memory mem-56mecrb1ezn2).
Done when: the cause is reproduced (a test that is red without the fix), the count and the state agree, and a changelog fragment is in. Ops adds the local status output as a note.
Notes
Mr. Robot · Nov 18, 2026, 11:55 UTC
Local view on oliver-pc01-l (rnr-ybdpez66sjt3), 2026-11-18T11:55:23Z, CLI 0.1.0a14, read-only. The hub (
maity runners) says 0/10 running for this runner at the same time.runner rnr-ybdpez66sjt3 on https://maity.team service running, connected (as of 2026-11-18T11:49:49Z) placement plc-yfgeed5ds29p oliver-zehentleitner/maity generation 2 desired running state running attach tmux -S ~/.local/state/maity-runner/tmux.sock attach -t maity_prj-t7t5yz9tcdd9_maity-review-agy-003 placement plc-6ee0m3w2nc1q oliver-zehentleitner/maity generation 1 desired running state running attach tmux -S ~/.local/state/maity-runner/tmux.sock attach -t maity_prj-t7t5yz9tcdd9_maity-review-agy-004 tmux sessions: maity_prj-t7t5yz9tcdd9_maity-review-agy-003 created=Tue Nov 17 18:26:28 2026 maity_prj-t7t5yz9tcdd9_maity-review-agy-004 created=Tue Nov 17 16:16:03 2026 service journal, these placements (last lines): plc-6ee0m3w2nc1q: starting (generation 1) plc-6ee0m3w2nc1q: running sandbox_unavailable (generation 1) plc-yfgeed5ds29p: exited hung idle (generation 1) plc-yfgeed5ds29p: starting (generation 1, restart 1) plc-yfgeed5ds29p: running sandbox_unavailable (generation 1, restart 1) plc-yfgeed5ds29p: stopping (generation 2) plc-yfgeed5ds29p: starting (generation 2) plc-yfgeed5ds29p: running sandbox_unavailable (generation 2)Hub runner list reports 'running' only as the count; the runner reports both as running sandbox_unavailable. Whether the hub's count excludes sandbox_unavailable, or the runner's state is stale, is not established.
Mr. Robot · Nov 18, 2026, 12:12 UTC
Same on vm-aigents01 (rnr-7ssk82d0pbhb), from Oliver's output after the a15 restart at ~12:10Z: 8 placements desired running / state running (plc-8naqv013skxx, plc-kn2d5ns922c0, plc-z5prwxbt6nqx, plc-7g7wx5a38hry, plc-yj1j6h99petv and 3 in oliver-zehentleitner/keepthewhy), while the hub reported 0/10 running for that runner shortly before. So the hub's running count is off on both runners, not only where agents run sandbox_unavailable (the claude-code ones run sandboxed).
Mr. Robot · Nov 18, 2026, 12:12 UTC
New warning in maity 0.1.0a15's runner check, on both runners: 'repositories.github.com/<repo>: pull_requests is not given to codex: its maity runs inside its sandbox, and the runner sets up maity gh only for a maity outside it'. It fires for keep-the-why on oliver-pc01-l, and for maity and keep-the-why on vm-aigents01. Informational: runner.toml grants pull_requests = true for these repos, but a codex agent cannot open PRs through maity gh.
An agent · Nov 18, 2026, 12:34 UTC
Korrektur zur Ursache (ur6p, nach Analyse). Die Fehlzählung ist RUNNER-seitig, nicht im Hub-Count — der Hub reicht die vom Runner advertisete
capabilities.runningunverändert durch (hub/src/maity_hub/routes/runner.py, runners.py). Ursache im Runner (cli/): das advertiseterunningbleibt hart auf 0 (capabilities.build; serve aktualisiert nuradvertised["tools"]),serve.hello()schickt den veralteten Dict bei jedem Reconnect erneut → Hub-Reset auf 0;supervisor._advertiseist änderungs-gated und schreibt den Count nicht inself.capabilitieszurück → nach dem Reconnect kein PATCH, bleibt 0. Es ist KEINE a14→a15-Regression, sondern ein latenter Bug, den die Rollout-Reconnects freigelegt haben (diff a14..a15 berührt die count/hello/advertise-Pfade nicht). Fix + Test liegen daher in cli/, nicht hub/. Roter Test: cli/tests/test_supervisor.py (failt auf main).