The fat was too cold
Very commonSpread is a race between flow and set. Fat straight from the fridge, or dough baked hard-frozen, melts late enough that the surrounding starch and protein have already begun setting by the time it does — so the cookie holds the shape it went in as. This is the exact inverse of the mechanism behind excessive spread, and the same variable is behind both.
The variable underneath
Fat temperature
How to tell after the fact: Excessive spread with a greasy, thin edge points to fat that was too warm. Visible butter on the tray points to a broken lamination, which can come from fat that was too warm OR too cold — see the croissant fault for the observation that separates them.
What to change
Let the dough come up in temperature before baking
Take chilled dough out and let it stand until it yields to a pressed thumb rather than resisting it. Judge it by feel, not by a stated number of minutes — a small ball in a warm kitchen and a large one in a cold kitchen are not the same problem.
Applies where the dough was chilled or frozen. It will do nothing if the cause was too much flour, because that dough is stiff at every temperature.
Trade-off: Warmer dough spreads more but also holds detail less well, and dough left out far too long moves you straight into the opposite fault.