commit 402488c3bcc861098ada1154cdf54d4e96873266
parent dcd0107e2a4a11f68c7221d7afae06c2e7c639ff
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 17 Nov 2026 10:25:15 -0500
docs: cast try --scope, the tries' lock and sweep
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
4 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md
@@ -28,7 +28,7 @@ Inbox cannot disagree about what is wrong with one.
| `cast assign <project> [--model] [--dry-run] [--json]` · `--accept <id>` · `--accept-all` · `--reject <id>` · `--reject-all` · `--change <id> [--voice <engine:voice>] [--speed s] [--name "…"] [--direction "…"] [--anonymous [--shown "…"] \| --no-anonymous]` | **AUTO-ASSIGNMENT BY RULE** ([knobs.md](knobs.md#proposed-characters-cast-assign)): every post item's author gets a character -- the item's own, this video's, its voice map's or the cast's; an author with none a **PROPOSED** character of this video: an id from the handle, their name, a STOCK Kokoro voice -- the next, in one fixed rotation (a male and a female voice in turn), that this project does not use yet; a gender hint only from the profile's own stated pronouns when the capture carries them. Proposals are kept apart in `<project>/narration/characters.json` (`proposed`; the same writer, an undo point: `cast project <p> undo`) and are **applied to nothing** -- no item, no picked read -- until a person accepts. `--accept <id>` / `--accept-all`: this video's character, named (`narration.character`) on that author's items that name none -- no take made or changed (a picked read in another voice shows as drift); `--change <id>`: its voice (a stock one only), speed, name, direction or anonymity -- the row is then a person's, never re-sent to a model or overwritten; `--reject <id>` / `--reject-all`: dropped. An author an anonymous character covers is never proposed for and never sent to a model. A proposal whose author has a character now is dropped by the next run. `--dry-run` writes nothing. **`--model`** (on request only): the generation task `cast-assign`, routed by `settings.generation` like the other tasks, is asked per author (display name, bio, post text -- untrusted) for `{character, voice, speed, direction}`; each field is checked (a stock voice, a speed 0.5–2, one plain line, control characters stripped) and laid over the rule's row, which stays when the answer fails. Refused: **exit 1**, nothing written |
| `cast audition <character\|@handle> --voices a,b,… [--project <p>] [--text "…" \| --item <id> \| --line <n> \| --stock] [--no-score \| --score-only] [--json] [--progress ndjson]` | **AN AUDITION**: one line read by 2-6 stock voices through the editor's tts op, levelled to -20 LUFS in `<p>/narration/auditions/` (cached), scored for closeness to the character's real voice (`speakers.json`; TitaNet, local) |
| `cast set <id> [--tuning steady\|default\|lively] [--temperature t] [--top-p p] [--repeat-penalty r] [--chunk-takes n] [--no-tuning]` (and `cast add`, `cast project <p> add\|set`) | **A CHARACTER's ORPHEUS TUNING** ([knobs.md](knobs.md#a-characters-orpheus-tuning)): on its synthetic preset -- a named starting point (Steady, Default, Lively: temperature, top_p and repeat penalty together) and the numbers over it; `default` takes one off; a value equal to its default is not kept (takes 3 too: its reads then take the editor's `tts.orpheus.takes`). The default of every Orpheus read the character's preset answers for; a read's own tuning flags beat it; Kokoro and eSpeak NG ignore it. `--json` says `tuning` with every value its reads are asked with (`effective`). Out of range: **exit 1** |
-| `cast try <project> <character\|@handle> [--text "…" \| --item <id> \| --line <n>] [the tuning flags] [--reading N \| --another] [--list \| --clear] [--json] [--progress ndjson]` · `cast stale <project> [<character>] [--json]` | **TRY IT**: one line read in the character's own voice with a tuning (its own, or the flags over it) and a reading, through the editor's tts op, levelled to -20 LUFS in `<p>/narration/auditions/` and kept in a short list (`tries.json`, the newest 12 per character; `--list`, `--clear`) -- SCRATCH: no take on any post, nothing in the draft. **STALE**: the picked Orpheus reads of a character made with other settings than its tuning now (a read whose line asked its own tuning, or a recorded one, never is; takes compared only when the character names them) -- listed, never re-made |
+| `cast try <project> <character\|@handle> [--text "…" \| --item <id> \| --line <n>] [the tuning flags] [--reading N \| --another] [--scope cast\|project] [--list \| --clear] [--json] [--progress ndjson]` · `cast stale <project> [<character>] [--json]` | **TRY IT**: one line read in the character's own voice with a tuning (its own, or the flags over it) and a reading, through the editor's tts op, levelled to -20 LUFS in `<p>/narration/auditions/` and kept in a short list (`tries.json`, the newest 12 per character; `--list`, `--clear`) -- SCRATCH: no take on any post, nothing in the draft. **STALE**: the picked Orpheus reads of a character made with other settings than its tuning now (a read whose line asked its own tuning, or a recorded one, never is; takes compared only when the character names them) -- listed, never re-made |
| `speaker-check <project> [--clip <id> …] [--json] [--progress ndjson]` · `--set 'Name=<clip>,<channel>/<id>,channel:<slug>'` · `--remove <name>` · `--list` | which of the project's **named voices** (`speakers.json`) each clip is: TitaNet-small, local, against each voice's robust centroid → `<project>/speaker-check.json` (merged); the walk's **Speaker:** badge and **Check speaker** ([report-video.md](report-video.md#the-speaker-check-on-the-walk-which-of-several-voices)) |
| `quote-check <project> [--take T] [--clips a,b] [--pad S] [--json]` · `quote-check <project> [--take T] --status` | **is each clip's quote in the seconds it plays?** The cut ±15 s of the source the render would cut it from, transcribed by the editor (`pnpm ops transcribe`, words on — its transcription lane), the quote found in those words and in the cues: `ok`, `moved` (heard more than 0.5 s from where the cues have it), `not-found`; rows in `quote-check.json`, stale when the cut or the quote changes; the editor's work files go to `<project>/.quote-check/`, never under `out/` (a link onto a media drive the editor will not write in); `check` blocks on `moved`/`not-found` (`clip-quote-moved`, `clip-quote-missing`), a take refuses them, `prep --status` counts them; `--take T` judges the take's own clips into `takes/T/quote-check.json`, which the take's render, `check --take T` and `window --take T --align` read with the project's rows (either current row refuses: `--take` only ever adds a refusal) ([knobs.md](knobs.md#the-quote-check-is-the-quote-where-the-clip-plays)) |
| `check-joins <project> --take <id> [--json] [--all] [--limit <n>]` | do a rendered take's **post joins carry on**: every boundary of its master where the next post item draws a post the one before showed, its planned join, the SSIM across it and the largest frame-to-frame step (read-only, ffmpeg) -- worst first ([report-video.md](report-video.md#thread-scenes-whole-threads-the-join-manual-threads-wide-attachments-context-media-link-visits-the-branch-map)) |
@@ -190,7 +190,7 @@ draft (the project's manifest); *project*: a project's other files, or reads; *c
| `cast project <project> pool <id>` | Add to the pool: this video's character into the cast | form · *corpus* |
| `cast project <project> keep <character> [--anonymous] [--shown SHOWN]` | Keep in this video only: a cast character copied here, or an author given one | form · *project* |
| `cast audition <character> --voices VOICES [--project PROJECT] [--text TEXT] [--item ITEM] [--line N] [--stock] [--no-score] [--score-only]` | one line read by 2-6 candidate voices, scored against the real voice | form · queued · *project* |
-| `cast try <project> <character> [--text TEXT] [--item ITEM] [--line N] [--tuning steady\|default\|lively] [--temperature TEMPERATURE] [--top-p TOP-P] [--repeat-penalty REPEAT-PENALTY] [--chunk-takes CHUNK-TAKES] [--reading N] [--another] [--list] [--clear] [--no-hold]` | one line read in a character's voice with a tuning and a reading (scratch) | form · queued · *project* |
+| `cast try <project> <character> [--text TEXT] [--item ITEM] [--line N] [--tuning steady\|default\|lively] [--temperature TEMPERATURE] [--top-p TOP-P] [--repeat-penalty REPEAT-PENALTY] [--chunk-takes CHUNK-TAKES] [--reading N] [--another] [--scope cast\|project] [--list] [--clear] [--no-hold]` | one line read in a character's voice with a tuning and a reading (scratch) | form · queued · *project* |
| `cast stale <project> [<character>]` | the reads made with other settings than a character's tuning now (listed, never re-made) | form · *project* |
| `cast use <project> <character> <voice> [--everywhere]` | the voice a character reads in, here or everywhere | form · *draft* |
| `cast reread <project> <character> [--dry-run]` | the items that say a character in another voice, read again | form · queued · *project* |
diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md
@@ -1800,7 +1800,9 @@ editor's `tts.orpheus.takes`, and the preset and `--json` say that number, never
`<p>/narration/auditions/` and listed (`tries.json`: text, numbers, reading, Play), the newest 12 per character; a try
that falls off takes its file with it (`cast try <p> <character> --clear` empties the list). A try is **scratch**: no
take on any post, nothing written to the draft. While render mode holds the machine, the read says it waits for the
- render; another umtool job running is said in place and Read it opens again when it ends.
+ render; another umtool job running is said in place and Read it opens again when it ends. The tries' writes hold a
+ lock (`tries.json.lock`), and a tuned try's files that no row names are swept once ten minutes old. `--scope
+ cast|project` looks the character up in one layer (the preset's: the cast and this video may both hold an id).
- **Keep these settings** runs `cast set` (a cast character) or `cast project <p> set` (this video's own): one write,
an undo point.
- **Stale, never re-made:** a picked Orpheus read of the character is made with OTHER SETTINGS when its character's
diff --git a/umtool/lib/cli/groups.mjs b/umtool/lib/cli/groups.mjs
@@ -89,7 +89,7 @@ export const GROUPS = [
"**AN AUDITION**: one line read by 2-6 stock voices through the editor's tts op, levelled to -20 LUFS in `<p>/narration/auditions/` (cached), scored for closeness to the character's real voice (`speakers.json`; TitaNet, local)"],
["`cast set <id> [--tuning steady\\|default\\|lively] [--temperature t] [--top-p p] [--repeat-penalty r] [--chunk-takes n] [--no-tuning]` (and `cast add`, `cast project <p> add\\|set`)",
"**A CHARACTER's ORPHEUS TUNING** ([knobs.md](knobs.md#a-characters-orpheus-tuning)): on its synthetic preset -- a named starting point (Steady, Default, Lively: temperature, top_p and repeat penalty together) and the numbers over it; `default` takes one off; a value equal to its default is not kept (takes 3 too: its reads then take the editor's `tts.orpheus.takes`). The default of every Orpheus read the character's preset answers for; a read's own tuning flags beat it; Kokoro and eSpeak NG ignore it. `--json` says `tuning` with every value its reads are asked with (`effective`). Out of range: **exit 1**"],
- ["`cast try <project> <character\\|@handle> [--text \"…\" \\| --item <id> \\| --line <n>] [the tuning flags] [--reading N \\| --another] [--list \\| --clear] [--json] [--progress ndjson]` · `cast stale <project> [<character>] [--json]`",
+ ["`cast try <project> <character\\|@handle> [--text \"…\" \\| --item <id> \\| --line <n>] [the tuning flags] [--reading N \\| --another] [--scope cast\\|project] [--list \\| --clear] [--json] [--progress ndjson]` · `cast stale <project> [<character>] [--json]`",
"**TRY IT**: one line read in the character's own voice with a tuning (its own, or the flags over it) and a reading, through the editor's tts op, levelled to -20 LUFS in `<p>/narration/auditions/` and kept in a short list (`tries.json`, the newest 12 per character; `--list`, `--clear`) -- SCRATCH: no take on any post, nothing in the draft. **STALE**: the picked Orpheus reads of a character made with other settings than its tuning now (a read whose line asked its own tuning, or a recorded one, never is; takes compared only when the character names them) -- listed, never re-made"],
],
},
diff --git a/umtool/lib/cli/verbs.mjs b/umtool/lib/cli/verbs.mjs
@@ -177,6 +177,7 @@ export const VERBS = Object.freeze([
form("cast try", "project", "one line read in a character's voice with a tuning and a reading (scratch)", [
project(), arg("character", { allowAt: true, help: "a character id or @handle" }), opt("--text", { type: "text" }), opt("--item"), num("--line"),
...tuningArgs(), num("--reading", { help: "0 the first; 1, 2, … read again differently" }), bool("--another", "the next reading after the highest kept"),
+ pick("--scope", ["cast", "project"], { help: "the layer the character is looked up in (the same id may be both)" }),
bool("--list", "the tries kept and the line the page prefills"), bool("--clear", "the character's tries removed"), bool("--no-hold"),
], { shape: "cast try <project> <character>", ...Q }),
form("cast stale", "project", "the reads made with other settings than a character's tuning now (listed, never re-made)", [project(), arg("character", { allowAt: true, required: false })], { shape: "cast stale <project> <character>" }),