commit 02f5e182b1392cc5ee4ab7707b4a4b213ae270a2
parent f42000a369471ae50f73177647cabdf243b9eaa6
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sat, 10 Oct 2026 11:54:02 -0400
plans: release 23 — cited-only channels (citedChannels, ruled) and the overnight's owed fixes F1–F5
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
1 file changed, 69 insertions(+), 0 deletions(-)
diff --git a/plans/release-23.md b/plans/release-23.md
@@ -0,0 +1,69 @@
+# Release 23 — cited-only channels, and the overnight's owed fixes (daytime 2026-10-10)
+
+Written 2026-10-10 against `main` `43e684bb` (release 20 live), on `r23/integration`. Rules:
+`plans/tools/implementer-rules.md`, AGENTS.md (no session trailers or links, the 6 GB floor and `pnpm heavy`, no hand
+edits to `transcripts/**`, private stays private). Record file: this file for Lane 2 and the batch; Lane 1's slices
+record in the files their table names.
+
+## Context
+
+- Release 20 went live overnight. The B2 review (the Candace session: SHIP) and the Twitch-id ruling (option (b))
+ came in since, as did rulings on the transcription lane, MCP notes and cross-site citations.
+- **Cross-site citations.** A private or polemics site that cites a critic's channel today has to pad its pool with
+ that channel, which publishes the channel's browse pages, transcripts, search and corpus.json entry with it. A
+ **cited-only channel** publishes only what the site's reports cite (moment pages, clips) on the citing site.
+- Step 0 (orchestrator): `r20/b2` merged `--no-ff` at `a57b2090`; the review is recorded in
+ [`release-19.md`](release-19.md) B2.
+
+## Lane 1 — owed fixes (`r23/fixes`, sequential)
+
+| # | slice | what | gate | record |
+|---|---|---|---|---|
+| F1 | Twitch join, option (b) | one helper in `common/lib/videoId.ts` maps a record's `v<n>` to its `<n>` directory and back, used at the join points release 20 D2 names (editor fetch-window, `evidenceClip.mjs`, `reportMedia.ts` availability, umtool `cues.mjs`). Records and published ids unchanged | unit per reader; a Twitch `<n>` dir + `v<n>` record fixture through each; no index re-key | `release-20.md` D2 |
+| F2 | Transcribe from a saved container | `whisperVideoAction` looks for `findSourceMedia(entries) ?? resolveSavedVideo(videoDir)` before the disk gate and the audio download; an unreadable pointer is refused with the guard's sentence; an audio-less container takes the download path | action unit tests (present / unreadable / absent / no audio); `whisper.spec` | `release-21.md` |
+| F3 | Notes: an agent write path | umtool `/api/notes` POST stamps `by: "agent"` for a request bearing umtool's `WORKER_TOKEN`, "operator" without one, 401 for a wrong one; never `by` from the body. The MCP `notes` reply writes through it | route test; mcp tests; `article-notes.spec` | `release-19.md` (A9 follow-up) |
+| F4 | Stats cache sees the caption-track pass | the caption-track rule version or a per-record cue fingerprint joins `indexSignature`, so records the pass changed recompute once | unit; `buildStats` tests | `release-20.md` |
+| F5 | Test hygiene | umtool `triage.spec` nav group, `faces.spec` `facedet` capability skip, `find.spec:170` seam-twin skip; `timings.json` per run dir recorded from a `globalTeardown`; `import-video.spec:78` timeout in dev | umtool three files, `e2e-timings.test`, import-video in dev | `e2e-speed.md` |
+
+## Lane 2 — cited-only channels (`r23/cited-only`)
+
+**Schema (ruled 2026-10-10).** `citedChannels: [{slug}]` is a separate site.json key, documented as "channels in
+the cited scope". It fails closed: a reader or an older editor that does not know it drops it, and compose refuses a
+citation of the channel with `not-in-site`. It never publishes a channel's transcripts.
+
+- **Parse:** trim, dedupe, drop blanks; drop any slug already in `channels` (the pool wins). Written only when
+ non-empty; absent parses to `[]`.
+- **Helpers** (`siteSchema.ts`, re-exported by `site.ts`): `siteChannelSlugs` stays pool-only; new
+ `siteCitableChannelSlugs` (pool plus cited) and `isCitedOnlyChannel(site, slug)`.
+- **Naming hazard** (FACTS): "cited" means a cited site, a cited-only channel, `citedMoments`, and compose's local
+ `cited` (renamed `citedSite`).
+
+| step | what |
+|---|---|
+| S1 | Schema + SITE.md: the type, docs, parser, `siteToDisk`, `fileSchemaDocs.ts`; the `channels`/`search` docs say "the pool its citations resolve against" |
+| S2 | Resolution + media: the citable set at compose's and `reportMedia.ts`'s membership checks; no `corpusUrl` for a cited site or a cited-only channel; `not-in-site` names both keys; X-post visibility unchanged. Proving compose test over `padded`, `padded-private`, `padded-cited` |
+| S3 | Staleness + leak guard: `inputSig` signs each cited-only channel's `transcripts`/`posts` trees; `builtCitedOnlyProblem` refuses a build/deploy whose out dir holds a cited channel's trees or lists it in corpus.json, chained beside `builtScopeProblem` |
+| S4 | Writers + editor: `renameChannel` rewrites `citedChannels`; ops `sites` read shows it; the site form's "Cited only: <name>" checkbox on rows outside the pool (`citedChannelsFromForm.ts`); `/sites` list "· N cited" |
+| S5 | Docs + record: REPORT.md, CITATIONS.md, `editor/CHANGELOG.md` ("rebuild each site that uses it"), this file "as shipped" |
+
+**Stays pool-only, unchanged by the separate key:** `publishedMemberSlugs` (and the per-site index, compose trees,
+archives, tombstones, publish state and plan), poolSummary and channel-sites.json, buildStats and curatedTags, the
+channel views, the seeder, the editor channel pages and the export offline page. Compose reads a cited record
+straight from `channels/<slug>/data` (`readCitedRecord`).
+
+**Out of scope (ruled):** moving any live site's padded channels; the owning sessions do it through the editor form.
+
+## Verification
+
+- Lane gates as tabled; tsc clean per commit; `docs files --check` after S1.
+- On the `r23/integration` tip: `pnpm typecheck`, `pnpm test`, `docs env|files|cli --check`, `settings example
+ --check`; the four builds through `pnpm heavy` (5 GB scope); e2e one suite at a time (editor in start mode, export
+ default + report + hub, umtool full, homepage); every red re-run alone, a red that stays red blocks. Counts-only
+ privacy greps over `main..r23/integration`.
+- Live: the three TISM transcriptions read the saved container (job log) and end `done`; an MCP `notes` reply shows
+ in umtool as "agent"; the Twitch helper maps every hasanabi record to an existing `data/<n>/` (offline count). No
+ live `fetch_clip` on a Twitch video (expired VODs are never re-fetched).
+
+## Record
+
+(Lane 2 adds "### Step S<n>, as shipped" sections here; the orchestrator adds "As it went" and "Rollout".)