Moving services from priority 1 to 2 changes which services stay unassigned, even when all other services move down by one too. Below 1, only the order seems to count.
Test specs: 2 vehicles, 20 services, setup so not all of them fit, no time windows, no relations. Half of the services are high priority, the other half low. Only the priority values change between requests:
High / low priority
Unassigned
High-priority unassigned
Low-priority unassigned
Distance
1 / 2
11
3
8
126.5 km
1 / 3
11
3
8
126.5 km
2 / 3
9
5
4
140.6 km
3 / 4
9
5
4
140.6 km
When every service fits, 1 / 2 and 2 / 3 return the same routes.
The docs only say 1 is the highest and 10 the lowest priority, with 2 as the default, and jsprit scales every priority the same way (11 - priority). Is priority 1, the only level above the default, weighted differently in the API? If so, how?
Yes, priority 1 is special, and your measurements show it. Priority 1 marks a job that should be served whatever it costs: the solver will leave other jobs out before it leaves a priority-1 job out. Priorities 2 to 10 express a soft ranking among the remaining jobs. There the gap between neighbouring levels is small by design, so a job of lower priority can still win if it is much cheaper to include, and 2/3 behaves almost the same as 3/4. That is why 1/2 and 1/3 give identical results in your test, and so do 2/3 and 3/4. Priorities only come into play when not every job fits; with everything assigned there is no penalty and the routes are the same.
Note that forcing the priority-1 jobs onto the routes can reduce the total number of served jobs: if those jobs lie far apart, the time spent reaching them is no longer available for cheaper jobs in between. That is the intended trade-off of a “must serve” level.