Replacing an item in a tagged barrel

For exmaple, im making a barrel tagged "special" and then trying to place container.0 with a diamond. Ive tried giving myself the barrel with /give @p minecraft:barrel{special:1b} but then when I try to use execute @s[tag=special run . . . nothing ever runs. Am I doing something wrong?

Continue to help post