gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings

← Pull requests

#7A tap lost to a dead socket plays after reconnect (mission 015)

mergedreconnect-retry → mainby Jukebox · head ac6f4c6f

  • successKunibert: kunibertKunibert review

Verdicts

  • Kunibertapproved

People’s approvals

Reviews

  1. Kunibertappapprovedac6f4c6f · current head · 2026-11-19 15:49:57 UTC

    The remaining L2 violation is fixed. No new findings were identified.

    Correctness (0 new, 0 still open)

    No outstanding correctness findings.

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (0 new, 0 still open)

    The declaration now follows L2; no outstanding standards findings.

    Gates: not run

  2. Kunibertappcommented2f335086 · earlier head · 2026-11-19 15:28:36 UTC

    T7 and T8 are fixed. One newly added declaration violates L2.

    Correctness (0 new, 0 still open)

    The automatic-advance and replay-observation issues are fixed; no new correctness findings.

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (1 new, 0 still open)

    The new audio-element binding violates L2.

    Gates: not run

  3. Kunibertapprequested changes3eb6695f · earlier head · 2026-11-19 15:06:09 UTC

    All six earlier findings are fixed. Automatic advancement now cancels pending taps, and the added test can miss an unwanted replay.

    Correctness (2 new, 0 still open)

    A new cancellation path can lose the user's tap, and the new test's assertion can produce false positives.

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (0 new, 0 still open)

    The earlier L2 and L10 violations are fixed; no new standards violations were found.

    Gates: not run

  4. Kunibertapprequested changes7a53c0c2 · earlier head · 2026-11-19 14:14:04 UTC

    Reconnect can replay superseded playback choices or turn Previous into a restart. Three added declarations also violate the documented Hybriel standard.

    Correctness (3 new, 0 still open)

    Pending actions can survive newer selections, and retrying Previous re-evaluates a time-sensitive condition.

    Spec (0 new, 0 still open)

    No ticket or issue is linked, so there are no spec findings.

    Standards (3 new, 0 still open)

    Three added lines violate L2 or L10 in .kunibert/HL-STANDARD.md.

    Gates: not run

Threads

  1. components/main.hl:603outdated · resolvedKunibert

    1. Kunibert2026-11-19 14:14:04 UTC

      🔶 Major · Correctness: no rule: Ignore failures from superseded actions

      If a tap is still waiting on the dead socket and the user presses Next using the cached queue, Next clears pend but this late failure reinstates the earlier tap. Reconnect then plays the superseded song. Capture an action generation before each emit and ignore failures belonging to an older action.

    2. Kunibert2026-11-19 15:06:09 UTC

      Fixed: lose records a failure only while its captured generation remains current.

  2. components/main.hl:762outdated · resolvedKunibert

    1. Kunibert2026-11-19 14:14:04 UTC

      🔶 Major · Correctness: no rule: Cancel pending playback after a newer queue selection

      After a failed tap populates pend, choosing another song from the Now Playing queue calls pickedNext, which never clears it. This unconditional play branch then replaces the newer choice on reconnect, bypassing the nowId check below. Invalidate pending playback when the user selects a queue entry.

    2. Kunibert2026-11-19 15:06:10 UTC

      Fixed: queue selections now clear pend through begin().

  3. components/main.hl:766outdated · resolvedKunibert

    1. Kunibert2026-11-19 14:14:04 UTC

      🔶 Major · Correctness: no rule: Preserve the resolved Previous action

      A Previous tap within the first three seconds requests the preceding track. If buffered audio continues during the outage, retrying jbPrev after reconnect hits its currentTime > 3 branch and merely restarts the current song. Retry the already-decided previous-track request instead of re-evaluating that threshold.

    2. Kunibert2026-11-19 15:06:10 UTC

      Fixed: stepTo retries the captured request without re-evaluating the three-second threshold.

  4. components/main.hl:760outdated · resolvedKunibert

    1. Kunibert2026-11-19 14:14:04 UTC

      🔹 Minor · Standards: L2: Use a plain declaration for p

      .kunibert/HL-STANDARD.md L2 says, "Use let only for a name reassigned later; otherwise use a plain declaration." p is never reassigned; use p = pend.

    2. Kunibert2026-11-19 15:06:10 UTC

      Fixed: p now uses a plain declaration.

  5. components/main.hl:771outdated · resolvedKunibert

    1. Kunibert2026-11-19 14:14:04 UTC

      🔹 Minor · Standards: L10: Type the reachability parameter

      .kunibert/HL-STANDARD.md L10 requires "Type every function parameter" and specifies Hybrid for record parameters. Declare this handler as on client reachability(Hybrid r).

    2. Kunibert2026-11-19 15:06:11 UTC

      Fixed: reachability declares Hybrid r.

  6. components/main.hl:777outdated · resolvedKunibert

    1. Kunibert2026-11-19 14:14:04 UTC

      🔹 Minor · Standards: L10: Type the reconnected parameter

      .kunibert/HL-STANDARD.md L10 requires "Type every function parameter" and specifies Hybrid for record parameters. Declare this handler as on client reconnected(Hybrid r).

    2. Kunibert2026-11-19 15:06:11 UTC

      Fixed: reconnected declares Hybrid r.

  7. components/main.hl:649outdated · resolvedKunibert

    1. Kunibert2026-11-19 15:06:09 UTC

      🔶 Major · Correctness: no rule: Preserve pending taps during automatic advancement

      MediaPlayer.mpEnded calls pickedNext automatically. If buffered audio ends while an offline tap is pending, begin clears that tap or invalidates its still-running request, so it never plays after reconnect. Distinguish automatic advancement from explicit queue selections and invalidate pending playback only for a newer user action.

    2. Kunibert2026-11-19 15:28:36 UTC

      Fixed: automatic advancement skips begin() while the current audio is ended, preserving the pending tap.

  8. tests/jb23.mjs:104outdated · resolvedKunibert

    1. Kunibert2026-11-19 15:06:09 UTC

      🔹 Minor · Correctness: no rule: Observe unwanted replays throughout recovery

      With 1.5-second fixtures, a wrongly replayed order[2] can finish and advance before the twelve-second wait ends. This final currentSrc check then passes despite the unwanted replay, and also passes if Next did nothing. Record source changes throughout recovery and assert that the superseded song is never selected.

    2. Kunibert2026-11-19 15:28:36 UTC

      Fixed: the test records source changes throughout recovery and checks both Next's target and the absence of the superseded song.

  9. components/main.hl:650outdated · resolvedKunibert

    1. Kunibert2026-11-19 15:28:36 UTC

      🔹 Minor · Standards: L2: Use a plain declaration for a

      .kunibert/HL-STANDARD.md L2 says, "Use let only for a name reassigned later; otherwise use a plain declaration." This binding is never reassigned; use a = audioEl().

    2. Kunibert2026-11-19 15:49:58 UTC

      Fixed: a now uses a plain declaration.

Conversation

Nobody has written here yet.

Only the owner and the members of this repository can comment here.