Lightning Ants
Reading some comments and answers on here gave me another idea about how they do it -- and explains why glass ant colonies taken into captivity never seem to recreate their unique glass tunnels even in ample-sized sandboxes (pardon the pun): Lightning rods.
Finding a place to call home
When a new queen seeks to build a colony, she takes a couple hundred (maybe a thousand or two?) worker ants with her. They leave the nest at the first sign of precipitation; this has a threefold benefit:
The coming rains will ensure the queen and her "borrowed" workers stay hydrated while they seek an adequate location for a nest.
Rainfall is frequently accompanied by lightning storms... and this is how they start their new nest.
Once the nest has been formed, rainfall collects in reservoirs at the bottom of the nest to provide a source of moisture as well as maintain ambient humidity in the nest.
As the first raindrops begin to fall, the ants use the flow of water to help find high ground (which also helps avoid drowning while they're excavating their tunnels). Once an ideal spot is found, some workers begin digging in the sand, periodically applying a thin layer of resinous secretions to help keep it from collapsing as they dig. While this resin isn't enough by itself to fully seal the tunnel for long term use, it adds structural enhancement and provides a key characteristic for the "solidification" of the tunnels...
A conducive atmosphere
Once they have the tunnels in place, the workers begin climbing atop one another at the entrance, forming a tower; these towers are estimated to reach nearly three meters tall* and are easily the tallest objects in the nearby landscape. Having been freshly hydrated, their bodies are rather conductive, and thus "attract" lightning. The trick is that the resinous secretions are also conductive, so once the lightning strikes the "ant rod" it carries through the secretions along the tunnel walls and fuses the silica into glass, taking advantage of a natural phenomena to help strengthen and seal their home.
Of course the ants that form the ant rod are killed in the process, but this provides a handy source of food for the remaining ants. It may not be the most nutritious, but it buys time for the colony to establish itself. The remaining ants will carry the burnt remains into the tunnels, and also scout them for any gaps that may not have fused. More resin secretions will be used to fill the gaps, and once cured is nearly as transparent and nonporous as the glass, while lending additional strength to the structure.
The corker
Similar to the Cephalotes genera of ants pointed out by @LoneBoat, the colony has a caste of large-headed workers whose sole purpose is to block the entrance(s) to the tunnel. In addition to providing defense and sealing in moisture, the "blockers" also serve to regulate water intake during desert rains. Most of the surface area of their head is a nonporous, chitinous material that serves as armor as well as a moisture barrier; most blockers have two to three small dimples in this barrier, and each dimple contains a tiny sensory receptor in its center about 100-200µm in diameter.
This receptor lets them detect moisture, and they will unblock the hole when rains come so water can come in to replenish the reservoirs. As the water pours in, regular workers scurry down to the reservoirs to monitor them; once the reservoirs are nearly full, the workers make for the tunnel entrances and gently nip the blockers who will promptly return to their position and seal off the entrances so the tunnels don't flood.
Once back in position, the blockers will refuse to move until their receptors tell them it's dry outside. While the colony will attempt to locate on high ground (improving probability of lightning strikes and minimizing flood risk) localized flooding can still pose a threat, so the workers will remain in place keeping the tunnels sealed.
* Individual worker ants are about 15-20mm in length, and the expedition's initial estimates suggest that the towers are comprised of 500-800 ants and the height and diameter is roughly relational to how many total ants the new queen was able to recruit. Naturally, more recruits means a taller and stronger tower, which improves the tower's chances of successfully getting hit by lightning to form their new home and thus improves the colony's chances of survival.
1do you mean silica rather than silicon? afaik silicon is going to react with water fairly rapidly – jk. – 2017-03-01T14:02:02.747
@jk. Well, silicates. Not necessarily silicon dioxide, since there are going to be one hell of a lot of impurities, but I see what you mean. :D – Joe Bloggs – 2017-03-01T14:35:53.477
25
Not an answer to the question, but in reference to the ants with flat heads forming a "door": These actually exist. See https://www.newscientist.com/article/dn28481-zoologger-ants-that-use-their-heads-to-lock-down-their-nests/
– loneboat – 2017-03-01T15:11:34.8806
Oh neat, a linked article also talks about ants sacrificing themselves for the greater good of the nest (not in the way you described, but still might make great reading as you develop this): https://www.newscientist.com/article/dn14821-heroic-ants-pay-the-ultimate-price-to-safeguard-nest/
– loneboat – 2017-03-01T15:13:28.63714@Loneboat Nature continues to both amaze me and make me sad that it got there first. – Joe Bloggs – 2017-03-01T15:42:31.437
3@JoeBloggs: Hey it's not bad at all - just means you have some source material to extend from, rather than shooting blind. Now you can make your WB even deeper, building off of actual experts who have studied the real thing in practice. They may have discovered even more details that you never would have thought of! :-D – loneboat – 2017-03-01T15:44:53.970
There are already "doorway ants," Some ant species have a caste that has an oversized head. They use that head to block the entry hole (typically in bamboo). – ShadoCat – 2017-03-02T01:09:18.700
Aren't underground areas moist in part because water is able to seep in? By coating the walls with glass you won't just stop it from leaving - you'll make it very difficult to get it there in the first place. – Zxyrra – 2017-03-02T01:19:12.797
@Zxyrra: Only when you get fairly deep, and in a world of constantly shifting sands not only will the first few meters be pretty dry but you also lose some of the ability to dig deep tunnels. Unless of course you happen to weld the walls into place... – Joe Bloggs – 2017-03-02T09:03:18.330
Lightening makes glass in deserts right? Fire ants make rafts of layers of ants... similarly layered ants could build up enough static charge to fuse sand when discharged, just as the lightening does. – Toby – 2017-03-03T16:13:24.110
I'm no scientist, but what about a chemical reaction, instead of thermal. The ants could dissolve the glass with an acid, excrete the solution at the site, then apply an alkali to neutralize the acid and stabalize the material. Acids an alkalis are already used abundantly in nature. – Luke Van In – 2017-03-05T13:49:59.550
Are you going to accept an asnwer? – L.Dutch - Reinstate Monica – 2017-03-06T08:42:01.847
@L.Dutch: Yes. Keep your hair on! :D – Joe Bloggs – 2017-03-06T08:48:30.777