Skip to content

Fix grace-period checks bypassing channel limits and ordering - #550

Merged
bttfw merged 1 commit into
krinkuto11:devfrom
bttfw:codex/fix-grace-period-limit-548-20261114
Nov 14, 2026
Merged

bttfw merged 1 commit into
krinkuto11:devfrom
bttfw:codex/fix-grace-period-limit-548-20261114

Conversation

@bttfw

@bttfw bttfw commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

Grace-period checks returned early when the assigned stream IDs were unchanged. This bypassed the current profile's channel limit, soft provider cap and resolution-first ordering: a channel with 20 recently checked sources could retain all 20 at a configured limit of 10, with cached 720p sources ahead of 1080p.

Reuse cached measurements while continuing through the normal scoring, selection and verified write-back path. This keeps probe immunity and active-viewer protection. Provider Stream Cap remains a soft diversity preference.

Validation:

  • 16 regression combinations cover targeted, incremental, fully cached and forced/manual checks, sequential and parallel entry points, and enabled/disabled provider caps.
  • Isolated integration contracts: 84 passed, 1 existing skip.
  • Native baseline on the target host reproduced the fully cached 20-at-limit-10 failure. The mixed 10-cached + 10-new case already trimmed correctly before this change, so the reporter's exact mixed-run cause is not claimed as reproduced.
  • All six PR checks passed: 2,410 stable backend tests, 84 integration contracts, 334 frontend tests and production build, dependency audits, and Python/JavaScript CodeQL. One existing skip in each backend suite.
  • Candidate image c1961eb8 was installed and updated through the native container template manager. Source hash, health/readiness, configuration preservation and visible profile settings were verified. The fully cached regression now trims to 10 and orders measured resolution correctly without new probes.
  • Two complete automation cycles with real FFmpeg probes each finished with 10 unique assigned streams. Matching may reconsider previously trimmed candidates, so repeated assignment entries do not by themselves indicate final over-allocation.
  • Native sequential targeted and fully cached checks, plus the real single-channel manual API with full reprobes, also finish at exactly 10. Active-viewer reservations and soft-cap behavior remain covered by the existing suites.

Fixes #548

Post-merge verification: official dev-20261114 / e5b767ae was installed through the native template manager. Its source matches the tested candidate, application settings and profiles survived the update, fully cached checks trim 20 to 10, real cached 1080p measurements sort before 720p without new probes, and two more complete automation cycles finish at 10 unique assignments. Dev Tests, CodeQL and the official multiarch image build all passed.

Build note: the additional pull_request: closed publisher run 43578804861 failed because its fork event token cannot write the GHCR package. The official dev push build 43578804102 succeeded and produced the verified image.

@bttfw
bttfw marked this pull request as ready for review November 14, 2026 09:04
@bttfw
bttfw merged commit e5b767a into krinkuto11:dev Nov 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant