Well, the newly-created zip link will have one inbound link — the link to the source from which it was created. So, the source of that link would give you the path to the originating note, and you could copy (not inherit!) whatever attributes you like.
CAVEAT: the natural way to do this would be the container’s OnAdd action. That might work. I don’t remember, though, whether the OnAdd action runs before or after the zip link is made! So, try that, but it might not work. I’m going to assume that the OnAdd runs before the link is made, so we’ll need some fancy footwork.
Now: I assume we want to perform this action once, after the note and its link are created, to set some initial values. If you want to constrain the values permanently, use an rule or and edict. Otherwise, we need to leave ourselves a note to say, “I need to perform an action, but I can’t perform it yet!”
To do that, we define a boolean user attribute $NeedsUpdate. The OnAdd action becomes:
In other words, I set $NeedsUpdate, and I copy a rule from an exemplary note I’ve made at some known place. That note’s rule, in turn, figures out the source of the zip link, does the work, and sets $NeedsUpdate to false.