commit 7b13fcde91b6622fdf3ca9067e884c988e40d0c4
parent 9743a7cd9cca57d1b6dfe3c4bfb27a67a667d277
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 13 Oct 2026 12:04:00 -0400
plans: release 27 S5, as shipped — the generation tasks
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
@@ -1,6 +1,7 @@
# Changelog
## [Unreleased]
+- **The `/sweep` plan says a claim carries no quoted words, and quotes are verbatim.** The MCP's `sweep_plan` now tells Claude Code, at the merge step, that every quoted span before a link becomes that link's quote (so a claim that quotes words breaks its own citation), and that a quote is the transcript's words, copied, within 90 seconds of its link. The same rules, from one place in the code, are what release 27's generation jobs are held to. Claude Code picks it up on its next start.
- **`umtool chain <article> <n>` takes an article's iteration to a video and a podcast.** One step a process, each recorded in the iteration: make it current, have the editor fetch every cited clip window (padded to the cut's 3 s, so the article's clips and the video share one fetch), `reports prepare --article <id> --only`, have the editor capture this article's missing post screenshots, make the video manifest in `~/reports/articles/<id>/i<n>/` (its narration and voices carried over from the parent iteration's project), voice the narration through the editor, build the video and the podcast, attach the video to the article and check it, and hard-link the segments and voices the article's projects share. Run again, it resumes at the first step not done; `--from <step>` runs from one, `--dry` prints the steps, `--final` crossfades. Nothing is fetched, captured or voiced but by the editor.
- **`reports prepare --article <id> --only` answers for that article.** Its problems fail the run, another article's are printed as warnings, and only it is exported, so a draft being readied is no longer held up by a gap in a published article. The media of every published article is still prepared (their cache is shared).
- **A report video made by `reports to-manifest` no longer shows "undefined" under its title or ends on a silent card.** The title card now has an empty third line (and a manifest made before this renders one too), and a section with nothing to show — a trailing Coverage note, a section of posts only — gets no chapter card; the article keeps the section.
diff --git a/plans/release-27.md b/plans/release-27.md
@@ -421,6 +421,33 @@ Gates: tsc clean; common 3891/3891 (21 new); mcp 314/314; editor unit 270/270 (3
Decided here: `import-post` takes a post of the channel's own account only (a reply or quote by another account would be misattributed in that archive). `import-post` is not replayable (a second import reads nothing anyway).
+### S5, as shipped (2026-10-13, lane D)
+
+The generation tasks, on `r27/tasks-jobs` from `r27/integration` `f933f767` (phase 1 merged).
+
+| Commit | What |
+| --- | --- |
+| `277cc480` | `common/lib/report/draft/authoringRules.ts`; `report/draft/tasks/` (the five tasks, `run.ts`, `links.ts`, `quotes.ts`, `corpusSource.ts`, `project.ts`, `reportFile.ts`, `llmText.ts`, `index.ts` with `runTask`); `mcp/src/instructions.ts` reads the rules; `draft/agentTool.ts` re-exports lane A's type; `testing/draft/runs/*.json`; `mcp/src/draftTasks.test.ts` |
+| (this commit) | this record; the CHANGELOG bullet |
+
+- **A task** is `(input, deps)`. `deps` carries the LLM config, the corpus tools (`{source, tools, call}` — common cannot import the mcp package, so the caller builds them with `createCorpusTools`), the web tools, `cuesOf` / `postTextOf` / `postChannelOf` for convert and the quote check, an optional `verifyReport` (the editor's verify-quotes, which reads en-orig), the store's `paths`, a clock, a log and the signal.
+- **`runOnIteration`** is every task's life: the iteration must be `queued` (or `running`) and of the task's kind; it is marked running; the meter's spend per model is added to `usage`, the turns appended to `turns.jsonl`, and it ends `done`, `failed` (with `error`) or `cancelled` (the signal) with `minutes`, `ops` and `checks`. A model's failure is a `failed` iteration and a result; only a call that cannot start throws. Narration runs with `step`: a done iteration's `steps[]` gets `narrate`, its status untouched.
+- **sweep-agent:** the `sweep_plan` text (the request carries channels, batch size, extractor, report), the read tools (no notes, fetch_clip, enqueue, jobs), `extract_batch` (get_transcripts + the extractor model, cut at 400k chars, or the local cap), the report tools (each write kept in the store), Claude's server search plus the deps' web tools. Then the link backstop, convert, the strict check; one repair round with the report tools only, the transcript ±45 s inline and `min($0.25, cap/4)`; a finding still failing is dropped.
+ - **The repair round is a fresh conversation**, not a continuation: `runAgent` starts from a user message, and the round needs only the problems and the report (cheaper than re-sending the run's context).
+- **sweep-pipeline:** `local_sweep.py` ported (terms, enumerate with the word fallback, read in 8s, windows of 90 s, 7000-char chunks, extract, the verbatim locate, the drops, the lint, group twice, the caps); every model call is a `structuredAnswer`, so the 8k cap refuses before sending. Converted and strict-checked; a failing finding is dropped and the markdown re-rendered (up to three rounds).
+- **revise-report / revise-video:** the parent's `sweep.md` (the nearest in the lineage) or cut (the nearest project with a manifest); `read_doc`, `apply_ops` (S2's engines; the add's strict checker over `cuesOf`), the read tools with `notes`, the web. A new finding whose quote fails after convert is dropped; the parent's quotes are never touched (an old `inexact` is a check, not a failure). A video revision's project is seeded from the parent's: the report and stills copied, the voices hard-linked; it has no report of its own.
+- **narrate:** per title and chapter card, the card's evidence, the rules without examples or the tag rule (`rulesForModel`), the taste; S2's grounding plus a word limit (35 / 45, refused at +10); one re-ask; the better attempt; failing sentences removed. A `revisions/<stamp>-auto-before-narration.manifest.json` snapshot, then the manifest written whole; `narration-draft.json` beside it.
+- **Links** are `momentHref(origin, slug, id, s)`. Every get_transcripts result an agent sees has its `moment_base` rewritten to the origin's (the slug from the moment_base when it is in the archive's form, else asked of the corpus with get_video_metadata over the run's channels); the finished markdown's platform URLs and other origins' archive links are rewritten too.
+- **The corpus build:** `pickCorpusBuild(channels, {exportBuildsDir, want?})` (the newest public build holding them, a `-private` one only when alone) and `siteOriginOf(build, sitesDir)`; S6 wires them.
+- **`authoringRules.ts`:** the narration hard rule and writing rules (moved verbatim; `instructions.ts` re-exports them), the taste, the claim-quotes, verbatim, one-quote, post-citation, coverage and style rules, `momentLinkRule(origin)`, `EXTRACTOR_SYSTEM`, the unattended rule. The MCP's batch step now also states the claim-quotes and verbatim rules.
+
+Gates:
+- tsc clean (all packages).
+- common 3966 tests: 3963 pass; the three red were S6's settings in progress in the same tree (the shape test and the two generated-docs tests), green in S6's commit. New here: `tasks/tasks.test.ts` (7).
+- mcp 323/323 (9 new: `draftTasks.test.ts`, each task end to end over the synthetic corpus and the fakes, a cancel mid-request, the repair allowance, a drop after a failed repair).
+- editor unit 270/270; `test:scripts` 850 pass + 3 skipped.
+- No builds (no app code).
+
## Rollout
- Fast-forward `main`.