commit 5669dbdec12854c6ac2c0a844416e6c60381fdf7
parent 876638dada923c20d77121a4bbec1dccf9ddc3f5
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 11 Nov 2026 09:29:36 -0500
plans: FACTS naming hazard -- "local media" means three things
Review fix 9. umtool's report-to-video/local-media.mjs (createLocalMedia: a
clip's file beside the manifest) and lib/research/media.ts localMediaFor (the
files a research view plays for a corpus record) vs the corpus-level
`localMedia` library config, its "local" records and umtool's
local-recording.mjs guard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat:
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/plans/FACTS.md b/plans/FACTS.md
@@ -144,6 +144,15 @@ An ARTICLE's "workspace files" are something else: the files of its research wor
Article tab's `source` view (`umtool/lib/pieces/tabs.mjs` ARTICLE_SECTION_TAB `source`,
`umtool/components/articles/WorkspacePanel.tsx`). Say which.
+**"Local media" means three things.** In umtool, `umtool/report-to-video/local-media.mjs`
+(`createLocalMedia`, `hasLocalMedia`, `validateLocalMedia`) is a report-video clip whose media is a
+FILE BESIDE THE MANIFEST (`src`, `cues`), nothing to do with the corpus; and
+`umtool/lib/research/media.ts` `localMediaFor` is the files on disk a research view can play for a
+corpus record (its clip windows, its saved video). In the corpus, a channel's `localMedia` config key (`common/lib/localMedia.ts`, CHANNEL.md) is
+a LOCAL MEDIA LIBRARY — a directory of recordings the archive imports text from and never owns —
+whose records are platform `"local"`, id `local-<32 hex>`, with `external-media.json`; umtool's guard
+for those is `umtool/report-to-video/local-recording.mjs`. Say which.
+
**Never name a sidecar `transcript.<x>.<y>`.** `common/lib/videoStatus.ts:88` —
`export const SUB_FILE_RE = /^transcript\.([^.]+)\.([^.]+)$/;` treats any such file as a
subtitle track. The exclusion list in `readSubTracks` is hardcoded. Use `ai-digest.json`,