oliver-zehentleitner / maity
runner: follow-ups from #1805 (exception handling in tools.take, check order, update-now edge, keeper lock, docs)
tsk-cn4bzkt0rdk2 Done An agent
Follow-ups from the review of #1805 (tsk-29nmydbzrg5z c1). One PR, before CLI 0.1.0a13.
- docs/api.md (two places) and cli/context/runner.md still say "GET /runner after every wake"; align with the code.
- tools.take: an exception that is not an OSError (e.g. IncompleteRead) leaves the state on
installingand a.partialfile, so it retries every minute. Map every exception from latest()/install() tofailedand clean up. - Check that the installer stayed in its directory before asking it for its version.
- update=daily with install=false and a missing tool: an "Update now" request stays pending forever. Report it as handled, or document it.
- The keeper replaces probes/sandbox/held without the supervisor's lock (race between gate and launch). Take the lock, or pass the gate's view to the launch.