"Well puppeteer can also affect the device owners persona"
I think I addressed this in my example. "Clearly, she could have used Puppeteer and targeted the commlink, forcing the Commlink/Persona to Invite Marks, thus giving her marks over the pan and allowing control like she seeks."
So I agree with you that Puppeteer can target a persona, but that does not answer the specific question.
"So in my understanding, she targets the gun, which then inadvertently targets the party rigger, and forces him to invite the marks. This could however lead to a rude awakening when the techno realizes this wasn't as easy as she first thought it was, but the end result is the same, she still has her marks"
The Street Sam has a trusted Decker, I never mentioned party rigger. While the trusted Decker has Ownership over the gun, it is a part of the Street Sams PAN, and he is the owner of his Commlink.
Lets forget all that, perhaps my example is poor.
A Technomancer is facing a Street Sam. The Street Sam is the owner of all his gear. He is running a Commlink as a master of his PAN. The Technomancer is hidden, and has already spotted the Street Sam.
The Technomancer uses Puppeteer targeting the Commlink/ Persona of the Street Sam. Succeeding with 3 net hits, she can force the Commlink/Persona to do any free, simple or complex action. She could Format Device or Reboot Device, as those just require marks. She could force a Change Icon, which required Owner. She could force Invite marks to her own persona, and have control over the PAN.
All of these seem pretty clear, and look valid.
Now, the Technomancer uses Puppeteer targeting the Ares Predator V of the Street Sam. Succeeding with 3 net hits, she can force the to do any free, simple or complex action.
Clearly, this could be used to control device, like making the gun eject clip, change mode, fire, or reboot.
Is a gun capable of taking its own matrix actions? Can she force the gun to perform matrix actions? If she can force the gun to take actions, are there restrictions on the kinds of matrix actions it can take?
My understanding is that personas take matrix actions, and not devices. I don't think devices make matrix actions, but rather have matrix actions performed on them.
If a persona has marks on a device, then it can control the device. These marks come from Ownership or being invited by someone with Ownership. Only personas can mark icons. Can a device make the Invite Mark icon?
Reading the Invite Mark action, it states
"If you’re the owner of a device, file, persona, host, or IC program, you can offer other icons the opportunity to put a mark on your device, file, etc."
So the real question is, is a device the owner of itself? Can the gun be forced to perform the matrix action Invite Marks?