Skip to content

test(maximal): derive oMLX fixture profile versions from what is installed - #81

Merged
stuffbucket merged 1 commit into
mainfrom
fix/omlx-fixture-derive-versions
Sep 7, 2026
Merged

stuffbucket merged 1 commit into
mainfrom
fix/omlx-fixture-derive-versions

Conversation

@stuffbucket

Copy link
Copy Markdown
Owner

What

The same defect #79 fixed in the dsh-host fixture, at a second site.

packages/maximal/tests/provider-profile-integration.test.ts hardcodes the versions it writes into the fixture profile's manifest:

peerDependencies: { "@deepseek-ai/cordis": "4.0.1", "@deepseek-ai/dsh-llm": "0.1.0-rc.8" },
dependencies: { "@deepseek-ai/cordis": "4.0.1", "@deepseek-ai/dsh-attachment": "0.1.0-rc.6", ... }

while symlinking the actually resolved packages beside it. resolveExternalProfile requires the two to agree.

Why it wasn't already broken

Four of these literals were already stale on main — dsh-brand and dsh-timeout went to rc.8 in #65 and #66 — without failing anything, because only packages referenced by providers.json get version-checked. cordis is referenced via runtime.cordis, so #80's 4.0.1 → 4.0.2 trips it.

As in #79, the failure surfaces as the generic

The external provider profile is invalid.

naming neither the package nor the version.

The fix

Derive all ten from the same require.resolve that packageRoot already uses — including the four that are merely declared rather than referenced, so a later widening of the check can't resurrect this.

No production code changes.

Verification

Run in the disposable container (node scripts/docker-test.mjs) with #80's bumps applied:

  • external oMLX profile integration > loads through composition and preserves user configuration — passes (was the sole failure on build(deps): bump the npm-minor-and-patch group across 1 directory with 11 updates #80)
  • full run green: 15/15 tasks, @stuffbucket/maximal 92 pass / 0 fail, maximal-core 1859 pass / 0 fail, maximal-electron 1147 passed, maximal-client 70 passed
  • verify:workspace 13 assertions over 2764 things, 0 failed; lockfile supply-chain policies pass over 1715 entries
  • ESLint clean

Unblocks #80.

…alled

Same defect #79 fixed in the dsh-host fixture, at a second site. The oMLX
profile integration test hardcodes the versions it writes into the fixture
profile's manifest while symlinking the actually-resolved packages beside it,
and `resolveExternalProfile` requires the two to agree.

Four of these literals were already stale on main -- dsh-brand and dsh-timeout
went to rc.8 in #65 and #66 -- without breaking anything, because only packages
referenced by `providers.json` are version-checked. cordis is referenced, so
4.0.1 -> 4.0.2 (#80) trips it, and the failure surfaces as the generic
"The external provider profile is invalid." naming neither package nor version.

Derive all ten from the same resolution `packageRoot` already uses, including
the four that are merely declared, so a later widening of the check cannot
resurrect this.

No production code changes.

Verified in the disposable container with #80's bumps applied: the previously
failing "external oMLX profile integration > loads through composition and
preserves user configuration" passes, and the full run is green -- 15/15 tasks,
maximal 92 pass / 0 fail, maximal-core 1859, maximal-electron 1147.
@stuffbucket
stuffbucket merged commit 8288c8a into main Sep 7, 2026
6 checks passed
@stuffbucket
stuffbucket deleted the fix/omlx-fixture-derive-versions branch September 7, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant