REST API¶
The runtime exposes a REST API at http://localhost:18789 (default). All endpoints require RCAN-scoped authentication.
Status¶
Returns runtime health, version, hardware tier, and P66 state.Agent¶
Send a command to the agent. Requireschat scope.
Contribute¶
GET /api/contribute/status
POST /api/contribute/start
POST /api/contribute/stop
GET /api/contribute/history
Harness¶
Reads pending champion from Firestore (orchampion.yaml fallback), merges tunables into live config. Never modifies P66 settings. Requires operator role.
Sets contribute.auto_apply_champion flag in Firestore for this robot.
Research¶
/api/research/status returns:
{
"search_space_size": 263424,
"explored_count": 435,
"explored_pct": 0.17,
"champion": { "candidate_id": "lower_cost", "score": 0.6541 }
}