Director's Chair: briefs for ATLAS, SYNDICATE and PUNCHLINE; Orbit 1 and Vortex age rules

Paul, 30 November 2026 (catalogue discovery): the three newest channels get briefs from their approved
identities (ATLAS only for titles made outside the English-speaking world; stand-up to PUNCHLINE for The
Comedy Club; no horror on PUNCHLINE). Orbit 1 takes no adult-rated titles; Vortex takes no TV-Y shows.
Wonder takes storybook live action (fantasy). Suggestions only: nothing is placed without approval.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 08:58:59 +00:00
co-authored by Claude Opus 5.5
parent da4b7b8a78
commit 414796bb6a
3 changed files with 81 additions and 7 deletions
@@ -132,13 +132,33 @@ internal val BaseBriefs: List<Brief> = listOf(
// Paul, 23 November 2026: PixelZ and Wonder overlap in appeal but keep distinct identities. Wonder is Disney-style storytelling,
// fairy tales, magical adventures, musical fantasy and family films; PixelZ is Pixar-style animation, Aardman, DreamWorks,
// stop-motion and imaginative animated features. The Chair suggests between them; it never moves a title from one to the other.
Brief(612, "Wonder", setOf("Movie"), setOf("Animation", "Family", "Fantasy", "Music"), setOf("Animation"), w("princess", "prince", "magic", "fairy", "kingdom", "adventure", "tale", "enchant", "spell", "wish", "witch", "musical", "song"),
Brief(612, "Wonder", setOf("Movie"), setOf("Animation", "Family", "Fantasy", "Music"), setOf("Animation", "Fantasy"), w("princess", "prince", "magic", "fairy", "kingdom", "adventure", "tale", "enchant", "spell", "wish", "witch", "musical", "song"),
w("adult", "horror", "preschool", "junior", "Disney Jr", "Spidey"), 1935 to 2026, kids = true),
Brief(613, "PixelZ", setOf("Movie"), setOf("Animation", "Family", "Comedy"), setOf("Animation"), w("adventure", "friends", "family", "toy", "journey", "stop-motion", "stop motion", "claymation", "plasticine", "invent", "robot", "monster", "imagin"),
w("adult", "horror"), 1995 to 2026, kids = true, current = true),
Brief(614, "Tots", setOf("Series"), setOf("Children", "Animation", "Family"), setOf("Children", "Kids"), w("preschool", "little", "learn", "friends", "gentle", "toddler", "young children"),
w("adult", "violence", "fight", "battle"), 1980 to 2026, kids = true))
w("adult", "violence", "fight", "battle"), 1980 to 2026, kids = true),
// Paul, 30 November 2026 (catalogue discovery): the three newest channels, from their approved identities.
// ATLAS: international drama and cinema in its own language; only titles made outside the English-speaking world.
Brief(ATLAS_NUMBER, "ATLAS", setOf("Series", "Movie"), setOf("Drama", "Crime", "Thriller", "Mystery", "Romance", "Action", "Science Fiction", "Fantasy"),
themes = w("korea", "seoul", "japan", "tokyo", "nordic", "scandi", "denmark", "sweden", "norway", "iceland", "spain", "madrid", "france", "paris", "germany", "berlin",
"italy", "naples", "mexico", "brazil", "india", "turkey", "israel", "colombia", "argentina"),
against = w("documentary", "animated", "reality"), era = 1960 to 2026, current = true),
// SYNDICATE: organised crime, from the mob family to the cartel and the heist crew, series and films.
Brief(SYNDICATE_NUMBER, "SYNDICATE", setOf("Series", "Movie"), setOf("Crime", "Drama", "Thriller"), setOf("Crime"),
w("mob", "mafia", "gangster", "cartel", "heist", "syndicate", "organi[sz]ed crime", "crime family", "triad", "yakuza", "drug lord", "kingpin", "crime boss", "underworld", "racket"),
w("documentary", "animated", "comedy", "true story of a detective"), 1930 to 2026, current = true, needTheme = true),
// PUNCHLINE: comedy cinema across every era (Detour keeps its party and road-trip comedy); stand-up for The Comedy Club.
Brief(PUNCHLINE_NUMBER, "PUNCHLINE", setOf("Movie"), setOf("Comedy"), setOf("Comedy"),
w("comedy", "comedian", "spoof", "parody", "slapstick", "stand-up", "farce", "satire", "hilarious", "misadventure", "mix-up"),
w("documentary", "animated", "horror"), 1925 to 2026, current = true))
/** Ratings for the youngest viewers: preschool, not older children's channels. */
internal val PreschoolRatings = setOf("TV-Y", "0+", "3+")
private val EnglishSpeaking = setOf("united states of america", "united states", "usa", "us", "united kingdom", "uk", "great britain", "england", "scotland",
"wales", "northern ireland", "ireland", "canada", "australia", "new zealand")
/** Made outside the English-speaking world: at least one country of origin, and one that isn't English-speaking. */
private fun international(e: TitleEvidence) = e.countries.orEmpty().any { it.trim().lowercase() !in EnglishSpeaking }
internal val KidsOk = setOf("G", "PG", "TV-Y", "TV-Y7", "TV-G", "TV-PG", "U", "TV-Y7-FV", "E", "0+", "3+", "6+", "7+")
internal val Adult = setOf("R", "TV-MA", "NC-17", "18", "18+", "X", "NR18", "SG-R21", "SG-M18", "GB-18")
// "Sci-Fi" (Paul, 23 November 2026): 434 of the library's films carry only that tag, and the Chair took them for not science fiction.
@@ -160,10 +180,10 @@ internal val MmaEvent = Regex("\\b(UFC|MMA|mixed martial|Bellator|PFL|Ultimate F
private val HorrorComedy = Regex("\\b(body horror|body-horror|gross-out|splatter|horror-comedy|horror comedy)", RegexOption.IGNORE_CASE)
internal val LiveSpecial = Regex("\\b(stand-up|standup|comedian|comedy special|unruly set|in this set|live from|in concert|tour film|takes aim at)\\b", RegexOption.IGNORE_CASE)
private val EventFilmWords = Regex("superhero|epic|franchise|saga|blockbuster", RegexOption.IGNORE_CASE)
private val International = setOf(305, 601, 401)
private val International = setOf(305, 601, 401, ATLAS_NUMBER)
private val AnimatedChannels = setOf(105, 601, 602, 603, 604, 605, 611, 612, 613, 614)
private val FactualChannels = setOf(201, 202, 203, 204, 401)
private val FictionChannels = setOf(101, 103, 104, 105, 106, 107, AMERICANA_NUMBER, STORIES_NUMBER, SILVER_SCREEN_NUMBER, 301, 302, 303, 304, 305, 306, 307, 308, 309, 601, 602, 603, 604, 605, 612, 613, OUTLAW_NUMBER, FRONTLINE_NUMBER)
private val FictionChannels = setOf(ATLAS_NUMBER, SYNDICATE_NUMBER, PUNCHLINE_NUMBER, 101, 103, 104, 105, 106, 107, AMERICANA_NUMBER, STORIES_NUMBER, SILVER_SCREEN_NUMBER, 301, 302, 303, 304, 305, 306, 307, 308, 309, 601, 602, 603, 604, 605, 612, 613, OUTLAW_NUMBER, FRONTLINE_NUMBER)
private val Stop = "a an the and or of to in on for with his her their its is are was be by as at from this that he she they it into who when after one two new life series film show story world".split(" ").toSet()
private val Token = Regex("[a-z][a-z'-]{2,}")
@@ -251,11 +271,13 @@ internal fun channelScore(e: TitleEvidence, b: Brief, text: ChannelText, links:
var s = 0.0
val animated = "Animation" in g; val doc = "Documentary" in g
if (animated && ch !in AnimatedChannels && ch !in YOURS_FIRST..YOURS_LAST) return 0.0 to listOf("animation, not for this channel")
if (!animated && ch in AnimatedChannels && g.isNotEmpty() && ch != 611 && ch != 601) return 0.0 to listOf("live action, not for this channel")
// Wonder takes storybook live action too (Paul, 26 November 2026: Mary Poppins, Paddington): fantasy is its mark.
if (!animated && ch in AnimatedChannels && g.isNotEmpty() && ch != 611 && ch != 601 && !(ch == 612 && "Fantasy" in g)) return 0.0 to listOf("live action, not for this channel")
if (doc && ch in FictionChannels) return 0.0 to listOf("a documentary, not fiction")
if (g.isNotEmpty() && !doc && ch in FactualChannels && ch != 401 && !("Reality" in g && (ch == 203 || ch == 204))) return 0.0 to listOf("fiction, not factual")
if (ch == 107 && (doc || "Reality" in g)) return 0.0 to listOf("factual, and Evidence is scripted only")
if (LiveSpecial.containsMatchIn(ov) && ch != 401) return 0.0 to listOf("a live or stand-up special")
// Stand-up has its home in PUNCHLINE: The Comedy Club (Paul, 25 November 2026).
if (LiveSpecial.containsMatchIn(ov) && ch != 401 && ch != PUNCHLINE_NUMBER) return 0.0 to listOf("a live or stand-up special")
if (g.isNotEmpty()) {
if (b.needAny.isNotEmpty() && (g intersect b.needAny).isEmpty()) return 0.0 to listOf("not " + b.needAny.sorted().joinToString("/"))
val hits = (g intersect b.genresAny).sorted()
@@ -282,6 +304,12 @@ internal fun channelScore(e: TitleEvidence, b: Brief, text: ChannelText, links:
if (year < lo - 3 || year > hi + 3) { if (!b.current) { s *= .3; ev += "$year outside its era $lo-$hi" } }
}
if (ch == 101 && (g intersect setOf("Game Show", "Reality", "Talk")).isNotEmpty()) return 0.0 to listOf("a game, reality or talk show, not a sitcom")
// Paul, 30 November 2026: Orbit 1 is family viewing, so an adult-rated sitcom (Shameless) isn't its; Vortex is action
// animation for older children, so a preschool show (Spidey and His Amazing Friends) is Tots' or Junior's.
if (ch == 101 && rating in Adult) return 0.0 to listOf("rated $rating, too old for Orbit 1")
if (ch == 601 && rating in PreschoolRatings) return 0.0 to listOf("rated $rating, a preschool show")
if (ch == PUNCHLINE_NUMBER && "Horror" in g) return 0.0 to listOf("a horror film: After Dark's, not PUNCHLINE's")
if (ch == ATLAS_NUMBER && !international(e)) return 0.0 to listOf(if (e.countries.isNullOrEmpty()) "country of origin not known" else "made in the English-speaking world")
val countries = e.countries.orEmpty().joinToString(" "); val studios = e.studios.orEmpty().joinToString(" ")
val british = Uk.containsMatchIn(countries) || UkStudio.containsMatchIn(studios) || links.britishList(e.id) != null
if (ch == 309 && !british) return 0.0 to listOf(if (e.countries.isNullOrEmpty() && e.studios.isNullOrEmpty()) "British origin not verified" else "not British by its countries, studios or lists")
@@ -0,0 +1,45 @@
package tv.orbit.classic
import org.json.JSONArray
import org.json.JSONObject
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue
import org.junit.Test
/** The Chair's brief fixes from the catalogue discovery (Paul, 30 November 2026). */
class ChairBriefFixesTest {
private fun title(name: String, type: String, genres: List<String>, rating: String, overview: String, countries: List<String> = listOf("United States of America"), year: Int = 2015) =
TitleEvidence.of(JSONObject().put("id", name.hashCode().toString()).put("type", type).put("name", name).put("year", year).put("overview", overview)
.put("genres", JSONArray(genres)).put("studios", JSONArray()).put("rating", rating).put("countries", JSONArray(countries)).put("taglines", JSONObject.NULL))
private fun brief(n: Int) = Briefs.first { it.number == n }
private fun score(e: TitleEvidence, n: Int) = channelScore(e, brief(n), ChannelText(emptyMap(), mapOf(e.id to e))).first
@Test fun theNewestChannelsHaveBriefs() {
assertTrue(Briefs.map { it.number }.containsAll(listOf(ATLAS_NUMBER, SYNDICATE_NUMBER, PUNCHLINE_NUMBER)))
val mob = title("Crime Family", "Series", listOf("Crime", "Drama"), "TV-MA", "A mafia boss runs the family's rackets while the FBI closes in.")
assertTrue(score(mob, SYNDICATE_NUMBER) > 0.5)
val special = title("A Comedian: Live", "Movie", listOf("Comedy"), "TV-MA", "The comedian's stand-up special, recorded live.")
assertTrue(score(special, PUNCHLINE_NUMBER) > 0.4)
val slasher = title("Killer Clown", "Movie", listOf("Comedy", "Horror"), "R", "A comedy of terror.")
assertEquals(0.0, score(slasher, PUNCHLINE_NUMBER), 0.0)
}
@Test fun atlasTakesOnlyTitlesMadeOutsideTheEnglishSpeakingWorld() {
val seoul = title("Seoul Nights", "Series", listOf("Crime", "Thriller"), "TV-MA", "A detective in Seoul hunts a killer.", listOf("South Korea"))
val boston = title("Boston Nights", "Series", listOf("Crime", "Thriller"), "TV-MA", "A detective in Boston hunts a killer.", listOf("United States of America"))
assertTrue(score(seoul, ATLAS_NUMBER) > 0)
assertEquals(0.0, score(boston, ATLAS_NUMBER), 0.0)
}
@Test fun orbit1IsFamilyViewingAndVortexIsntPreschool() {
val adult = title("Rough Family", "Series", listOf("Comedy", "Drama"), "TV-MA", "A sitcom about a chaotic family and their dad.")
assertEquals(0.0, score(adult, 101), 0.0)
val preschool = title("Little Heroes", "Series", listOf("Animation", "Action"), "TV-Y", "Young heroes battle villains with their powers.")
assertEquals(0.0, score(preschool, 601), 0.0)
}
@Test fun wonderTakesStorybookLiveActionButNotAnyFamilyFilm() {
val storybook = title("The Enchanted Nanny", "Movie", listOf("Fantasy", "Family", "Music"), "G", "A magical nanny arrives on the wind and brings a family's tale to life.", year = 1964)
assertTrue(score(storybook, 612) > 0)
}
}
@@ -37,7 +37,8 @@ class DirectorChairTest {
assertEquals(1, report.unread) // shown, never hidden
assertTrue(report.picks.size <= DirectorMode.Balanced.picks)
assertEquals(report.picks.map { it.channel }.distinct().size, report.picks.size) // one per channel
assertTrue(report.picks.none { it.title == "Stand-up Night" })
// A stand-up special goes only to PUNCHLINE, The Comedy Club's home (30 November 2026), never another channel.
assertTrue(report.picks.none { it.title == "Stand-up Night" && it.channel != "PUNCHLINE" })
assertEquals(0, report.collections)
}