You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: autoresearch JSON-RPC reference is stale (runTest/setDrivers/getState not bound; ping & testGpioConnection shapes wrong) #2520
agents/docs/hardware-autoresearch.md documents a JSON-RPC command surface that no longer matches the firmware in examples/AutoResearch/AutoResearchRemote.cpp. Agents/tools following the docs hit -32601 Method not found and -32602 argument count mismatch. Found while driving the ESP32-P4 board over RPC (refs #2510, #2518).
Concrete mismatches (docs → actual mRemote->bind(...))
Documented but NOT bound (do not exist):
runTest (docs call it the "NEW recommended" consolidated method) — actual: runSingleTest and runParallelTest
testGpioConnection — docs example passes 2 args ([1, 2]); actual handler expects 1.
help — expects 1 arg (docs imply none).
Bound but undocumented:status, debugTest, runSingleTest, setDebug, testGpioConnection, getPins, setTxPin, setRxPin, setPins, findConnectedPins, help, testSimd, testSimdBenchmark, testAsync, plus net/OTA/BLE (startNetServer, runNetLoopback, startOta, startBle, bleStatus, …) and the testCoroutine* suite.
The Python examples in the same doc (ci/autoresearch_agent.pyconfigure(TestConfig) / run_test() / get_state()) should be checked against the same source of truth — several map to methods that aren't bound.
Suggested fix
Regenerate the "JSON-RPC Commands" section of agents/docs/hardware-autoresearch.md from the actual bind("...") registrations (or from the device's help manifest), and fix the ping/testGpioConnection/help signatures.
Reconcile ci/autoresearch_agent.py with the bound methods (or add the missing handlers if the agent is the intended API).
Add a lightweight CI/host check that diffs the documented method names against the bind(...) list (or the help manifest) so the doc can't drift again.
Activity
docs(autoresearch): rewrite JSON-RPC reference to match bound methods (…