Report an unreachable training host and offer a remote-training service #129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/remote-training-service"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this PR does
remote-trainnow tells a training host it can't reach (or log in to) apart from one that's still being prepared. When ssh can't connect or log in, the card's Training line says "can't reach or log in to the host (last reached 3h ago)", the Plugins note names the host, the Host stack line keeps its last known state, and the plugin stops retrying host prep, pulls and launches until the host answers. Before, a desktop that was off showed as "installing" and each pass spent about a minute retrying.It also keeps the last contact and the last model across daemon restarts (
<agent_dir>/.remote-staging/remote-status.json), so "Last model pulled" no longer resets to "never", and it offers aremote-trainingservice that other plugins can read: whether remote training is configured, the host state, the host's training-software state, the last contact, the last model and the running algorithms. The service never carries the host name, user, path, port or key path.The
algorithmshelp now says the agent's own algorithm is always trained, first, even when the list leaves it out (true since 1.0.11), and the on-device guide no longer says remote models are adopted when "fresher" (they win the same contest as on-device ones).Checklist
make lint.make test: 21 newremote-traintests (50 in all). Locally,test_gps_serial_reader_recovers_from_a_stalled_linkfails andtest_main_ignores_sighupends the run early on this host, both onmaintoo; CI runs them.desk/me//wplaceholders.remote-trainstill declaresnetworkand ships disabled.docs/developer/remote-training.md(the unreachable state, the status file, a section on the service),docs/developer/plugin-development.md(a table of the shipped services),docs/user-guide/remote-training.md,GUIDE_MD,pull-agent-diagnostics.sh(prints the status file),CLAUDE.md.Release impact
Notes for review
_SSH_FAILEDkeeps it that way)._stack_ready()now returnsNonefor "couldn't reach the host"; the existing tests'True/Falsestubs keep their meaning._remote()keeps its(ok, output)contract;_remote_rc()adds the exit status and records the contact.host-models.json, which the plugin and the diagnostics script read as one record per algorithm._init_state(), whichon_loadedand the test helper both call, so the two can't drift.censusplugin (planned) will be the first reader of the service.🤖 Generated with Claude Code