Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 64f5b916120bcc88b1b933da04145dd649ea62d7
parent 9730269a39c091976b67e27bf240783c2de7c148
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 11 Nov 2026 11:32:11 -0500

umtool e2e: the editor stub reads the checkout's settings as before; only its archives action writes the fixture's (demo epic D1 item 7)

8365e46b gave the stub SETTINGS_FILE=<fixture>/settings.json. The stub starts
beside make-fixture.mjs, which empties the fixture root and writes that copy
later, and its in-process common code (the real verdict-review) reads
settings: verdict-proposed and present failed in the whole run and again
alone, where they pass on this lane's base. The file the archives action
writes is now E2E_UMTOOL_SETTINGS_FILE; the app keeps SETTINGS_FILE (it
starts after make-fixture).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Diffstat:
Mumtool/e2e/fixtures/editor-stub-archives.mjs | 6+++---
Mumtool/e2e/fixtures/editor-stub.mjs | 4++--
Mumtool/playwright.config.ts | 10++++++++--
3 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/umtool/e2e/fixtures/editor-stub-archives.mjs b/umtool/e2e/fixtures/editor-stub-archives.mjs @@ -2,9 +2,9 @@ // under /archive-stub (the synthetic draft corpus — common/testing/draft — as // a site serves it), and the editor's `archives` action (POST // /api/ops/archives): `connect` reads the origin's corpus.json and, unless -// `dryRun`, writes settings.remoteArchives into SETTINGS_FILE (the fixture's -// copy, which umtool's source picker reads); `remove` drops one. Nothing -// leaves loopback. +// `dryRun`, writes settings.remoteArchives into E2E_UMTOOL_SETTINGS_FILE (the +// fixture's copy, which umtool's source picker reads); `remove` drops one. +// Nothing leaves loopback. import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs"; import path from "node:path"; diff --git a/umtool/e2e/fixtures/editor-stub.mjs b/umtool/e2e/fixtures/editor-stub.mjs @@ -39,9 +39,9 @@ const CHANNELS = process.env.CHANNELS_DIR ?? ""; const TOKEN = process.env.WORKER_TOKEN ?? ""; // demo epic D1: the published archive this stub serves (/archive-stub) and the // settings file its `archives` action writes — the fixture's, which umtool's -// source picker reads (playwright.config.ts SETTINGS_FILE). +// source picker reads (playwright.config.ts E2E_UMTOOL_SETTINGS_FILE). const ARCHIVE_STUB_DIR = path.join(path.dirname(CHANNELS || process.cwd()), "archive-stub"); -const SETTINGS = process.env.SETTINGS_FILE ?? path.join(path.dirname(CHANNELS || process.cwd()), "settings.json"); +const SETTINGS = process.env.E2E_UMTOOL_SETTINGS_FILE ?? path.join(path.dirname(CHANNELS || process.cwd()), "settings.json"); // Where the spec reads what was asked for. const LOG = process.env.E2E_EDITOR_STUB_LOG ?? path.join(process.cwd(), "editor-stub.requests.json"); diff --git a/umtool/playwright.config.ts b/umtool/playwright.config.ts @@ -14,6 +14,9 @@ import { dataRootRefusal } from "./lib/e2eEnvGuard.mjs"; // it was asked (e2e/fixtures/editor-stub.mjs) // E2E_GEN_PROJECTS set below on the editor stub: where a stubbed video // revision writes its project (release 27) +// E2E_UMTOOL_SETTINGS_FILE set below on the editor stub: the settings file its +// `archives` action writes (demo epic D1) -- the +// fixture's copy the app reads as SETTINGS_FILE // E2E_UMTOOL_EXTRA_KINDS set by projects.spec.ts on the CLI it runs: a kind // injected into the registry (lib/projects/kinds.mjs) // E2E_MODE `start` (the default): the app runs under @@ -164,8 +167,11 @@ export default defineConfig({ // article store, and a video revision's project under gen-projects. ARTICLES_DIR: `${FIXTURE}/articles`, E2E_GEN_PROJECTS: `${FIXTURE}/gen-projects`, - // demo epic D1: the archives action writes the fixture's settings. - SETTINGS_FILE: `${FIXTURE}/settings.json`, + // demo epic D1: the file the archives action writes -- the fixture's + // settings, which the app reads. NOT the stub's own SETTINGS_FILE: the + // stub starts beside make-fixture.mjs, before that copy exists, and its + // in-process common code (the real verdict-review) reads settings. + E2E_UMTOOL_SETTINGS_FILE: `${FIXTURE}/settings.json`, }, }, {