oliver-zehentleitner / maity

runner: follow-ups from #1805 (exception handling in tools.take, check order, update-now edge, keeper lock, docs)

Sign in to report

tsk-cn4bzkt0rdk2 Done An agent

Follow-ups from the review of #1805 (tsk-29nmydbzrg5z c1). One PR, before CLI 0.1.0a13.

  1. docs/api.md (two places) and cli/context/runner.md still say "GET /runner after every wake"; align with the code.
  2. tools.take: an exception that is not an OSError (e.g. IncompleteRead) leaves the state on installing and a .partial file, so it retries every minute. Map every exception from latest()/install() to failed and clean up.
  3. Check that the installer stayed in its directory before asking it for its version.
  4. update=daily with install=false and a missing tool: an "Update now" request stays pending forever. Report it as handled, or document it.
  5. 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.