Skip to content

Refuse known cloud-routed and non-generative local models in main (#380) - #465

Merged
BunsDev merged 1 commit into
mainfrom
lm5-cloud-models
Oct 31, 2026
Merged

BunsDev merged 1 commit into
mainfrom
lm5-cloud-models

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

LM-5 (#380), step 3: main refuses known cloud-routed and non-generative local models. This is stacked on #462 and will be rebased onto main once #462 merges. main still doesn't construct LocalExecution.

What changes

Discovery already marked Ollama's cloud-forwarded models and embedding models unselectable, but only in the list the renderer shows. Main now refuses them itself.

Tests

  • Execution suite: a new five-case regression. Each case is refused by validate and by the turn, with nothing spawned.
  • Ollama discovery case: now checks main's record.

Disabling each of the four guards in the compiled output made its regression fail:

  • the listed-cloud check;
  • the Ollama name check;
  • the non-generative check;
  • the discovery record.

Both passed again after a byte-for-byte restore.

Check Result
Focused (execution, discovery, runner local models, run-policy) 59/59
pnpm build && pnpm test (head 37cf2c6) exit 0; desktop 2,092 passed, 20 skipped, 0 failed; every other package green

No UI changes.

Docs: docs/local-models.md, docs/status.md and the review record.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 31, 2026 5:08am UTC

Request Review

@github-code-quality

github-code-quality Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

main 21f6a70 lm5-cloud-models 73f1683 +/-
66% 66% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.


Updated October 31, 2026 05:39 UTC

Base automatically changed from lm5-context to main October 31, 2026 05:00
Step 3: discovery marked Ollama's cloud-forwarded models and embedding models unselectable,
but only in the renderer's list. LocalModelDiscovery's per-model record now keeps that
reason, and LocalExecution.validate refuses such a model before spawning; on an Ollama
connection a :cloud/-cloud name is refused even unlisted. Unmarked models stay unverified.

Regressions in the execution and discovery suites; disabling each of the four guards in
the compiled output made its regression fail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BunsDev
BunsDev added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 8412ce4 Oct 31, 2026
13 checks passed
@BunsDev
BunsDev deleted the lm5-cloud-models branch October 31, 2026 06:20

This branch was successfully deployed

1 active deployment
Preview — 73f16839 Deployed Oct 31, 2026 by vercel[bot]
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