commit 3ea7d805e978b7d782cbabc63c870916ab08ba35
parent 3f75e01bffe2f0a81e406671b27abba49cfed8c9
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sun, 11 Oct 2026 14:21:11 -0400
plans: release 26 — A2 and A6, as shipped (the article store, its writer, the tools over it)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 80 insertions(+), 0 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -150,6 +150,11 @@
- **A report video's cards can be narrated by a stock synthetic voice.** A card may carry `narration: {text, voice?, engine?}` — the author's words, never derived from the card — and `seconds: "auto"`, its words' length plus a lead and a tail; `render.narration` sets the engine and voice (Kokoro, `af_heart`, by default), speed, level (−17.7 LUFS, with the clips) and the quiet around the words. The voice is synthesized by the editor (`pnpm ops tts`), never by umtool: the build chain's new step, `narrate-via-editor.mjs`, asks for every narration not yet kept and keeps each in the project's `out/narration/`, and the build plays it under its card. A number of seconds shorter than the words need is a lint error. A narrated cut says "Narration: synthetic voice (Kokoro-82M · af_heart)" — the editor's own line — in its file's metadata and at the end of its description and chapters exports. Stock voices only; a manifest without narration builds exactly as before.
- **A report video can be exported as a podcast.** The project page's export row has a **podcast** button per cut (`build-podcast.mjs <manifest>` on the command line): the built cut as sound only — the clips, the narrated cards and the teasers' hits, each silent card left out (`render.podcast.skipSilentCards`) — levelled to −16 LUFS, as `out/<variant>/podcast.m4a` and `podcast.mp3` with the video's chapter titles at the podcast's own times, and `show-notes.md`: the chapters, every cited source's link and, for a narrated cut, the disclosure line. It is made from the segments of the last build, so build the cut first.
- **A report video's narration is reviewed card by card before it is synthesized.** umtool's project page links **Narration — N** when a card is narrated: each card's words beside what it shows on screen, its voice, **Approve**, **Reject** (with a note saying what is wrong), the words edited in place, and **Play** — the editor synthesizes that one card and it plays on the page. Verdicts are kept in `narration.review.json` beside the manifest, each on the words and voice it was given on, so new words or a new voice need approving again. Once that file exists a build refuses any narrated card not approved (`--narration-unreviewed` builds unreviewed and edited ones; a rejected one never); a narrated cut with no review at all builds as before, with a lint warning. The MCP's sweep plan now carries the rule for drafting narration: storytelling and emotion live in the delivery, never in the claims.
+- **Articles: reports the homepage publishes, not a site.** An article is a report in `transcripts/reports/<id>/` (report.json and its siblings, as a site's report); `transcripts/reports/index.json` — `{"published": [ids]}` — is the published, ordered list, and an article's `audience` (`"public"` or `"private"`, private when absent) says which homepage build carries it. An article may cite any channel of the corpus. Both files are written only through the article registry (`common/lib/report/registry.ts`: locked across processes, validated, atomic) and `pnpm ops articles-config {"id", "audience"?, "published"?, "position"?}`, which refuses before writing anything: an unknown article, a position out of range or on a draft, publishing an article whose report.json has problems (listed). REPORT.md describes both stores. Needs a restart of the editor.
+- **The editor's Articles tab.** `/sites/articles` (an **Articles** button on /sites) lists every article — published in order, then drafts — with its problems and audience: Publish, Unpublish, ↑/↓ and Make public / Make private write through the registry. Fetch missing evidence, Prepare evidence media and Export articles are the Reports tab's over the articles, on the same queue (`pnpm ops reports-prepare {"articles": true}`, `reports-export {"articles": true}`). A site's own pages stay on its Reports tab. Needs a restart of the editor.
+- **`archilyzer reports … --article <id>`.** `reports prepare`, `export`, `check`, `verify-quotes` and `attach-video` take `--article <id>` in place of a site (or a report.json): prepare readies every published article plus that one into `.export-index/articles/`, export writes that article's files (a draft too), check says what the homepage's compose would, and attach-video writes `video` through the registry.
+- **umtool's /articles.** The nav's **articles** now opens `/articles`: the homepage's articles with their audience, notes, video project and source; each article's page, evidence walk and notes (`notes.json` beside its report.json; `umtool notes articles/<id>`). A site's own pages are a link away on /sites, as before. Needs a restart of umtool.
+- **`archilyzer reports move-to-articles`** (one-off): moves every report a site lists, but the pages named by `--keep <site>/<id>`, to the article store — private, published in the sites' order, its history and notes with it — printing the plan and changing nothing unless `--apply`.
## [0.11.0] - 2026-09-30
- **Transcripts that arrived after a video was first seen are counted.** The stats behind the homepage, the hub and every site's charts were cached per video and refreshed only when the video's metadata changed, so a transcript that came later — a Whisper run days after the download, or a video downloaded after the last index build — never reached them, and a video with YouTube captions alone had no transcription date. Counts and charts were low; the homepage could show a site with 0 transcripts, 0 channels and 0 hours while it served its videos. A stat is now also redone whenever the index re-reads the video, every transcript has a date, and a captioned video is dated by when its captions arrived rather than by a later Normalize run, so its place on "Transcribed over time" can move. **After updating, rebuild and restart the editor before anything else:** until then, **Build stats dataset** runs the old code and would undo the new stats, while a site, hub or homepage build already runs the new code — and the first stats build of any kind re-reads every video once (about 10–30 minutes on a large archive; it can be stopped and picks up where it stopped). Then build the index, the stats, the homepage, the hub, and the sites.
diff --git a/plans/reports-on-homepage.md b/plans/reports-on-homepage.md
@@ -99,3 +99,78 @@ private-data grep, a public homepage build whose audit passes with zero articles
homepage, as a cited site's are today). *Recommended yes*, with the post-visibility rule unchanged.
- **D5** — Which current reports are site pages: proposed `jeralyzer-private/cohosts` only; every other
listed report becomes an article.
+
+## Record
+
+### A2, as shipped
+
+The article store and its one writer, and the reports stage split into a resolver over a host and a writer into
+an output root (branch `r26/store`, Lane B).
+
+- **Store.** `paths.articlesDir` = `ARTICLES_DIR`, else `<TRANSCRIPTS_DIR>/reports` (ENVIRONMENT.md). An article is
+ `reports/<id>/` (report.json and its siblings, as a site's report); `reports/index.json` `{"published": [ids]}`
+ is the ordered published list; report.json `audience` `"public" | "private"`, absent = private (D2).
+ `common/lib/report/store.ts` names where a store's report directories and staging live (`ReportStore`: a site's,
+ `.export-index/sites/<id>/`; the articles', `.export-index/articles/`).
+- **Writer.** `common/lib/report/registry.ts` — locked (withJsonFileLock in-process around an O_EXCL
+ `reports/.registry.lock` across processes; a dead or 60 s-old holder is taken over; a live one waited for up to
+ 10 s), validated (an index names ids once; only a sound article is published; a patch may not add a problem; a
+ whole document must be sound), atomic (writeJsonAtomic; configureArticle checks everything before writing either
+ file). API: `configureArticle(id, {audience?, published?, position?})`, `setPublished(id, bool, {position?})`,
+ `setArticlesOrder(ids)`, `patchArticle(id, patch | fn)`, `writeArticle(doc, {keepAudience?})`; readers
+ `readArticlesIndex`, `listArticles`, `readArticleState`, `publishedArticleIds(audience)`, `listArticleDirs`;
+ `ArticleRegistryError` for every refusal.
+- **Ops.** `pnpm ops articles-config {"id", "audience"?, "published"?, "position"?}` → configureArticle; usage,
+ COMMANDS.md. REPORT.md (generated) documents both stores and the writer.
+- **Compose split.** `common/publish/reportHost.ts`: `siteReportHost(paths, site)` (its `reports`, `channels` +
+ `citedChannels`, its audience, relative corpus links) and `articlesReportHost(paths, {audience, siteUrl?,
+ channelSiteUrl?, published?})` (index.json narrowed to the build's audience, any channel of the corpus — D4 —,
+ the post visibility rule by the build's audience, absolute archive links only where `channelSiteUrl` names a
+ site, PROJECT_URL as the base). `resolveReports({paths, host})` / `composeHostReports({paths, host,
+ publicDir})`; `resolveSiteReports` / `composeReports` are the site's wrappers. reportMedia, reportExportFiles and
+ reportHistory gained store-based twins of their site paths. Every existing compose test passes unedited.
+
+| Commit | What |
+|---|---|
+| d1975fcf | common: the article store, index.json, audience, the registry writer, REPORT.md |
+| 9e33e439 | publish: the reports stage over a host, into any output root |
+| 490c1ca9 | editor: `pnpm ops articles-config` |
+
+### A6, as shipped
+
+| Commit | What |
+|---|---|
+| ec53dcb8 | cli: `reports prepare|export|check|verify-quotes|attach-video --article <id>` |
+| c0f0f894 | editor: the Articles tab, `/sites/articles`; prepare/export jobs over the articles |
+| 2e1fd460 | umtool: `/articles`, the article page and evidence walk shared with `/sites`, notes on `articles/<id>` |
+| 47a31113 | cli: `reports move-to-articles` — A7's script, dry run by default |
+
+- **CLI.** `--article <id>` in place of a site or a report.json. prepare and export work over `articlesWorkHost`:
+ every published article plus the named one (a draft may be readied), so one cache serves both homepage builds;
+ an article's history commits as "Archilyzer <noreply@articles.invalid>"; attach-video writes `video` through
+ `patchArticle`.
+- **Editor.** `/sites/articles` — a static segment beside `/sites/[siteId]`, linked from `/sites` (no nav entry:
+ "fold, do not add"); a site named `articles` is shadowed there, as one named `new` is. Rows, publish/unpublish,
+ ↑/↓, Make public/private through the registry; Fetch missing evidence, Prepare evidence media, Export articles on
+ the reports queue, spec `params.articles: true` (slug `articles`), replayed as such. The ops `reports-prepare`
+ and `reports-export` routes take `{"articles": true}` (prepare also `{"article": id}`).
+- **umtool.** `ARTICLES_DIR` beside `SITES_DIR`; an article is `articles/<id>` to every reader — the media and
+ evidence routes (`?site=articles`), notes targets and `umtool notes articles/<id>`, a manifest's `"article"`.
+ The nav's "articles" opens `/articles` (`/sites` still marks it). The article page and the evidence walk are
+ shared components. A site named `articles` is shadowed in umtool. The existing notes tests now pass a temp
+ article store of their own.
+- **A7 script, not run.** `archilyzer reports move-to-articles [--keep <site>/<id>,…] [--drafts] [--apply]`;
+ tested on a temp corpus only.
+
+**Gates.** tsc, every package: clean per commit. common 3793/3793 (an earlier full run had one
+`relocateChannelMedia.test.ts` reconcile failure under load; that file alone 44/44 twice); editor unit 264/264;
+test:scripts 836 (834 pass, 2 skipped); mcp 306/306; export unit 118/118; homepage unit 23/23. umtool capped
+build with the corpus linked: compiled in 17.4 s, rc 0. e2e (single specs, foreground): editor `articles.spec.ts`
+1/1 (its run built the editor, 79 s); umtool `articles.spec.ts` + `sites.spec.ts` 6/6, `article-notes.spec.ts` +
+`article-evidence.spec.ts` 12/12; export `e2e:report` `report-site.spec.ts` 23/23. No export or homepage build:
+neither app's code changed.
+
+**Left for the merge.** View hrefs are `/reports/…` (lib/report/views.ts); the homepage's `/articles/` (A3) and a
+site's `/pages/` (A5) need the base decided there. A5's `reports` → `pages`: the move script reads `pages ?? reports`
+and writes `reports` with patchSite, and a search-off site emptied by the move would be refused by A5's validation —
+the merge adapts both. REPORT.md still names site.json `reports`.