I imagine the cooks have a template, just like an apprentice baker will be told to start with flour, starter, water, and salt, even with some proportions. But unless that apprentice has some skill and experience and sense of what the dough should feel like before it's left to rise, what it should look like before it goes in the oven, what it should feel and look like before it comes out, etc, any "recipe" won't do much.
There are just too many variables in cooking. It's a craft that relies on an experience person constantly tasting and adjusting. And with something like Thai food, which relies so much on a balance of certain flavors, that necessity is amplified. Each can or batch of coconut milk is not the same viscosity. Each spoonful of shrimp paste does not have the same intensity. Every lime can range in sweetness, bitterness, and sourness. Fish sauce can range in salinity and fragrance. Etc.
When making stir-fried noodles, eg, the biggest pain for me is the water content, which changes every time you make a batch. A seemingly small change in water content can have a massive impact. And these problems are amplified if you're making two servings instead of one, or three servings instead of two, etc.
I think this is why so many cooking school students suck. Sure they've been taught professional techniques and have CIA recipes. But do they have a palate?
If I remember correctly, Andy at TAC touches every dish. Maybe actually cooks every dish. I'm sure Erik can correct me.
So I don't think the issue is so much the recipe as much as getting quality cooks in there. A place like Charlie Trotter's can afford to hire sous chefs that are good enough in their own right to own and run a restaurant. Among Thai restaurants, I imagine all but Arun's can't.
Afterall, if it was just the recipe, that wouldn't suggest that the dish would be good one time and bad the next so much as tasting one way the first and different the next, right? If you had three good cooks and no recipe whatsoever, you'd expect three different but good versions of a dish.