commit bef14030491fd158daad49bd8b83188de8b1f9c1
parent 16d3540c65670408948449ac1a5e90f2a38e81f8
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Mon, 9 Nov 2026 20:54:55 -0500
umtool: a render nobody judged for two weeks, and a draft untouched as long, are Quiet -- not waiting (redesign L4)
On the real tree 46 projects had a render with no verdict and 43 a walk not done; the
two-week window (versions.mjs RECENT_DAYS) leaves 18 and 12 in Review, the rest folded in
Quiet, one row per decision kept. Test clocks pinned; the fixture's version rendered a day
before it is made.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
5 files changed, 34 insertions(+), 14 deletions(-)
diff --git a/umtool/docs/knobs.md b/umtool/docs/knobs.md
@@ -386,14 +386,14 @@ were the rail's; the rail keeps navigation only (Pinned, which never had a store
| Call | When | Its action (one press, where there is one) | From a terminal |
|---|---|---|---|
-| **versions to judge** (`version-unjudged`, Review) | a version — or a legacy take — with a render on disk (its preview) and no verdict, not superseded; a quick clip's is not one | **Play and judge**: Play on the newest (`?take=`), where **Like · Maybe · No** sit in the version's line (pressing the lit one clears it) | `umtool takes verdict <p> <take> like\|maybe\|no\|clear [--note "…"]` |
-| **clips not walked** (`clips-unwalked`, Review) | the draft's clips with no walk verdict, on a draft whose walk has begun or that has a render or a saved version (a cut still being assembled is not a call) | **Walk the clips**: the bench on the first in walk order | `umtool walk <p>` |
+| **versions to judge** (`version-unjudged`, Review) | a version — or a legacy take — with a render on disk (its preview) and no verdict, not superseded; a quick clip's is not one; one rendered over two weeks ago is Quiet (folded: no longer waiting) | **Play and judge**: Play on the newest (`?take=`), where **Like · Maybe · No** sit in the version's line (pressing the lit one clears it) | `umtool takes verdict <p> <take> like\|maybe\|no\|clear [--note "…"]` |
+| **clips not walked** (`clips-unwalked`, Review) | the draft's clips with no walk verdict, on a draft whose walk has begun or that has a render or a saved version (a cut still being assembled is not a call); a draft untouched for two weeks is Quiet | **Walk the clips**: the bench on the first in walk order | `umtool walk <p>` |
| **quote checks out of date** (`quote-check-stale`, Open) | a project with `quote-check.json` and clips its rows no longer vouch for: the cut or the quote changed since, or never checked | **Run quote-check** on those clips: a step on the durable queue (POST `/api/cli`, the registry's `quote-check` row — it transcribes through the editor) | `umtool quote-check <p> --clips a,b` |
| a quote **heard away from the cut** (`clip-quote-moved`, Blocking) | the check's row says `moved` | **Snap the cut to the words** (`window --align`'s patch, through the window writer) | `umtool window <p> <clip> --align` |
| a quote **not heard** (`clip-quote-missing`, Blocking) | the check's row says `not-found` | **Run quote-check** (after a refetch) | `umtool fetch <p> --refetch <clip> && umtool quote-check <p> --clips <clip>` |
| **QR links that don't open** (`link-dead`, Blocking) on a Rumble folder id | the recorded check knows the fix: the archive serves the recording by its embed id | **Use embed ids (N)**: the clip's `siteVideo` (a `citeUrl` that was the dead link moves with it), one undo point, then the check again (POST `/api/report/links {fix: true}`, `linksCli.mjs` applyLinkFixes — only a clip still as the check saw it) | `umtool links <p> --fix` |
| **new transcripts since the last scan** (`case-new-cues`, Review) | a research case with a pipeline, not done, whose candidate scan last finished at T, and recordings in its scope transcribed since T (the transcript index's per-video mtimes; with no index, the files) | **Scan again**: the case's pipeline page | `archilyzer case candidates <case>` |
-| **X's cookies are stale and X work waits** (`x-jar-stale`, Blocking) | the editor's services (`GET /api/ops/services`, asked through umtool's editor client, a minute's memo, never waited on past 1.5 s) carry a stale X alert — the rule the editor's banner draws by | **Refresh X's cookies**: the editor's settings (Refresh cookies / Connect X account, then Recheck) — a human click; nothing here asks X | `pnpm ops get services` |
+| **X's cookies are stale and X work waits** (`x-jar-stale`, Blocking: a machine call beside a missing tool — on home and in the rail's count, no piece's, so not in `items[]`) | the editor's services (`GET /api/ops/services`, asked through umtool's editor client, a minute's memo, never waited on past 1.5 s) carry a stale X alert — the rule the editor's banner draws by | **Refresh X's cookies**: the editor's settings (Refresh cookies / Connect X account, then Recheck) — a human click; nothing here asks X | `pnpm ops get services` |
A card whose rows agree on one press shows it in place of its link (`mergeSettle`: a quote check over every clip the
card lists; the same project-wide press; never two clip patches), its title still a link to where it is settled — the
diff --git a/umtool/e2e/fixtures/needs-you-fixture.mjs b/umtool/e2e/fixtures/needs-you-fixture.mjs
@@ -50,8 +50,9 @@ export function makeNeedsYouFixture({ reports, reportsRoot, channels, deckManife
write(v1, "base.manifest.json", text);
write(v1, "take.json", {
id: "v1", group: "takes", order: 3, label: "Saved draft", kind: "reference", summary: "", changes: [], preview: "preview.mp4",
- seconds: 9, builtAt: "2026-11-08T10:00:00.000Z", style: null, patch: null, window: "full", version: true,
- savedAt: "2026-11-08T09:00:00.000Z", baseHash: createHash("sha256").update(text).digest("hex"),
+ // Rendered a day before the fixture is made: a call (a render older than two weeks is Quiet, versions.mjs RECENT_DAYS).
+ seconds: 9, builtAt: new Date(Date.now() - 864e5).toISOString(), style: null, patch: null, window: "full", version: true,
+ savedAt: new Date(Date.now() - 2 * 864e5).toISOString(), baseHash: createHash("sha256").update(text).digest("hex"),
});
copyFileSync(cachedWindow, path.join(v1, "preview.mp4"));
write(dir, "quote-check.json", { version: 1, checkedAt: "2026-11-08T11:00:00.000Z", clips: { c02: { status: "ok", cut: { from: 3, to: 5 }, quote: "And this one runs on", checkedAt: "2026-11-08T11:00:00.000Z" } } });
diff --git a/umtool/lib/inbox/needs-you.test.ts b/umtool/lib/inbox/needs-you.test.ts
@@ -41,7 +41,7 @@ test("versions to judge: rendered (its preview there, whatever `draft` says), no
take("v2", { builtAt: "2026-11-03T10:00:00Z" }),
take("v3", { previewSize: null }),
take("d1", { draft: true, previewSize: null }),
- take("d2", { draft: true, builtAt: "2026-10-01T10:00:00Z" }),
+ take("d2", { draft: true, builtAt: "2026-10-25T10:00:00Z" }),
take("q1", { quick: true }),
take("liked"),
take("gone"),
@@ -49,13 +49,17 @@ test("versions to judge: rendered (its preview there, whatever `draft` says), no
];
const verdicts = { liked: { verdict: "like" }, gone: { verdict: null, superseded: { by: "v2" } } };
assert.deepEqual(versionsToJudge(takes, verdicts, { skip: (t) => t.id === "clip" }).map((t) => t.id), ["v2", "v1", "d2"]);
- const rows = versionsDecisions({ project: "x", projectTitle: "X", takes, verdicts, playHref: (t) => `/projects/x/play?take=${t}`, skip: (t) => t.id === "clip" });
+ const rows = versionsDecisions({ project: "x", projectTitle: "X", takes, verdicts, playHref: (t) => `/projects/x/play?take=${t}`, skip: (t) => t.id === "clip", now: Date.parse("2026-11-04T00:00:00Z") });
assert.equal(rows.length, 3);
assert.ok(rows.every((r) => r.kind === VERSION_UNJUDGED && r.href === "/projects/x/play?take=v2" && r.what === "3 versions to judge" && r.severity === "open"));
assert.match(rows[0].why, /^3 versions to judge · newest version v2 · 1:35 · rendered 2026-11-03/);
const [row] = annotated(rows);
assert.equal(groupOf(row), "review");
assert.equal(row.action.label, "Play and judge");
+ // A render nobody judged for two weeks is no longer waiting: Quiet, folded.
+ const later = versionsDecisions({ project: "x", projectTitle: "X", takes, verdicts, playHref: () => "/", skip: (t) => t.id === "clip", now: Date.parse("2026-11-16T12:00:00Z") });
+ assert.deepEqual(later.map((r) => [r.target, r.severity]), [["v2", "open"], ["v1", "info"], ["d2", "info"]]);
+ assert.equal(groupOf(later[1]), "quiet");
assert.deepEqual(versionsDecisions({ project: "x", projectTitle: "X", takes: [], verdicts: {}, playHref: () => "/" }), []);
// Shapes it does not know are left out, never thrown on.
assert.deepEqual(versionsToJudge(null as never, null as never), []);
@@ -67,7 +71,7 @@ test("clips not walked: only on a draft going somewhere -- a walk begun or a ren
{ id: "c01", verdict: "confirmed" },
{ id: "c02", verdict: "unreviewed" },
];
- const base = { project: "x", projectTitle: "X", at: 5, benchHref: (c: string) => `/projects/x/clip/${c}` };
+ const base = { project: "x", projectTitle: "X", at: 5, now: 10, benchHref: (c: string) => `/projects/x/clip/${c}` };
const rows = walkDecisions({ ...base, clips, rendered: false });
assert.deepEqual(rows.map((r) => r.target), ["c03", "c02"]);
assert.ok(rows.every((r) => r.kind === CLIPS_UNWALKED && r.href === "/projects/x/clip/c03" && r.what === "2 clips not walked"));
@@ -78,6 +82,8 @@ test("clips not walked: only on a draft going somewhere -- a walk begun or a ren
assert.deepEqual(walkDecisions({ ...base, clips: clips.map((c) => ({ ...c, verdict: "confirmed" })), rendered: true }), []);
const [row] = annotated(rows);
assert.deepEqual([groupOf(row), row.action.label, whatOf(CLIPS_UNWALKED)], ["review", "Walk the clips", "clips not walked"]);
+ // A draft untouched for two weeks: its walk is not waiting.
+ assert.ok(walkDecisions({ ...base, clips, rendered: false, now: 5 + 15 * 864e5 }).every((r) => r.severity === "info"));
});
test("stale quote checks: a clip whose cut or quote changed since its row, or never checked, on a project that uses the check", () => {
@@ -180,7 +186,7 @@ before(async () => {
);
for (const [id, order] of [["v1", 1], ["v2", 2]] as const) {
await mkdir(path.join(p, "takes", id), { recursive: true });
- await writeFile(path.join(p, "takes", id, "take.json"), JSON.stringify({ id, group: "cut", order, label: `Version ${order}`, kind: "similar", preview: "preview.mp4", version: true, window: "full", builtAt: `2026-11-0${order}T10:00:00Z` }));
+ await writeFile(path.join(p, "takes", id, "take.json"), JSON.stringify({ id, group: "cut", order, label: `Version ${order}`, kind: "similar", preview: "preview.mp4", version: true, window: "full", builtAt: new Date(Date.now() - (3 - order) * 864e5).toISOString() }));
await writeFile(path.join(p, "takes", id, "preview.mp4"), "mp4");
}
await writeFile(path.join(p, "takes", "verdicts.json"), JSON.stringify({ v1: { verdict: "like", note: "", at: "2026-11-02T00:00:00Z" } }));
diff --git a/umtool/lib/inbox/versions.mjs b/umtool/lib/inbox/versions.mjs
@@ -15,6 +15,12 @@
// here. Never throws on a shape it does not know: it is left out.
export const VERSION_UNJUDGED = "version-unjudged";
+/**
+ * A render older than this that nobody judged is no longer waiting: its rows are `info` (the Quiet group,
+ * folded) rather than Review -- on the real tree (9 Nov) 46 projects had a render with no verdict, 18 of them
+ * from the last two weeks.
+ */
+export const RECENT_DAYS = 14;
const timeOf = (t) => {
const ms = Date.parse(t?.builtAt ?? t?.savedAt ?? "");
@@ -56,9 +62,10 @@ const mins = (s) => (Number.isFinite(s) && s > 0 ? `${Math.floor(s / 60)}:${Stri
* takes: Array<Record<string, any>>, verdicts: Record<string, any>,
* playHref: (take: string) => string,
* skip?: (take: Record<string, any>) => boolean,
+ * now?: number,
* }} o
*/
-export function versionsDecisions({ project, projectTitle, projectKind, takes, verdicts, playHref, skip }) {
+export function versionsDecisions({ project, projectTitle, projectKind, takes, verdicts, playHref, skip, now = Date.now() }) {
const waiting = versionsToJudge(takes, verdicts, { skip });
if (!waiting.length) return [];
const what = versionsWhat(waiting);
@@ -76,7 +83,7 @@ export function versionsDecisions({ project, projectTitle, projectKind, takes, v
what,
why,
href,
- severity: "open",
+ severity: now - timeOf(t) > RECENT_DAYS * 864e5 ? "info" : "open",
at: timeOf(t),
}));
}
diff --git a/umtool/lib/inbox/walk.mjs b/umtool/lib/inbox/walk.mjs
@@ -9,12 +9,17 @@
// begun (a clip has a verdict), or that has a rendered take or a saved version.
// A cut still being assembled, never walked and never rendered, is not yet a
// call -- 78 of the 91 real report projects have unwalked clips (9 Nov), and an
-// Inbox that lists every cut in the making is one nobody reads.
+// Inbox that lists every cut in the making is one nobody reads. And a draft
+// nobody has edited for RECENT_DAYS is not waiting either: its rows are `info`
+// (the Quiet group, folded), 43 projects down to 12 on the real tree.
//
// Pure: lib/inbox/projectCalls.ts reads the manifest and the takes and hands
// the walk's rows here.
export const CLIPS_UNWALKED = "clips-unwalked";
+/** A draft not edited for this long is no longer waiting on its walk: `info` (Quiet, folded) -- versions.mjs's rule. */
+export { RECENT_DAYS } from "./versions.mjs";
+import { RECENT_DAYS } from "./versions.mjs";
/** The card's title. */
export function walkWhat(n) {
@@ -33,9 +38,10 @@ export function walkWhat(n) {
* rendered: boolean,
* at: number,
* benchHref: (clip: string) => string,
+ * now?: number,
* }} o
*/
-export function walkDecisions({ project, projectTitle, projectKind, clips, rendered, at, benchHref }) {
+export function walkDecisions({ project, projectTitle, projectKind, clips, rendered, at, benchHref, now = Date.now() }) {
const rows = (Array.isArray(clips) ? clips : []).filter((c) => c && typeof c.id === "string");
const waiting = rows.filter((c) => c.verdict === "unreviewed");
if (!waiting.length) return [];
@@ -58,7 +64,7 @@ export function walkDecisions({ project, projectTitle, projectKind, clips, rende
what,
why,
href,
- severity: "open",
+ severity: now - at > RECENT_DAYS * 864e5 ? "info" : "open",
at,
}));
}