Define CMUX execution roles and workload capability classes
Summary
Define the CMUX-owned fleet execution-role model on top of the merged #1056 enrollment path.
- keep a small closed role vocabulary and put specialization in closed operation/capability classes;
- require exact current role-canary evidence before eligibility, bound to the SHA-256 of the #1056 acceptance receipt;
- keep Apple toolchain canary in the acceptance lifecycle instead of ordinary placement;
- model reviewed symbolic
small|medium|large|exclusiveresource profiles; - back admitted profiles with #760-style capacity receipts: validated completions, p50/p90, CPU/memory pressure, swap start/peak/end bytes, thermal behavior, and unfinished work;
- reject capacity promotion when CPU/memory evidence is unknown/critical, and reject fresh local admission on unknown/critical CPU/memory/swap/thermal state;
- derive a closed scarce-slot vocabulary locally from semantic operations;
- model shared Mac native-heavy capacity separately from compile/test-specific slots, supporting measured policies such as 1 compile + 1 test, 2 app-host shards, and a one-lane compile ceiling;
- model Linux medium concurrency independently, including a measured four-job policy and fifth-job refusal;
- consume typed #1057 physical lease observations for collisions, including active/releasing/unsettled leases and exclusive claims;
- keep #546
preferred|neutral|backgroundevidence operation-specific and observation-only; - recheck lifecycle state and pressure at local admission after advisory candidate selection;
- expose compact founder/operator status.
The workload contract contains no machine selector and no raw CPU/RAM/cgroup controls. Price, node age, and arrival order are absent from role eligibility.
Closed role vocabulary
Only cmux_macos_native_build and cmux_linux_ci currently have #1056-reviewed role profiles/acceptance receipts and can become eligible in this v1. The remaining names are closed vocabulary for future reviewed roles; a canary or capacity receipt cannot bypass the missing #1056 acceptance.
cmux_macos_native_build
cmux_macos_test
cmux_linux_ci
cmux_linux_agent
artifact_cache
background_replay
benchmark
diagnostic
The first seven preserve #1056 spelling; diagnostic is reserved until an exact reviewed acceptance workload exists.
Synthetic acceptance
python3 scripts/test-cmux-execution-roles.py covers exact-role success, acceptance-receipt binding, wrong Xcode/toolchain profile, insufficient memory/CPU class, failed canary, drain, post-upgrade invalidation, closed capability/slot vocabularies, operation-specific preferred/background evidence, mixed Mac concurrency, four-job Linux medium capacity, cross-caller physical lease collisions, unsettled leases, exclusive admission, unknown/critical pressure refusal, pressure after selection, unmeasured profiles, no raw resource controls, and Mac/Linux two-role fixtures.
Physical Mac/Linux receipts remain later acceptance work as requested.