I learned a new word today: intumescent.
https://en.wikipedia.org/wiki/Intumescent has a decent explanation, but that picture of a toasted marshmallow doesn't seem quite appropriate, because it was already expanded before it was toasted. The text explains that the coating is initially painted onto a surface and is smooth and thin, but when heated, expands and chars, with the char becoming hard and cracking.
The Apollo and Orion heat shields use a non-expanding material called AVCOAT. See
https://en.wikipedia.org/wiki/AVCOAT .
The Space Shuttle use different material. See
https://en.wikipedia.org/wiki/Space_Shuttle_thermal_protection_system
It has been harder to find what SpaceX is doing for StarShip. It is made of stainless steel instead of aluminum, so its heat shield can allow more heat to reach the structural members than was the case for the Space Shuttle. But, the attachment material for the tiles may be the limit if it fails due to heat conducted through the shield. Initially, I think the StarShip tiles were supposed to be mechanically attached instead of glued. But, now SpaceX seems to be putting an additional ablative material
under the tiles as a backup safety measure in case tiles are lost during reentry. The goal of
rapid reusability is tougher than what the Space Shuttle accomplished, where tiles had to be painstakingly inspected and some replaced after each mission.
So, it seems that the heat shield of StarShip is still in the "test-soon-and-analyze-the-failures-then-redesign" phase of development. Which means more test flights for reentry analysis. The fifth flight test had some tiles intentionally left off at launch to study the effects of missing tiles, presumably on the backup ablative material. This video has some discussion:
View: https://www.youtube.com/watch?v=uxkYTEK5NCU
.