AppWorld Spotify: resolve cyclic queue "played so far" semantics
Do not derive the played set from linear queue positions relative to the
current song. show_song_queue is documented as cyclic, so entries after the
current song in the returned order may still belong to the played set when
playback has wrapped.
Procedure
- Print the full
show_song_queueresponse and identify the current-song field and each entry's position/id. - Treat the queue as circular. Do not auto-exclude positions after the current song; a wrap means they can already have been played in an earlier cycle.
- Resolve the exact "played so far" set from queue semantics and endpoint
docs before mutating. Candidate sets include the whole queue or the
circular prefix before the current song; do not settle for
positions <= current_indexwithout evidence. - Apply the mutation to the resolved set only.
Verification
Before answering, confirm no queue entry was excluded solely because it appeared after the current song in the returned list. If any position-based exclusion was made, re-derive the played set under cyclic semantics and rerun the mutation.