Re-check samples the segment before a newest one not yet on the edge #131

Merged
cmoriarty merged 1 commit from fix/recheck-edge-404 into main 2026-11-09 18:45:39 -05:00
Owner

Indiana vs. Syracuse showed Failing (note "https") on 2026-11-09 while a click played its stream at once.

Cause: at 23:24Z the re-check of the game's only working link (thetvapp.plus) failed with segment: upstream error: 404. Thetvapp lists a segment a moment before its CDN serves it. verify() has fallen back to the segment before since #128; recheck() had not. The failed re-check dropped the link and cooled it for 10 min, so the 23:27Z check tried only the three dead links and the row went Failing. The click at 23:33Z took the cooled link (every usable link was cooling) and it verified in 14 s.

Fix

  • verify.recheck samples through _sample_segment, by range: a 404 on the newest reads the first bytes of the one before; a 404 on both still fails.
  • The readiness note cuts past a link address the reason names first ("no stream found", not "https"); admin.gistOf re-exports it.
  • OpenSpec change recheck-edge-404 (validates strict).

Lanes: make test 1221 passed / 1 skipped, npm --prefix frontend test 249 passed, make e2e passed. The new re-check test fails on the old code with the production error.

🤖 Generated with Claude Code

Indiana vs. Syracuse showed **Failing** (note "https") on 2026-11-09 while a click played its stream at once. **Cause:** at 23:24Z the re-check of the game's only working link (thetvapp.plus) failed with `segment: upstream error: 404`. Thetvapp lists a segment a moment before its CDN serves it. `verify()` has fallen back to the segment before since #128; `recheck()` had not. The failed re-check dropped the link and cooled it for 10 min, so the 23:27Z check tried only the three dead links and the row went Failing. The click at 23:33Z took the cooled link (every usable link was cooling) and it verified in 14 s. **Fix** - `verify.recheck` samples through `_sample_segment`, by range: a 404 on the newest reads the first bytes of the one before; a 404 on both still fails. - The readiness note cuts past a link address the reason names first ("no stream found", not "https"); `admin.gistOf` re-exports it. - OpenSpec change `recheck-edge-404` (validates strict). **Lanes:** `make test` 1221 passed / 1 skipped, `npm --prefix frontend test` 249 passed, `make e2e` passed. The new re-check test fails on the old code with the production error. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
On 2026-11-09 Indiana vs. Syracuse showed Failing (note "https") while a
click played its stream at once. Thetvapp's edge answered 404 for the
newest segment at a re-check; verify() has fallen back to the one before
since #128, but recheck() had not, so the game's only working link was
dropped and cooled for ten minutes and the checks meanwhile tried only
dead links.

- verify.recheck samples through _sample_segment, by range: a 404 on the
  newest reads the first bytes of the one before; a 404 on both fails.
- The readiness note cuts past a link address a reason names first
  ("no stream found", not "https"); admin.gistOf re-exports it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cmoriarty deleted branch fix/recheck-edge-404 2026-11-09 18:45:39 -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!131
No description provided.