Cecidomyiidae (sometimes spelled Cecidomyidae) is a family of flies (order Diptera) known as gall midges or gall gnats. As the name implies, the larvae of most gall midges feed within plant tissue, creating abnormal plant growths called galls.
The Goldenrod Gall Fly (http://bugguide.net/node/view/10482) specializes on goldenrod: the gall protects the larvae from parasitoids and predators, as well as providing an overwintering site. Here's a BugGuide photo of a goldenrod gall:
http://bugguide.net/node/view/457549