// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Assign jobs to the least-loaded worker // Not compiled or tested in-world // Setup: Place in a spare owned prim. Set positive job DURATIONS, at most12. Owner touch runs a bounded local calculation. // Stop / restore: Disable/remove. No travel, publication, payments or external operations occur. // Notes: Input order affects the heuristic. This simulates scheduling only and does not delegate work. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Local planning demonstration. list DURATIONS=[3.0,7.0,2.0,5.0,4.0,1.0]; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(llGetListLength(DURATIONS)>12) { llOwnerSay("At most12 jobs."); return; } list loads=[0.0,0.0,0.0]; integer i; for(i=0;i