plugin: attribute hook stats by name after reload

dispatch recorded runs/errors via plugin and hook indices captured at
spawn time. plugin.reload replaces that vec (and resets stats), so an
in-flight hook could credit a different package after reorder or
removal. Look up the live plugin by name and matching hook identity
instead.
0bdd6704bcGrok Bot committed on 10/5/2026, 5:40:34 PMparentce05ab1
1 file changedLine totals unavailable