Archilyzer · Source

archilyzer

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

commit 0261da332c4efd49b58a81384cfd7a3ee1c0e8b5
parent 798837924f3a0ef02dfe33f972b30e5b91e6f7cc
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Thu, 29 Oct 2026 16:05:37 -0400

e2e: Play the cut's fixtures under locked edges

play-engine-fixture keeps the rule: c02 (locked 3.5-5.5, both edges in the
tone) now plays 3.5-5.5 instead of snapping across the tone to 3.011-6.101,
and c01's route row carries its locks and the locked end's mute (3.0).
play-cut-fixture's clock numbers are about the clock, not locks: its cut
sets render.lockedEdges: false (the opt-out), so they stand as they were.

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

Diffstat:
Mumtool/e2e/fixtures/play-cut-fixture.mjs | 7++++++-
Mumtool/e2e/play-engine.spec.ts | 15+++++++++++----
2 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/umtool/e2e/fixtures/play-cut-fixture.mjs b/umtool/e2e/fixtures/play-cut-fixture.mjs @@ -42,7 +42,12 @@ export function makePlayCutFixture({ reports, deckManifest, cachedWindow, name = m.render.fetchPad = 0; // One counter, as the Huck cut has: the reel strip's staircase steps 1 at c02, 2 more at c04. m.render.chrome = { ...m.render.chrome, factcheck: { verdicts: { CORROBORATED: { label: "Seizures", color: "#6fa8dc" } }, stamp: { seconds: 1 } } }; - writeFileSync(path.join(dir, "video.manifest.json"), JSON.stringify(m, null, 2) + "\n"); + // Every clip is locked, and c02's and c04's locked edges sit in the tone: a + // locked edge never snaps across a sound (mute.mjs lockedEdges), which would + // move every number play-cut.spec.ts reads off this clock. Its cut keeps the + // plain snap (`render.lockedEdges: false`); play-engine-fixture below keeps + // the rule, and play-engine.spec.ts checks c02 stays at its locked edges. + writeFileSync(path.join(dir, "video.manifest.json"), JSON.stringify({ ...m, render: { ...m.render, lockedEdges: false } }, null, 2) + "\n"); mkdirSync(path.join(dir, "out", "clips-raw"), { recursive: true }); copyFileSync(cachedWindow, path.join(dir, "out", "clips-raw", `${video}_0.00-9.00.mp4`)); // A made take with its own timeline (a JSON merge patch replaces the list). diff --git a/umtool/e2e/play-engine.spec.ts b/umtool/e2e/play-engine.spec.ts @@ -20,8 +20,10 @@ import * as urls from "./urls"; // // Fixture: e2e/fixtures/play-cut-fixture.mjs's play-engine-fixture (the // play-cut cut, which this spec WRITES). On the fixture's window (playvid; silences -// 2.90-3.11, 5.92-6.11) the render cuts c01 at 1.000-3.082, c02 3.011-6.101, -// c04 6.007-8.000; in whole frames at 15 fps c01 lasts 2.133 s, so c02's +// 2.90-3.11, 5.92-6.11) the render cuts c01 at 1.000-3.082 (its locked end +// snapped outward, inside the silence it sits in), c02 3.5-5.5 (locked, both +// edges in the tone: never snapped across it), c04 6.000-8.000 (a locked start +// never snaps inward); in whole frames at 15 fps c01 lasts 2.133 s, so c02's // segment starts at 1.933 (the 0.2 s crossfade before c01's end). // --------------------------------------------------------------------------- @@ -54,12 +56,17 @@ test("the render's edges: Play schedules each clip as the build cuts it, and say // c01's end snapped into the pause after it; its start had none near. await expect(root(page)).toHaveAttribute("data-play-span", "1-3.082"); await page.locator('[data-play-row="c02"]').press("Enter"); - await expect(root(page)).toHaveAttribute("data-play-span", "3.011-6.101"); + // Locked: the snap would reach across the tone to 3.011 and 6.101 (as play-cut's + // unlocked-edges copy does); a locked edge stays where the author put it. + await expect(root(page)).toHaveAttribute("data-play-span", "3.5-5.5"); await expect(page.locator("[data-play-approximate]")).toContainText("edges are the render's, snapped to silence"); // The route itself: the silences it snapped on, and which edge moved. const got = await (await page.request.get(`/api/report/cut-points?project=${encodeURIComponent(PROJECT)}`)).json(); const c01 = got.clips.find((c: { id: string }) => c.id === "c01"); - expect(c01).toMatchObject({ cutStart: 1, cutEnd: 3.082, snapped: { start: false, end: true }, playFrom: 1, playTo: 3 }); + expect(c01).toMatchObject({ cutStart: 1, cutEnd: 3.082, snapped: { start: false, end: true }, playFrom: 1, playTo: 3, locked: { start: true, end: true } }); + // c01's locked end: silent from 3.0 (the snapped breath past it is not heard), as the build mutes it. + expect(c01.muteFrom).toBe(3); + expect(got.clips.find((c: { id: string }) => c.id === "c02")).toMatchObject({ cutStart: 3.5, cutEnd: 5.5, snapped: { start: false, end: false } }); expect(got.clips.find((c: { id: string }) => c.id === "c03")).toEqual({ id: "c03", missing: true }); });