Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

fix(lume-qa): fail-loud substrate, static rot tier, golden 2026-08-31 (#4072)

Nick Gomez38d7cd678100
diff --git a/knip.config.ts b/knip.config.ts
index ee740611a..a0ba1bf42 100644
--- a/knip.config.ts
+++ b/knip.config.ts
@@ -23,6 +23,7 @@ export default {
'where', // Windows binary lookup — git-preflight.ts, slides slidev probe
'taskkill', // Windows process-tree termination — acp/launch.ts
'sw_vers', // macOS version query — bug-report.ts
+ 'mktemp', // where macOS puts -t files — b4-acceptance-gate.test.ts observes the gate's scratch
'mkfifo', // named-pipe creation — keepalive-orphan-reaping.test.ts
'xcrun', // macOS notarization tool — desktop afterSign.mjs
'xdg-mime', // Linux default-app query — desktop ipc-handlers.ts
diff --git a/packages/desktop/vitest.config.ts b/packages/desktop/vitest.config.ts
index d1045e12b..2ca85d569 100644
--- a/packages/desktop/vitest.config.ts
+++ b/packages/desktop/vitest.config.ts
@@ -17,10 +17,24 @@ import { okVitestBase } from '../../test-support/vitest.base';
* un-discover the next one silently, with vitest reporting fewer tests and no
* error.
*/
+
+/**
+ * The VM-substrate suites drive real macOS host scripts (ioreg, plutil,
+ * defaults, bsdtar) through a scripted `lume` fake, so they can only produce a
+ * verdict on darwin — anywhere else they die at pre-flight before asserting
+ * anything. Their dedicated CI tier runs on a macOS runner with this same
+ * config, so gating on the host platform keeps both that tier and the
+ * developer inner loop intact while a Linux package run collects the rest.
+ * Excluding them outright would silence the local loop too.
+ */
+const lumeQaExcludeFor = (platform: string): string[] =>
+ platform === 'darwin' ? [] : ['tests/lume-qa/**'];
+
export default defineConfig({
...okVitestBase,
test: {
...okVitestBase.test,
include: ['**/*.test.ts?(x)', '**/*.test.mjs'],
+ exclude: [...okVitestBase.test.exclude, ...lumeQaExcludeFor(process.platform)],
},
});