Multi-part stories, verified from part markers and consecutive episodes only, are booked whole and back to back on Paradox's weighted blocks; mixed decks keep each story as one card; no isolated later part is booked. Other channels unchanged (fingerprints identical); committed bookings untouched. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
5.7 KiB
Orbit TV 0.99.13: story-aware episode grouping on Paradox (Living Network Stage A)
Paul approved Stage A for implementation on 4 November 2026 at 13:38. Installing it needs its own approval. This release changes scheduling on Paradox (106) only. Playback, presentation, assets, the homepage, the Drive-In and the other 29 channels are unchanged. Committed bookings are never rewritten.
What's in it
-
Story detection (StoryGroups.kt,
storiesOf). A run of episodes counts as one story only when:- every title ends with a part marker: "(1)", "(2)" or "Part One", "Part II" and so on;
- the parts are numbered from 1 with no gaps;
- there are 2 to 6 parts;
- each part is the show's next episode, in the same season or running from a season's last episode into the next season's first. That second case covers The Best of Both Worlds and Redux.
Anything less certain isn't a story and plays exactly as before. That includes:
- orphan parts, such as The X-Files' The Blessing Way (2), whose part 1 Anasazi has no marker;
- runs that aren't consecutive;
- both halves in one file, such as Encounter at Farpoint;
- serials of 7 parts or more.
Story arcs with no part markers, such as Heaven Sent and the Monks trilogy, would need a hand-checked list. None is included until you approve one.
-
Mixed shows (Doctor Who, The X-Files, Star Trek: The Next Generation and the other daytime standalones) shuffle each story as a single card in their fixed deck (
shuffledStories), so its parts sit together in order. The deck is still the same every time, and a saved place still works. -
Booking (
extendWeighted, switched on byChannelProgramming.storyGrouping, which only Paradox sets):-
A story is booked whole: part 1 opens it, and each later part follows straight after, ahead of normal rotation.
-
A story is only opened if:
- every part starts inside the block;
- no part clashes with the same show on another channel;
- it ends before the next appointment.
Otherwise another show takes the slot, and the story waits.
-
A mixed show never opens on a later part, so no isolated part 2 or 3 is booked to fill a slot. If a part was cut off before grouping, as in today's committed plans, its deck moves on to the next whole card.
-
In-order shows (Buffy, Supernatural, Fringe, Farscape and so on) keep their order. A story's parts follow on back to back instead of waiting for the show's next turn.
-
Tallies, tiers, rest rules, clash avoidance and cursors are unchanged. The booking reason says "story: part k of n".
-
-
Version: 0.99.13 (versionCode 143).
Checks before install
- 436 unit tests pass (2 skipped: hand-run replays that need input files). Lint has no errors.
- Nine new tests in StoryGroupingTest:
- A Doctor Who-like series finds exactly its 2-, 3- and 6-part stories, including a cliffhanger across a season break.
- Every kind of uncertain link is left alone: orphans, gaps, one-file doubles, mid-season breaks and a 7-part serial.
- A mixed show airs every story whole, in order and inside its block, and every episode still comes round.
- An in-order show keeps its progression.
- A story that would meet the same show on another channel waits.
- A top-up straight after a part 1 carries on with part 2.
- A story cut off before grouping never restarts mid-way.
- With no markers, grouping on and off book identically.
- Only Paradox groups stories.
- Four-week Paradox replay on copies of the box's files after the cutover (docs/replays/story-grouping-replay-0.99.13.txt, StoryGroupingReplayTest). It runs from the committed plan, tops up every six hours, and avoids every other channel's programmes.
| 0.99.12 | 0.99.13 | |
|---|---|---|
| Story parts booked | 80 | 98 |
| Parts stranded (not straight after or before their other parts) | 80 | 0 |
| Complete stories | 0 | 47 (Doctor Who 16) |
| Doctor Who parts stranded | 33 of 33 | 0 of 36 |
| Daytime shares | Doctor Who (2005) 14%, (2023) 14% | the same |
| Same file within 24 h; same show twice running outside a story; in-order stepping back; off its deck; gaps; outside block; clashes; never aired | 0 each | 0 each |
- Stories found in Paradox's pool:
- Doctor Who (2005): 25 (23 two-part, 1 three-part, 1 six-part)
- Doctor Who (2023): 2
- The X-Files: 18
- Stargate SG-1: 19
- Buffy: 9
- Star Trek: The Next Generation: 8
- Farscape: 3
- Fringe, Sliders and Warehouse 13: 2 each
- Supernatural and both Outer Limits: 1 each
- Seven marked episodes were unverified and left as they are: TNG 2, Stargate 1, The X-Files 4.
- A save and reload every 18 hours gives the identical four weeks.
- Committed plan: kept exactly. Its 26 stranded parts, 13 of them Doctor Who, still air as booked, under the never-rewrite rule.
- Every other channel: a four-week replay of all 30 channels was run on 0.99.12 (built from the commit before this change) and on 0.99.13 (docs/replays/replay-fingerprints-0.99.13.txt). Every committed fingerprint is identical. Only 106 differs, as intended.
Known limits
- On air later: Paradox's committed plan runs to about 11 November 13:45, so grouping shows on air from then, as the plan rolls forward.
- Not covered by the replays:
- The replays use copies of the box's files from the cutover, 4 November 13:12.
- Clash avoidance is against the other channels' replayed plans, which is close to, but not exactly, the box's top-up order.
- Tested here as scheduling logic only. What airs needs checking on the box.
- Unmarked arcs aren't grouped until a hand-checked list is approved.
Rollback
Install 0.99.12. The story rule exists only in code, and plan files have the same format, so saved plans load unchanged. Bookings made by 0.99.13 stay as booked.