In our combined scenario a carpenter can sell to anybody as long as they sell to everybody at the same price for the same type of buyers (retail/wholesale).
The solution is to mandate non discriminatory licensing, everything else you suggested is a workaround to avoid that step.
The solution is to mandate non discriminatory licensing, everything else you suggested is a workaround to avoid that step.