commit dbda975f71ad1838c87824294252e79c6abde8fa
parent 8e575fad68dffeb50ded5a82857043f9d74be20b
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 13 Oct 2026 13:31:26 -0400
umtool: S8 after S11's merge — the research route in the stub's presets, autonomy passed through, a research run copied with a model
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/umtool/components/articles/IterationsTab.tsx b/umtool/components/articles/IterationsTab.tsx
@@ -28,7 +28,7 @@ const STATUS_VARIANT: Record<string, "on" | "blocking" | "open" | "info" | "neut
};
// The report-draft task that made an iteration of this kind (a copy re-runs it).
-const TASK_OF: Record<string, string | null> = { sweep: "sweep", "revise-report": "revise-report", "revise-video": "revise-video", research: null };
+const TASK_OF: Record<string, string | null> = { sweep: "sweep", "revise-report": "revise-report", "revise-video": "revise-video", research: "research" };
const fmtTokens = (n: number) => (n >= 10_000 ? `${Math.round(n / 1000)}k` : n.toLocaleString());
diff --git a/umtool/e2e/article-new.spec.ts b/umtool/e2e/article-new.spec.ts
@@ -26,7 +26,7 @@ test.beforeAll(async ({ playwright }) => {
});
test.afterAll(async ({ request }) => {
rmSync(path.join(FIXTURE, "articles", ARTICLE), { recursive: true, force: true });
- await request.post("/api/articles/policy", { data: { routes: { sweep: "code", "revise-report": "api", "revise-video": "local", narrate: "local" } } });
+ await request.post("/api/articles/policy", { data: { routes: { sweep: "code", "revise-report": "api", "revise-video": "local", narrate: "local", research: "api" } } });
});
test("/drafts is /articles/new now, and /articles links to it", async ({ page }) => {
@@ -50,7 +50,7 @@ test("the policy: presets write their routes, a route alone makes it custom, cap
await policy.getByRole("button", { name: "api", exact: true }).click();
await expect(policy).toHaveAttribute("data-policy-preset", "api");
expect(stubAsked("settings").at(-1)).toMatchObject({
- patch: { generation: { routes: { sweep: "api", "revise-report": "api", "revise-video": "api", narrate: "api" } } },
+ patch: { generation: { routes: { sweep: "api", "revise-report": "api", "revise-video": "api", narrate: "api", research: "api" } } },
authorization: "Bearer umtool-e2e-token",
});
diff --git a/umtool/e2e/fixtures/editor-stub.mjs b/umtool/e2e/fixtures/editor-stub.mjs
@@ -97,10 +97,10 @@ function writeWindow(dir, name, seconds) {
const ARTICLES = process.env.ARTICLES_DIR ?? "";
const GEN_PROJECTS = process.env.E2E_GEN_PROJECTS ?? "";
const PRESETS = {
- code: { sweep: "code", "revise-report": "code", "revise-video": "code", narrate: "code" },
- balanced: { sweep: "code", "revise-report": "api", "revise-video": "local", narrate: "local" },
- api: { sweep: "api", "revise-report": "api", "revise-video": "api", narrate: "api" },
- local: { sweep: "local", "revise-report": "local", "revise-video": "local", narrate: "local" },
+ code: { sweep: "code", "revise-report": "code", "revise-video": "code", narrate: "code", research: "code" },
+ balanced: { sweep: "code", "revise-report": "api", "revise-video": "local", narrate: "local", research: "api" },
+ api: { sweep: "api", "revise-report": "api", "revise-video": "api", narrate: "api", research: "api" },
+ local: { sweep: "local", "revise-report": "local", "revise-video": "local", narrate: "local", research: "local" },
};
const generation = {
preset: "balanced",
diff --git a/umtool/lib/articles/generation.ts b/umtool/lib/articles/generation.ts
@@ -216,7 +216,7 @@ export async function cancelDraftJob(id: string): Promise<void> {
// The body umtool sends to `report-draft`: the action's own keys, nothing else
// (the editor refuses an unknown key; this refuses it first, by name).
-const DRAFT_KEYS = ["task", "article", "iteration", "model", "feedback", "question", "channels", "from", "to", "copyOf", "maxUsd", "cards", "force"];
+const DRAFT_KEYS = ["task", "article", "iteration", "model", "feedback", "question", "channels", "from", "to", "copyOf", "maxUsd", "cards", "force", "autonomy"];
export async function enqueueDraft(body: Record<string, unknown>): Promise<{ jobId: string; iteration: number }> {
const out: Record<string, unknown> = {};