Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Tests: a check keeps every tracked file free of the parity studio's name

Adarsh13c6830e605b
diff --git a/tests/cinema-api.test.ts b/tests/cinema-api.test.ts
index 7fb771a1..63ba2246 100644
--- a/tests/cinema-api.test.ts
+++ b/tests/cinema-api.test.ts
@@ -106,7 +106,7 @@ describe("Cinema API", () => {
const res = await generateRoute.POST(json("POST", { input: { ...VIDEO, settings: { genre: "noir", focal: "50mm" } }, folderId: folder.id }), params({ id: p.id }));
expect(res.status).toBe(201);
const { items, plan } = await res.json();
- // Fuobe Cinema (LTX-2.3 in the cloud) with the Director compiled into the prompt; no Higgsfield anywhere.
+ // Fuobe Cinema (LTX-2.3 in the cloud) with the Director compiled into the prompt; no retired provider anywhere.
expect(plan.modelId).toBe("fuobe-cinema");
expect(items).toHaveLength(1);
const g = gens.getGeneration(items[0].id)!;
diff --git a/tests/composer.test.ts b/tests/composer.test.ts
index cfb948f5..beee672b 100644
--- a/tests/composer.test.ts
+++ b/tests/composer.test.ts
@@ -1,4 +1,5 @@
import { describe, expect, it } from "vitest";
+import { mentionsRetiredName } from "./helpers/retired-name.mjs";
import { APPS, EFFECTS, getModel, getPreset, modelsFor, MODELS, MOTIONS } from "@/lib/catalog";
import type { InputSlot, ModelDef } from "@/lib/catalog/types";
import {
@@ -425,7 +426,8 @@ describe("an app page's hero", () => {
it("says what you get: the notes stay in Details, a missing engine is said", () => {
for (const id of ["app-similarity-score", "app-angles", "app-rap-god", "app-video-background-remover", "app-gtai", "app-shots", "app-clipcut"]) {
const p = getPreset(id)!;
- expect(appStudio(p).subtitle ?? "", id).not.toMatch(/Higgsfield|Approximation|silent|LoRA/);
+ expect(appStudio(p).subtitle ?? "", id).not.toMatch(/parity studio|Approximation|silent|LoRA/);
+ expect(mentionsRetiredName(appStudio(p).subtitle ?? ""), id).toBe(false);
}
const cloudOnly = getPreset("app-similarity-score")!;
expect(appStudio({ ...cloudOnly, open: null }).subtitle).toBe("Cloud only for now");
@@ -434,7 +436,8 @@ describe("an app page's hero", () => {
it("Details says what Fuobe makes, naming no other product and no developer notes", () => {
for (const p of [...APPS, ...MOTIONS, ...EFFECTS]) {
- expect(p.parity ?? "", p.id).not.toMatch(/Higgsfield|Approximation|Not reproducible|Not yet measured|evaluation suite|\.safetensors|Kling 2\.5 \/ Wan 2\.2/i);
+ expect(mentionsRetiredName(p.parity ?? ""), p.id).toBe(false);
+ expect(p.parity ?? "", p.id).not.toMatch(/parity studio|Approximation|Not reproducible|Not yet measured|evaluation suite|\.safetensors|Kling 2\.5 \/ Wan 2\.2/i);
// No LoRA file names, research notes or GPU sizes and licences of a route in brackets.
expect(p.parity ?? "", p.id).not.toMatch(/_\d+_epochs|\[wan|already in the map|research holds|civitai|evaluated|White_to_Scene|\(\d+ GB GPU/i);
// Each note is whole sentences.
diff --git a/tests/e2e/cinema-original.mjs b/tests/e2e/cinema-original.mjs
index 6912dd4c..2863e3b1 100644
--- a/tests/e2e/cinema-original.mjs
+++ b/tests/e2e/cinema-original.mjs
@@ -1,4 +1,4 @@
-// Fuobe Cinema browser check (build plan O6): the Cinema workspace runs on the Originals, with no Higgsfield anywhere.
+// Fuobe Cinema browser check (build plan O6): the Cinema workspace runs on the Originals, with no retired provider anywhere.
// At 1440 and 390 px, light and dark: the model menu lists Fuobe Cinema first with an "Original" badge and what runs on
// each engine; a camera move says how the Original drives it (LTX-2.3's camera LoRA in the cloud); the price shows
// before running ("Free" on the open engine); a take is made in demo mode; Soul Cast and Soul Location name Fuobe Soul
@@ -10,6 +10,7 @@ import fs from "node:fs";
import path from "node:path";
import { createRequire } from "node:module";
import { fileURLToPath } from "node:url";
+import { mentionsRetiredName } from "../helpers/retired-name.mjs";
const argv = process.argv.slice(2);
const app = (argv.find((a) => !a.startsWith("--") && argv[argv.indexOf(a) - 1] !== "--shots") ?? "http://localhost:3000").replace(/\/$/, "");
@@ -69,9 +70,10 @@ async function session(width, height, scheme) {
const shot = async (name) => shots && (await page.screenshot({ path: path.join(shots, `${name}-${width}-${scheme}.png`) }));
const sideways = () => page.evaluate(() => document.documentElement.scrollWidth - document.documentElement.clientWidth);
const project = await call("/api/cinema/projects", "POST", { name: `Original check ${tag}` });
- // The project page sends no Higgsfield flag.
+ // The project page sends only the context it has (no retired provider's flag).
const view = await call(`/api/cinema/projects/${project.id}`);
- check(`${tag}: the project's context has no Higgsfield flag`, view.context && !("higgsfield" in view.context), JSON.stringify(view.context));
+ const contextKeys = Object.keys(view.context ?? {});
+ check(`${tag}: the project's context holds only its own keys`, contextKeys.length > 0 && contextKeys.every((k) => ["cloudAllowed", "civitai", "worldReady", "worldcast"].includes(k)) && !contextKeys.some((k) => mentionsRetiredName(k)), JSON.stringify(view.context));
// Start on the cloud engine (the switch remembers it per browser).
await page.goto(`${app}/cinema/${project.id}`, { waitUntil: "load", timeout: 120_000 });
@@ -100,7 +102,7 @@ async function session(width, height, scheme) {
check(`${tag}: the menu lists Fuobe Cinema first, as an Original`, /^Fuobe Cinema\s*Original/.test(items[0] ?? ""), JSON.stringify(items[0]));
check(`${tag}: it says LTX-2.3 runs in the cloud`, /LTX-2\.3 on fal/.test(items[0] ?? ""));
check(`${tag}: partner models stay pickable`, ["Seedance 2.5", "Kling 3.0", "Veo 3.1"].every((n) => items.some((t) => t.startsWith(n))), items.map((t) => t.split("\n")[0]).join(", "));
- check(`${tag}: nothing in the menu mentions Higgsfield`, !/Higgsfield/i.test(items.join(" ")));
+ check(`${tag}: nothing in the menu names the parity studio`, !mentionsRetiredName(items.join(" ")));
await shot("model-menu");
await page.keyboard.press("Escape");
await menu.waitFor({ state: "hidden" });
diff --git a/tests/e2e/genjutsu-original.mjs b/tests/e2e/genjutsu-original.mjs
index 8d5eaca7..3354fecd 100644
--- a/tests/e2e/genjutsu-original.mjs
+++ b/tests/e2e/genjutsu-original.mjs
@@ -5,12 +5,13 @@
// per engine; partners' resolutions; the model list badges each model's source; a run is made in demo mode and
// finishes; the open engine allows clicking the person, shows the GPU line, SAM's detection numbers, the History list
// under the window and the mask switch on the Original's graph only; Motion and Restyle list the
-// Originals first and Restyle has Soul looks; no Higgsfield anywhere; nothing scrolls sideways.
+// Originals first and Restyle has Soul looks; no retired provider anywhere; nothing scrolls sideways.
// Usage: node tests/e2e/genjutsu-original.mjs [appUrl] [--shots <dir>] (app running in demo mode, ComfyUI unreachable).
// Exits 1 on a failed check.
import fs from "node:fs";
import path from "node:path";
import { launch, root } from "./_browser.mjs";
+import { mentionsRetiredName } from "../helpers/retired-name.mjs";
const argv = process.argv.slice(2);
const app = (argv.find((a) => !a.startsWith("--") && argv[argv.indexOf(a) - 1] !== "--shots") ?? "http://localhost:3000").replace(/\/$/, "");
@@ -82,7 +83,7 @@ try {
await page.getByText(/Placeholder · free|≈ \$|Price unknown/).first().waitFor({ timeout: 60_000 });
const body = await text();
check(`${tag}: the limits are shown`, /One continuous shot: a hard cut breaks the swap/.test(body) && /The person must be visible in the part's first frame/.test(body));
- check(`${tag}: no Higgsfield anywhere`, !/higgsfield/i.test(body));
+ check(`${tag}: the parity studio is named nowhere`, !mentionsRetiredName(body));
check(`${tag}: no sideways scroll (Character swap)`, (await sideways()) <= 1, `${await sideways()} px`);
// Describe my character (no text model in demo mode: said in words); the clip's words fill "What's said".
const describe = page.getByRole("button", { name: "Describe my character" });
@@ -163,7 +164,7 @@ try {
check(`${tag}: no sideways scroll (open)`, (await sideways()) <= 1, `${await sideways()} px`);
await shot("genjutsu-character-open");
- // Motion transfer: the Original first; Restyle: Soul looks, no Higgsfield.
+ // Motion transfer: the Original first; Restyle: Soul looks, no retired provider's.
await page.getByRole("radiogroup", { name: "Engine" }).getByRole("radio", { name: "Cloud" }).click();
await page.getByRole("tab", { name: "Motion transfer" }).click();
await page.waitForTimeout(500);
@@ -173,7 +174,7 @@ try {
await page.waitForTimeout(500);
check(`${tag}: restyle: Soul looks are a tab`, (await page.getByRole("tab", { name: "Soul looks" }).count()) === 1);
await page.getByRole("tab", { name: "Soul looks" }).click();
- check(`${tag}: restyle: no Higgsfield anywhere`, !/higgsfield/i.test(await text()));
+ check(`${tag}: restyle: the parity studio is named nowhere`, !mentionsRetiredName(await text()));
check(`${tag}: no sideways scroll (Restyle)`, (await sideways()) <= 1, `${await sideways()} px`);
await shot("genjutsu-restyle-soul");
await context.close();
diff --git a/tests/eval-harness.test.ts b/tests/eval-harness.test.ts
index 87652d87..b64b343c 100644
--- a/tests/eval-harness.test.ts
+++ b/tests/eval-harness.test.ts
@@ -1023,7 +1023,7 @@ describe("runEval as a library", () => {
expect(runner.lorasMissing(jobs, null)).toBeNull();
});
- it("sends the shipped Soul Original the look's Fuobe id, never a Higgsfield one", () => {
+ it("sends the shipped Soul Original the look's Fuobe id, never a legacy one", () => {
const { expandJobs } = plan;
const jobs = expandJobs(cases.loadSuite("soul"), { engine: "open", looks: ["v1-general"], variants: ["original"], prompts: 1 });
expect(jobs[0].request).toMatchObject({ modelId: "fuobe-soul", presetId: "v1-general", engine: "open" });
diff --git a/tests/evolution.test.ts b/tests/evolution.test.ts
index 8198f407..e5227af4 100644
--- a/tests/evolution.test.ts
+++ b/tests/evolution.test.ts
@@ -64,7 +64,7 @@ describe("Fuobe Evolution: intensities", () => {
describe("Fuobe Evolution: the model on both engines", () => {
const m = getModel(EVOLUTION.model)!;
- it("is an Original: the GPU graph and the same Wan 2.2 Fun VACE hosted on fal, no Higgsfield, no LTX-2.3", () => {
+ it("is an Original: the GPU graph and the same Wan 2.2 Fun VACE hosted on fal, no retired provider, no LTX-2.3", () => {
expect(m).toBeTruthy();
expect(m.engines).toEqual(["open", "cloud"]);
expect(m.routes.map((r) => `${r.provider}:${r.endpoint}`)).toEqual(["comfyui:video-evolution-wan22-fun-vace", "fal:fal-ai/wan-22-vace-fun-a14b/depth"]);
diff --git a/tests/genjutsu-api.test.ts b/tests/genjutsu-api.test.ts
index f0bc3bcd..fd615d7a 100644
--- a/tests/genjutsu-api.test.ts
+++ b/tests/genjutsu-api.test.ts
@@ -5,6 +5,7 @@ import http from "node:http";
import { CLOUD_NO_LORA } from "@/lib/catalog/character-swap";
import { CLOUD_CLICK_PROBLEM } from "@/lib/catalog/genjutsu";
import type { Generation } from "@/lib/catalog/types";
+import { mentionsRetiredName } from "./helpers/retired-name.mjs";
import { tempDir } from "./helpers/temp-dir";
vi.setConfig({ testTimeout: 120_000 });
@@ -69,12 +70,12 @@ const src = { duration: 12, fps: 16, width: 1280, height: 720, hasAudio: true };
const body = (over: Record<string, unknown> = {}) => ({ engine: "cloud", mode: "motion", references: [hero], source: { url: clip, name: "dance.mp4" }, ...over });
describe("Genjutsu: estimates", () => {
- it("no keys: the Original's Lite tier, run as a demo; no Higgsfield anywhere", async () => {
+ it("no keys: the Original's Lite tier, run as a demo; no retired provider anywhere", async () => {
const res = await estimateRoute.POST(json(body({ source: { url: clip, ...src } })));
expect(res.status).toBe(200);
const e = await res.json();
expect(e).toMatchObject({ modelId: "fuobe-genjutsu-motion-lite", source: "original", tier: "standard", quality: "480p", pieces: 1, seconds: 12, demo: true });
- expect(e.higgsfield).toBeUndefined();
+ expect(Object.keys(e).filter((k) => mentionsRetiredName(k))).toEqual([]);
});
describe("with keys (estimates submit nothing, so the prices are the routes' own)", () => {
diff --git a/tests/genjutsu.test.ts b/tests/genjutsu.test.ts
index 78cba680..573cd788 100644
--- a/tests/genjutsu.test.ts
+++ b/tests/genjutsu.test.ts
@@ -544,7 +544,7 @@ describe("Genjutsu: setup codes", () => {
expect(decodeSetup(encodeSetup({ mode: "character", character: { dialogue: "secret words", who: "largest" } as never }))?.character).toEqual({ who: "largest" });
});
- it("keeps looks, maps old models to the Originals and drops what isn't valid (Higgsfield's looks too)", () => {
+ it("keeps looks, maps old models to the Originals and drops what isn't valid (the retired provider's looks too)", () => {
expect(decodeSetup(encodeSetup({ mode: "restyle", look: { kind: "custom", images: [ref, "https://evil.example/x.png"], words: "neon" } }))).toEqual({ mode: "restyle", look: { kind: "custom", images: [ref], words: "neon" } });
expect(decodeSetup(encodeSetup({ mode: "restyle", look: { kind: "soul", id: "v1-general" } }))?.look).toEqual({ kind: "soul", id: "v1-general" });
expect(decodeSetup(encodeSetup({ mode: "restyle", look: { kind: "preset", id: "nope" } }))?.look).toBeUndefined();
diff --git a/tests/helpers/retired-name.mjs b/tests/helpers/retired-name.mjs
new file mode 100644
index 00000000..4de6cb4b
--- /dev/null
+++ b/tests/helpers/retired-name.mjs
@@ -0,0 +1,54 @@
+// The name of the closed studio Fuobe's parity research measures against, as a check that never spells it.
+// The repo calls that studio "the parity studio" and never writes its name (tests/neutral-names.test.ts).
+// Only the SHA-256 of the lower-case name and its length are kept here.
+import { createHash } from "node:crypto";
+
+const RETIRED_NAME_SHA256 = "50b2676afbe30c833f43fedf384f115302474c88365501ad94ba93aec48777c6";
+const RETIRED_NAME_LENGTH = 10;
+
+/**
+ * The words of `text`, lower case: camelCase and PascalCase split apart, then split on everything that isn't a letter
+ * (digits, spaces, hyphens, dots, underscores). "QuokkaBirdProvider" → quokka, bird, provider.
+ */
+export function wordsOf(text) {
+ return String(text)
+ .replace(/([a-z])([A-Z])/g, "$1 $2")
+ .replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2")
+ .toLowerCase()
+ .split(/[^a-z]+/)
+ .filter(Boolean);
+}
+
+/**
+ * A test for one word, known only by the SHA-256 of its lower-case spelling and its length. It looks at every word of
+ * that length, every window of that length inside a longer word (a glued id), and every pair of neighbouring words
+ * joined (the name split by a space, a hyphen or a capital). Each distinct candidate is hashed once.
+ */
+export function matcherFor(sha256Hex, length) {
+ const seen = new Map();
+ const hit = (candidate) => {
+ let v = seen.get(candidate);
+ if (v === undefined) {
+ v = createHash("sha256").update(candidate).digest("hex") === sha256Hex;
+ seen.set(candidate, v);
+ }
+ return v;
+ };
+ return function mentions(text) {
+ const words = wordsOf(text);
+ for (let i = 0; i < words.length; i++) {
+ const w = words[i];
+ if (w.length === length) {
+ if (hit(w)) return true;
+ } else if (w.length > length) {
+ for (let j = 0; j + length <= w.length; j++) if (hit(w.slice(j, j + length))) return true;
+ }
+ const next = words[i + 1];
+ if (next && w.length + next.length === length && hit(w + next)) return true;
+ }
+ return false;
+ };
+}
+
+/** True when `text` names the parity studio in any spelling: one word, two words, hyphenated, glued or in an identifier. */
+export const mentionsRetiredName = matcherFor(RETIRED_NAME_SHA256, RETIRED_NAME_LENGTH);
diff --git a/tests/image-studios-api.test.ts b/tests/image-studios-api.test.ts
index 7560ef02..2799a845 100644
--- a/tests/image-studios-api.test.ts
+++ b/tests/image-studios-api.test.ts
@@ -135,7 +135,7 @@ describe("style signature on the server", () => {
});
describe("moodboards", () => {
- it("refuses boards outside Higgsfield's limits, in its words", async () => {
+ it("refuses boards outside the researched limits, in its words", async () => {
const few = await moodboardsRoute.POST(json("POST", { name: "x", images: [upload(), upload()] }));
expect(few.status).toBe(400);
expect((await few.json()).error).toBe("Upload at least 5 photos to continue.");
diff --git a/tests/influencer-api.test.ts b/tests/influencer-api.test.ts
index 327875ac..86bdd056 100644
--- a/tests/influencer-api.test.ts
+++ b/tests/influencer-api.test.ts
@@ -137,7 +137,7 @@ describe("/api/influencer", () => {
expect(run.items[0].feature).toBe("influencer");
});
- it("says what is wrong, in Higgsfield's words where it has them", async () => {
+ it("says what is wrong, in the parity research's words where it has them", async () => {
const tooMany = await post({ engine: "cloud", state, start: "scratch", clothing: [upload(), upload(), upload(), upload()] });
expect(tooMany.status).toBe(400);
expect((await tooMany.json()).error).toBe("You can add up to three clothing references");
diff --git a/tests/layers.test.ts b/tests/layers.test.ts
index 505aa336..60653856 100644
--- a/tests/layers.test.ts
+++ b/tests/layers.test.ts
@@ -95,7 +95,7 @@ const doc = (nodes: LayerNode[], w = 400, h = 300): LayerDoc => ({ v: 1, width:
const close = (a: number[], b: number[], digits = 6) => a.forEach((v, i) => expect(v).toBeCloseTo(b[i], digits));
describe("zip naming", () => {
- it("slugs names the way Higgsfield names layer files", () => {
+ it("slugs names the way the parity studio names layer files", () => {
expect(slugify("Hero Shot / v2!")).toBe("hero-shot-v2");
expect(slugify(" --Café Crème-- ")).toBe("cafe-creme");
expect(slugify("x".repeat(60))).toHaveLength(48);
diff --git a/tests/library-pure.test.ts b/tests/library-pure.test.ts
index c0ed1ec0..1420ad03 100644
--- a/tests/library-pure.test.ts
+++ b/tests/library-pure.test.ts
@@ -512,7 +512,7 @@ describe("round 4: helper steps, pins, review, nested folders, where a file is u
expect(folderTree(tree).map(({ folder: f, depth }) => `${f.id}${depth}`)).toEqual(["a0", "b1", "c2", "d1", "e0"]);
});
- it("refuses folder moves that would loop or nest too deep, in Higgsfield's words", () => {
+ it("refuses folder moves that would loop or nest too deep, in the parity research's words", () => {
expect(folderMoveError(tree, "a", "a")).toBe("Cannot move into itself");
expect(folderMoveError(tree, "a", "c")).toBe("Cannot move into a subfolder");
expect(folderMoveError(tree, "a", "b")).toBe("Cannot move into a subfolder");
diff --git a/tests/mixed-media.test.ts b/tests/mixed-media.test.ts
index 676dbc70..fc36adf4 100644
--- a/tests/mixed-media.test.ts
+++ b/tests/mixed-media.test.ts
@@ -51,7 +51,7 @@ const input = (over: Partial<MixedPlanInput> = {}): MixedPlanInput => ({
});
describe("Mixed Media presets", () => {
- it("has Higgsfield's 33 presets, each with its own settings and an intensity", () => {
+ it("has the parity studio's 33 presets, each with its own settings and an intensity", () => {
expect(MIXED_PRESETS).toHaveLength(33);
expect(new Set(MIXED_PRESETS.map((p) => p.id)).size).toBe(33);
for (const p of MIXED_PRESETS) {
diff --git a/tests/mixed-shorts-originals.test.ts b/tests/mixed-shorts-originals.test.ts
index 7a6324fc..18d02665 100644
--- a/tests/mixed-shorts-originals.test.ts
+++ b/tests/mixed-shorts-originals.test.ts
@@ -4,7 +4,7 @@ import { beforeAll, describe, expect, it } from "vitest";
import type { GenInput, ModelDef, ModelRoute } from "@/lib/catalog/types";
import { tempDir } from "./helpers/temp-dir";
-// Fuobe Mixed Media and Fuobe Shorts (build plan O9): Higgsfield's Mixed Media and Shorts as Originals on both engines.
+// Fuobe Mixed Media and Fuobe Shorts (build plan O9): the parity studio's Mixed Media and Shorts as Originals on both engines.
// Frames are floor(seconds × fps) and priced per frame; the cloud fans the Original's frame route out over every frame
// (no lanes: one seed, the look's LoRA) and splits clips above 200 frames; Smooth and Shorts run the Wan 2.2 Fun VACE
// pass from a restyled first frame; the fal payloads come from the research's FieldMaps; DoP's 32 Mixed Media effects
diff --git a/tests/neutral-names.test.ts b/tests/neutral-names.test.ts
new file mode 100644
index 00000000..377404ab
--- /dev/null
+++ b/tests/neutral-names.test.ts
@@ -0,0 +1,97 @@
+import { execFileSync } from "node:child_process";
+import { createHash } from "node:crypto";
+import fs from "node:fs";
+import path from "node:path";
+import { describe, expect, it } from "vitest";
+import { matcherFor, mentionsRetiredName, wordsOf } from "./helpers/retired-name.mjs";
+
+/**
+ * The repo never names the closed studio its parity research measures Fuobe against: code, tests, docs, research, file
+ * names, everything tracked. Write "the parity studio" (or "the parity research" for where a fact came from). This test
+ * knows the name only as a hash (tests/helpers/retired-name.mjs), so it never spells it either.
+ */
+
+const ROOT = path.resolve(__dirname, "..");
+
+/**
+ * Interim, by path only: three files whose comments (and one migration's SQL) still name the studio until the change
+ * that rewords them lands. Remove each line in that change, and this list with the last one.
+ */
+const INTERIM_ALLOWED: Record<string, string> = {
+ "src/server/db.ts": "migration 22's comment and SQL",
+ "src/server/generations.ts": "two comments",
+ "src/components/studio/feed.tsx": "one comment",
+};
+
+/** Every tracked file, as git lists it (paths with forward slashes). */
+function trackedFiles(): string[] {
+ const out = execFileSync("git", ["ls-files", "-z"], { cwd: ROOT, maxBuffer: 64 * 1024 * 1024 }).toString("utf8");
+ return out.split("\0").filter(Boolean);
+}
+
+/** A file is binary when its first 8 KB hold a NUL byte (git's own test). */
+const isBinary = (buf: Buffer) => buf.subarray(0, 8192).includes(0);
+
+/** `path:line` for each line of `text` that names it. */
+function hitsIn(file: string, text: string): string[] {
+ if (!mentionsRetiredName(text)) return [];
+ const lines = text.split(/\r?\n/).flatMap((line, i) => (mentionsRetiredName(line) ? [`${file}:${i + 1}`] : []));
+ return lines.length ? lines : [`${file} (split across lines)`];
+}
+
+describe("neutral names: the parity studio is never named", () => {
+ const files = trackedFiles();
+
+ it("reads every tracked file", () => {
+ expect(files.length).toBeGreaterThan(3000);
+ expect(files).toContain("src/server/providers/index.ts");
+ expect(files).toContain("docs/research/README.md");
+ });
+
+ it("names no tracked file or folder after it", () => {
+ expect(files.filter((f) => mentionsRetiredName(f))).toEqual([]);
+ });
+
+ it("finds it in no tracked text file", () => {
+ const hits: string[] = [];
+ const skipped = Object.keys(INTERIM_ALLOWED);
+ for (const f of files) {
+ if (INTERIM_ALLOWED[f]) continue;
+ const full = path.join(ROOT, f);
+ if (!fs.existsSync(full)) continue; // deleted in the working tree, not yet committed
+ const buf = fs.readFileSync(full);
+ if (isBinary(buf)) continue;
+ hits.push(...hitsIn(f, buf.toString("utf8")));
+ }
+ if (skipped.length) console.info(`neutral names: not yet checked: ${skipped.join(", ")}`);
+ expect(hits).toEqual([]);
+ }, 120_000); // about 3,100 files and 50 MB of text: a few seconds, longer on a busy machine
+
+ it("keeps the interim list honest: each file on it still exists", () => {
+ for (const f of Object.keys(INTERIM_ALLOWED)) expect(files, f).toContain(f);
+ });
+
+ it("catches every spelling, shown here with a stand-in word", () => {
+ const word = "quokkabird";
+ const mentions = matcherFor(createHash("sha256").update(word).digest("hex"), word.length);
+ for (const p of [
+ "export class QuokkaBirdProvider {}",
+ "const viaQuokkabird = true;",
+ "QUOKKABIRD_API_KEY=x",
+ "https://quokkabird.ai/pricing",
+ "a quokka bird",
+ "the Quokka-Bird studio",
+ '"quokkabirdEquivalent": "Soul"',
+ 'label: "Quokkabird first"',
+ "openquokkabirdai",
+ "docs/research/quokkabird-inventory.md",
+ ])
+ expect(mentions(p), p).toBe(true);
+ for (const ok of ["Quokka Audio v2", "a quokka", "bird watching", "quokka-audio"]) expect(mentions(ok), ok).toBe(false);
+ expect(wordsOf("QuokkaBirdProvider HTMLParser x2y")).toEqual(["quokka", "bird", "provider", "html", "parser", "x", "y"]);
+ });
+
+ it("leaves unrelated words alone", () => {
+ for (const ok of ["Higgs Audio v2 3B (HiggsAudioEngineNode)", "the parity studio's Soul", "Hugging Face (HF_TOKEN)"]) expect(mentionsRetiredName(ok), ok).toBe(false);
+ });
+});
diff --git a/tests/open-tools.test.ts b/tests/open-tools.test.ts
index 85515628..fdc511ac 100644
--- a/tests/open-tools.test.ts
+++ b/tests/open-tools.test.ts
@@ -6,8 +6,8 @@ import type { ComfyWorkflow } from "@/lib/comfy";
import { tempDir } from "./helpers/temp-dir";
// Build plan O11 (rebranded open tools, Speak and finishing): Fuobe Angles (Qwen-Image-Edit 2509 + dx8152's
-// Multiple-angles LoRA on both engines, the Angles app's Higgsfield-like controls), Fuobe Speak (InfiniteTalk with
-// Higgsfield's Infinite Talk settings on the GPU, fal's InfiniteTalk) and Fuobe Speak · Motion (Wan 2.2 S2V), Depth
+// Multiple-angles LoRA on both engines, the Angles app's controls from the parity research), Fuobe Speak (InfiniteTalk with
+// The parity studio's Infinite Talk settings on the GPU, fal's InfiniteTalk) and Fuobe Speak · Motion (Wan 2.2 S2V), Depth
// Map's Large model as a labelled alternative, the HDR route's LoRA endpoint, and Soul's face mosaic (SAM 3.1 + a
// mosaic on the GPU, fal's SAM 3.1 masks pixelated in the browser).
const dir = tempDir("fuobe-o11-");
@@ -101,7 +101,7 @@ describe("Fuobe Angles", () => {
const cloud = view("fuobe-angles", "cloud");
expect(open.routes.map((r) => r.endpoint)).toEqual(["qwen-image-edit-2509-angles"]);
expect(cloud.routes.map((r) => r.endpoint)).toEqual(["fal-ai/qwen-image-edit-2509-lora-gallery/multiple-angles"]);
- // Higgsfield's controls on both engines: rotate −90…90°, tilt −1…1, move forward 0–10 (the research's fields).
+ // The parity studio's controls on both engines: rotate −90…90°, tilt −1…1, move forward 0–10 (the research's fields).
expect(m.options.sliders?.map((s) => [s.param, s.min, s.max])).toEqual([["rotate_right_left", -90, 90], ["vertical_angle", -1, 1], ["move_forward", 0, 10]]);
// The LoRA is the recipe's on the GPU (downloaded before a run, switchable); fal has it built in at 1.25, 6 steps.
expect(open.options.loras?.map((l) => [l.file, l.strength])).toEqual([["qwen-edit-2509-multiple-angles-dx8152.safetensors", 1.25]]);
@@ -307,7 +307,7 @@ describe("Fuobe Speak", () => {
await expect(run({ sourceDuration: 45 })).rejects.toThrow(/A talking avatar on the open engine takes up to 40 s of speech per job \(this voice is 45 s\)/);
});
- it("sends Higgsfield's Infinite Talk settings on your GPU: FusioniX in the wrapper's LoRA slot, 15 motion frames, 25 steps, shift 10, guidance 5 / 5", async () => {
+ it("sends the parity studio's Infinite Talk settings on your GPU: FusioniX in the wrapper's LoRA slot, 15 motion frames, 25 steps, shift 10, guidance 5 / 5", async () => {
const m = view("fuobe-speak", "open");
expect(m.options.loras?.map((l) => l.file)).toEqual(["Wan2.1_I2V_14B_FusionX_LoRA.safetensors"]);
const route = m.routes[0];
diff --git a/tests/pipeline.test.ts b/tests/pipeline.test.ts
index 792920f5..1d8f096b 100644
--- a/tests/pipeline.test.ts
+++ b/tests/pipeline.test.ts
@@ -218,7 +218,7 @@ describe("one mode per chain at launch (S9)", () => {
db()
.prepare(
`INSERT INTO generations (id, feature, model_id, engine, provider, op, kind, status, request_json, outputs_json, depends_on, created_at, updated_at)
- VALUES (?, 'storyboard-film', 'kling-3', 'cloud', 'higgsfield', 'i2v', 'video', 'queued', '{"feature":"storyboard-film","modelId":"kling-3"}', '[]', 'frame-x', ?, ?)`,
+ VALUES (?, 'storyboard-film', 'kling-3', 'cloud', 'old-provider', 'i2v', 'video', 'queued', '{"feature":"storyboard-film","modelId":"kling-3"}', '[]', 'frame-x', ?, ?)`,
)
.run(id, Date.now(), Date.now());
}
diff --git a/tests/remove-object.test.ts b/tests/remove-object.test.ts
index db552f13..d76ba899 100644
--- a/tests/remove-object.test.ts
+++ b/tests/remove-object.test.ts
@@ -111,7 +111,7 @@ describe("Remove object: erasers", () => {
describe("Remove object: words", () => {
it("cuts the object out of an instruction for SAM 3.1, Bria and VOID", () => {
expect(targetPhrase(REMOVE_EXAMPLES[0].prompt)).toBe("the coffee cup");
- // Higgsfield's pogo example names four things to remove; the instruction after the dash isn't one.
+ // The parity studio's pogo example names four things to remove; the instruction after the dash isn't one.
expect(targetPhrase(REMOVE_EXAMPLES[1].prompt)).toBe("the pogo stick the guy is bouncing on, the black handle grips in his hands, the platform under his feet, its shadow on the ground");
expect(targetPhrase("the people walking in the background")).toBe("the people walking in the background");
expect(targetPhrase("Erase the logo from the video.")).toBe("the logo");
@@ -142,7 +142,7 @@ describe("Remove object: words", () => {
expect(removalTitle({ mode: "type", prompt: "the logo and the watermark" })).toBe("Remove · the logo, the watermark");
});
- it("writes Kling's edit prompt the way Higgsfield does", () => {
+ it("writes Kling's edit prompt the way the parity studio does", () => {
expect(klingPrompt("the coffee cup")).toBe("Remove the coffee cup from @Video1, keep everything else the same.");
expect(klingPrompt(REMOVE_EXAMPLES[0].prompt)).toBe(`In @Video1: ${REMOVE_EXAMPLES[0].prompt}`);
expect(klingPrompt("Remove the dog")).toBe("In @Video1: Remove the dog, keep everything else the same.");
diff --git a/tests/no-higgsfield.test.ts b/tests/retired-provider.test.ts
similarity index 74%
rename from tests/no-higgsfield.test.ts
rename to tests/retired-provider.test.ts
index 0a60e27b..2033aca9 100644
--- a/tests/no-higgsfield.test.ts
+++ b/tests/retired-provider.test.ts
@@ -1,17 +1,21 @@
import fs from "node:fs";
import path from "node:path";
import { beforeAll, describe, expect, it } from "vitest";
+import { mentionsRetiredName } from "./helpers/retired-name.mjs";
import { tempDir } from "./helpers/temp-dir";
/**
- * Build plan O7: Fuobe calls no Higgsfield API. This file fails when a code path names that provider again (its id,
- * key, endpoints, settings, env vars or copy that offers it), when a retired model comes back into the catalog, or
- * when an id stored before the switch no longer resolves to the model that replaced it. It scans whole folders, so a
- * branch merged later (an Originals package, a studio) is caught too. Research files under docs/research/ stay as
- * research and are not scanned; this file is the one test that names the provider.
+ * Build plan O7: Fuobe stopped calling a retired cloud provider. This file fails when a retired model comes back into
+ * the catalog or code, when the catalog, a setting or a connection test offers that provider again, or when an id
+ * stored before the switch no longer resolves to the model that replaced it. Rows stored then name the provider by
+ * an id Fuobe no longer has; the fixtures below use "old-provider", which goes the same way. The provider's name
+ * itself is checked everywhere by tests/neutral-names.test.ts.
*/
-const dir = tempDir("fuobe-no-hf-");
+/** A provider id Fuobe doesn't have, as rows stored before the switch carry one. */
+const OLD_PROVIDER = "old-provider";
+
+const dir = tempDir("fuobe-retired-");
process.env.FUOBE_DATA_DIR = dir;
process.env.COMFYUI_URL = "http://127.0.0.1:9";
@@ -63,76 +67,19 @@ async function runUntil(done: () => boolean) {
const ROOT = path.resolve(__dirname, "..");
// ---------------------------------------------------------------------------
-// The guard: no code path names the provider
-
-/**
- * Where code and shipped content live, and the README's setup steps (docs/ holds the research, which stays). The
- * unmerged round-4 docs branches (claude/fuobe-r4-batch-4, claude/fuobe-r4-docs-3, origin/main) still add README lines
- * offering a Higgsfield key and generating "Higgsfield models and presets": merging one fails here until they go.
- */
-const SCANNED = ["src", "scripts", "bin", "skills", "workflows", "package.json", "README.md"];
-const TEXT = /\.(ts|tsx|mts|js|mjs|cjs|py|json|md|sh|bat|ps1|css|html|txt|yml|yaml)$/;
-
-/**
- * Files that must name it, and why. Nothing else may: add a line here only for history that has to read the old
- * name (a migration, the table of what replaced what), never for a route, a key or a model that runs.
- */
-const ALLOWED: Record<string, string> = {
- "src/server/db.ts": "the O7 migration deletes the retired key and rewrites stored values that name the provider",
- "src/lib/catalog/replaced.ts": "what each retired model was called, for history",
-};
-
-/**
- * The README's upgrade notes are dated history ("Soul ID no longer trains on Higgsfield (PR #12)"): only that section
- * may name it. Everything else in the README (setup, keys, env vars, the stack) is scanned like code.
- */
-const HISTORY_SECTIONS: Record<string, string> = { "README.md": "### Upgrading from an earlier version" };
-
-/** A file's lines, with a history section blanked (HISTORY_SECTIONS): it ends at the next heading of its level or above. */
-function scannedLines(f: string, text: string): string[] {
- const lines = text.replace(/\r\n/g, "\n").split("\n");
- const heading = HISTORY_SECTIONS[f];
- const at = heading ? lines.indexOf(heading) : -1;
- if (at < 0) return lines;
- const level = heading.indexOf(" ");
- const next = lines.findIndex((l, i) => i > at && /^#{1,6} /.test(l) && l.indexOf(" ") <= level);
- const end = next < 0 ? lines.length : next;
- return lines.map((l, i) => (i > at && i < end ? "" : l));
-}
-
-/** Research files and research record fields keep their names: reading research is not calling the provider. */
-const RESEARCH_NAMES = /higgsfield-[a-z0-9-]+\.(md|json)|higgsfieldEquivalent/g;
-
-const RULES: [string, RegExp][] = [
- // An id, key, endpoint, URL, import or settings key: always lowercase in code.
- ["names the provider in code (an id, key, endpoint, URL or import)", /higgsfield/],
- ["names a Higgsfield env var or constant", /HIGGSFIELD|\bHF_(API_)?(KEY|SECRET)\b/],
- // Copy that offers the provider: "Higgsfield key", "connect Higgsfield", "runs on Higgsfield", "Higgsfield Ads Studio"…
- [
- "offers the provider in copy",
- // ("as on Higgsfield" and "Higgsfield's old style ids" are comparisons and history, not an offer.)
- /higgsfield (api|key|account|balance|route|provider|credit|console)|(needs|with|connect|add|set) (a |an |your )?higgsfield(?!'s)\b|(?<!as )\b(on|via|through) higgsfield\b|higgsfield's (api|own models?|route|key)|higgsfield (soul|cinema studio|ads studio|marketing studio)|higgsfield (models and )?presets\b/i,
- ],
- // An identifier in any case: HiggsfieldProvider, viaHiggsfield, HIGGSFIELD_… (the env rule) — never history.
- ["names the provider in an identifier", /[A-Za-z0-9_$]Higgsfield|Higgsfield[A-Z0-9_$]/],
- // A choice, label or route named after it: { value: "Higgsfield" }, label: "Higgsfield first", provider: "Higgsfield".
- ["offers the provider as a value or label", /\b(label|value|provider|vendor|name|title|placeholder|engine|route)\s*:\s*["'`][^"'`]*\bhiggsfield\b/i],
- // Copy that says something runs on it: "Runs with Higgsfield's Soul", "rendered by Higgsfield", "Uses Higgsfield to render"
- // ("uses Higgsfield's labels" is a comparison).
- ["says something runs on the provider", /\b(runs? (with|on)|ran (with|on)|made (with|on|by)|rendered (with|on|by)|renders (with|on)|powered by|goes to|sent to|calls?)\s+higgsfield\b|\b(uses?|using)\s+higgsfield\b(?!'s)/i],
-];
+// No retired id in code (the studio's name itself is checked by tests/neutral-names.test.ts)
/** A retired model or training id in code (a stored one resolves through replaced.ts; nothing else names it). */
const RETIRED_IDS = new RegExp(`["'\`](${[...Object.keys(REPLACED_BY), ...Object.keys(TRAINING_REPLACED_BY)].join("|")})["'\`]`);
const RETIRED_ID_ALLOWED = new Set(["src/lib/catalog/replaced.ts", "src/server/db.ts"]);
+const CODE = /\.(ts|tsx|mts|js|mjs|cjs)$/;
function walk(p: string, out: string[]) {
const full = path.join(ROOT, p);
if (!fs.existsSync(full)) return;
- const st = fs.statSync(full);
const posix = p.replace(/\\/g, "/");
- if (st.isFile()) {
- if (TEXT.test(posix)) out.push(posix);
+ if (fs.statSync(full).isFile()) {
+ if (CODE.test(posix)) out.push(posix);
return;
}
for (const name of fs.readdirSync(full)) {
@@ -141,52 +88,18 @@ function walk(p: string, out: string[]) {
}
}
-describe("no code path names the Higgsfield provider", () => {
+describe("retired ids in code", () => {
const files: string[] = [];
- for (const p of SCANNED) walk(p, files);
+ for (const p of ["src", "bin"]) walk(p, files);
- it("scans every source, script, skill and workflow file", () => {
+ it("scans every source file", () => {
expect(files.length).toBeGreaterThan(500);
expect(files).toContain("src/server/providers/index.ts");
});
- it("finds no provider id, key, endpoint, env var or copy that offers it outside the allowed history", () => {
- const hits: string[] = [];
- for (const f of files) {
- if (ALLOWED[f]) continue;
- const lines = scannedLines(f, fs.readFileSync(path.join(ROOT, f), "utf8"));
- lines.forEach((line, i) => {
- const text = line.replace(RESEARCH_NAMES, "");
- for (const [why, re] of RULES) if (re.test(text)) hits.push(`${f}:${i + 1} ${why}: ${line.trim().slice(0, 140)}`);
- });
- }
- expect(hits).toEqual([]);
- });
-
- it("catches what a later branch could bring back: identifiers, labels, copy and README key rows", () => {
- const probes = [
- "export const HiggsfieldProvider = createAdapter();",
- "const viaHiggsfield = route.provider === x;",
- 'label: "Higgsfield",',
- '{ value: "Higgsfield", label: "Higgsfield first" }',
- `note: "Runs with Higgsfield's Soul model"`,
- "toast('Uses Higgsfield to render the ad')",
- "| A Higgsfield key | `HIGGSFIELD_API_KEY` | Soul 2.0 |",
- "pnpm gen:catalog # regenerate cloud models, Higgsfield models and presets, LoRA map",
- ];
- for (const p of probes) expect(RULES.some(([, re]) => re.test(p.replace(RESEARCH_NAMES, ""))), p).toBe(true);
- // The README's upgrade notes are history; the rest of it is scanned (a key row there is caught).
- const readme = ["## Quick start", "| A Higgsfield key | `HIGGSFIELD_API_KEY` |", "### Upgrading from an earlier version", "- Soul ID no longer trains on Higgsfield (PR #12).", "### Setting up", "Runs on Higgsfield"].join("\n");
- expect(scannedLines("README.md", readme)).toEqual(["## Quick start", "| A Higgsfield key | `HIGGSFIELD_API_KEY` |", "### Upgrading from an earlier version", "", "### Setting up", "Runs on Higgsfield"]);
- expect(fs.readFileSync(path.join(ROOT, "README.md"), "utf8").replace(/\r\n/g, "\n").split("\n")).toContain(HISTORY_SECTIONS["README.md"]);
- // History and comparisons stay allowed.
- for (const ok of ["Higgsfield's pogo example names four things to remove", "the way Higgsfield names layer files", "a 1:1 alternative to Higgsfield", "Higgsfield is never called", "Progress uses Higgsfield's 14 labels"])
- expect(RULES.some(([, re]) => re.test(ok)), ok).toBe(false);
- });
-
it("names no retired model or training id in code: stored ones resolve through replaced.ts", () => {
const hits: string[] = [];
- for (const f of files.filter((x) => /^(src|bin)\//.test(x) && !RETIRED_ID_ALLOWED.has(x))) {
+ for (const f of files.filter((x) => !RETIRED_ID_ALLOWED.has(x))) {
fs.readFileSync(path.join(ROOT, f), "utf8")
.split("\n")
.forEach((line, i) => RETIRED_IDS.test(line) && hits.push(`${f}:${i + 1}: ${line.trim().slice(0, 140)}`));
@@ -194,16 +107,9 @@ describe("no code path names the Higgsfield provider", () => {
expect(hits).toEqual([]);
expect(RETIRED_IDS.test('if (draft.modelId !== "soul-2") return null;')).toBe(true);
});
-
- it("has no file named after it", () => {
- expect(files.filter((f) => /higgsfield/i.test(path.basename(f)))).toEqual([]);
- });
-
- it("keeps the allowed history short and real", () => {
- for (const f of Object.keys(ALLOWED)) expect(fs.readFileSync(path.join(ROOT, f), "utf8"), f).toMatch(/higgsfield/i);
- });
});
+
// ---------------------------------------------------------------------------
// The catalog, the providers and the settings
@@ -211,20 +117,20 @@ describe("the catalog and the providers run without it", () => {
const KNOWN = new Set(["fal", "replicate", "comfyui", "mock", "local", "llm", "openai", "google", "worldcast"]);
it("routes every model to a provider Fuobe has", () => {
- const odd = MODELS.flatMap((m) => m.routes.filter((r) => !KNOWN.has(r.provider) || /higgsfield/i.test(r.endpoint)).map((r) => `${m.id}: ${r.provider} ${r.endpoint}`));
+ const odd = MODELS.flatMap((m) => m.routes.filter((r) => !KNOWN.has(r.provider) || mentionsRetiredName(r.endpoint)).map((r) => `${m.id}: ${r.provider} ${r.endpoint}`));
expect(odd).toEqual([]);
expect(Object.keys(PROVIDERS).sort()).toEqual([...KNOWN].sort());
});
it("has no setting, connection test or env var for it", () => {
- const named = Object.entries(SETTINGS).filter(([name, def]) => /higgsfield|^hf/i.test(`${name} ${def.key} ${"env" in def ? def.env : ""}`));
+ const named = Object.entries(SETTINGS).filter(([name, def]) => mentionsRetiredName(`${name} ${def.key} ${"env" in def ? def.env : ""}`));
expect(named).toEqual([]);
- expect(Object.keys(PROVIDER_SETTINGS)).not.toContain("higgsfield");
+ expect(Object.keys(PROVIDER_SETTINGS).filter((id) => !KNOWN.has(id) && mentionsRetiredName(id))).toEqual([]);
expect(SETTINGS.cloudProvider.options).toEqual(["auto", "fal", "replicate"]);
});
it("fails a job stored under a provider Fuobe no longer has, with a way forward, instead of throwing", async () => {
- const gone = provider("higgsfield" as never);
+ const gone = provider(OLD_PROVIDER as never);
expect(gone.isConfigured()).toBe(false);
const ctx = { externalId: "x", meta: {}, route: { op: "t2i" as const, provider: "fal" as const, endpoint: "x" }, model: getModel("nano-banana-pro")!, createdAt: 0 };
await expect(gone.poll(ctx)).resolves.toEqual({ state: "failed", error: RETIRED_PROVIDER_ERROR });
@@ -425,21 +331,21 @@ describe("stored ids resolve where they are read", () => {
const sheet = storedRow({
feature: "character-sheet",
model: "soul-2",
- provider: "higgsfield",
+ provider: OLD_PROVIDER,
op: "t2i",
status: "failed",
request: { feature: "character-sheet", modelId: "soul-2", op: "t2i", prompt: "a sheet", params: { aspectRatio: "16:9", extra: { style_id: "x" } } },
});
const [again] = retryPhoto(sheet);
expect(again).toMatchObject({ modelId: "fuobe-soul", feature: "character-sheet", request: { modelId: "fuobe-soul" } });
- const app = storedRow({ feature: "app:app-ai-influencer", model: "ai-influencer", provider: "higgsfield", op: "t2i", status: "canceled", request: { feature: "app:app-ai-influencer", modelId: "ai-influencer", op: "t2i", prompt: "a character" } });
+ const app = storedRow({ feature: "app:app-ai-influencer", model: "ai-influencer", provider: OLD_PROVIDER, op: "t2i", status: "canceled", request: { feature: "app:app-ai-influencer", modelId: "ai-influencer", op: "t2i", prompt: "a character" } });
expect(retryPhoto(app)[0]).toMatchObject({ modelId: "fuobe-soul" });
});
it("fails a job still running on a retired model with the way forward, not 'no longer exists'", async () => {
const running = { feature: "image", op: "t2i", status: "running", externalId: "job-1", request: { feature: "image", modelId: "x", prompt: "an old run" } };
- const soul = storedRow({ ...running, model: "soul-2", provider: "higgsfield" });
- const partner = storedRow({ ...running, model: "nano-banana-pro", provider: "higgsfield" });
+ const soul = storedRow({ ...running, model: "soul-2", provider: OLD_PROVIDER });
+ const partner = storedRow({ ...running, model: "nano-banana-pro", provider: OLD_PROVIDER });
const gone = storedRow({ ...running, model: "old-model", provider: "fal" });
await runUntil(() => [soul, partner, gone].every((id) => getGeneration(id)?.status === "failed"));
expect(getGeneration(soul)).toMatchObject({ status: "failed", error: RETIRED_PROVIDER_ERROR });
@@ -450,7 +356,7 @@ describe("stored ids resolve where they are read", () => {
it("starts a step that was waiting on a retired model on its replacement", async () => {
const still = saveFile({ data: Buffer.concat([Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]), Buffer.alloc(2_000, 7)]), contentType: "image/png", name: "still.png", source: "upload" }).url;
const first = storedRow({ feature: "image", model: "nano-banana-pro", provider: "mock", op: "t2i", status: "succeeded", externalId: "done", outputs: [{ url: still, kind: "image" }], request: { feature: "image", modelId: "nano-banana-pro", prompt: "a still" } });
- const step = storedRow({ feature: "image", model: "soul-2", provider: "higgsfield", op: "edit", status: "queued", dependsOn: first, request: { feature: "image", modelId: "soul-2", op: "edit", prompt: "restyle it", chainFrom: "first" } });
+ const step = storedRow({ feature: "image", model: "soul-2", provider: OLD_PROVIDER, op: "edit", status: "queued", dependsOn: first, request: { feature: "image", modelId: "soul-2", op: "edit", prompt: "restyle it", chainFrom: "first" } });
await runUntil(() => getGeneration(step)?.status !== "queued");
const g = getGeneration(step)!;
expect(g.error ?? null).toBeNull();
@@ -472,8 +378,8 @@ describe("stored ids resolve where they are read", () => {
const id = items[0].id;
// As a row stored before the switch reads: the retired model and provider, a finished output.
db()
- .prepare("UPDATE generations SET model_id = 'soul-2', provider = 'higgsfield', status = 'succeeded', outputs_json = ? WHERE id = ?")
- .run(JSON.stringify([{ url: "/api/files/old.png", kind: "image" }]), id);
+ .prepare("UPDATE generations SET model_id = 'soul-2', provider = ?, status = 'succeeded', outputs_json = ? WHERE id = ?")
+ .run(OLD_PROVIDER, JSON.stringify([{ url: "/api/files/old.png", kind: "image" }]), id);
const g = getGeneration(id)!;
expect(g).toMatchObject({ modelId: "soul-2", modelName: REPLACED_BY["soul-2"].was, status: "succeeded" });
expect(g.outputs).toHaveLength(1);
@@ -541,23 +447,30 @@ describe("the O7 migration", () => {
it("deletes the retired key, resets the provider choice and marks the ads drawn whole as baked", () => {
const d = db();
// The O7 migration by its content (later migrations follow it, and some of them can't run twice).
- const last = MIGRATIONS.findIndex((m) => m.includes("DELETE FROM settings WHERE key = 'higgsfield.key'"));
+ const last = MIGRATIONS.findIndex((m) => m.includes("UPDATE ad_batches SET route = 'baked'"));
expect(last).toBeGreaterThan(0);
+ // The provider id as the migration reads it: the one it names, or, where it lists what stays valid instead, any id
+ // Fuobe doesn't have.
+ const old = /key = '([a-z0-9-]+)\.key'/.exec(MIGRATIONS[last])?.[1] ?? OLD_PROVIDER;
+ const meta1 = JSON.stringify({ engine: "cloud", modelId: "ads-studio", route: old, ratio: "9:16" });
// An install from before: rows the migration rewrites, then the migration runs again on the next open.
- d.prepare("INSERT OR REPLACE INTO settings (key, value) VALUES ('higgsfield.key', 'id:secret'), ('cloud.provider', 'higgsfield')").run();
- d.prepare("INSERT INTO ad_batches (id, brand_id, engine, route, model_id, created_at) VALUES ('b1', 'br', 'cloud', 'higgsfield', 'ads-studio', 1), ('b2', 'br', 'cloud', 'fuobe', 'nano-banana-pro', 2)").run();
+ d.prepare("INSERT OR REPLACE INTO settings (key, value) VALUES (?, 'id:secret'), ('cloud.provider', ?), ('fal.key', 'fal-live')").run(`${old}.key`, old);
+ d.prepare("INSERT INTO ad_batches (id, brand_id, engine, route, model_id, created_at) VALUES ('b1', 'br', 'cloud', ?, 'ads-studio', 1), ('b2', 'br', 'cloud', 'fuobe', 'nano-banana-pro', 2)").run(old);
d.prepare(
`INSERT INTO ad_creatives (id, batch_id, brand_id, position, status, meta_json, created_at, updated_at) VALUES
- ('c1', 'b1', 'br', 0, 'queued', '{"engine":"cloud","modelId":"ads-studio","route":"higgsfield","ratio":"9:16"}', 1, 1),
+ ('c1', 'b1', 'br', 0, 'queued', ?, 1, 1),
('c2', 'b2', 'br', 0, 'queued', '{"engine":"cloud","modelId":"nano-banana-pro","route":"fuobe"}', 2, 2),
('c3', 'b2', 'br', 1, 'failed', 'not json', 3, 3)`,
- ).run();
+ ).run(meta1);
d.prepare("DELETE FROM _migrations WHERE id = ?").run(last);
d.close();
globalThis.__fuobeDb = undefined;
const again = db();
- expect(again.prepare("SELECT value FROM settings WHERE key = 'higgsfield.key'").get()).toBeUndefined();
+ expect(again.prepare("SELECT value FROM settings WHERE key = ?").get(`${old}.key`)).toBeUndefined();
+ // A key Fuobe still reads stays.
+ expect(again.prepare("SELECT value FROM settings WHERE key = 'fal.key'").get()).toEqual({ value: "fal-live" });
+ expect(again.prepare("SELECT value FROM settings WHERE key = 'cloud.provider'").get()).toEqual({ value: "auto" });
expect(getSetting("cloudProvider")).toBe("auto");
expect(again.prepare("SELECT route FROM ad_batches ORDER BY id").all()).toEqual([{ route: "baked" }, { route: "fuobe" }]);
const meta = (id: string) => (again.prepare("SELECT meta_json FROM ad_creatives WHERE id = ?").get(id) as { meta_json: string }).meta_json;
diff --git a/tests/shorts-api.test.ts b/tests/shorts-api.test.ts
index 72f0d407..5a43ca93 100644
--- a/tests/shorts-api.test.ts
+++ b/tests/shorts-api.test.ts
@@ -64,7 +64,7 @@ const dependsOn = (id: string) => {
return !v ? [] : v.startsWith("[") ? (JSON.parse(v) as string[]) : [v];
};
-// Gemini Omni Flash (Higgsfield's Shorts engine, a partner choice) unless a test names another model; Fuobe Shorts, the
+// Gemini Omni Flash (the parity studio's Shorts engine, a partner choice) unless a test names another model; Fuobe Shorts, the
// default since build plan O9, has tests of its own below.
const body = (over: Record<string, unknown> = {}) => ({
engine: "cloud",
diff --git a/tests/shorts.test.ts b/tests/shorts.test.ts
index 6cfdbdc8..69cbf374 100644
--- a/tests/shorts.test.ts
+++ b/tests/shorts.test.ts
@@ -56,7 +56,7 @@ describe("Shorts presets and catalog", () => {
expect(MOTIF_IDS.filter((id) => !ids.includes(id))).toEqual([]);
});
- it("has Higgsfield's 44 presets with Fuobe's own descriptions and looks", () => {
+ it("has the parity studio's 44 presets with Fuobe's own descriptions and looks", () => {
expect(SHORTS_PRESETS).toHaveLength(44);
expect(new Set(SHORTS_PRESETS.map((p) => p.id)).size).toBe(44);
expect(new Set(SHORTS_PRESETS.map((p) => p.name)).size).toBe(44);
@@ -78,7 +78,7 @@ describe("Shorts presets and catalog", () => {
if (typeof id === "number") continue;
expect(getModel(id), id).toBeDefined();
}
- // Fuobe Shorts (O9) is the default on both engines; Gemini Omni Flash (Higgsfield's Shorts engine) stays a choice.
+ // Fuobe Shorts (O9) is the default on both engines; Gemini Omni Flash (the parity studio's Shorts engine) stays a choice.
expect(SHORTS_MODELS.cloud.slice(0, 2)).toEqual(["fuobe-shorts", "gemini-omni-flash"]);
expect(SHORTS_MODELS.open).toEqual(["fuobe-shorts"]);
for (const id of SHORTS_MODELS.cloud) expect(getModel(id)!.routes.some((r) => r.op === "v2v"), id).toBe(true);
@@ -324,7 +324,7 @@ describe("Shorts pipeline shape", () => {
expect(chainState(split)).toMatchObject({ status: "working", label: "Splitting the sound" });
});
- it("limits are Higgsfield's", () => {
+ it("limits are the researched ones", () => {
expect(SHORTS.minSeconds).toBe(4);
expect(SHORTS.maxSeconds).toBe(120);
expect(SHORTS.maxBytes).toBe(200 * 1024 * 1024);
diff --git a/tests/soul-id-runtime.test.ts b/tests/soul-id-runtime.test.ts
index 28a5c58e..321038a5 100644
--- a/tests/soul-id-runtime.test.ts
+++ b/tests/soul-id-runtime.test.ts
@@ -87,7 +87,7 @@ describe("starting a Soul ID training", () => {
expect(startTraining(style.id, "fal-z-image-style").status).toBe("running");
});
- it("refuses too few photos, the wrong kind of training and a Higgsfield target", () => {
+ it("refuses too few photos, the wrong kind of training and a retired training target", () => {
const few = character(3);
expect(() => startTraining(few.id, "fal-z-image", { consent: true })).toThrow(/at least 5 photos/);
// FLUX's portrait trainer crops to a face: a place doesn't train on it.
diff --git a/tests/studio-pickers.test.ts b/tests/studio-pickers.test.ts
index f3460aae..58af9639 100644
--- a/tests/studio-pickers.test.ts
+++ b/tests/studio-pickers.test.ts
@@ -31,7 +31,7 @@ describe("studio pickers and defaults", () => {
expect(image).toEqual(expect.arrayContaining(["nano-banana-pro", "recraft-4-1-pro", "ideogram-3", "oss-z-image-turbo"]));
});
- it("Audio studios open on the models Higgsfield uses", () => {
+ it("Audio studios open on the models the parity studio uses", () => {
expect(SFX_STUDIO.defaultModels.cloud).toBe("mirelo-sfx-2");
expect(MUSIC_STUDIO.defaultModels.cloud).toBe("sonilo-music");
expect(FOLEY_STUDIO.defaultModels.cloud).toBe("mirelo-sfx-2-video");
diff --git a/tests/training.test.ts b/tests/training.test.ts
index 9423dac1..25b29de2 100644
--- a/tests/training.test.ts
+++ b/tests/training.test.ts
@@ -46,7 +46,7 @@ describe("Fuobe Soul ID targets (build plan O3)", () => {
expect(triggerFor("Al")).toBe("alfz");
});
- it("has no Higgsfield target: every one trains on fal or the user's GPU", () => {
+ it("has no retired training target: every one trains on fal or the user's GPU", () => {
expect(TRAINING_TARGETS.map((t) => t.provider).every((p) => p === "fal" || p === "ai-toolkit")).toBe(true);
expect(TRAINING_TARGETS.map((t) => t.id)).not.toContain("soul-id-v2");
expect(TRAINING_TARGETS.map((t) => t.id)).not.toContain("soul-id-cinema");
@@ -146,7 +146,7 @@ describe("Fuobe Soul ID targets (build plan O3)", () => {
expect(needsConsent("style")).toBe(false);
});
- it("follows Higgsfield's photo rules: 5 to start, 20+ recommended, 80 at most", () => {
+ it("follows the researched photo rules: 5 to start, 20+ recommended, 80 at most", () => {
expect(photosBlocker(4, "Maya")).toMatch(/at least 5 photos of Maya/);
expect(photosBlocker(5)).toBeNull();
expect(photosBlocker(81)).toMatch(/up to 80/);
@@ -314,7 +314,7 @@ describe("a Soul ID on every model of its family, on both engines", () => {
expect(identityFor([gpu, cloud], cloudSoul)).toBe(cloud);
});
- it("never uses a demo training or a Higgsfield Soul ID", () => {
+ it("never uses a demo training or a Soul ID", () => {
expect(identityFor([lora({ demo: true, url: "x" })], cloudSoul)).toBeUndefined();
expect(identityFor([{ engine: "cloud", modelId: "fuobe-soul", file: "", trigger: "", referenceId: "ref" }], cloudSoul)).toBeUndefined();
// What Assist reports as trained: only LoRAs some run can use.
diff --git a/tests/video-finish.test.ts b/tests/video-finish.test.ts
index a6144466..f242e57e 100644
--- a/tests/video-finish.test.ts
+++ b/tests/video-finish.test.ts
@@ -220,7 +220,7 @@ describe("cloud payloads", () => {
expect(buildPayload(map, { video: "v", format: "exr", sourceDuration: 5 }).num_frames).toBe(120);
});
- it("Topaz Video: a tier becomes upscale_factor from the clip's size; frame rate within 16–60; Higgsfield's presets", () => {
+ it("Topaz Video: a tier becomes upscale_factor from the clip's size; frame rate within 16–60; the parity studio's presets", () => {
const map = route("topaz-video", "upscale-video").map!;
const hd: GenInput = { video: "v", sourceSize: { width: 1280, height: 720 } };
expect(buildPayload(map, { ...hd, resolution: "4K", targetFps: 60, extra: { model: "Artemis High Quality", noise: 0.4 } })).toEqual({
diff --git a/tests/video-tool-options.test.ts b/tests/video-tool-options.test.ts
index 34acb359..8e224512 100644
--- a/tests/video-tool-options.test.ts
+++ b/tests/video-tool-options.test.ts
@@ -6,7 +6,7 @@ import type { GenerationRequest, ModelDef } from "@/lib/catalog/types";
import { settingsShape, settingsSummary, videoToolNote } from "@/lib/composer";
import { VIDEO_DEPTH_STUDIO, VIDEO_MATTE_STUDIO } from "@/lib/studios";
-// Video tools → Remove background and Depth map, with Higgsfield's options (docs/research/higgsfield-delta-4.md §4.3):
+// Video tools → Remove background and Depth map, with the parity studio's options (docs/research/parity-delta-4.md §4.3):
// what to keep (SAM), Cutout video or Alpha mask, the colour map and side by side, per model and engine.
const model = (id: string) => getModel(id)!;
@@ -84,7 +84,7 @@ describe("Remove background: what to keep, cut-out or alpha mask", () => {
});
describe("Depth map: colour map and side by side", () => {
- it("the cloud draws Higgsfield's five maps and goes side by side; the open engine gray or inferno", () => {
+ it("the cloud draws the parity studio's five maps and goes side by side; the open engine gray or inferno", () => {
expect(model("depth-anything-video-cloud").options).toMatchObject({ colormaps: ["grayscale", "turbo", "inferno", "magma", "viridis"], sideBySide: true });
expect(buildPayload(map("depth-anything-video-cloud"), { ...clip, colormap: "turbo", sideBySide: true })).toMatchObject({
video_url: clip.video,