Archilyzer · Source

archilyzer

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

commit bd2d01a96cad4aa61866950221ca37546b130a47
parent 616f12ab4ffbb4cd57062996ead2d1da0d39cf0d
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Fri, 23 Oct 2026 01:33:59 -0400

docs: plans/live-preview.md (the job budget ruling), CHANGELOG line; live-preview spec waits for a dev compile

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

Diffstat:
Meditor/CHANGELOG.md | 1+
Mplans/live-preview.md | 10++++++++--
Mumtool/e2e/live-preview.spec.ts | 6+++---
3 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md @@ -3,6 +3,7 @@ ## [Unreleased] - **A clip in a fact-check video can stamp and count more than once.** The clip editor's **Count & stamp** box is now **Marks**, on every clip: a list of the clip's marks, each its own stamp and its own step of the tally at its own second — its verdict picked by this cut's words (Episodes, Grift…), when it lands (**Set at playhead**, Shift+S for the selected mark), how long it stays, whether it is drawn, how much it counts, what it says, **Remove**. **Add mark at playhead** (Shift+M) adds one under a new id; **Clear** removes them all. Two stamps on one clip that would sit on each other are refused, saying where the second may land. From a terminal: `umtool set <project> <clip> mark.add=Episodes@190.2`, `mark.remove=<id>`, `mark.verdict=…`, `marks=<json>`; `umtool show` lists them. A clip with one mark is written as before, so an existing video renders the same. - **Walk a report video's clips in umtool's clip editor with the on-screen chrome drawn over them, no build.** Under the clip editor's player, **Live preview** draws the cut's deck over the playing clip, in step with the playhead: the clip's date title and subtitle, the timeline with its pip and flags, the tally as it stands at that moment (stepping when a stamp lands), the stamp, the posts, the QR, and the finale's page on the last clip. A trimmed edge, a moved stamp or new words show about a second after they are saved; an unsaved nudge moves the picture at once. **Title** and **Subtitle** under the picture edit the clip's on-screen words, shown as they are typed. A line under the picture says what the preview does not do (the build snaps each edge to a silence and crossfades the clips). **Render this clip** makes the clip with its chrome exactly as the build would, in a minute or two, and plays it in place (`node umtool/report-to-video/build-video.mjs <manifest> --skip-fetch --clip-preview <id>`). The On-screen preview now draws the finale too. Needs a restart of umtool. +- **A long report video with on-screen chrome is no longer stopped partway through its build.** umtool gave a build two minutes per clip (a whole-cut take one minute), which a 36-clip, 25-minute cut with its panel, posts column and stamps outruns: drawing those alone takes over half an hour. A build or take of a cut with on-screen chrome now gets five times the cut's length when that is longer. Needs a restart of umtool. - **A video attached from a local archive gets its date when the archive writes it as 2019-10-31.** `attach-media` with `createRecords` read a folder's "Published on …" line only as "July 13th 2018" or "March 1, 2019"; it now reads "2019-10-31" and "2019/10/31" too, and a date that is not on the calendar is no date. Records it made before without a date can be dated now: `"fillDates": true` on `pnpm ops attach-media` (`--fill-dates` on `archilyzer media attach`) gives a held record that attach-media made, and that has no upload date, the date from its folder's description.txt — recorded in its metadata history. A record that has a date, or that attach-media did not make, is never touched. The log and the summary list them as "dated"; with `"dryRun": true` it only lists them. - **A report video's sound stays with its picture from the first clip to the last.** A clip whose sound started late (its cut reached back before the fetched window's media) or had a gap in it (a seam in the source's stream) used to pull that clip's sound, and every later clip's, early — on a 20-minute cut by half a second from the 13th minute on. Each clip's sound is now laid on its own clock before the clips are joined, and every build writes `sync.json` beside its schedule saying where each clip's sound landed against its picture; the build log names any clip more than a frame off. A video's manifest can now also set when a fact-check stamp lands and the count steps (`claim.at`, a second of the source), how long it stays, a count of more than one, a stamp that counts without showing, the stamp's words, size, entrance and opacity; nudge a clip's sound against its picture, its volume and fades (`audio`); align a timeline flag's label and lay crowded labels in two rows; and `node umtool/report-to-video/variants.mjs <take out dir>` makes smaller copies of a finished cut — 1080p, 720p and one under 24 MiB by default (`render.variants`). Needs a rebuild of the video. - **A fact-check video can count without the stamp, colour its timeline by verdict, flag the moments time passes, and leave the QR off posts.** In umtool's fact-check form, **stamp effect** off draws no verdict stamp over the footage, while the tally in the panel still counts each claim at the second its stamp would have landed. The On-screen settings have **colour** under timeline: **verdict** lights each clip that carries a claim in its verdict's colour — the tally's colour — with a shape per verdict (circle, diamond, square, triangle, ring), and the tally's cells carry the same shapes. **qr codes** under posts off leaves the QR off every post card, popup or feed, and the words take its width; each clip's own QR stays. A video's manifest can flag moments on the timeline (`render.chrome.deck.markers`: "3 to 5 weeks pass" after a clip), each popping in as the timeline reaches it and staying lit. Needs a restart of umtool. diff --git a/plans/live-preview.md b/plans/live-preview.md @@ -42,6 +42,9 @@ about an hour; this lane is the loop without it. end fade when last; no crossfade, no dip), writes `<id>.mp4` and `<id>.json` (the window it was made from), and prunes its frame sequences. The editor shows the file and says when the window has moved since. - "Render from here" was not built. +- A build's job budget (`buildTimeoutMs`) and a whole-cut take's (`takeTimeoutMs`) are at least `RENDER_BUDGET` + (5) × the cut's estimated seconds when the deck is on (`renderSeconds`, from the build and take routes); the + per-clip budgets stay the floor. ## Proven on a copy of the Huck cut @@ -52,7 +55,9 @@ report for the timing and the still). ## Notes for the morning - The Huck project's root has no `out/` (v7 lives in `takes/timeline/out/`): the Build tab's **final** builds the - root's `out/` from the corpus windows (no download), about an hour; then Deliver → **Make variants**. + root's `out/` from the corpus windows (no download), about an hour; then Deliver → **Make variants**. Before + this lane its job budget was 72 minutes (36 clips × 2 min); v7's chrome alone rendered for 36 minutes (deck + 11.8, feed 10.6, stamps 13.4, finale 0.7). Now 5 × ~1515 s ≈ 2 h 6 min. - The final preset's first step is the availability check (`check-availability.mjs`, a `yt-dlp --simulate` per source); a source it cannot reach stops the chain before the build. It last answered for Rumble on 2026-10-16. - A build run from a checkout without `transcripts/` (a worktree) reads cues from the published archive, where a @@ -61,7 +66,8 @@ report for the timing and the still). ## Files `umtool/lib/report/liveClock.mjs` (+ test), `clipRender.mjs`, `livePreview.test.mjs`; `onscreen.mjs` -(`estimate`, `composeFinalePreview`), `serve.mjs` (`finale-preview`), `clipEditor.mjs` (op `onscreen`, the view's +(`estimate`, `composeFinalePreview`, `renderSeconds`), `driver.mjs` (`RENDER_BUDGET`, `buildTimeoutMs`), +`takeMaker.mjs` (`takeTimeoutMs`), routes `build` and `takes/make` (pass `seconds`), `serve.mjs` (`finale-preview`), `clipEditor.mjs` (op `onscreen`, the view's `onscreen`), `clipEditorTypes.ts`. Routes: `app/api/report/chrome/preview` (estimate, finale, leadIn, verdictLabels), `app/api/report/clip-render` (new). UI: `components/projects/review/LiveDeckPreview.tsx` (new), `ClipEditor.tsx` (the mount, the player's handle), `OnscreenSection.tsx` (the finale overlay, `DeckPreviewDoc.finale`). diff --git a/umtool/e2e/live-preview.spec.ts b/umtool/e2e/live-preview.spec.ts @@ -61,8 +61,8 @@ test("the live preview: the deck over the clip, the tally and the stamp at the p await expect(page.locator("[data-editor-player]")).not.toHaveAttribute("data-editor-player", "looking", { timeout: 15_000 }); const live = page.locator('[data-live-preview="c02"]'); - await expect(live).toHaveAttribute("data-live-state", "ready", { timeout: 30_000 }); - await expect(page.getByTestId("live-preview")).toHaveAttribute("data-deck-ready", "1", { timeout: 30_000 }); + await expect(live).toHaveAttribute("data-live-state", "ready", { timeout: 60_000 }); + await expect(page.getByTestId("live-preview")).toHaveAttribute("data-deck-ready", "1", { timeout: 60_000 }); // Never built: the estimate, and the preview says what it does not do. await expect(page.locator("[data-live-approximate]")).toBeVisible(); const deck = page.frameLocator('[data-testid="live-preview-iframe"]'); @@ -103,7 +103,7 @@ test("the live preview: the deck over the clip, the tally and the stamp at the p await title.press("Enter"); await expect.poll(() => entry("c02")?.onscreen?.title).toBe("3 Dec 2024"); await expect(page.locator("[data-editor-status]")).toHaveText("Saved the on-screen words"); - await expect(page.getByTestId("live-preview")).toHaveAttribute("data-deck-ready", "1", { timeout: 30_000 }); + await expect(page.getByTestId("live-preview")).toHaveAttribute("data-deck-ready", "1", { timeout: 60_000 }); await expect(deck.locator('[data-seg="c02"] .deck-title')).toHaveText("3 Dec 2024"); // The last clip is the finale: its page is laid over the deck once it opens; its claim counts there, undrawn.