commit 559f30f59e996dee6eac6294e506367adcbf45b8
parent d1a7eb583b8257d15dbfae7c39721adff077b101
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 3 Nov 2026 17:09:55 -0500
umtool docs: the slur filter -- knobs.md's section (the list as data, how a slur matches and what never matches, the card's blackout and placeholder, the read's skip / beep / placeholder and the take's slurs state, the censored build's refusal without word timings, the uncensored switch and what it leaves on), cli.md's `posts slurs` and `take … --uncensored` rows
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 47 insertions(+), 1 deletion(-)
diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md
@@ -56,6 +56,7 @@ Inbox cannot disagree about what is wrong with one.
| `notes …` | operator notes: list, read, reply, resolve ([notes.md](notes.md)) |
| `take <project> --id <id> --label L [--group G] [--kind similar\|different] [--summary S] [--style NAME] [--patch FILE \| --patch-json JSON \| --set path=value …] [--effect NAME] [--at S --dur S \| --full] [--quick] [--force] [--progress ndjson]` | one **take**: the manifest with a montage style's patch, then an overlay effect's (`--effect`, release 35), then the take's own, rendered into `takes/<id>/` (the Takes page's New take); `--id <id> --rebuild` makes one again from its own `take.json` ([report-video.md](report-video.md#making-takes)) |
| `take <project> --id <id> --label L [--patch F \| …] --draft` (`--no-render`) · `take <project> --id <id> [--full \| --at S --dur S]` · `take <project> --id <id> --rebuild [--full \| --at S --dur S]` · `take <project> --id <id> --promote [--anyway] [--json]` | a **draft** take: recorded with nothing rendered, to be walked first; a draft named with no patch flags is rendered from its stored (walked) patch, and `--rebuild` takes a window flag; **make it the cut**: the take's patch applied to the manifest now, one undo point (`revisions/…-auto-before-promote-take`), refused (exit 1) when its timeline would replace a cut that changed since, until `--anyway` ([report-video.md](report-video.md#walking-a-take-drafts-edits-into-the-take-and-making-it-the-cut)) |
+| `take <project> --id <id> … --uncensored` · build-video `--uncensored` | the **uncensored cut** ([knobs.md](knobs.md#the-slur-filter-slurs-masked-in-what-is-published-off-for-the-uncensored-cut)): the same cut with the post items' slur filter off -- `render.posts.slurs.on: false` in the take's patch (a `--rebuild` keeps it; a censored take is not rebuilt uncensored, **exit 2**: make a take of its own), its label gains "(uncensored)", take.json's `slurs` records `censored` or `uncensored`. The redaction of private words and censored attachments stay on |
| `take … --priority` · `takes make … --priority` · `render-mode on [--for 90m] [--note T] [--json \| --print-token]` · `render-mode on [--for 90m] [--note T] [--print-token] -- <cmd …>` · `render-mode off [--force] [--json]` · `render-mode status [--json]` | **render mode**: a render the operator waits for gets the machine. `--priority` turns it on for the take's (or the batch's) lifetime — on at the start, off at the end, on a failure and on a signal; the Takes page's **Give renders the machine** is the same flag. While it is on, every other heavy job (e2e suites, `next build`s, the publish stages, other renders) waits at the heavy slot's door (`queue-lock: held for a render (…) — waiting`), the render runs on the floor 4000 MB and the cap 10240 MB, and the editor's transcription and download lanes are held through its ops (`lane`; only the ones not already held, and only those are released at off). `render-mode on` is a window (default 2h) for a chain of renders: every `umtool take` started in it renders in it, another command joins with the `RENDER_PRIORITY_TOKEN` it prints (`--print-token`: the token alone on stdout, the rest on stderr). **`on … -- <cmd …>` is the form for a script**: the command is spawned with the token in its environment, the hold is the command's pid, and it is released when the command exits — done, failed, or umtool signalled (the signal is passed on); umtool exits with the command's code, and inside a manual window the command joins it. A bare `on` in a script leaves the window behind (the chain trap). `off` ends it (a running take's hold only with `--force`, else it ends with the take); `status` says what holds it and releases a stale hold's lanes. A hold whose process is gone or whose window is over is no hold. Needs WORKER_TOKEN and the editor at ARCHILYZER_EDITOR_URL for the lanes; without them it still holds the door. **Exit 1** when it is already on, or a lane could not be released ([report-video.md](report-video.md#render-mode-giving-a-render-the-machine); WORKTREES.md, "Render mode") |
| `takes make <project> [--recipe FILE] [--only ID,ID] [--force]` · `takes make <project> --all-styles [--group G] [--at S --dur S \| --full]` | a recipe's takes, one at a time (default `takes/recipe.json`); every montage style, one take each (Make all styles); **exit 1** if any failed |
| `takes styles [--json]` · `takes effects <project> [--json]` · `takes pick <project> <take> [--anyway] [--pin \| --unpin] [--json]` | the montage styles; the overlay effects the cut offers (`render.chrome.fx` presets: the Takes page's **Effect** list); **Use this take** — refused (exit 1) when the project changed since the take was made, until `--anyway`; `--pin` keeps the pick when newer takes are built (each whole-cut take of the manifest is otherwise its group's pick once built), `--unpin` lets go ([report-video.md](report-video.md#takes-alternative-renders-judged-side-by-side)) |
@@ -88,6 +89,7 @@ Inbox cannot disagree about what is wrong with one.
| `posts fit <project> [--all \| <item> …] [--linger <s>] [--dry-run] [--json]` · `posts set-item <project> <item> fit=read[:<linger>]` | narrated posts' video attachments cut to their **best part** for the read (lead + take + tail + linger): a scored scan of the sound (loudness, its peaks), the speech (a transcript) and the scene cuts, the start snapped to a pause or a cut, recorded with why (`narration.window`) -- ONE write; each post's old and new length printed. A video no longer than the read is left as it is |
| `posts avatar <project> [<handle> <image-file> \| <handle> off] [--json]` · `posts avatars <project> [--dry-run] [--json]` | the **authors' pictures** (`postAvatars`): `avatar` copies a picture into `posts-media/_avatars/` for every card that draws that handle (manual; never replaced by the archive's), `off` clears it, no handle lists them; `avatars` copies the archive's (the channels' `posts-media/_avatars/avatars.json`, capture-posts') for every author the cut's cards draw unblurred that it has none of. A blurred author never shows one |
| `posts redact <project> ls \| add "<term>" [--substring] [--note "…"] \| remove <n> [--json]` | **REDACTED WORDS** ([knobs.md](knobs.md#redacted-words-blanked-from-what-is-published)): the project's list (`render.posts.redact`, `updatePostRedact`) of words or phrases blanked from everything the cut publishes -- a solid bar on the rendered card, left out of a synthesized read, a post's chapter line and an attachment's captions; matched without case, as whole words (`--substring`: inside words too), a phrase across any spaces or punctuation. The posts' words and the scripts are never rewritten. `ls` numbers the terms as `remove` takes them, and counts the corpus's (`transcripts/redactions.json`) and the posts marked up in the cut's channels (`posts-markup.json`). A term already listed is refused (**exit 1**) |
+| `posts slurs <project> [ls] \| on \| off \| level strong\|all \| visual blackout\|placeholder \| voice skip\|beep\|placeholder \| add <word> \| except <word> \| remove <word> [--json]` | **THE SLUR FILTER** ([knobs.md](knobs.md#the-slur-filter-slurs-masked-in-what-is-published-off-for-the-uncensored-cut)): `render.posts.slurs` (`updatePostSlurs`, one undo point each), on by default -- the slurs of the shipped list (`report-to-video/slurs.json`; `level strong`: only the strong ones) and the project's own (`add`; `except` never masks one) masked in everything the cut publishes: a bar (`visual blackout`) or a dark pill with its mask (`placeholder`, "f*****") on the card, left out of a synthesized read (`voice skip`), its stand-in said (`placeholder`), or said and beeped by the take's word timings (`beep`). `ls` counts what the cut masks per slur and per post -- masks only, never the word -- and names each narrated post whose take says one with no word timings (a censored build refuses it; `posts narrate <p> <item> --words`). `off` is the uncensored cut (the redaction stays). A word already on a list, or on neither for `remove`, is refused (**exit 1**); an unknown verb or value (**exit 2**) |
| `posts context <project> [--dry-run] [--json]` | every **post item's context from its capture** (`postContext.mjs`): the post it quotes and the post it answers, as its page showed them (`capture.json`'s `context`, read by the editor's `capture-posts` -- `"contextOnly": true` reads it alone), filled where the archive row lacks them -- `quoted` where the entry has none (or a named one with no words, the same post), `parents` where it has none (a thread shot stays on the entry; the card draws the parents). What the archive gave is never replaced. ONE write for every entry (`setPostItemsContext`: one undo point, refused whole in the build's words); a re-run with nothing new writes nothing. A post whose capture read no context is listed with the call that reads it (`pnpm ops capture-posts --json '{"slug":…,"ids":[…],"contextOnly":true}' --wait`). The card's blur of other authors is unchanged ([report-video.md](report-video.md#post-items-a-post-as-an-entry-of-the-cut)) |
| `new <slug> --from-posts <channel> [--channel <more>…] [--since D] [--until D] [--own] [--with-media] [--replies …] [--order …] [--limit N]` | a **posts reel**: the scaffold with the deck on (no `siteOrigin`: each post's QR opens the post, `deck.qr.links: "original"`), then `posts reel` with the same filters |
| `timeline <project> insert (--after <id\|-> \| --to-section N \| --group G) post:<channel>/<postId> [--id ID]` | **one post item** among the cut's entries, made as `posts reel` makes one |
diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md
@@ -719,6 +719,50 @@ published card never pushes in on a blank.
| the corpus's list — `transcripts/redactions.json`, the same shape (or `{terms: […]}`): blanked in every project | — | read by every build; the editor's to write | — |
| one post's markup — `transcripts/channels/<slug>/posts-markup.json`, `{"<postId>": {redact?: [{term, wholeWord?, scope?} \| {start, end, scope?, index?}], censor?: [{media, blur?}]}}`: a term in a `scope` (`text`, `parent`, `quoted`; absent, the whole post), or a span of the archived text in code units (`index`: which parent, nearest first); `censor` blurs the post's attachment `media` (its index; `blur` as `media[i].blur`'s keys, absent the whole frame) in every project | — | read by every build of a cut playing the post; the editor's to write | — |
+## The slur filter (slurs masked in what is published; off for the uncensored cut)
+
+Slurs masked in everything a cut PUBLISHES -- on by default, and switched off for an **uncensored cut** of the same
+project (`report-to-video/post-slurs.mjs`, built on the redaction above). The list is DATA,
+`report-to-video/slurs.json`: each slur's forms (its plurals and inflections), its level (`strong`, or `mild`: masked
+only at level `all`), its mask (default: its first letter and an asterisk for each other letter, "f*****") and its
+spoken stand-in ("f-slur"). A slur matches as a WHOLE word without regard to case -- never inside another word
+("Scunthorpe", "niggardly", "retardant" are left alone) -- including the common ways of writing one past a filter: a
+letter swapped for a look-alike (`@`/`4` for a, `0` for o, `3` for e, `1`/`!` for i, `$`/`5` for s, `*` for a vowel)
+and the word spelt out letter by letter with ONE space, dot, dash or underscore between every pair ("f a g g o t",
+"f.a.g.g.o.t"; letters partly together are not read as one). Like the redaction, the archive's rows, the manifest's
+snapshot and every script keep their words.
+
+- **The card** (`visual`): `blackout`, the redaction's solid bar (no letters in the page); `placeholder`, a dark pill
+ holding the mask (`data-post-slur`), the first letter in the case the post wrote it -- the same mask for the same
+ slur across the cut, and never the word in the card's HTML. Its words, the authors' names, the repost line, the
+ posts it answers and quotes, a paraphrase; a video attachment's burnt-in captions (left out under blackout, the mask
+ under placeholder) and a chapter line (the mask). A slur spelt apart keeps its tokens, so a word zoom's indices hold;
+ a zoom on a masked word is refused, as on a redacted one.
+- **The read** (`voice`): `skip`, left out of a synthesized read (as a redacted term is); `placeholder`, its stand-in
+ said in its place; `beep`, said, and a 1 kHz tone laid over it (the voice silenced under it) at its time in the take's
+ word timings. `umtool posts narrate <p> <item> --take` word-times a beep take right after it is made (the editor's
+ transcribe op) and, when that cannot be done, synthesizes the read again with the slur skipped; the bench's re-take
+ cannot time it, so a beep is skipped there. A take records what its audio does (`takes[i].slurs`: `said`, `skip`,
+ `placeholder`). A take that SAYS a slur -- a recording, a beep take, a take from before the filter (no `slurs`), a
+ derived take of one -- is covered in the render by its word timings (`takes[i].words`): silenced over the word under
+ voice `skip`, beeped otherwise. **A censored build refuses a post whose take says a slur and has no word timings**
+ (`umtool posts slurs <p> ls` names each one, with the `--words` line that fixes it).
+- **The switch**: `on: false` -- the project's own, `umtool take <p> --id <id> … --uncensored` (the take's PATCH, so a
+ `--rebuild` keeps it; its label gains "(uncensored)" and take.json's `slurs` says `censored` or `uncensored`),
+ build-video's `--uncensored`, Play's **Uncensored** beside **As published**. Only the slurs are toggled: the
+ redaction of private words and a censored attachment stay on in the uncensored cut. A read synthesized with the slur
+ skipped or replaced stays that way in the uncensored cut (the take holds no word to restore): for an uncensored read,
+ use voice `beep` or a recorded take.
+
+| Knob | In umtool | From a terminal | Route |
+|---|---|---|---|
+| `render.posts.slurs.on` — `true` (default) \| `false`: the uncensored cut | Play the cut, **As published** + **Uncensored** | `umtool posts slurs <p> on` · `off` · `umtool take <p> --id <id> … --uncensored` · build-video `--uncensored` | `GET /api/report/post-item?…&published=1&uncensored=1` |
+| `render.posts.slurs.level` — `all` (default: strong and mild) \| `strong` | — | `umtool posts slurs <p> level strong\|all` | — |
+| `render.posts.slurs.visual` — `blackout` (default) \| `placeholder` | Play, **As published** | `umtool posts slurs <p> visual blackout\|placeholder` | — |
+| `render.posts.slurs.voice` — `skip` (default) \| `beep` \| `placeholder` | — | `umtool posts slurs <p> voice skip\|beep\|placeholder` | — |
+| `render.posts.slurs.add` — the project's own words (always masked; a word, or `{word, forms?, mask?, say?}`) · `.except` — never masked here (a form, a slur's word or its id) | — | `umtool posts slurs <p> add <word>` · `except <word>` · `remove <word>` (one writer, `updatePostSlurs`) | — |
+| what the cut masks | — | `umtool posts slurs <p> ls [--json]`: per slur (its mask, never the word) and per post, and each read that needs word timings | — |
+
## A word zoom (a post item's card pushed in on a word as it is read)
`fx: [{kind: "word-zoom", match, …}]` on a post item ([report-video.md](report-video.md#a-word-zoom): the shape, the
@@ -733,7 +777,7 @@ its bounds. Its bench is the post bench's **word zoom** block; Play the cut zoom
| `scale` 1.2–4 (default 2), `lead` 0–3 s in before the word (0.5), `hold` 0–10 s on it (1.2), `ease` `out`\|`inOut`\|`snap` (`inOut`), `highlight` a colour `#rrggbb` (`#ffd84d`, drawn at 42% under the words with a solid underline) or `false` | the zoom's **scale**, **lead**, **hold**, **ease**, **highlight** (and its colour); the way back out is 0.4 s on the same ease | `set <n> --scale 2.5 --lead 0.3 --hold 1.5 --ease snap --highlight off` (`default` clears one) | `fx: {set: <i>, patch: {…}}` |
| remove one | the zoom's **remove** | `umtool posts fx <p> <item> remove <n>` (1 = the first, as `ls` shows) | `fx: {remove: <i>}` |
| list them, each with its time and where it came from | the block's rows; the plan strip and the read lane mark each from its lead-in to back out | `umtool posts fx <p> <item> [ls] [--json]` | — |
-| `narration.takes[i].words` — the take's WORD TIMINGS, `[{w, start, end}]` per script word (take seconds): the editor's `transcribe` op (`words: true`; parakeet keeps word times) on the take -- or each of its parts' files, at their starts -- the words heard aligned to its script, fuzzy and in order (a typo read as the word it means still pairs; a word not heard is placed between its neighbours) | post bench, **Get word timings** (a job on the editor; the block says when the take is timed) | `umtool posts narrate <p> <item> --words [--worker <id>]` | `POST {op: "take-words", id, worker?}` → `{jobs}` · `GET ?project&id&takeWords=<job>,…` keeps them when done |
+| `narration.takes[i].words` — the take's WORD TIMINGS, `[{w, start, end}]` per script word (take seconds): the editor's `transcribe` op (`words: true`; parakeet keeps word times) on the take -- or each of its parts' files, at their starts -- the words heard aligned to its script, fuzzy and in order (a typo read as the word it means still pairs; a word not heard is placed between its neighbours); what a word zoom is timed by, and what the slur filter silences or beeps a said slur by | post bench, **Get word timings** (a job on the editor; the block says when the take is timed) | `umtool posts narrate <p> <item> --words [--worker <id>]` | `POST {op: "take-words", id, worker?}` → `{jobs}` · `GET ?project&id&takeWords=<job>,…` keeps them when done |
## The source backlog (Sources · Prioritize · Re-sweep when complete)