Goldenrod Gall Fly is an obligate parasite of goldenrods.
An adult female lays an egg in a goldenrod stem, and the hatched
larva
(a maggot) feeds on plant tissue; the plant grows additional tissue (called a gall) around the damage.
The larva overwinters in the gall, exiting in spring as an adult.