commit f996d99cbd7aca16b4df66a36aea2abf55c243c4
parent c50189d9a17d755b3b6f966a97d70d3a78bc9a8b
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Wed, 14 Oct 2026 00:35:43 -0400
umtool: e2e — the stub's narration makes its card auto-length, as narrate does; msurf's clips inside the cached window (r28 M9)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/umtool/e2e/fixtures/editor-stub.mjs b/umtool/e2e/fixtures/editor-stub.mjs
@@ -526,6 +526,8 @@ function cannedRun(job, body) {
const force = !!body.force || (u.target.field === "timeline" && isCodeDraft(draftedOf(m, u.target)));
const r = applyDraft(m, { ...u.target, value: u.value, provenance, force });
units[u.id].applied = r.applied ? "applied" : r.reason;
+ // As narrate's afterApply: a narrated card is as long as its words.
+ if (r.applied && u.target.field === "narration") for (const e of m.timeline) if (e.id === u.target.entry) e.seconds = "auto";
if (r.applied) applied++;
else alternatives.push({ target: u.target, value: u.value, provenance, reason: r.reason });
});
diff --git a/umtool/e2e/fixtures/media-surfaces-fixture.mjs b/umtool/e2e/fixtures/media-surfaces-fixture.mjs
@@ -1,7 +1,8 @@
// What media-surfaces.spec.ts drafts on (release 28 M9): `msurf`, an article
// in the making whose two done iterations each have a video project that
-// builds offline (two clips over the cached window the build fixtures share,
-// a title card and a chapter card, no deck) — the chain recorded done to its
+// builds offline (two clips inside the cached 0–9 s window the build
+// fixtures share, its fetchPad included; a title card and a chapter card; no
+// deck) — the chain recorded done to its
// manifest, so Draft everything starts at its first draft:
//
// articles/msurf/iterations/{1,2} sweep, qwen3:8b, done; current … manifest done
@@ -39,7 +40,7 @@ export function makeMediaSurfacesFixture({ dest, articles, manifest, cachedWindo
id: MEDIA_SURFACES_ARTICLE,
kind: "sweep",
title: "The county vote, as the channel told it",
- citations: { c01: CITE(3, 6, "and because"), c02: CITE(9, 12, "another whole sentence") },
+ citations: { c01: CITE(3, 4.5, "and because"), c02: CITE(4.5, 6, "another whole sentence") },
sections: [{ id: "s1", title: "The county", body: "She said it [and because](cite:c01), then [another whole sentence](cite:c02)." }],
};
for (const n of [1, 2]) {
@@ -67,9 +68,9 @@ export function makeMediaSurfacesFixture({ dest, articles, manifest, cachedWindo
put(path.join(dir, "report.json"), report);
const m = manifest(`msurf-i${n}`, "The county vote", { siteOrigin: "https://archive.example" }, [
{ type: "card", id: "title", style: "title", seconds: 4, heading: "The county vote" },
- { type: "clip", id: "c01", video: "vid1", start: 3.0, end: 6.0, cite: 3, section: 0, lock: true, quote: "and because" },
+ { type: "clip", id: "c01", video: "vid1", start: 3.0, end: 4.5, cite: 3, section: 0, lock: true, quote: "and because" },
{ type: "card", id: "k01", style: "chapter", seconds: 3, heading: "The county" },
- { type: "clip", id: "c02", video: "vid1", start: 9.0, end: 12.0, cite: 9, section: 0, lock: true, quote: "another whole sentence" },
+ { type: "clip", id: "c02", video: "vid1", start: 4.5, end: 6.0, cite: 4.5, section: 0, lock: true, quote: "another whole sentence" },
]);
m.drafted = { timeline: CODE };
// i1's YouTube text is the operator's: a forced draft is kept as an alternative.