Hybrid comparison for ToonZ, Tots, Odyssey and Three (read-only)
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 1m52s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m33s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-04 11:12:00 +00:00
co-authored by Claude Opus 5.5
parent 36c0907ec3
commit da37a8039c
3 changed files with 202 additions and 0 deletions
@@ -231,4 +231,32 @@ class WeightedRolloutReplayTest {
println(out)
}
/**
* Read-only (4 November 2026): the catalogue hybrid tried on ToonZ, Tots, Odyssey and Orbit Three, each as built
* against the same with weights scaled under 12 and 24 hours of episodes. Tots' Wind Down and Night stay on equal turns
* in every variant. Writes hybrid-comparison.txt.
*/
@Test fun hybridComparison() {
assumeTrue(dir != null && File(dir, "episodes-605.json").exists())
val out = StringBuilder("Hybrid comparison: four weeks of new bookings after each committed plan, avoiding every other channel as the box does. Read-only.\n\n")
val baseline = SmartChannels.filter { File(dir, "schedule-${it.number}.json").exists() && File(dir, "episodes-${it.number}.json").exists() }.associate { p ->
p.number to replay(plan(File(dir, "schedule-${p.number}.json")), pool(File(dir, "episodes-${p.number}.json")), p, p.tierWeights?.let { p::weightOf }, keepCommitted = true)
}
for (number in listOf(605, TOTS_NUMBER, 202, 103)) {
val base = SmartChannels.first { it.number == number }
val committed = plan(File(dir, "schedule-$number.json")); val series = pool(File(dir, "episodes-$number.json"))
val others = clashesWith(baseline.filterKeys { it != number }.values.map { ChannelPlan(it, ScheduleCursor()) })
val hours = series.associate { it.title to it.episodes.sumOf { e -> e.durationMs } / 3_600_000.0 }
out.appendLine("== ${base.name} ($number): ${series.size} shows; under 24 h of episodes: ${hours.filterValues { it < 24 }.keys.joinToString().ifEmpty { "none" }}")
for ((label, scale) in listOf("As built" to null, "Hybrid under 12 h" to 12.0, "Hybrid under 24 h" to 24.0)) {
val p = base.copy(catalogueScaleHours = scale)
report(label, replay(committed, series, p, p::weightOf, others), series, p, p::weightOf, others, out)
}
out.appendLine()
}
File(dir, "hybrid-comparison.txt").writeText(out.toString())
println(out)
}
}