commit 97f9c437330a2ec7edf2477a135bc8f5b5c5c9cb
parent 681d4092c32ec266197bd3e56a186402b0a469f8
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sat, 10 Oct 2026 12:34:00 -0400
plans: release 23 F3 — the A9 follow-up: notes get an agent write path (supersedes A9's no-write ruling)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/editor/CHANGELOG.md b/editor/CHANGELOG.md
@@ -132,6 +132,7 @@
- **A podcast channel's episodes imported by their enclosure URL get their titles and dates back from the feed.** Such a record carried only its file name as its title and no upload date, so the index skipped it and every surface showed the file id. `archilyzer feeds backfill-metadata <slug> [--feed <url>] [--dry-run]`, `POST /api/ops/feed-metadata {slug, dryRun?}` and `pnpm ops feed-metadata` (the new `feed-metadata` job, on the channel's download queue) fetch the channel's RSS feed once — no media — and match each record lacking a date or a real title to an item by guid, enclosure URL or enclosure file name; a record more than one item fits is reported, not guessed. A match fills in what the record lacks: the title, the description as plain text, the duration (a measured one is kept), the upload date and timestamp in UTC, and `webpage_url` only when the new URL keeps the record's id. Every change is a `feed-backfill` entry in the video's metadata history; a dry run counts matched, unmatched and already complete and writes nothing. Rebuild the index afterwards for the titles and dates to reach search and the sites.
- **A Twitch VOD cited by its published id is found on disk.** A Twitch video's folder is named by its number while its record (and its public page) says `v` and the number, so a clip fetch asked by the record's id (the MCP's `fetch_clip`, **Fetch missing evidence**, `pnpm ops fetch-windows`), a site's evidence clips and its missing-evidence list, and umtool's local cue lookup looked in a folder that does not exist: a clip or saved video already on disk was not found, and the video's availability and length were not read. They now look in the video's own folder. Published ids and URLs do not change. Needs a rebuild and restart of the editor and of umtool.
- **Transcribe uses a video's saved source video instead of downloading its audio.** A video with no audio on disk but its whole recording in the saved-video store (a persisted video, a whole-source fetch, or one attached from a local archive) was downloaded again for its audio when **Transcribe** was clicked on its page or `pnpm ops transcribe-one` was run. Its saved video is now transcribed as it is, and the job's log says so ("transcribing from the saved container … — nothing downloaded"). When the saved video's drive is not mounted or not answering, the job stops with the same "media is not reachable" sentence as a clip fetch, rather than downloading; a saved video with no sound is downloaded around as before. Needs a rebuild and restart of the editor.
+- **An agent can answer the operator's notes in umtool, and its replies say they are an agent's.** The MCP's `notes` tool now writes a reply (`action: "reply"`, with `note_id`, `text` and `resolve`) in umtool instead of answering with the `umtool notes reply` command to run; umtool stamps it "agent" and badges it on the page. umtool takes an agent's write only with the editor's `WORKER_TOKEN` as a bearer token — from its own environment, else the editor's `editor/.env` — and refuses any other token (401); a write from umtool's own page is the operator's as before. Register the MCP with `UMTOOL_URL` and `WORKER_TOKEN`. Needs a rebuild and restart of umtool, and a restart of the MCP server.
## [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/release-19.md b/plans/release-19.md
@@ -339,6 +339,33 @@ files `a-*` in the job's `tmp`.
changes nothing itself; README tool table; `UMTOOL_URL`, `WORKER_TOKEN`, `ARCHILYZER_EDITOR_URL` name their MCP
readers (ENVIRONMENT.md regenerated). `channel-config`'s help names `recordedDateTitlePattern`.
+**A9 follow-up (release 23 F3) — notes get an agent write path.** Ruled 2026-10-10: agents get their own write path,
+attributed "agent", never as the operator. **This supersedes A9's ruling above** that the MCP does not write notes.
+- umtool's `POST /api/notes` (`umtool/lib/annotations/agentAuth.mjs`, `postNoteOp`): no `Authorization` header →
+ "operator" (the page, unchanged); `Authorization: Bearer <WORKER_TOKEN>` → "agent"; any other `Authorization`
+ header — a wrong token, another scheme, or any bearer while umtool holds no token — → 401, nothing written. `by` is
+ never read from the body. umtool's `WORKER_TOKEN` is read per request: the environment (an explicit value, even
+ empty, wins), else the first of this checkout's `editor/.env.local` / `editor/.env`, then the main worktree's
+ (A1's `loadEditorEnv` order).
+- The MCP's `notes` `reply` (`note_id`, `text`, `resolve`, optional `target` — else found from the open notes'
+ `?note=<id>` links) POSTs `{op: {op: "reply", id, text, resolve}}` with its `WORKER_TOKEN` and answers `Replied to
+ <id> on <target> as the agent; the note is <status> (N replies).`; a 401 names the token mismatch. No stale-write
+ token is sent (the CLI's way); the page's 409 re-read covers a write in between.
+- `mcp/src/instructions.ts`, `mcp/README.md`, `umtool/docs/notes.md`, `common/lib/envVars.ts` (ENVIRONMENT.md
+ regenerated). umtool's notes UI already badged an agent's note and reply (`NoteCards`, `NoteThread`); unchanged.
+
+| Commit | What |
+|---|---|
+| `1b909c89` | `umtool:` F3 — the bearer → "agent" route, the MCP reply through it, docs |
+
+Gates: tsc clean; `umtool/lib/annotations/agentAuth.test.mjs` 7 (no token → operator; token → agent for a note, a
+reply and its resolve; wrong/malformed/no-umtool-token → 401 with nothing written; `by` in the body ignored both ways;
+no op → 400; the token read order), annotations 23/23; mcp 305/305 (`archivalTools.test.ts` +2: the POST with the
+bearer and the body pinned, an explicit project target; no token, a bad id, no open note, umtool's 401);
+`docs env --check` clean; umtool e2e `article-notes.spec.ts` 9 passed, 14.7 s (+1: an agent's reply over HTTP is
+stamped agent and badged on the page, a wrong token is a 401); umtool `next build` with the corpus linked (5 GB
+scope) green.
+
#### Track A gates (A1–A5, on the merged tip)
- `pnpm -r --no-bail --workspace-concurrency=1 exec tsc --noEmit` — clean before every commit and on the merged tip