Archilyzer · Source

archilyzer

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

commit 1293bd203deaa5a29f665949c8df6592d49c1343
parent 81c6d6b87356dd36ee4a7666a7d1f94a50ab6603
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 10 Nov 2026 09:40:25 -0500

umtool e2e: the ingredient rail's fixtures stop being BLOCKING; the lane's new specs fit their fixtures

projects.spec "the two siteOrigin defects are BLOCKING, and nothing else is" failed on main since L5: the
ingredient rail's rail-a/-b/-r manifests used the loopback placeholder (http://127.0.0.1:9) as their
siteOrigin, a dead origin. Their siteOrigin is public-looking now (https://archive.example) and each clip's
citeUrl names the placeholder explicitly -- the same moment URL the origin derived, so the rail's link check
still refuses at once, offline. Also: timeline-edit's Restore test rejects a03 (a02 carries post p1, which
the build refuses to orphan); take-items opens the take card's Options before looking for its tools; the take
card's Options hint drops "import".

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

Diffstat:
Mumtool/components/projects/TakesBench.tsx | 2+-
Mumtool/e2e/fixtures/ingredient-rail-fixture.mjs | 18+++++++++++++-----
Mumtool/e2e/take-items.spec.ts | 1+
Mumtool/e2e/timeline-edit.spec.ts | 15++++++++-------
4 files changed, 23 insertions(+), 13 deletions(-)

