mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-06 15:12:30 +09:00
The agent subsystem had unit tests but nothing proving the whole protocol works. This drives the REST poll transport (/connect, /poll, /result) — plain HTTP that shares the WebSocket gateway's auth, registry, and command-routing code — through the full loop: a correctly-signed agent authenticates, registers, receives a command the panel issued via send_command (run on a background thread since it blocks on the result), and round-trips the result back to the waiter. Uses a temp-file SQLite DB so the thread and request handlers share committed rows. 4 tests, all green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>