Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 658655faf5822f890df7b0350da82fb63b43263d
parent 796eecebe9c1ab91f6b5aa78695c26d3ae1210fc
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sat, 17 Oct 2026 17:09:57 -0400

umtool: verify-build knows render.montage — the wall's chapter, and a phrase cut's floor

A montage's wall is one more segment and chapter than the timeline has entries; a clip cut to its phrase plays
far less than its window, so its floor is half a second. The wall render test runs verifyBuild.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/report-to-video/montage.test.mjs | 4++++
Mumtool/report-to-video/verify-build.mjs | 11+++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/umtool/report-to-video/montage.test.mjs b/umtool/report-to-video/montage.test.mjs @@ -23,6 +23,7 @@ import { import { applyMontageStyle, MONTAGE_STYLE_NAMES, mergePatch } from "./montage-styles.mjs"; import { buildVideo, snap } from "./build-video.mjs"; import { lintManifest } from "./lint.mjs"; +import { verifyBuild } from "./verify-build.mjs"; import { MONO_BOLD_FONT_FILE, MONO_FONT_FILE } from "./brand.mjs"; const PALETTE = { bg: "#15121c", fg: "#ece8f4", muted: "#9a93ad", accent: "#7c5cff", amber: "#f2b84b" }; @@ -712,6 +713,9 @@ test("render: wall-finale -- a wall segment after the clips, every tile filled a const titles = JSON.parse(String(ch.stdout)).chapters.map((c) => c.tags?.title); assert.equal(titles.length, 5); assert.equal(titles.at(-1), "All together"); + // verify-build counts the wall's chapter, and a phrase cut's length is no shortfall. + const v = await verifyBuild(manifestPath); + assert.deepEqual(v.problems, []); } finally { await rm(root, { recursive: true, force: true }); } diff --git a/umtool/report-to-video/verify-build.mjs b/umtool/report-to-video/verify-build.mjs @@ -22,6 +22,7 @@ import { postsRegions, selectVariant, variantPaths } from "./build-video.mjs"; import { deckGeometry, deckOn, frameCount, postsGeometry, resolveDeck, teaserSeconds, transitionOf } from "./deck.mjs"; import { statsClips } from "./stats.mjs"; import { frameKeyOf, framesOf } from "./prune-frames.mjs"; +import { resolveMontage } from "./montage.mjs"; const execFileP = promisify(execFile); const FFPROBE = process.env.FFPROBE_BIN ?? "ffprobe"; @@ -53,7 +54,9 @@ export async function verifyBuild(manifestPath, { outDir, variant = "sourced", n const probe = JSON.parse(stdout); const duration = Number(probe.format?.duration ?? 0); const chapters = (probe.chapters ?? []).length; - const entries = (manifest.timeline ?? []).length; + // A montage's wall (`render.montage.wall`) is one more segment and chapter. + const montage = resolveMontage(manifest.render ?? {}); + const entries = (manifest.timeline ?? []).length + (montage?.wall ? 1 : 0); if (!(duration > 0)) problems.push("duration is not greater than zero"); @@ -73,10 +76,14 @@ export async function verifyBuild(manifestPath, { outDir, variant = "sourced", n // CUT when it has one, because that is what was rendered. Measuring a cut // clip against its whole extent would fire this floor on a build that did // exactly what the manifest asked for. + // A montage cut to the phrase plays far less than its window: half a + // second a clip is its floor. (n, e) => n + (e.type === "clip" - ? Math.max(0, (e.cutEnd ?? e.end ?? 0) - (e.cutStart ?? e.start ?? 0)) + ? montage?.tighten === "phrase" + ? 0.5 + : Math.max(0, (e.cutEnd ?? e.end ?? 0) - (e.cutStart ?? e.start ?? 0)) // A narrated card's "auto" is measured by the build: no floor from it here. : (typeof e.seconds === "number" ? e.seconds : 0)), 0,