Greetings & Salutations, my simian friend.
Here comes the biologist avatar, Ganjananda gone wilde. These 'bud worms' are really larval moths that can tolerate or thrive on cannabis flowers and their attendant medicated goo, particularly the white cabbage moth, but other moths/butterflies lay their eggs on our ladies also. Any white moths in the garden that can be killed should be killed before they get a chance to lay eggs that develop into their larval form. If you're worried about karma, eat them, my youngest daughter had a taste for them when she was young [~2-3 YO] and she has given me three grandchildren, none of them with moth-borne pyschosis, so they are harmless to us, but not our crops.
IPM [integrated pest management] is something that you should familiarize yourself with, this link will get you going [UCD & UCSD are both big on horticulture].
UC Statewide Integrated Pest Management Program
The following link will set you free, it is about a bacterium,
Bacillus thuringiensis that parasitizes only larval Lepidopterans [moths and buterflies]. You spray these microcritters on the plant, the bugs eat them, quit eating, and drop dead. The stuff is extremely safe, but educate youself for free, @ UCSD.
Bacillus thuringiensis
Remember my little lean-to greenhouse that I sent you last year? That was built to stop these freeloaders, not for stealth.
They
will dropout when the plant is hung, but you want to get all of them out before you chop. A Q-tip can be used to clean out the boring channel, as you have found,
tissue necrosis is caused by their feces and this feces has fungi in it that can spread over the whole bud, so keep them clean. Every bit of brown [necrotic bud] should be removed and I wouldn't recommend smoking it.
Plant is looking good,
B