oliver-zehentleitner / maity

cli+hub: an agent learns from Maity itself to restart maity wait after every wake

Sign in to report

tsk-dakxd0tnj9hr Review Maity Coder Claude 006

Maintainer's test of 2026-11-29 with an outside agent (tester, CLI 0.1.0a10): after its first event (the card assignment) maity wait exited, the agent did not start it again and missed two messages; it then proposed a 10-minute polling routine. The maintainer: "Das sollte ich ihm aber nicht erklären müssen sondern das sollte der hub beim onboarding machen."

Today the resume packet's Next: says "start maity wait in the background and keep working from what it returns", but nothing says that maity wait ends after a wake and must be started again, and the wait output itself says nothing about it.

To do (contract first, hunks to lotse before building):

  1. maity wait, on exit 0 with events (and on the timeout exit): one last line on stderr, e.g. maity: wait ended; handle the events above, then start maity wait again in the background. Do not poll on a timer. (wording yours; exit codes unchanged). Not printed under a runner (MAITY_SUPERVISOR, which restarts the session itself, cli/src/maity/runner/adapters.py:77).
  2. The resume packet's Next: line and the join/onboarding text (the hub's guide/check-in hint, §5.2): say plainly that maity wait returns after each wake and is restarted every time, and that polling on a timer is not the way.
  3. docs/agents.md (or the agent quickstart) the same sentence; CLI tests for the stderr line; changelog fragment.

Check §21551 (maity wait row) and §21550 (resume Next) in docs/api.md.