Engine Architecture
pyfedappwrap runs inside the Tool container. The Learning API owns the run, steps, and attempts; Orch API manages Docker.
For managed executions:
- The launcher injects
APP_ID(attempt ID),APP_API_KEY,WS_URL, andHTTP_URL. - The engine connects to
/execution/APP/{APP_ID}/appwithX-API-Keyand receives parameters, inputs, and optional federation config. - Tool code runs through the registered app entrypoint. The engine sends progress, logs, and metrics over the socket; files use HTTP uploads or the attempt's volume.
- A finish message ends the attempt. The backend keeps required outputs, revokes its key, stops the container, and advances the step.
For federated Tools, model updates use the Controller and Relay; the attempt socket carries lifecycle messages. See Federated learning flow.
Development engines use /testembed/ with the registered Tool ID as APP_ID. Authenticate to bootstrap an APP_API_KEY, or use the key provided by the Platform.