From 0dd33538003c00dbe456df4893269b29fa7f80f1 Mon Sep 17 00:00:00 2001 From: Hebilicious Date: Fri, 4 Dec 2026 18:41:12 +0700 Subject: [PATCH 1/4] ci(oracles): check token laws and publish gap reports --- .github/workflows/oracles.yaml | 42 +++++++++++++++ .gitignore | 2 + AGENTS.md | 15 ++++++ README.md | 3 ++ packages/cssforge/README.md | 3 ++ packages/cssforge/eslint.oracles.config.mjs | 8 +++ packages/cssforge/moon.yml | 39 ++++++++++++++ packages/cssforge/oracles/README.md | 35 +++++++++++++ packages/cssforge/package.json | 3 ++ packages/cssforge/scripts/check-oracles.ts | 58 +++++++++++++++++++++ packages/cssforge/tsconfig.json | 2 + pnpm-lock.yaml | 35 ++++++++++--- 12 files changed, 237 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/oracles.yaml create mode 100644 packages/cssforge/eslint.oracles.config.mjs create mode 100644 packages/cssforge/oracles/README.md create mode 100644 packages/cssforge/scripts/check-oracles.ts diff --git a/.github/workflows/oracles.yaml b/.github/workflows/oracles.yaml new file mode 100644 index 0000000..c23c439 --- /dev/null +++ b/.github/workflows/oracles.yaml @@ -0,0 +1,42 @@ +name: Oracles + +on: + pull_request: + push: + branches: + - main + +permissions: + contents: read + +jobs: + oracle-laws: + name: Oracle laws + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up toolchain + uses: moonrepo/setup-toolchain@v0 + with: + moon-version: "2.6.5" + auto-install: true + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Check oracle laws + run: moon exec --ignore-ci-checks cssforge:oracles + + - name: Upload gap report + if: always() + uses: actions/upload-artifact@v4 + with: + name: oracle-gap-report + include-hidden-files: true + path: | + .tmp/oracle-reports/**/summary.md + .tmp/oracle-reports/**/results.json + .tmp/oracle-reports/**/test-output.log + .tmp/oracle-reports/**/error.log + .tmp/oracle-reports/**/stream.log diff --git a/.gitignore b/.gitignore index a5be974..9bac1af 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,5 @@ convert.ts TODO.md .worktrees .artifact-build-* + +/.tmp/oracle-reports/ diff --git a/AGENTS.md b/AGENTS.md index 84d0105..54f0ef9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -61,6 +61,21 @@ standard library or writing code from first principles. - Before handing off implementation, test, build, or tooling changes, use `$code-review`. Documentation and agent-instruction changes require it only when explicitly requested. +## Oracle tests + +Run `moon run cssforge:oracles` when changing behavior covered by an oracle. The +[contributor guide](packages/cssforge/oracles/README.md) explains the reports and replay. +Agree on new or changed laws with a maintainer. Reproduce defects against the +public API and make the oracle fail on unchanged production before fixing it. + +Read the relevant installed guide in full before oracle work. The paths are +relative to the repository root: + +- Exploring behavior or proposing laws: `packages/cssforge/node_modules/@tanstack/oracles/skills/oracles-explore/SKILL.md` +- Writing or changing oracles or their owned production code: `packages/cssforge/node_modules/@tanstack/oracles/skills/oracles-design/SKILL.md` +- Reviewing or evaluating a review: use `oracles-review` or `oracles-evaluate-review` under the same `skills/` directory. +- Changing setup or upgrading the dependency: use `oracles-setup` under the same `skills/` directory. + ## Library architecture - Keep token transformation, validation, normalization, and generation in framework-neutral diff --git a/README.md b/README.md index ce8260a..6141d96 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,9 @@ moon run cssforge:jsr-dry-run `cssforge:smoke-test` packs the package and installs that tarball in clean npm and pnpm projects, and `cssforge:jsr-smoke` runs the JSR entry points with Node. +Use `moon run cssforge:oracles` to check generated token behavior with the +[oracle tests](https://github.com/Hebilicious/cssforge/blob/main/packages/cssforge/oracles/README.md). + ## Quick Start 1. Create a configuration file (`cssforge.config.ts`): diff --git a/packages/cssforge/README.md b/packages/cssforge/README.md index ce8260a..6141d96 100644 --- a/packages/cssforge/README.md +++ b/packages/cssforge/README.md @@ -89,6 +89,9 @@ moon run cssforge:jsr-dry-run `cssforge:smoke-test` packs the package and installs that tarball in clean npm and pnpm projects, and `cssforge:jsr-smoke` runs the JSR entry points with Node. +Use `moon run cssforge:oracles` to check generated token behavior with the +[oracle tests](https://github.com/Hebilicious/cssforge/blob/main/packages/cssforge/oracles/README.md). + ## Quick Start 1. Create a configuration file (`cssforge.config.ts`): diff --git a/packages/cssforge/eslint.oracles.config.mjs b/packages/cssforge/eslint.oracles.config.mjs new file mode 100644 index 0000000..2661b5b --- /dev/null +++ b/packages/cssforge/eslint.oracles.config.mjs @@ -0,0 +1,8 @@ +import oracles from "@tanstack/eslint-plugin-oracles"; +import parser from "@typescript-eslint/parser"; + +export default [ + oracles.configs.recommended, + oracles.configs.production, + { files: ["oracles/**/*.ts", "src/**/*.ts"], languageOptions: { parser } }, +]; diff --git a/packages/cssforge/moon.yml b/packages/cssforge/moon.yml index ec31ba6..b807101 100644 --- a/packages/cssforge/moon.yml +++ b/packages/cssforge/moon.yml @@ -43,10 +43,13 @@ tasks: - "check" - "src" - "tests" + - "oracles" - "scripts" - "package.json" - "tsconfig.json" - "vitest.config.ts" + - "vitest.oracles.config.ts" + - "eslint.oracles.config.mjs" - "tsup.config.ts" - "jsr.json" - "--linter-enabled=false" @@ -55,10 +58,13 @@ tasks: inputs: - "src/**/*" - "tests/**/*" + - "oracles/**/*" - "scripts/**/*" - "package.json" - "tsconfig.json" - "vitest.config.ts" + - "vitest.oracles.config.ts" + - "eslint.oracles.config.mjs" - "tsup.config.ts" - "jsr.json" - "src/version.ts" @@ -71,10 +77,13 @@ tasks: - "check" - "src" - "tests" + - "oracles" - "scripts" - "package.json" - "tsconfig.json" - "vitest.config.ts" + - "vitest.oracles.config.ts" + - "eslint.oracles.config.mjs" - "tsup.config.ts" - "jsr.json" - "--linter-enabled=false" @@ -89,6 +98,7 @@ tasks: - "check" - "src" - "tests" + - "oracles" - "scripts" - "--formatter-enabled=false" - "--assist-enabled=true" @@ -96,6 +106,7 @@ tasks: inputs: - "src/**/*" - "tests/**/*" + - "oracles/**/*" - "scripts/**/*" - "/biome.json" options: @@ -111,6 +122,8 @@ tasks: inputs: - "src/**/*" - "tests/**/*" + - "oracles/**/*" + - "vitest.oracles.config.ts" - "scripts/**/*" - "tsconfig.json" - "/tsconfig.base.json" @@ -143,6 +156,32 @@ tasks: - "/tsconfig.base.json" options: runInCI: "always" + oracle-lint: + command: "eslint" + args: ["--config", "eslint.oracles.config.mjs", "oracles", "src"] + inputs: + - "oracles/**/*" + - "src/**/*" + - "eslint.oracles.config.mjs" + - "package.json" + - "/pnpm-lock.yaml" + options: + runInCI: false + oracles: + command: "node" + args: ["./scripts/check-oracles.ts"] + deps: ["~:oracle-lint", "~:typecheck"] + inputs: + - "oracles/**/*" + - "src/**/*" + - "scripts/check-oracles.ts" + - "vitest.oracles.config.ts" + - "package.json" + - "/pnpm-lock.yaml" + options: + # The Oracles workflow runs this explicitly so it can upload each report. + runInCI: false + cache: false test-watch: command: "vitest" options: diff --git a/packages/cssforge/oracles/README.md b/packages/cssforge/oracles/README.md new file mode 100644 index 0000000..0a14b1c --- /dev/null +++ b/packages/cssforge/oracles/README.md @@ -0,0 +1,35 @@ +# Oracle tests + +Run from the workspace root after `pnpm install`: + +```sh +moon run cssforge:oracles +``` + +The task lints and type-checks the oracle files, then runs `oracle-gaps` with a +fixed seed. The baseline checks real CSS Forge against independently computed +expected results. The gap check makes small changes to copies of the source +and reports which changes the oracles detect. + +Open the printed `summary.md` for failing laws, shrunk inputs, replay commands, +and gaps. Each run writes to a new directory under `.tmp/oracle-reports/`. In +GitHub Actions, download the `oracle-gap-report` artifact. A failed or +nondeterministic baseline fails the job. The mutation gaps appear in the +report for review. + +## Add or change a law + +1. Probe the exported API and identify the promise in the docs, a test, or a + maintainer decision. Ask a maintainer to approve new or changed laws. +2. Add the law and its source to an `*.oracle.test.ts` file here. Generate inputs, + compute expected results independently, and call the public API in the + driver. Include boundary cases and a calibration that the check must reject. +3. For a bug fix, run the task on the unchanged source first. Keep the failing + input and run the same check after the fix. Inspect gaps for observations or + inputs the law should cover. +4. If you add an owned source file, include it in the runner’s `--source` list + in [check-oracles.ts](../scripts/check-oracles.ts). The oracle’s `owns` list + declares the functions subject to the gap check. + +See [AGENTS.md](../../../AGENTS.md#oracle-tests) for the installed Oracles guides +on exploration, design, and review. diff --git a/packages/cssforge/package.json b/packages/cssforge/package.json index cca1e74..9bf6e39 100644 --- a/packages/cssforge/package.json +++ b/packages/cssforge/package.json @@ -60,8 +60,11 @@ "devDependencies": { "@acid-cat/cli": "0.13.0", "@biomejs/biome": "2.4.2", + "@tanstack/eslint-plugin-oracles": "0.0.1", "@tanstack/oracles": "0.0.1", "@types/node": "24.3.0", + "@typescript-eslint/parser": "^8.56.0", + "eslint": "^9.39.2", "fast-check": "4.11.0", "mdbox": "0.1.1", "tsup": "8.5.0", diff --git a/packages/cssforge/scripts/check-oracles.ts b/packages/cssforge/scripts/check-oracles.ts new file mode 100644 index 0000000..82cacde --- /dev/null +++ b/packages/cssforge/scripts/check-oracles.ts @@ -0,0 +1,58 @@ +import { spawnSync } from "node:child_process"; +import { mkdirSync, mkdtempSync, readFileSync } from "node:fs"; +import { join, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; + +const packageRoot = resolve(import.meta.dirname, ".."); +const reports = resolve(packageRoot, "../../.tmp/oracle-reports"); +mkdirSync(reports, { recursive: true }); +const out = mkdtempSync(join(reports, "run-")); +const cli = fileURLToPath( + new URL( + "./oracle-gaps/index.mjs", + import.meta.resolve("@tanstack/oracles/package.json"), + ), +); + +const run = spawnSync( + process.execPath, + [ + cli, + "--package", + packageRoot, + "--source", + "src/lib.ts,src/generator.ts,src/modules/colors.ts", + "--config", + "vitest.oracles.config.ts", + "--seed", + "47", + "--contexts", + "4", + "--out", + out, + ], + { stdio: "inherit" }, +); +if (run.error) throw run.error; +if (run.status !== 0) { + throw new Error(`oracle-gaps failed with ${run.signal ?? run.status}`); +} + +// The CLI returns zero when analysis completes, including when the baseline fails. +const report: unknown = JSON.parse(readFileSync(join(out, "results.json"), "utf8")); +if ( + typeof report !== "object" || + report === null || + !("provisional" in report) || + report.provisional !== false || + !("baseline" in report) || + !Array.isArray(report.baseline) || + report.baseline.length === 0 || + !("nondeterministic" in report) || + !Array.isArray(report.nondeterministic) || + report.nondeterministic.length > 0 +) { + throw new Error( + `Oracle baseline failed, was nondeterministic, or is missing. See ${out}`, + ); +} diff --git a/packages/cssforge/tsconfig.json b/packages/cssforge/tsconfig.json index eda8122..1e06dc7 100644 --- a/packages/cssforge/tsconfig.json +++ b/packages/cssforge/tsconfig.json @@ -7,8 +7,10 @@ "include": [ "src/**/*.ts", "tests/**/*.ts", + "oracles/**/*.ts", "scripts/**/*.ts", "vitest.config.ts", + "vitest.oracles.config.ts", "tsup.config.ts" ] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 81b9c5a..3de6e09 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -309,12 +309,21 @@ importers: '@biomejs/biome': specifier: 2.4.2 version: 2.4.2 + '@tanstack/eslint-plugin-oracles': + specifier: 0.0.1 + version: 0.0.1(eslint@9.39.2(jiti@2.6.1)) '@tanstack/oracles': specifier: 0.0.1 version: 0.0.1(fast-check@4.11.0)(vitest@4.1.12(@types/node@24.3.0)(vite@7.3.1(@types/node@24.3.0)(jiti@2.6.1)(lightningcss@1.31.1)(terser@5.46.0)(tsx@4.20.6)(yaml@2.8.2))) '@types/node': specifier: 24.3.0 version: 24.3.0 + '@typescript-eslint/parser': + specifier: ^8.56.0 + version: 8.56.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3) + eslint: + specifier: ^9.39.2 + version: 9.39.2(jiti@2.6.1) fast-check: specifier: 4.11.0 version: 4.11.0 @@ -3035,6 +3044,12 @@ packages: peerDependencies: vite: '>=6.0.0' + '@tanstack/eslint-plugin-oracles@0.0.1': + resolution: {integrity: sha512-bhBDnQpqvoqpG6uS8DTE2Q8b6MjhRUF1u1BPDxm0kxOvQVeyOBPdG+Id2Hxm+4Sb9pcgWz5l2cruRdU7rkL4Mw==} + engines: {node: '>=20'} + peerDependencies: + eslint: ^9.0.0 || ^10.0.0 + '@tanstack/oracles@0.0.1': resolution: {integrity: sha512-oXfwt6sh9jbdlacoOJQ0lEyvwuIGXparZ9YBwwvIjsAIu9eNpBImGb4TI/kO7MwEJaFrqwHgHuKiPtqRCNFXCw==} engines: {node: '>=20'} @@ -10090,6 +10105,10 @@ snapshots: transitivePeerDependencies: - supports-color + '@tanstack/eslint-plugin-oracles@0.0.1(eslint@9.39.2(jiti@2.6.1))': + dependencies: + eslint: 9.39.2(jiti@2.6.1) + '@tanstack/oracles@0.0.1(fast-check@4.11.0)(vitest@4.1.12(@types/node@24.3.0)(vite@7.3.1(@types/node@24.3.0)(jiti@2.6.1)(lightningcss@1.31.1)(terser@5.46.0)(tsx@4.20.6)(yaml@2.8.2)))': dependencies: fast-check: 4.11.0 @@ -11757,8 +11776,8 @@ snapshots: '@next/eslint-plugin-next': 16.1.6 eslint: 9.39.2(jiti@2.6.1) eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.2(jiti@2.6.1)) - eslint-plugin-import: 2.32.0(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.2(jiti@2.6.1)) + eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(eslint@9.39.2(jiti@2.6.1)))(eslint@9.39.2(jiti@2.6.1)) + eslint-plugin-import: 2.32.0(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(eslint@9.39.2(jiti@2.6.1)))(eslint@9.39.2(jiti@2.6.1)))(eslint@9.39.2(jiti@2.6.1)) eslint-plugin-jsx-a11y: 6.10.2(eslint@9.39.2(jiti@2.6.1)) eslint-plugin-react: 7.37.5(eslint@9.39.2(jiti@2.6.1)) eslint-plugin-react-hooks: 7.0.1(eslint@9.39.2(jiti@2.6.1)) @@ -11780,7 +11799,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.2(jiti@2.6.1)): + eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(eslint@9.39.2(jiti@2.6.1)))(eslint@9.39.2(jiti@2.6.1)): dependencies: '@nolyfill/is-core-module': 1.0.39 debug: 4.4.3 @@ -11791,21 +11810,21 @@ snapshots: tinyglobby: 0.2.15 unrs-resolver: 1.11.1 optionalDependencies: - eslint-plugin-import: 2.32.0(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.2(jiti@2.6.1)) + eslint-plugin-import: 2.32.0(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(eslint@9.39.2(jiti@2.6.1)))(eslint@9.39.2(jiti@2.6.1)))(eslint@9.39.2(jiti@2.6.1)) transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.1(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.2(jiti@2.6.1)): + eslint-module-utils@2.12.1(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(eslint@9.39.2(jiti@2.6.1)))(eslint@9.39.2(jiti@2.6.1)))(eslint@9.39.2(jiti@2.6.1)): dependencies: debug: 3.2.7 optionalDependencies: eslint: 9.39.2(jiti@2.6.1) eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.39.2(jiti@2.6.1)) + eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(eslint@9.39.2(jiti@2.6.1)))(eslint@9.39.2(jiti@2.6.1)) transitivePeerDependencies: - supports-color - eslint-plugin-import@2.32.0(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.2(jiti@2.6.1)): + eslint-plugin-import@2.32.0(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(eslint@9.39.2(jiti@2.6.1)))(eslint@9.39.2(jiti@2.6.1)))(eslint@9.39.2(jiti@2.6.1)): dependencies: '@rtsao/scc': 1.1.0 array-includes: 3.1.9 @@ -11816,7 +11835,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.39.2(jiti@2.6.1) eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.1(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1)(eslint@9.39.2(jiti@2.6.1)) + eslint-module-utils: 2.12.1(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(eslint@9.39.2(jiti@2.6.1)))(eslint@9.39.2(jiti@2.6.1)))(eslint@9.39.2(jiti@2.6.1)) hasown: 2.0.2 is-core-module: 2.16.1 is-glob: 4.0.3 From 6847506eb0176924c2d83c2f53ef98544920602c Mon Sep 17 00:00:00 2001 From: Hebilicious Date: Fri, 4 Dec 2026 18:41:55 +0700 Subject: [PATCH 2/4] docs(oracles): explain replay paths and fixed-seed verification --- packages/cssforge/oracles/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/cssforge/oracles/README.md b/packages/cssforge/oracles/README.md index 0a14b1c..e275d3f 100644 --- a/packages/cssforge/oracles/README.md +++ b/packages/cssforge/oracles/README.md @@ -12,7 +12,9 @@ expected results. The gap check makes small changes to copies of the source and reports which changes the oracles detect. Open the printed `summary.md` for failing laws, shrunk inputs, replay commands, -and gaps. Each run writes to a new directory under `.tmp/oracle-reports/`. In +and gaps. The replay paths are relative to `packages/cssforge`. Rerun the Moon +task from the workspace root to verify a fix with the same seed. Each run +writes to a new directory under `.tmp/oracle-reports/`. In GitHub Actions, download the `oracle-gap-report` artifact. A failed or nondeterministic baseline fails the job. The mutation gaps appear in the report for review. From 69a13d3d96957ae4b9356c631c5faa9bc0c8f24e Mon Sep 17 00:00:00 2001 From: Hebilicious Date: Fri, 4 Dec 2026 18:44:29 +0700 Subject: [PATCH 3/4] ci(oracles): fetch history for the Moon PR check --- .github/workflows/oracles.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/oracles.yaml b/.github/workflows/oracles.yaml index c23c439..76e8dfc 100644 --- a/.github/workflows/oracles.yaml +++ b/.github/workflows/oracles.yaml @@ -15,6 +15,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Set up toolchain uses: moonrepo/setup-toolchain@v0 @@ -26,7 +28,7 @@ jobs: run: pnpm install --frozen-lockfile - name: Check oracle laws - run: moon exec --ignore-ci-checks cssforge:oracles + run: moon exec --ignore-ci-checks --force cssforge:oracles - name: Upload gap report if: always() From 13dc071ad77240ba09b0adc4e061aefb721ecd36 Mon Sep 17 00:00:00 2001 From: Hebilicious Date: Fri, 4 Dec 2026 19:01:48 +0700 Subject: [PATCH 4/4] test(tokens): remove collision cases covered by the oracle --- packages/cssforge/tests/key-collision.test.ts | 44 ------------------- 1 file changed, 44 deletions(-) diff --git a/packages/cssforge/tests/key-collision.test.ts b/packages/cssforge/tests/key-collision.test.ts index 6ee56d8..fb48b50 100644 --- a/packages/cssforge/tests/key-collision.test.ts +++ b/packages/cssforge/tests/key-collision.test.ts @@ -130,22 +130,6 @@ test("generator - variantNameOnly themes may reuse a key in different scopes", ( test("generator - unscoped declarations that share a key are rejected", () => { // Every case below lands in `:root`, so one declaration overwrites the other. const unscoped: Array<[string, () => unknown, string]> = [ - [ - "two themes", - () => - generateCSS( - defineConfig({ - colors: { - palette, - theme: { - light: { value: variantTheme() }, - other: { value: variantTheme() }, - }, - }, - }), - ), - 'Token key collision: "theme.light.background.primary" and "theme.other.background.primary" both generate "--primary". Rename one of the configuration paths.', - ], [ "a theme and the spacing module", () => @@ -220,34 +204,6 @@ test("generator - unscoped declarations that share a key are rejected", () => { } }); -test("generator - an explicit :root selector collides inside a shared at-rule", () => { - const error = thrownError(() => - generateCSS( - defineConfig({ - colors: { - palette, - theme: { - light: { - value: variantTheme(), - settings: { - atRule: "@media (prefers-color-scheme: dark)", - selector: ":root", - }, - }, - dark: { - value: variantTheme(), - settings: { atRule: "@media (prefers-color-scheme: dark)" }, - }, - }, - }, - }), - ), - ); - expect(error.message).toEqual( - 'Token key collision: "theme.light.background.primary" and "theme.dark.background.primary" both generate "--primary". Rename one of the configuration paths.', - ); -}); - test("generator - differing wrappers may share a key", () => { // A wrapper is part of the scope identity, so the same name under two // different wrappers does not overwrite. Covers both modules and both