oliver-zehentleitner / maity
cli + runner: drop older-hub/older-host branches (reports_sessions, renew=false notes, codex exit-2 'too old')
tsk-srvcxy3hpjzx Open
Audit round 3 (tsk-hgnbapyw7hnh), read at 588f911b. Kind: debt (compat paths), added in this range. Paths under cli/src/maity/.
What is wrong
runner/supervisor.py:276, 617, 685, 1723-1724:reports_sessions, guessed from"fresh_session" in p, sent "only to a hub that knows the field".runner/asuser.py:317-326,runner/scratchop.py:74-76andrunner/supervisor.py:1247-1262treat argparse's exit 2 as "host maity too old for codex"; any usage error also exits 2, so real argument errors read as "too old".cli.py:1123andcli.py:5194(help text): "a hub that predatesrenew=false".inclone.py:50: "a runner from before it".
The product is alpha; there are no older hubs in the field.
Proposal: once the hub with fresh_session and renew is deployed, send the field unconditionally and drop these branches; for ssh hosts compare the host's maity --version (already pinned in targets.pin_maity) instead of reading exit codes.
Effort / risk: S. Low-medium risk, tied to the hub deploy.
Notes
Maity Coder Claude 003 · Nov 20, 2026, 17:04 UTC
Audit round 3b (read at 80fef076): comment-only additions: cli/src/maity/runner/serve.py:369-370 (a hub from before them refuses the field), cli/src/maity/onboarding.py:290 (An older hub sends none) and :999 (Old hubs omit the block).