commit df1766e160046b175387a7c1d2d7b83a82431367
parent b2426a8a6ef031b148020ae79235a3ef074c1e08
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Sat, 17 Oct 2026 17:20:27 -0400
umtool: a phrase seed's render.fetchPad is 0 — its window already carries the margin and the editor fetches exactly the window, so a fetch pad on top read every clip as missing (found by the montage lane's smoke)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
3 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/umtool/docs/cli.md b/umtool/docs/cli.md
@@ -189,7 +189,7 @@ its copy says it too, left to that copy's own hit; the same words twice within
three days (a stream and its clip upload) are one clip, the others named in its
note. A context matching `--exclude` is left out, and a caption speaker change
(`>>`) is noted for a voice check. The clips are chronological, `s01…`, the cut
-on the phrase's cues and the window 2.5 s wider each side; `onscreen.title` is
+on the phrase's cues and the window 2.5 s wider each side (so `render.fetchPad` is 0: the window is what the editor fetches); `onscreen.title` is
the phrase as said, `subtitle` the date, and `montage: {n, date, platform,
match, speakerCheck}` feeds the montage styles. The scan's whole answer is
`phrase-scan.json` beside the manifest. The new-project form offers it as the
diff --git a/umtool/lib/projects/scaffold.mjs b/umtool/lib/projects/scaffold.mjs
@@ -326,6 +326,10 @@ export async function scaffoldReportVideo({ root, slug, title, from = null, site
const scan = await phraseScan({ channelsDir, channels: chans, prefer: prefer ? String(prefer).trim() : null, phrase: String(phrase), exclude: exclude || null });
doc.timeline = instancesAsClips(scan.instances);
doc.render.transition = 0;
+ // The window already carries its margin (2.5 s each side), and the editor
+ // fetches exactly the window: a fetch pad on top would ask for seconds
+ // nobody fetched, and every clip would read as missing.
+ doc.render.fetchPad = 0;
if (prefer) doc.provenance.channelSlug = String(prefer).trim();
else if (chans.length === 1) doc.provenance.channelSlug = chans[0];
seeded = doc.timeline.length;
diff --git a/umtool/lib/scaffold-phrase.test.mjs b/umtool/lib/scaffold-phrase.test.mjs
@@ -38,6 +38,7 @@ test("--seed phrase: chronological clips cut from the preferred copy, the scan b
]);
assert.equal(doc.provenance.channelSlug, "synth-rumble");
assert.equal(doc.render.transition, 0);
+ assert.equal(doc.render.fetchPad, 0, "the window is the fetched extent");
const scan = JSON.parse(await readFile(path.join(r.dir, "phrase-scan.json"), "utf8"));
assert.equal(scan.instances.length, 2);
assert.equal(scan.hits, 3);