NeuralMimicry
Control surface matrix, authorisation flow, and API contract
Web UI Swagger OpenAPI JSON Signed out

Interface Matrix

NeuralMimicry ships four complementary surfaces: the browser control surface, this documentation shell, Swagger for executable API requests, and the native egui dashboard. The matrix below defines how those surfaces divide responsibility without drifting in language, branding, or runtime behaviour.

Design rule: every browser surface shares one auth/session shell and one runtime vocabulary. Web UI is operational, Docs is explanatory, Swagger is executable, and Native UI remains the deepest local surface.
Runtime Session
Auth Mode
Loading...
Session
Checking...
Default Orchestrator
Loading...
Function Matrix
Function Web UI Docs Swagger Native UI
Session and auth flow Operational Operational Operational Companion
Runtime target and cluster status Operational Context Context Operational
Network control lifecycle Operational Reference Try It Out Operational
Topology visualisation Operational Reference Reference Operational
Probes, EQ, scope, raster Operational Reference Reference Operational
Architecture and bio tuning Contextual Reference Request Tests Operational
Save, load, import, export Operational Reference API Tests Operational
Schema and endpoint discovery Companion Operational Operational Companion
Authorisation Flow
1. Call GET /api/auth/mode or use the session shell above to discover whether the server is running in none, local, or oidc mode.
2. In local mode, sign in with POST /api/login. In oidc mode, begin browser login with GET /auth/oidc/login.
3. Protected browser requests then use the same-origin nm_session cookie, which Swagger sends automatically, and must also satisfy the resolved service_access.aarnn grant.
4. Backend integrations may instead present a Customers-issued bearer token. POST /api/llm/mirror is designed for that service-account path.
curl -s http://localhost:8080/api/auth/mode
curl -s -X POST http://localhost:8080/api/login \
  -H 'content-type: application/json' \
  -d '{"username":"admin","password":"change-me"}' -i
curl -s http://localhost:8080/api/status --cookie "nm_session=<value>"
Service Access Tiers
request: service discovery, token views, and user configuration.
observe: runtime status, workspace detail, snapshots, activity, and export.
use: create/import workspaces and run non-destructive workspace actions such as start, repeat, save, and step.
control: destructive or supervisory actions such as workspace deletion, stop, reset, and new.
Endpoint Matrix
Method Path Access Purpose
GET/api/openapi.jsonNoMachine-readable OpenAPI schema.
GET/api/configNoBootstrap default orchestrator config.
GET/api/auth/modeNoAuth mode and local sign-up capability.
GET/api/meNoCurrent session/user identity.
POST/api/loginNoLocal username/password sign-in.
POST/api/signupNoCreate a local account when enabled.
POST/api/logoutSessionClear the active session.
GET/api/tokensAARNN requestRead token balance and linked commercial URLs.
GET/api/tokens/ledgerAARNN requestRead token ledger history.
GET/api/user/configAARNN requestRead per-user persisted browser UI state.
POST/api/user/configAARNN requestPersist browser UI state.
GET/api/runtime/statusAARNN observeRead workspace runtime status and autoscaler context.
GET/api/runtime/workspacesAARNN observeList the caller's workspaces.
POST/api/runtime/workspacesAARNN useCreate a new workspace.
GET/api/runtime/workspaces/{workspace_id}AARNN observeRead a workspace summary and runtime detail.
DELETE/api/runtime/workspaces/{workspace_id}AARNN controlDelete a workspace.
GET/api/runtime/workspaces/{workspace_id}/snapshotAARNN observeRead the latest saved workspace snapshot.
GET/api/runtime/workspaces/{workspace_id}/activityAARNN observeRead live workspace activity vectors.
POST/api/runtime/workspaces/{workspace_id}/controlAARNN use or controlRun workspace lifecycle actions. Destructive actions require control.
POST/api/runtime/workspaces/{workspace_id}/importAARNN useImport config or snapshot payloads into a workspace.
GET/api/runtime/workspaces/{workspace_id}/exportAARNN observeExport the active workspace to NeuroML, PyNN, NIR, ONNX, or TFLite.
GET/api/statusDisabled for authenticated sessionsCluster and network status snapshot.
GET/api/snapshotDisabled for authenticated sessionsFull network snapshot JSON.
GET/api/activityDisabled for authenticated sessionsLatest spike activity vectors.
POST/api/update_networkDisabled for authenticated sessionsApply config JSON or full snapshot JSON to a managed network.
POST/api/control_networkDisabled for authenticated sessionsStart, stop, repeat, reset, or create a new network.
POST/api/aer/injectDisabled for authenticated sessionsInject a single AER exchange or spike index frame.
POST/api/aer/streamDisabled for authenticated sessionsStream NDJSON AER frames over HTTP.
POST/api/llm/mirrorAARNN useMirror Gail exchanges into persisted AER stimuli and return an optional bootstrap candidate reply.
GET/api/exportDisabled for authenticated sessionsExport the active network to NeuroML, PyNN, NIR, ONNX, or TFLite.
GET/auth/oidc/loginNoStart OIDC browser login.
GET/auth/oidc/callbackNoOIDC callback route.
POST/auth/oidc/exchangeNoToken-to-session exchange.
Companion Surfaces
Web UI: remote target selection, cluster status, topology rendering, probes, browser save/load, and export.
Swagger: direct request execution using the same session cookie as the browser shell.
Native UI: richest local simulation surface for morphology, deep biology, GA search, and local import/export workflows.