Thanks, Hayes.
Although these personnel, employed at the Naval Foundaries, would seem to have been in a civilian capacity, and almost certainly not in the Confederate States Navy, they were, I believe, taken into that specialty employment because of their knowledge in that area.
My assumption is that they were employed as civilians, though they may have actually been in a militia of some sort. Can anyone clarify this, please?