Links that last: renew a link before it expires, a standby on a different stream, and an unlisted game waits #75

Merged
cmoriarty merged 1 commit from links-that-last into develop 2026-11-01 02:46:05 -05:00
Owner

The Links that last batch (milestone 34): three of its four issues. #71 waits for a live test.

#72: a game the hub doesn't list waits for the list (unlisted-wait)

The "not on the list" answer is its own error (NotListed). The rotation then leaves the game until the hub's next refresh (HUB_TTL_SECONDS, 5 min), and the answer is logged once. A "Check now" still goes at once. On 2026-10-31 Johns Hopkins vs. Muhlenberg was checked 102 times in three hours.

  • stream_identity.py:
    • expires_at reads a URL's expiry stamp (e=: read + 3 h on embedcenter, about + 30 min on topsurge);
    • identity names the stream behind a URL, without its signature, stamps, tokens or edge number.
  • The scheduler renews first in each round. A kept link (entry, standby, second standby) with 5 min left (LINK_RENEW_AHEAD_SECONDS) is re-read, and the verified fresh URL takes its place. The played games' links go first.
  • A playing channel plays on from the renewed URL at its next playlist fetch when it is the same stream: no swap, no filler, no shape probe.
  • A failed renewal changes nothing: no cooldown, no mark against the host, one try per URL. The old link plays until it expires and the recovery takes over, as before.
  • Logged as re-check events: "renewed the link on …, 4 min before it expired", or "renewing … failed".
  • Links with no stamp (the JSON playlists) are not renewed.

#74: a standby on a different stream (distinct-standby)

  • The ladder remembers which stream each link resolved to.
  • A standby read holds back a copy of a kept stream unverified and goes on. The copy is verified and kept only when nothing different verifies. Known copies sort after the other links of their standing.
  • The card shows a muted "same stream" chip on a standby that is a copy, and ", same stream" after the second standby's host.

#71: not in this PR

The players show nothing when no game is on: loaded at 07:37Z, none showed "Sandbox detected" in either mode. The test runs during today's live games, and the change comes separately only if the player then plays.

Checks

  • make test: 852 passed. npm --prefix frontend test: 186 passed.
  • openspec validate --strict: all three changes pass.

🤖 Generated with Claude Code

The Links that last batch (milestone 34): three of its four issues. #71 waits for a live test. ## #72: a game the hub doesn't list waits for the list (`unlisted-wait`) The "not on the list" answer is its own error (`NotListed`). The rotation then leaves the game until the hub's next refresh (`HUB_TTL_SECONDS`, 5 min), and the answer is logged once. A "Check now" still goes at once. On 2026-10-31 Johns Hopkins vs. Muhlenberg was checked 102 times in three hours. ## #73: renew a link before it expires (`link-renewal`) - **`stream_identity.py`:** - `expires_at` reads a URL's expiry stamp (`e=`: read + 3 h on embedcenter, about + 30 min on topsurge); - `identity` names the stream behind a URL, without its signature, stamps, tokens or edge number. - **The scheduler renews first in each round.** A kept link (entry, standby, second standby) with 5 min left (`LINK_RENEW_AHEAD_SECONDS`) is re-read, and the verified fresh URL takes its place. The played games' links go first. - **A playing channel plays on** from the renewed URL at its next playlist fetch when it is the same stream: no swap, no filler, no shape probe. - **A failed renewal changes nothing:** no cooldown, no mark against the host, one try per URL. The old link plays until it expires and the recovery takes over, as before. - **Logged** as re-check events: "renewed the link on …, 4 min before it expired", or "renewing … failed". - **Links with no stamp** (the JSON playlists) are not renewed. ## #74: a standby on a different stream (`distinct-standby`) - **The ladder remembers** which stream each link resolved to. - **A standby read holds back a copy** of a kept stream unverified and goes on. The copy is verified and kept only when nothing different verifies. Known copies sort after the other links of their standing. - **The card** shows a muted "same stream" chip on a standby that is a copy, and ", same stream" after the second standby's host. ## #71: not in this PR The players show nothing when no game is on: loaded at 07:37Z, none showed "Sandbox detected" in either mode. The test runs during today's live games, and the change comes separately only if the player then plays. ## Checks - `make test`: 852 passed. `npm --prefix frontend test`: 186 passed. - `openspec validate --strict`: all three changes pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Links that last: renew a link before it expires, a standby on a different stream, and an unlisted game waits
All checks were successful
ci / Unit tests, type check, bundle (pull_request) Successful in 47s
ci / One container, e2e click-to-play inside the image (pull_request) Successful in 1m37s
9a36f9e93f
#72 unlisted-wait: a game the hub's list does not carry (NotListed)
waits for the list's next refresh before the rotation reads it again,
and the answer is logged once. On 2026-10-31 one such game was checked
102 times in three hours.

#73 link-renewal: a kept link whose URL carries an expiry stamp (e=,
read + 3 h on embedcenter, + 30 min on topsurge) is re-read 5 min before
it passes and the verified fresh URL takes its place. A playing channel
plays on from it with no swap when it is the same stream. A failed
renewal cools nothing and is not retried for that URL.
stream_identity.py reads the stamp and names the stream behind a URL.

#74 distinct-standby: a standby read holds back a link that resolves to
a stream already kept and goes on for a different one; the copy is kept
only when nothing else verifies, and the card marks it "same stream".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cmoriarty merged commit 2eb6d74d54 into develop 2026-11-01 02:46:05 -05:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
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!75
No description provided.