# Video knobs — the surfaces (lane `lane/knobs-ui`, K2)
Asked by the operator on 2026-10-22 on the Huck seizure video: "Do we have the ability to adjust the point where
the count increments / the stamp appears per clip?", "Make quality variants … I'll want to share higher quality
ones elsewhere", and "Add any knobs you can think of, I want to allow for deep human involvement as well as AI
control for these videos." The plan (both lanes): the job's `video-knobs-plan.md`. The renderer side is
`lane/knobs-core` (K1, `plans/video-knobs-core.md`); this lane is the writers, routes, UI, CLI and agent control.
K1 merged first; this lane is rebased on it.
## What shipped
Every knob is a field or button in umtool and a `umtool` command, through one writer each. Absent keys are the
defaults; a knob set to its default is removed. The reference for people and agents is `umtool/docs/knobs.md`.
| Knob | UI | CLI | Route | Writer |
|---|---|---|---|---|
| `claim.at` | clip editor, Count & stamp: **Set at playhead** (Shift+S) | `umtool set
claim.at=S` | `POST /api/report/clip-editor {op: "claim"}` | `updateClaimKnobs` |
| `claim.hold` / `stamp` / `count` / `label` | Count & stamp fields, Clear | `claim.hold=` … | same | same |
| `audio.offset` / `gain` / `fadeIn` / `fadeOut` | clip editor, Audio (nudges ±10/±40 ms, **listen** = 3 s around the playhead), Clear all | `umtool set audio.offset=-40` | `POST /api/report/clip-editor {op: "audio"}` | `updateClip` (`audio`) |
| `factcheck.stamp.scale` / `motion` / `opacity` | Structure → fact-check labels | `umtool look factcheck.stamp.scale=1.3` | `POST /api/report/timeline {op: "factcheck"}` | `updateFactcheck` |
| `factcheck.verdicts[V].stampLabel` | fact-check labels, third column | `factcheck.verdicts.V.stampLabel=…` | same | same |
| `deck.markers[]` (`align`), `deck.markerLayout` | On-screen → **markers** (add, clip picker, label ≤ 24, colour, align, ↑ ↓, remove, layout; ≤ 12) | `umtool look
deck.markers= deck.markerLayout=…` | `PUT /api/report/chrome {markers, markerLayout}` | `updateDeckMarkers` (structural: snapshotted) |
| `render.variants` | Deliver → Variants and sync: Edit / Save ladder / Use the default | `umtool look variants=` | `PUT /api/report/render {variants}` | `updateVariants` |
| Make variants | Deliver → **Make variants** (project build or a take's) | `umtool variants [--take t]` | `POST /api/report/deliver {action: "variants", take?}` (a job) | driver `variantsSteps` → `node report-to-video/variants.mjs ` |
| variants list, Sync table | Deliver: the list (size, frame, kb/s, open), sync rows (lag, flagged > 1 frame, link to the clip's Audio box) | `umtool variants --list [--json]` | `GET /api/report/variants?project[&take][&file=]` | `variantsView.mjs` |
| `layout` (`finale` \| `clip`) on a clip | — (the finale editor is lane/deck-finale's) | `umtool set layout=finale` | — | `updateClip` (`layout`) |
| any `render.chrome.deck.` as JSON | — | `umtool look deck.=` | — | `updateDeckKeys` (structural; validateChrome) |
| all of the above, read | — | `umtool show ` (**knobs** block; `--json`: `knobs`) | — | `knobsCli.mjs knobsOf` |
Rulings:
- Every manifest-write route (`build`, `chrome`, `claim`, `clip-editor`, `cut`, `deliver`, `drafts`, `hand-fill`,
`narration`, `onscreen`, `posts`, `render`, `timeline`, `video-assist`, `window`) takes the page (no header) or
`Bearer `; any other header is 401 (`lib/report/caller.ts`, routeCaller's rule).
- The Count & stamp key is **Shift+S**: S alone stays Split here.
- `claim.at` must lie in the clip's window (`start`–`end`); a window save that would leave it outside is refused.
The box warns when it is outside the cut.
- A claim's knobs are read from the clip that stamps it (the last carrying the id); the box on another clip names it.
- The On-screen table's claim rows keep the knobs while the claim id is unchanged; a row naming knobs replaces them.
- `audio`: merged per key, a 0 or null removes a key, nothing left removes `audio`; offset rounded to the ms,
gain to 0.1 dB, fades to 0.01 s.
- The rules are the renderer's (factcheck.mjs `normalizeClaim`/`validateClaims`/`validateFactcheck`, deck.mjs
`validateChrome`/`validateDeckMarkers`, clip-audio.mjs `validateClipAudio`, variants.mjs `validateVariants`);
`lib/report/knobs.mjs` only reads a typed patch ("12.4", "false", "") into its value, drops a knob at its
default, and names the entry that stamps.
- Sync: a lag past one frame (1000 / fps ms) is flagged; the file is the build's `/sourced/sync.json`.
- The On-screen preview's deck layout is asked with the schedule, so a staggered marker band matches the page; the
Count & stamp box says a new `at` previews approximately until the next build.
Built on main after lane/knobs-core merged (44c31791): this lane ships no copy of the renderer's modules.
## Files
- `umtool/lib/report/knobs.mjs` (+ `knobs.test.mjs`), `knobsCli.mjs` (+ `knobsCli.test.mjs`), `variantsView.mjs`,
`caller.ts`; `manifest.mjs` (`updateClaimKnobs`, `updateDeckMarkers`, `updateVariants`, `normalizeMarkers`,
`updateClip` audio and the `claim.at` window rule, `updateOnscreen` knob carry, knob-aware validation);
`clipEditor.mjs` (ops `claim`, `audio`; the view's `claim`, `stampsOn`, `audio`, `knobs`), `clipEditorTypes.ts`;
`driver.mjs` (`variantsSteps`).
- Routes: `app/api/report/variants/route.ts` (new); `chrome`, `render`, `deliver`, `timeline`, `clip-editor`,
`still`, `chrome/preview` and the guard on every write route above.
- UI: `components/projects/review/ClipKnobs.tsx` (Count & stamp, Audio) in `ClipEditor.tsx`;
`components/projects/MarkersEditor.tsx` in `OnscreenSection.tsx`; `StructureEditors.tsx` (FactcheckEditor);
`components/projects/report/VariantsPanel.tsx` in `DeliverTab.tsx`.
- CLI: `umtool/bin/umtool.mjs` (`set`, `look`, `variants`, `show`'s knobs).
- e2e: `e2e/knobs.spec.ts`, `e2e/fixtures/knobs-fixture.mjs`, `e2e/fixtures/variants.e2e.mjs`
(`E2E_UMTOOL_VARIANTS_SCRIPT` in `playwright.config.ts`).
- Docs: `umtool/docs/knobs.md` (new); pointers in `notes.md`, `report-video.md`, `cli.md`, `AGENTS.md`.