Archilyzer · Source

archilyzer

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

commit f7291d2b0e757bc2f4bddf03fe3359c052614479
parent 802a7e3fd4abd5d03ebe13ffc9af9efced3668e7
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 19 Oct 2026 12:59:26 -0400

plans: release 36 lane C — the look, as shipped (record)

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

Diffstat:
Aplans/release-36/clip-look.md | 100+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 100 insertions(+), 0 deletions(-)

diff --git a/plans/release-36/clip-look.md b/plans/release-36/clip-look.md @@ -0,0 +1,100 @@ +# Release 36 lane C — `r36/clip-look`: the Look panel, loudness, speaker captions, vertical shorts (as shipped) + +The plan of record is [clip-finder-2.md](clip-finder-2.md), lane C. The first case's render look (no header or QR, +fadeblack joins) was a jq edit of the manifest; it had no captions, uneven loudness (−19 LUFS) and no shareable +shorts, and `umtool build` only printed its chain. This lane makes each of those a render key a person sets in the UI, +renders them, and adds the short and `build --run`. Rulings followed: the UI works with no model (nothing here calls +one); every review step a umtool surface; absent keys render byte for byte as before; redesign primitives and role +tokens; synthetic fixtures only; the live projects read only. + +## What + +1. **The keys and their validators** (`umtool/report-to-video/look.mjs`, pure; `validateLook` in build-video's + validators and lint's `validatorErrors`, as `validateTransitionStyle` is): + - `render.captions {style: "speakers", labels?: {host?, subject?}, size?: "m" | "l"}` — refused beside + `render.chrome` (the deck's own words) or `render.montage`. + - `render.loudness {target}` −30…−8 LUFS — refused beside `render.montage` (which has its own). Lane B's seed shape + `{target: -16}` validates. + - clip `vertical {crop: [x, y, w, h], aspect?}` — fractions of the source, inside it, 9:16 on the source within 3 %. +2. **Loudness** at the clip encode, deck or not, montage excepted: the cut measured (`measureLoudness`, now exported), + `levelFilters(loudnessGain(measured, target))` on `[0:a]` (an `asplit` first when a poster's waveform reads it); + the cut record carries `loudness {measured, gain, target}`. +3. **Speaker captions** (no deck): per segment an ASS file (`segments/<id>.captions.ass`) from the project's + `words.json` (the recording reactions.json names), else whisper's words, else the cues; reactions.json's turns + colour and place each line; 2–6 words a line, broken on 0.45 s pauses, never across a speaker change; burned with + `ass=` (libass; ffmpeg n9.0.2 here has it). The colours (fixed, not the palette's): **host `#FFC840` amber bottom + left, subject `#6FD3FF` sky bottom right, other `#F6F1E6` paper bottom centre**, black outline, IBM Plex Sans from + `report-to-video/fonts/`. Names only when somebody gives one (`labels[role]`, else a non-default speaker label). + `setSpeakerLabel(dir, index, label)` added to common/lib/clips/reactions.mjs directly after setSpeakerRole (lane B's + file, the one export the prelude allowed); the clip editor's Speakers list edits it. +4. **The Look panel** — the Build tab: Header, Timeline footer, QR code, Between clips (s) + Join (crossfade, dip to + black, dip to white, dissolve), Loudness (as recorded / −16 / custom), Speaker captions + each role's name + size; + Save the look writes the diff through `updateRender(dir, patch, {token})` (lib/report/manifest.mjs, modelled on + updateChrome: token-guarded, the build's checks, atomic; never `render.chrome`) behind `GET/PUT /api/report/render`. +5. **Vertical shorts** — the clip editor's side column: Frame the short (a 9:16 box over the player: drag, size slider, + written to the clip's `vertical` through updateClip when let go; Centre it), Make a short → a job on umtool's runner + (`/api/report/shorts`, `lib/report/shorts.mjs`): `build-video.mjs --short <id>` — the clip alone at 1080×1920 from + its crop, captions size "l", no header/footer/QR, the cut's loudness else −16 — in the heavy slot, its work in + `out/shorts-work/`, the file `<project>/shorts/<id>.mp4` + `<id>.json`; a short that is there is set aside + (`<id>.<stamp>.mp4`), never overwritten. The Deliver tab's **Shorts** list: play, download, make again, frame it; + "the clip moved since" when the cut or crop changed. +6. **`umtool build <project> --run`** (`lib/report/buildRun.mjs`): the build route's job over HTTP (`--url` > + `UMTOOL_URL` > `http://localhost:3050`), its log followed, Ctrl-C cancels; `--replace`. Without `--run` unchanged. + +## Files + +report-to-video: `look.mjs` (new), `look.test.mjs` (new, 15), `build-video.mjs` (imports, validator, loudness and +captions in `buildClipSegment`, the short's framing, `probeDims` / `readLookSources` / `lookWordsFor` / +`segmentCaptions` / `placeShort`, `--short`, `takesHeavySlot`), `lint.mjs`, `package.json` (`./look`, +`./transition`), `README.md`. umtool: `lib/report/manifest.mjs` (`updateRender`, `lookOf`, `LOOK_KEYS`, +`RenderRefused`, updateClip's `vertical`), `lib/report/clipEditor.mjs` (ops `label`, `vertical`; view `vertical`, +`shorts`), `lib/report/clipEditorBridge.mjs`, `lib/report/clipEditorTypes.ts`, `lib/report/shorts.mjs` (new), +`lib/report/buildRun.mjs` (new), `lib/report/look.test.mjs` (new, 5), `lib/report/buildRun.test.mjs` (new, 3), +`app/api/report/render/route.ts` (new), `app/api/report/shorts/route.ts` (new), +`components/projects/report/LookPanel.tsx` (new), `components/projects/report/ShortsList.tsx` (new), `BuildTab.tsx`, +`DeliverTab.tsx`, `components/projects/review/ClipEditor.tsx` (CropBox, SpeakerLabel, ShortMaker), `bin/umtool.mjs`, +`e2e/clip-look.spec.ts` (new), `e2e/fixtures/clip-editor-fixture.mjs` (a `name`), `e2e/fixtures/make-fixture.mjs`, +`docs/report-video.md` ("The look: captions, loudness, shorts"), `docs/cli.md`. common: `lib/clips/reactions.mjs` + +`.d.mts` (`setSpeakerLabel`). `editor/CHANGELOG.md`, `plans/FACTS.md` ("Release 36 lane C"). + +## Commits + +| sha | what | +|---|---| +| `c8355cf2` | report-to-video: look.mjs, loudness + captions at the clip encode, `--short`; 15 tests | +| `83304773` | umtool: updateRender + /api/report/render, a clip's vertical, setSpeakerLabel, shorts job + route; 5 tests | +| `fe6b9968` | umtool: the Look panel, Frame the short + Make a short, the Shorts list | +| `ebdf6ab7` | umtool: `umtool build --run`; 3 tests | +| `5004235c` | umtool e2e: clip-look.spec.ts; the clip editor's fixture takes a name | +| `6d796dfd` | docs, FACTS, CHANGELOG | +| (this) | plans: this record | + +## Gates (all through the session lock, from the worktree root) + +- `pnpm -r --no-bail --workspace-concurrency=1 exec tsc --noEmit` — clean on the full tree before the commits. +- `pnpm run test:scripts` — **1278 tests, 1274 pass, 0 fail, 4 skipped** (branch start, main 0d471989: 1255 / 1251 / 4; + +23: `report-to-video/look.test.mjs` 15, `lib/report/look.test.mjs` 5, `lib/report/buildRun.test.mjs` 3). +- `pnpm --filter umtool test` — 45 / 45 (unchanged). common `lib/clips/*.test.ts` — 24 / 24 (setSpeakerLabel is + tested through the clip editor's `label` op in `lib/report/look.test.mjs`; lane B's test file untouched). +- The render tests (real ffmpeg, in look.test.mjs): a caption line up on its frame (0.25 s → frame 8 of a 30 fps + segment, nothing on frame 6), the subject's pixels sky (mean B > R + 60) on the right only, the host's amber + (R > B + 80) on the left only; loudness: a −27 LUFS tone to −16 within ±0.5 LU (segment and cut); the short + 1080×1920, its crop's bar at x 428–642 as computed, no header, −16 within ±0.5 LU, captions at 81 px. +- **Byte-identical without the new keys**: in-suite (absent vs `null`: final, segment, cut record); and against + main's build-video (`$T/r36c-scripts/bytecheck.mjs`, a two-clip fadeblack 640×360 fixture, the primary checkout's + build-video vs the branch's): final `49033bc6…`, segments `875fe480…` / `73cd16d7…`, cut records `ef0ece96…` / + `6cd4f047…` — the same both sides. +- e2e (umtool, `E2E_MODE=dev`, no build): `clip-look.spec.ts` **1 passed** (35.8 s; wall 45 s after 3.8 min in the + machine's heavy queue); on the tip `6d796dfd` with `clip-editor.spec.ts`: **2 passed, 0 failed** (clip-editor 24.5 s, + clip-look 9.4 s; wall 43.7 s after 13 min in the heavy queue). +- No `next build` (dev-mode e2e); no generated doc changed (umtool's CLI and env are out of COMMANDS.md / + ENVIRONMENT.md's scope). + +## Found and left + +- A cut quieter than −40 LUFS is not raised (montage.mjs's `SILENT_LUFS` rule, kept): a near-silent clip is a cut in + the wrong place, not a quiet one. +- setSpeakerRole resets a speaker's label to the default, so a name set before a role change is lost (the analysis' + writer, lane B's; not changed here). +- Words heard in no turn (or by one of the stream's small clusters) are captioned as "other", paper centre. +- Captions are not offered under the deck (its `fx.kineticQuote` is the deck's own) or on a montage.