diff --git a/umtool/components/projects/TakesBench.tsx b/umtool/components/projects/TakesBench.tsx @@ -876,7 +876,7 @@ function TakeCard({ </p> )} {/* Everything but play, judge, walk and render, folded (lane/ui-simplify): Options the common, Advanced the rare. */} - <Options id="take-card" hint="use · rebuild · check · draft · import · fork · compare"> + <Options id="take-card" hint="use · rebuild · check · draft · fork · compare"> <div className="flex flex-wrap items-center gap-1.5"> {!t.draft && ( <button diff --git a/umtool/e2e/fixtures/ingredient-rail-fixture.mjs b/umtool/e2e/fixtures/ingredient-rail-fixture.mjs @@ -22,6 +22,7 @@ // Synthetic, like every fixture. import { copyFileSync, mkdirSync, writeFileSync } from "node:fs"; import path from "node:path"; +import { archiveMomentUrl } from "umtool-report-to-video/site-links"; export const RAIL_SITE = "http://127.0.0.1:9"; @@ -58,11 +59,18 @@ export function makeIngredientRailFixture({ reports, channels, manifest, cachedW write(rv, "transcript.cues.json", JSON.stringify({ version: 2, source: "whisper", id: "v7rembd1", title: "The Rumble Rail Recording", duration: 120, cues: [{ start: 0, end: 4, text: "rumble." }] })); // ── the projects ── - const origin = { siteOrigin: RAIL_SITE, channelSlug: "railchan" }; - const a = manifest("rail-a", "The Rail A Fixture", origin, [ + // provenance.siteOrigin stays public-looking (a loopback origin is a BLOCKING decision, projects.spec), and each + // clip's citeUrl names RAIL_SITE explicitly -- the moment URL the origin would have derived, on the placeholder. + const PUBLIC = "https://archive.example"; + const origin = { siteOrigin: PUBLIC, channelSlug: "railchan" }; + const cited = (m) => { + for (const e of m.timeline) e.citeUrl = archiveMomentUrl({ ...e, channel: e.channel ?? m.provenance.channelSlug }, m.provenance, e.start ?? 0, { origin: RAIL_SITE }); + return m; + }; + const a = cited(manifest("rail-a", "The Rail A Fixture", origin, [ { type: "clip", id: "ra1", video: "railvid", start: 12, end: 20, cite: 12, section: 0, quote: "the rail recording says line 2." }, { type: "clip", id: "ra2", video: "railvid", start: 100, end: 110, cite: 100, section: 0, quote: "the rail recording says line 17." }, - ]); + ])); const aDir = path.join(reports, "rail-a"); write(aDir, "video.manifest.json", a); const base = manifest("rail-a", "The Rail A Fixture", origin, [a.timeline[0]]); @@ -74,10 +82,10 @@ export function makeIngredientRailFixture({ reports, channels, manifest, cachedW write(aDir, "quote-check.json", { version: 1, checkedAt: "2026-11-06T12:00:00.000Z", clips: { ra1: { status: "ok", offset: 0.02, against: "cues", cut: { from: 12, to: 20 }, quote: "the rail recording says line 2." } } }); const bDir = path.join(reports, "rail-b"); - write(bDir, "video.manifest.json", manifest("rail-b", "The Rail B Fixture", origin, [{ type: "clip", id: "rb1", video: "railvid", start: 15, end: 25, cite: 15, section: 0 }])); + write(bDir, "video.manifest.json", cited(manifest("rail-b", "The Rail B Fixture", origin, [{ type: "clip", id: "rb1", video: "railvid", start: 15, end: 25, cite: 15, section: 0 }]))); write(path.join(bDir, "out"), "links.json", { version: 1, checkedAt: "2026-11-07T00:00:00.000Z", fetched: 1, origins: {}, links: [{ clip: "rb1", url: `${RAIL_SITE}/?v=railchan%2Frailvid&t=15`, state: "ok", origin: RAIL_SITE }] }); const rDir = path.join(reports, "rail-r"); - write(rDir, "video.manifest.json", manifest("rail-r", "The Rail Rumble Fixture", { siteOrigin: RAIL_SITE, channelSlug: "railrumble" }, [{ type: "clip", id: "rr1", video: "v7rembd1", start: 30, end: 40, cite: 30, section: 0 }])); + write(rDir, "video.manifest.json", cited(manifest("rail-r", "The Rail Rumble Fixture", { siteOrigin: PUBLIC, channelSlug: "railrumble" }, [{ type: "clip", id: "rr1", video: "v7rembd1", start: 30, end: 40, cite: 30, section: 0 }]))); return { aDir, bDir, rDir }; } diff --git a/umtool/e2e/take-items.spec.ts b/umtool/e2e/take-items.spec.ts @@ -123,6 +123,7 @@ test("the Cut tab's Add items from another project imports INTO THE DRAFT (L3): expect(text(SRC)).toBe(sourceBefore); // The take cards no longer carry it: a take is opened in the draft first. await page.goto(urls.takesHref(P)); + await openPanel(page, "options", "take-card"); await expect(page.locator(`[data-take-tools="${TAKE}"]`)).toBeVisible(); await expect(page.locator("[data-take-import]")).toHaveCount(0); }); diff --git a/umtool/e2e/timeline-edit.spec.ts b/umtool/e2e/timeline-edit.spec.ts @@ -160,19 +160,20 @@ test("a post added, then removed; the fact-check's labels once the deck is on", }); test("the Removed list: a rejected clip is listed and Restore puts it back as it was, at its old place", async ({ page, request }) => { - const a02 = manifest().timeline.find((e) => e.id === "a02")!; - const rej = await request.post("/api/report/timeline", { data: { project: PROJECT, op: "reject", id: "a02", reason: "repeats", note: "covered by a01" } }); + // a03 (a02 carries the post p1: rejecting it is refused by the build). + const a03 = manifest().timeline.find((e) => e.id === "a03")!; + const rej = await request.post("/api/report/timeline", { data: { project: PROJECT, op: "reject", id: "a03", reason: "repeats", note: "covered by a01" } }); expect(rej.ok(), await rej.text()).toBe(true); - await expect.poll(order).toEqual(["t1", "a01", "a03"]); + await expect.poll(order).toEqual(["t1", "a01", "a02"]); await open(page); const list = page.locator("[data-removed-clips]"); await expect(list.locator("[data-removed-clip]")).toHaveCount(1); - await expect(list.locator('[data-removed-clip="a02"] [data-removed-why]')).toContainText("covered by a01"); - await list.locator('[data-removed-restore="a02"]').click(); - await expect(list.locator('[data-removed-said="ok"]')).toContainText("a02 is back in the cut at 2"); + await expect(list.locator('[data-removed-clip="a03"] [data-removed-why]')).toContainText("covered by a01"); + await list.locator('[data-removed-restore="a03"]').click(); + await expect(list.locator('[data-removed-said="ok"]')).toContainText("a03 is back in the cut at 3"); await expect.poll(order).toEqual(["t1", "a01", "a02", "a03"]); // The entry as it was before the reject: no verdict, every field it had. - expect(manifest().timeline.find((e) => e.id === "a02")).toEqual(a02); + expect(manifest().timeline.find((e) => e.id === "a03")).toEqual(a03); await expect.poll(() => shownOrder(page)).toEqual(["t1", "a01", "a02", "a03"]); await expect(page.locator("[data-removed-clip]")).toHaveCount(0); });