1. Juniper Mist Documentation, "View Switch Details": In the section describing the switch topology view, the documentation states, "Mist automatically detects the uplink ports on your switches by using heuristics such as Link Layer Discovery Protocol (LLDP), Spanning Tree Protocol (STP) information, and traffic patterns." This directly supports that STP role (C) and traffic volume (A) are used.
2. Juniper Mist, "Wired Assurance Feature Guide": This guide details the mechanisms for monitoring and managing wired networks. In the chapter on "Network Insights and Topology," it explains that the topology is constructed using data collected from the switches, including STP state and port statistics, to infer relationships between network devices. The port with the STP root role and/or the highest traffic utilization is identified as the uplink.