Archilyzer · Source

archilyzer

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

commit f75ac6fe562ca3e7e1942fedcb7d6b9e527a1dc1
parent 8a003ed58a24525b4d75d040f3e6da7df2a4b8b8
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon, 19 Oct 2026 16:10:28 -0400

plans: release 36 lane E -- the record (room at the clip edges, the blur slide), gates

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

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

diff --git a/plans/release-36/clip-edges.md b/plans/release-36/clip-edges.md @@ -0,0 +1,95 @@ +# Release 36 lane E — `r36/blur-slide`: room at the clip edges, and the blur slide (as shipped) + +The operator, watching the first highlights cut: the edges are tight — a join fades over the end of one clip's last +sentence and the start of the next one's first. Ruled: the sound runs on to the first silence, and muted picture +carries the join. This lane makes that a render key, `render.room`, and records the blur slide (the orchestrator's +commit `a012e9ff`) that the site-less seed now starts with. Rulings followed: the UI works with no model (nothing here +calls one); every step a umtool surface (the Look panel, the clip editor's toggle and strip); absent keys render byte +for byte as before; deterministic code; synthetic fixtures only; the live project read only. + +## What + +1. **`render.room {tail?, head?, minGap? (0.35), maxS? (2.5)}`** and clip **`room: false | {tail?, head?}`** + (`umtool/report-to-video/room.mjs`, pure; `validateRoom` inside `validateLook`, so the build, the lint and + `updateRender` check it; refused beside a montage). An edge is on when its key is `true`; the clip's key beats the + cut's. +2. **The rule** (file seconds, on the snapped cut). TAIL: the sound runs to the end of the run of words that crosses + the cut's end or starts within `minGap` after it, stopping at the first gap ≥ `minGap`, never more than `maxS` + past it, a 60 ms fade there; the picture runs on muted for D + 0.1 s. HEAD (not the cut's first entry): when speech + starts within D of the cut's start the picture starts D earlier, muted, the sound fading in over the 60 ms before + the cut. Words: the project's words.json (the recording reactions.json describes) → corpus transcript.json → cues + (`lookWordsFor`, lane C's resolver); none, or a run of cues that reaches the cap → `silencedetect` −35 dB / 0.3 s on + the clip's source (in a silence → the cut's end; else the next silence within maxS; none → the cut's end, noted). +3. **In the build** (`segmentRoom`, `detectRoomSilences`, buildClipSegment): only with a join (D > 0, not a montage, + not a short); the segment is cut over the picture's span, clamped to the source file (a fetched window clamps, a + note says so; the lint's `roomWindowWarnings` warns when a clip's room can reach past `extent + fetchPad`); the + fades follow any loudness gain; loudness measures `[cut start, silence point]`; captions read only the words heard + and end at the silence point; the cut record's `start/end` are the picture's (muteFrom still maps) plus + `room {sound, head, tail, via, capped?, clamped?}`. Joins, chapters and offsets come from probed segment lengths + as before. +4. **umtool**: `LOOK_KEYS` + `room` (the Look panel's Room at the clips' edges: Tail, Head); `updateClip` takes + `room` (validated; null deletes); the clip editor's op `room {clip, room}` and view `clips[].room`, + `clips[].roomEdges`, `room {tail, head, minGap, maxS, join}`; the strip shades the muted head/tail + (`roomShade`, the rule on the unsnapped cut), a per-clip **Room at its edges** checkbox and a line saying where the + sound stops. Additive to lane D's clip-editor work: one new op, two view fields, one prop on Strip, one row. +5. **The seed**: `SITELESS_LOOK` = 0.4 s `blurslide` joins + `room {tail, head}` (was 0.5 s `fadeblack`). +6. **The blur slide, recorded** (`transition.mjs`, commit `a012e9ff`): `transitionStyle: "blurslide"` → xfade + `slideright`, and on each side of a plain join the segment's last/first D s get `gblur sigma 10 / sigmaV 0.6` over + D, `gblur sigma 16 / sigmaV 0.6` more over the D/2 nearest the seam (≈ 19 at the seam), `noise alls 7, allf t+u` + over D — `BLUR_SLIDE = {sigma: 10, seamSigma: 16, sigmaV: 0.6, noise: 7}`, in the clip's own time (batched joins + too); dips, wipes and whips keep their own look. + +## Files + +report-to-video: `room.mjs` (new), `room.test.mjs` (new, 12), `room-render.test.mjs` (new, 4), `build-video.mjs` +(imports, `segmentRoom`, `detectRoomSilences`, buildClipSegment's span/sound/captions, `segmentCaptions({audible})`, +`dirs.room`), `look.mjs` (validateLook calls validateRoom), `lint.mjs` (roomWindowWarnings), `package.json` +(`./room`). umtool: `lib/projects/scaffold.mjs` (SITELESS_LOOK), `lib/report/manifest.mjs` (LOOK_KEYS, updateClip +`room`), `lib/report/clipEditor.mjs` (view + op), `lib/report/clipEditorTypes.ts`, `lib/report/room.test.mjs` (new, 4), +`lib/report/look.test.mjs` + `lib/report/reactions-r36.test.mjs` (the new key and seed), `components/projects/review/ +ClipEditor.tsx`, `components/projects/report/LookPanel.tsx`, `e2e/clip-look.spec.ts` (room in the panel and the +editor), `e2e/create.spec.ts` (the seed's look), `docs/report-video.md` ("Room at the clips' edges, and the blur +slide"). `plans/FACTS.md` ("Release 36 lane E"), `editor/CHANGELOG.md`. + +## Commits + +| sha | what | +|---|---| +| `8d503692` | report-to-video: render.room — room.mjs, the build, the lint; 16 tests | +| `21473c70` | umtool: the Look panel's room, a clip's override, the strip's shading, the seed; 4 tests; e2e specs | +| `182dc04b` | docs, FACTS, CHANGELOG | +| `7d801566` | umtool: the clip room toggle shows the choice at once | +| (this) | plans: this record | + +## Gates (through the session lock, from the worktree root) + +- `pnpm -r --no-bail --workspace-concurrency=1 exec tsc --noEmit` — clean except one umtool JSDoc typing (fixed; + umtool's tsc then clean, and again after the last code commit). +- `pnpm run test:scripts` — **1310 tests, 1306 pass, 0 fail, 4 skipped** (branch start a012e9ff: 1289 / 1285 / 4; + +20 here — room 12, room-render 4, lib/report/room 4 — and +1 from main's lane A merge). +- `pnpm --filter umtool test` — 45 / 45 (unchanged). +- Render tests (real ffmpeg): the first clip's words run past its end to 4.75 → segment [1, 5.25] (4.25 s, ±1 frame), + heard (RMS > 1500) to the silence point, silent (< 30) after it; the second clip's muted head 0.4 s (silent before, + heard after its cut); the cut = sum − one join (±2 frames), the join silent, the second clip's sound on its picture; + loudness of the audible part −16 ± 0.6; the last caption ends by 3.75 s; no words → silencedetect found the 4.6 s + silence (±0.05) and the picture ran 0.5 s past it; a clip's `room: false` kept its cut. +- **Byte-identical without the key**: in-suite (absent, `null`, `{tail: false, head: false}`: final, both segments, + both cut records); and against main's build-video (`$T/r36e-bytecheck.mjs`, a two-clip blurslide 320×180 fixture with + loudness): final `06b3d852…`, segments `8e09b095…` / `5a9556ce…`, cut records `3bd732e2…` / `7150b74f…` — the same + both sides. +- e2e (umtool, `E2E_MODE=dev`): `clip-look.spec.ts` + `clip-editor.spec.ts` — first run 1 passed, 1 failed (the + controlled checkbox; fixed in `7d801566`), then **2 passed, 0 failed** (wall 51.8 s); `create.spec.ts` (the seed's + look) **13 passed** (wall 85.2 s). +- A trial on a copy of the first case's inputs (`--only r018`, room on, the saved full video, no network): words.json, + the sound ran 496.0 → 498.08 (the next word 0.4 s later), head 0.4 s, tail 0.5 s, segment 50.0 s, −16.1 LUFS. + The copy's output was deleted. + +## Found and left + +- The room extends the sound past the cut a person set (up to `maxS`): words they trimmed off can come back, ending + at the next pause. A clip's `room: false` (or `{tail: false}`) keeps the cut as set. +- The strip's shading is the rule on the cut as drawn; the build snaps the cut to a silence first, so the rendered + edge can differ by up to `snapWindow`. +- No room in a short (no join), a montage (refused) or with `transition: 0` (the lint says it does nothing). +- Detection with no words uses an absolute −35 dB floor; on loud game audio it can find no silence, and the sound + then stops at the cut (noted in the build log).