From a0ae85f669835669a750019447b3b5d0a51156b1 Mon Sep 17 00:00:00 2001 From: Pauljd Date: Wed, 4 Nov 2026 13:38:58 +0000 Subject: [PATCH] Living Network: add Drive-In curation as the third test scenario; record Paul's stage order and approvals Co-Authored-By: Claude Opus 5.5 (1M context) --- docs/living-network-proposal.md | 106 +++++++++++++++++++++++++++++--- docs/roadmap.md | 20 ++++++ 2 files changed, 116 insertions(+), 10 deletions(-) diff --git a/docs/living-network-proposal.md b/docs/living-network-proposal.md index bdc6c33e..e5876d91 100644 --- a/docs/living-network-proposal.md +++ b/docs/living-network-proposal.md @@ -2,7 +2,12 @@ 4 November 2026, after the coordinated cutover. Nothing here is implemented. Each stage below would be its own release, with its own replays, checks and install approval. Committed bookings are never rewritten. -The frame is "The Living Network architecture" in docs/roadmap.md. This proposal adds Paul's two test scenarios from 13:27 today: story-aware episode grouping, and the Dragon Ball Super: Beerus discovery test. +The frame is "The Living Network architecture" in docs/roadmap.md. This proposal adds Paul's three end-to-end test scenarios: story-aware episode grouping and the Dragon Ball Super: Beerus discovery test (13:27 today), and intelligent Drive-In curation (13:38 today). + +**Approved so far (13:38):** +- Stage A moves into implementation, subject to its own tests, replay and install approval. +- The read-only Beerus inspection may run when the TV is idle. +- Media and committed bookings stay untouched. Figures come from the cutover snapshot (`cutover-20261104-131251`: Paradox's pool and its committed plan after the cutover) and the read-only catalogue copy (132,545 items, imported 1 November). @@ -65,8 +70,8 @@ Part markers are common across the network: "(N)" or "Part N" titles appear in m - **Shuffled shows:** a verified story counts as one card in the deck. When it's drawn, all its parts are booked back to back in consecutive slots. - **In-order shows under weighted rotation:** when part 1 is booked, the remaining parts follow it in the next slots, rather than waiting for the show's next turn. -- **Fit:** the whole story must fit inside the block, and finish before the next appointment, using the existing `fitBeforeAppointment` logic. If it doesn't fit, the scheduler picks a standalone episode or a story that does fit. If nothing complete fits, it falls back to today's behaviour. -- **Never strand mid-story when a complete alternative exists:** a part 2 or later is never booked without its earlier parts immediately before it, unless no complete alternative exists. +- **Fit:** the whole story must fit inside the block, and finish before the next appointment, using the existing `fitBeforeAppointment` logic. If it doesn't fit, the scheduler picks a standalone episode or a story that does fit. If nothing complete fits, the slot is filled from other shows in the block. An isolated later part is never booked just to fill a slot (Paul, 13:38). +- **Never strand mid-story:** a part 2 or later is booked only straight after its earlier parts. - **Unchanged:** runtimes, blocks, cursors and progression, rest rules, clash avoidance (checked for every part), and committed bookings. ### Acceptance tests (scenario 1) @@ -164,16 +169,97 @@ All of this is booked only in future uncommitted slots, after: - No What's On item or tag exists before a booking exists. A booking produces one, and removing the booking removes it. - Committed bookings are unchanged, and every other channel's replay fingerprint is identical. +## Test scenario 3: Drive-In intelligent curation (Stage F) + +The Drive-In (number 300) was named OrbitOffice before 2 November. The aim is for Orbit to curate its own cinema calendar from the playable film library, with no screening needing to be scheduled by hand. + +### What exists today (first look; the full audit is Stage F's first release) + +- **Calendar:** `planDriveIn` (DriveIn.kt) books each evening once, a week ahead, so a bill never changes after it's shown. It's already automatic, but the choice is narrow: + - **Sunday to Thursday:** an Orbit Marquee film at 20:00 from four film channels' pools. + - **Friday:** a double bill at 20:00. + - **Saturday:** a triple bill at 19:00. + - **Late Show:** from 23:00 after any bill except a triple. + - **Double and triple bills:** taken from fixed hand-written lists (16 doubles and 11 triples), in a weekly turn. A bill is skipped if any of its films is missing. + - **Rest:** 14 days between screenings of a film. Linear channels avoid the Drive-In's films while they're on. +- **Tickets:** saved in tickets-0.json, keyed by start time. Reminders come 5 minutes before and at the start. +- **Presentation:** the marquee boards, scenes and Emby artwork on the big screen. Event identities exist only as the four kinds: Orbit Marquee, Orbit Double Bill, Orbit Triple Bill and The Late Show. + +The full audit will also cover the live calendar file on the box, the tickets held, the rules in force and how each screen reads them. + +### The scenario + +1. **Read-only audit** of the current calendar, tickets, screening rules, event identities and presentation. +2. **Event discovery:** find opportunities in the playable film catalogue, such as: + - an Arnie Triple Bill; + - a Hammer Horror Double Bill; + - a Universal Monsters Takeover; + - J-Horror After Midnight; + - director and actor spotlights; + - franchise marathons; + - seasonal cinema; + - 1980s and 1990s nostalgia nights. +3. **Each suggestion is checked for:** + - exact film identity, by provider ids, not title alone; + - playability on the box; + - runtimes, and whether they fit the evening; + - thematic fit; + - free dates; + - conflicts with linear channels (the existing clash index); + - film rest. +4. **Each proposal gives:** + - a coherent screening order; + - an event title; + - a date and start time; + - a presentation identity, using approved artwork where it exists. + + Nothing is invented as confirmed, and no unapproved takeover is activated. +5. **A proposed replacement calendar** for review. The current future calendar is retired only by a **separate Drive-In cutover** that you approve explicitly, with snapshots and rollback, like the 31-channel cutover. + - Tickets, screenings already underway and confirmed events are kept. Nothing is discarded silently. + +### Shared with the Living Network + +The Drive-In uses the same verified identities, event proposals and confirmed-booking record as the channels. Once an event is approved and booked: +- the Drive-In shows the confirmed programme; +- the event gets its presentation identity; +- tickets and screening details reflect the actual booking; +- What's On can promote it automatically; +- linear channels avoid clashing with its films. + +The Drive-In stays bookable on its own and keeps everything it does today. + +### Acceptance tests (scenario 3) + +- **The audit report:** + - lists every future Drive-In booking and every live ticket; + - has no title in logs, only counts. +- **Each recommended event:** + - has only playable films whose identity is verified; + - fits its evening; + - clashes with no linear booking; + - keeps film rest. +- **A dry-run calendar replacement:** + - keeps every ticketed screening and every screening underway exactly; + - has 0 gaps and 0 clashes; + - rolls back to byte-identical files. +- **What's On and the Drive-In** read the same booking. A proposal that isn't booked appears in neither. +- **Linear channels' fingerprints** are unchanged, except where a newly booked event's film is now avoided. + +Stage F ships in small releases, starting with read-only event recommendations. + ## Suggested stages -| Stage | Contents | Waits on | +Paul's development order (13:38): + +| Stage | Contents | Status | |---|---|---| -| A | Story grouping: the detector, Paradox only (Doctor Who and The X-Files), behind a per-channel switch. Replays and the tests above. | Your approval of this proposal | -| B | Beerus read on the box (inspect hook), then your choice of copy and slot | TV idle and your OK | -| C | New-media detection: report only, no booking. Labels and evidence across the library. | Stage A's approval | -| D | Channel assignment and slot proposals, suggest-and-approve, starting with Beerus on Vortex | Stages B and C | -| E | Story grouping on more channels, one at a time | Stage A on air | -| — | What's On reads confirmed bookings | Stage D | +| A | Doctor Who story grouping on Paradox, behind a per-channel switch. Multi-part stories are booked as complete groups, never as isolated later parts to fill a slot. | Approved for implementation; install needs its own approval | +| B | Beerus inspection on the box (inspect hook) | Approved, when the TV is idle | +| C | New-media detection: report only, no booking | Proposal | +| D | Channel assignment and booking proposals, starting with Beerus on Vortex | Proposal | +| E | Story grouping on other approved channels, one at a time | Proposal | +| F | Drive-In intelligent curation, starting with read-only recommendations, then a separately approved calendar replacement | Proposal | +| What's On | Confirmed broadcasts and cinema events together | After D and F | Then the Vortex Prime and Afterburn ident package, as agreed. diff --git a/docs/roadmap.md b/docs/roadmap.md index 706d7099..528e68c6 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -137,6 +137,26 @@ Paul's direction, recorded as the frame for everything above and below. Not star **Later technical roadmap, each part with its own acceptance criteria, tests and rollback:** continuous seven-day schedule maintenance; catalogue refresh and new-arrival detection; recommendations and special-event selection; user approval and automation preferences; premiere identification; What's On editorial selection; reusable takeover presentation. +## Living Network test scenarios and order (Paul, 4 November 2026) + +Full proposal: docs/living-network-proposal.md. Three end-to-end test scenarios: + +1. **Story-aware episode grouping.** This is reusable; Paradox and Doctor Who come first. Multi-part stories are booked as complete groups from verified markers or approved arc lists, never as isolated later parts. +2. **New-media discovery.** Dragon Ball Super: Beerus is the test: new to library, newly released, first on Orbit, a Vortex Prime proposal, and promotion only once a playable episode is booked. +3. **Drive-In intelligent curation.** Orbit curates its own cinema calendar from the playable film catalogue: Arnie Triple Bill, Hammer Horror Double Bill, Universal Monsters Takeover, J-Horror After Midnight, director, actor, franchise, seasonal and decade nights. Each event is verified for identity, playability, runtime, fit, date and linear clashes. The current future calendar is replaced only by a separately approved Drive-In cutover that keeps tickets, screenings underway and confirmed events. + +**Shared intelligence:** grouping, detection, assignment, scheduling and promotion are separate components sharing verified programme identities and confirmed bookings. The Living Network proposes and schedules, What's On and the Drive-In present confirmed bookings, and the existing scheduler keeps order, timing and continuity. + +**Order:** +- A: Doctor Who grouping on Paradox. Approved for implementation. +- B: Beerus inspection on the box. Approved when the TV is idle. +- C: new-media detection. +- D: channel assignment and booking proposals. +- E: grouping on other channels. +- F: Drive-In curation, in small releases from read-only recommendations. +- Then What's On. +- Then the Vortex Prime and Afterburn idents. + ## After Dark editorial events (Paul, 4 November 2026) These are editorial proposals for the Living Network only. There are no bookings, no assets and no presentation keys until each event is approved.