Archilyzer · Source

archilyzer

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

commit c50189d9a17d755b3b6f966a97d70d3a78bc9a8b
parent ba6611dc4a0f65dcb9ccfb3aff622370aa553004
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 13 Oct 2026 23:39:34 -0400

docs: the media drafts, Draft everything and the review gate (OPERATING.md, umtool authoring) (r28 M9)

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

Diffstat:
MOPERATING.md | 35++++++++++++++++++++++++++++++++++-
Mumtool/docs/authoring.md | 17+++++++++++++++++
2 files changed, 51 insertions(+), 1 deletion(-)

diff --git a/OPERATING.md b/OPERATING.md @@ -164,7 +164,7 @@ umtool chain example-article 3 - In umtool: `/articles/new` starts an article with a sweep or with research (question, channels, dates, model, cap; research takes an autonomy, defaulted from the settings, and needs no channel); the article's **Iterations** tab (`/articles/<id>?tab=iterations`) lists its iterations and runs the rest (**New iteration**, **Copy with - model**, **Narrate**, **Cancel**, **Make the video**, **Use this iteration**); `/articles/<id>/compare?a=&b=` + model**, **Narrate**, **Draft**, **Draft everything**, **Cancel**, **Make the video**, **Use this iteration**); `/articles/<id>/compare?a=&b=` puts two side by side. The pages: [umtool/docs/sites.md](umtool/docs/sites.md). - Each generation is an **iteration** of the article, `i1`, `i2`, … in `transcripts/reports/<id>/iterations/<n>/`, never published ([REPORT.md](REPORT.md), "Iterations"). The article's `report.json` changes only when you choose @@ -182,6 +182,39 @@ umtool chain example-article 3 podcast, attach, dedupe. A re-run resumes at the first step not done. The project is `<projectsRoot>/<id>/i<n>/` (default `~/reports/articles`), off the corpus disk. +**The media drafts** are steps on a done iteration's video cut, each drafting fields of its manifest: + +```sh +pnpm ops report-draft --json '{"task":"onscreen","article":"example-article","iteration":3,"entries":["c01","c02"]}' --wait +pnpm archilyzer gen run youtube --article example-article --iteration 3 --wait +umtool chain example-article 3 --draft-all --model qwen3:8b +``` + +| Task | Field | Limits (code's) | Review | +| --- | --- | --- | --- | +| `cut` | the timeline's order (`drafted.timeline`) | ids from the report's citations only, 3 to `generation.cut.maxClips` (20); windows untouched | the project page's **Review drafts** | +| `onscreen` | each clip's `onscreen.{title, subtitle}` | title ≤ 60, subtitle ≤ 90, one line; a subtitle quotes the clip's own words only | the On-screen table, **Review drafts** | +| `teaser` | a teaser's `lines` (a cut with none gets one) | 3 to 5 lines ≤ 70, no quote read out | the teaser editor, **Review drafts** | +| `flips` | `render.chrome.flips` | pairs over the cut's clips of two dates, THEN the earlier; needs the deck | **Review drafts** | +| `threads` | `render.chrome.threads` and each clip's `thread` | 2 to 4 threads; needs the deck; not with flips | **Review drafts** | +| `narrate` | a card's `narration` | third person; names and numbers from the report; no quote read out | the narration page, **Review drafts** | +| `youtube` | `publish.youtube {title, description}` | title ≤ 100, summary ≤ 900; the build adds chapters and sources to `out/youtube.txt` | the YouTube section, **Review drafts** | + +- Every drafted field carries `drafted {task, model, at, iteration, attempt}`. A field you wrote or edited is never + replaced: the draft is kept in `<task>-draft.json` as an alternative, taken with **Use this**. `force` re-drafts + only a field a model drafted. `entries` limits a per-entry task to those entries. +- In umtool: the project page's **draft** section has **Draft with** a model per task (force, the entries, the job's + progress, the last run's written, skipped and refused); the Iterations tab has the six beside **Narrate**. A + project not made from an iteration (`<projectsRoot>/<id>/i<n>/`) offers none. +- **Draft everything** (the Iterations tab, or `umtool chain <id> <n> --draft-all [--model M]`) is the chain with + its drafts: current → windows → prepare → posts → manifest → cut → on-screen → teaser → flips → threads → + narration → voices → the fast build → podcast → YouTube (its chapters re-muxed so `out/youtube.txt` is written). + No attach, no dedupe. A draft refused or failed is recorded failed and the chain goes on; one with nothing to draft, + or flips and threads with no deck (or the other panel on), is skipped. A resume passes a draft that ran. +- **The review gate:** approve or reject each drafted field (with a note) on `/browse/<project>/review`. A preview or + fast build warns of an unreviewed draft; a `final` build refuses one, and refuses a rejected one whatever the + flags; `--drafts-unreviewed` builds it anyway. A video revision that reorders the cut makes the order its draft. + **The policy** is `settings.generation`: where each task runs (`code` = Claude Code, `api` = the Claude API, `local` = the local model), the models, the caps. diff --git a/umtool/docs/authoring.md b/umtool/docs/authoring.md @@ -117,6 +117,7 @@ sweep** makes the report once it is in (OPERATING.md, "Research runs"). ```sh pnpm ops report-draft --json '{"task":"sweep","article":"<id>","question":"…","channels":["<slug>"]}' --wait umtool chain <id> <n> # the iteration to a video and a podcast +umtool chain <id> <n> --draft-all # Draft everything: the media drafts, voices, the fast cut, the podcast pnpm ops report-draft --json '{"task":"revise-video","article":"<id>","iteration":<n>,"feedback":"…"}' --wait pnpm ops report-draft --json '{"task":"narrate","article":"<id>","iteration":<n>}' --wait ``` @@ -137,6 +138,22 @@ pnpm ops report-draft --json '{"task":"narrate","article":"<id>","iteration":<n> is removed. The manifest before it is kept in `revisions/<stamp>-auto-before-narration.manifest.json`, the draft in `narration-draft.json`. +- **The media drafts** (cut, on-screen, teaser, flips, threads, narration, + YouTube) each draft fields of the iteration's cut, marked as drafts: the + project page's **draft** section (**Draft with** a model per task), the + Iterations tab, or `pnpm ops report-draft` with `iteration`. A field you + wrote or edited is never replaced; the draft waits in `<task>-draft.json` + as an alternative (**Use this**). `force` re-drafts a model's field only. + The limits per task are OPERATING.md's table ("Generate and iterate"). +- **Draft everything** (`umtool chain <id> <n> --draft-all [--model M]`) + drafts them all in the chain's order, then voices, builds the fast cut and + the podcast, then drafts the YouTube text and writes `out/youtube.txt`. A + failed draft does not stop it; flips and threads need the deck, and one + panel only. +- **Review every draft before a final build:** `/browse/<project>/review`, + approve or reject with a note. A fast build warns; `--preset final` + refuses an unapproved or rejected draft (`--drafts-unreviewed` overrides + the unapproved). - **Then review it as a hand-made cut:** `umtool check`, steps 4–6, and a fast pass watched end to end. A generated window is the cue span plus its pad, so widen or lock it as in step 4.