A source slower than real time is Choppy, and a slow stream leaves its CDN #116

Merged
cmoriarty merged 1 commit from fix/slow-source-pace into develop 2026-11-08 10:58:58 -05:00
Owner

Part of #101, from its live check on 2026-11-08 (the finding).

Why

C Palace vs. Liverpool played from hls.lshls.st, which listed 2 s segments every 2.15–2.32 s: 0.86–0.93× real time, measured from outside the VPN as well.

  • What the viewer got: a freeze about every minute, through 3 swaps, 1 recovery and 5 fillers, all landing on the same CDN.
  • What the card said: Healthy, Steady and "Nothing to do".
  • Why: the watch calls a link Choppy for its pace only once it needs 30 s of buffer in its 3-minute window, which takes a pace under about 0.83×. So #101's slow-source recovery never ran.

What changes

  • The grade (watch.py):
    • A pace held under 0.95× across two minutes of listings grades the link Choppy, and Grade.slow says so.
    • The pace runs from the window's first listing to its last, so a burst still to come does not count.
    • Choppy then drives what already exists: the guide note, no degrading swap onto a Choppy standby, the trade while nobody watches, and #101's slow-source recovery.
  • Leaving a slow CDN:
    • recovery_pick(slow=) takes a standby on another playlist host first when the failed stream was slow.
    • The standby order does the same while the kept stream is slow, unless the other host's standby is Choppy itself.
  • The card:
    • The verdict says Let it work: the source is slow at 0.90× and no buffer catches it up. It no longer says "Nothing to do".
    • The grade's info says the same.
  • OpenSpec: the change slow-source-pace, validated with --strict.

Lanes (run locally; ci.yml is manual)

  • make test (frontend built first): 1135 passed, 1 skipped
  • npm --prefix frontend test: 238 passed (18 files)
  • make e2e: passed (click-to-play, failure, recording, replay, channel)

🤖 Generated with Claude Code

Part of #101, from its live check on 2026-11-08 ([the finding](https://forgejo.underthere.xyz/cmoriarty/sports-breaker/issues/101#issuecomment-7537)). ## Why C Palace vs. Liverpool played from hls.lshls.st, which listed 2 s segments every 2.15–2.32 s: 0.86–0.93× real time, measured from outside the VPN as well. - **What the viewer got:** a freeze about every minute, through 3 swaps, 1 recovery and 5 fillers, all landing on the same CDN. - **What the card said:** Healthy, Steady and "Nothing to do". - **Why:** the watch calls a link Choppy for its pace only once it needs 30 s of buffer in its 3-minute window, which takes a pace under about 0.83×. So #101's slow-source recovery never ran. ## What changes - **The grade** (`watch.py`): - A pace held under 0.95× across two minutes of listings grades the link Choppy, and `Grade.slow` says so. - The pace runs from the window's first listing to its last, so a burst still to come does not count. - Choppy then drives what already exists: the guide note, no degrading swap onto a Choppy standby, the trade while nobody watches, and #101's slow-source recovery. - **Leaving a slow CDN:** - `recovery_pick(slow=)` takes a standby on another playlist host first when the failed stream was slow. - The standby order does the same while the kept stream is slow, unless the other host's standby is Choppy itself. - **The card:** - The verdict says Let it work: the source is slow at 0.90× and no buffer catches it up. It no longer says "Nothing to do". - The grade's info says the same. - **OpenSpec:** the change `slow-source-pace`, validated with `--strict`. ## Lanes (run locally; ci.yml is manual) - `make test` (frontend built first): 1135 passed, 1 skipped - `npm --prefix frontend test`: 238 passed (18 files) - `make e2e`: passed (click-to-play, failure, recording, replay, channel) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The live check of #101 on 2026-11-08 (C Palace vs. Liverpool): every
working link carried hls.lshls.st, which listed 2 s segments every
2.15-2.32 s (0.86-0.93x). The viewer froze about every minute, through
3 swaps, a recovery and 5 fillers, all on the same CDN, while the card
said Healthy and "Nothing to do". The watch grades a link Choppy for its
pace only once it needs 30 s of buffer in its 3-minute window (a pace
under ~0.83x), so #101's slow-source recovery never ran.

- watch: a pace held under 0.95x across two minutes of listings
  (first listing to last, so a burst still due does not count) grades
  the link Choppy, with Grade.slow
- resolution.recovery_pick(slow=): a slow stream's recovery takes a
  standby on another playlist host first; the standby order does the
  same while the kept stream is slow
- the card's verdict: Let it work, the source is slow at its pace; the
  grade's info says the same

OpenSpec change slow-source-pace. Lanes: make test 1135 passed (1
skipped), frontend 238 passed, make e2e passed.

Refs #101

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cmoriarty merged commit 9afc14a2e2 into develop 2026-11-08 10:58:58 -05:00
Sign in to join this conversation.
No reviewers
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cmoriarty/sports-breaker!116
No description provided.