Find the box
Search the hunt area for the jack-in-the-box. It can appear near the Entity, and it can reappear at a new position if it is ignored.

Music box puzzle
The Marionette is attached to a jack-in-the-box. The box is the real objective: rewind it before the song finishes three times, or the puppet joins the hunt.
The Marionette is a consequence of the jack-in-the-box, not the first thing you should shoot. Deal with the box and the puppet never joins the hunt.
Search the hunt area for the jack-in-the-box. It can appear near the Entity, and it can reappear at a new position if it is ignored.
Interact with the box to rewind it. The N.E.T. warning says not to let the song finish three times. Rewind on the first loop, not on the third.
If the Marionette is already out, the death screen says the more damage it has taken, the faster it moves. Use a trap or a burst that can finish it, not a long chip fight.
The Marionette is not a free-roaming boss at the start. It is the thing that comes out of the jack-in-the-box.

The box is a physical object in the hunt area. The song is directional, so listen for the loop before you run the aisles looking for the puppet.

The Marionette is fast and gets faster as it takes damage. The box is the part you can solve; the puppet is the part you contain.
Both can end a hunt, but the counter is different. Do not use the same plan for both.

If the tall figure freezes while you look at it, it is the Demented. It is invincible in that state, so the answer is a prepared trap, not a damage race.

The puppet does not freeze. It gets faster as it takes damage, so a long chip fight makes the hunt worse. Trap it or commit to a burst that can finish it.
The N.E.T. warning is short: do not let the song finish three times. Treat each finish as a countdown, not a soundtrack.
Finish 1
Do not wait to see what happens. The first finish is the warning; rewind and go back to the fight.
Finish 2
If the box has already finished twice, the third is the failure point. Assign someone to it immediately.
Finish 3
At the third finish the Marionette is in the hunt. Switch from prevention to trapping and finishing; do not keep chipping it with a weak weapon.
This is the recovery plan, not the ideal plan.
In multiplayer, assign the box before the fight starts. The player who owns the box should not be the one holding the Entity.
Find and rewind the box. Call out each finish. Do not stop to loot or fight the Entity.
Hold the Entity’s attention with fire or a trap route. Keep it away from the box player.
If the Marionette is out, commit to a trap or a burst. Do not chip it from range with a low-damage weapon.
If the box disappears, it has moved. Do not assume the event is over.
Lead it into a bear trap or a landmine, then finish it with melee. Do not run into a dead-end room to reload.
Interact with the box to rewind it. The game warns you not to let the song finish three times. Rewind early instead of waiting for the puppet to appear.
The death screen says the more damage it has taken, the faster it moves. Chipping it with weak weapons makes the chase worse. Use traps or a committed burst, not a long damage race.
The box appears near the Entity during hunts. Search the hunt area for the box before you start shooting at the puppet. The box can also reappear at a new position if it is not dealt with.
For a while, but not for the whole hunt. The third finish is the failure point. If you are already fighting the Entity, assign one player to the box and keep the others between the puppet and the counter.
The jack-in-the-box is the source. Rewinding the box keeps the puppet out of the hunt; letting the song finish three times brings it in. If the puppet is already out, the box can still move, so keep listening for the song.
Listen for the loop and search the hunt area near the Entity. The box can reappear at a new position. Assign one player to the search instead of letting the whole group run around the aisles.