Repository navigation
Conversation
Same-machine HTTP(S) origins only; localhost resolutions re-checked at connect; redirects, credentials-in-URL, queries and unexpected paths refused; deadline, byte cap and cancellation; fixed error text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Profiles live in app/local-connections.json without secrets; optional tokens use the existing SecretStore under local_connection:<id>. The renderer view carries presence only. Revisions move when runtime, address or token change; a token never follows a changed address; stale edits are refused; deletion leaves a non-resolving tombstone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ollama (tags/ps/capped show), LM Studio (/api/v0/models, /v1 fallback) and Responses-compatible (/v1/models) metadata reads only. Exact IDs, installed/loaded/kind/advertised states or unknown, cloud-routed and embedding models unselectable, manual IDs kept on failure. Size, count and time bounds; superseded, edited or deleted reads return stale. The resolver test seam is always wrapped by the loopback check. Co-Authored-By: Claude Opus 5.5 <[email protected]>
local-models:command validates request shape strictly and is registered localOnly; edits and deletes invalidate in-flight discovery. Store desktop's offline demo refuses it. Adds a production-IPC Electron spec, the dated review receipt and the status entry; completion stays blocked on #377. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Code coverage overviewLanguages: TypeScript TypeScript / code-coverage-agent
View coverage of the 9 most impacted files.
ℹ️ Calculations represent line coverage. Results may change as calculations are updated. Updated |
…/reflected-xss) (#378) Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 23, 2026
Open
Contributor
Author
|
The two review defects (P1: a failed profile write changed an old revision's credential; P2: metadata could reflect the token into IPC) are fixed with failing-first regressions in #398. It replays this PR's commits onto main unchanged. This branch is still claimed by another session, so I didn't push to it. Close whichever PR you don't keep. |
BunsDev
added a commit
that referenced
this pull request
Oct 24, 2026
…378) Val accepted Gate A narrowly on 2026-10-24 for main at bb0e1a4: the LM-1 contract (#397, #400) and the recorded Strata combination only (see the acceptance comment on #377). local-models.md, both status bullets and the LM-2 receipt now say so instead of "not accepted", and list what remains open: native Ollama/LM Studio metadata reads, the AGENTS.md network wording, the #386/#398 choice and the landing order. Co-Authored-By: Claude Opus 5.5 <[email protected]>
BunsDev
added a commit
that referenced
this pull request
Oct 24, 2026
Co-Authored-By: Claude Opus 5.5 <[email protected]>
BunsDev
added a commit
that referenced
this pull request
Oct 24, 2026
#405 recorded Val's Gate A acceptance and approval of the AGENTS.md metadata boundary, plus a CLI inventory with no local generative model. Resolutions: - docs/local-models.md keeps main's status line. The adoption paragraph now says #403 adopted the contract and that #386 and #398 are superseded. - docs/status.md keeps main's LM-1 entry, which now says LM-2 consumes it through #403. The LM-2 entry records the approved boundary and says LM-2's discovery has not yet run against a real runtime. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #378 (LM-2) under #376. Draft: completion is blocked on #377 (LM-1), which is not accepted.
Main-owned, loopback-only local-model connection profiles and bounded metadata discovery. There is no UI, no execution binding and no inference.
What's here
main/engine/local-models/endpoint-policy.ts: same-machine HTTP(S) origins only (localhost,127.0.0.0/8,::1and their alternate spellings).localhostresolutions are re-checked at connect. Redirects, credentials in the URL, queries, fragments and unexpected paths are refused. Requests have a deadline, a byte cap and cancellation, and failure text is fixed.main/engine/local-models/connections.ts: profiles inapp/local-connections.jsonwith no secrets. Optional tokens go in the existingSecretStoreaslocal_connection:<id>. The revision moves when the runtime, address or token changes. A token never follows a changed address, stale edits are refused, and deletion leaves a tombstone that never resolves.main/engine/local-models/discovery.ts: Ollama (/api/tags,/api/ps,/api/showcapped at 32), LM Studio (/api/v0/models, falling back to/v1/models) and Responses-compatible servers (/v1/models).unknown.stale.main/engine/local-models/service.tsandshared/local-connections.ts: onelocal-models:commandchannel with a strict validator, registeredlocalOnly. The Store desktop offline demo refuses it.Evidence (fixture-only)
All of it comes from synthetic loopback servers. No real Ollama, LM Studio, vLLM or llama.cpp was contacted, and no model was loaded, pulled or run. Details are in
docs/reviews/2026-10-22-lm2-connections-discovery.md.ipcMain(e2e/local-models-ipc.spec.ts).0.0.0.0/::, link-local, IPv4 and IPv6 alternate spellings, injection characters, redirects, alocalhostthat resolves off-machine (zero requests reach the server) and forged IPC fields.typesafe_api_keyis never sent. Without an OS keychain, saving a token is refused.stale.Checks at
1c0dd37(code);ef6863eadds docs onlyNode v24.22.0, pnpm 10.34.5, Electron 44.4.5, Playwright 1.63.0.
node --test dist/test/local-model-*.test.js: 21/21 passed.pnpm build && pnpm test: exit 0. Desktop 1848 tests, 1832 passed, 0 failed, 16 skipped (Windows-only and pinned OpenKnowledge). Other suites 117, 16, 21, 10 and 16 passed.pnpm --filter @modex/desktop typecheck: exit 0.playwright test e2e/local-models-ipc.spec.ts e2e/code-review-ipc.spec.ts: 2/2 passed. Fulltest:e2ewas not run (no renderer change).git merge-treeagainst open PRs docs: CF-7 step-linking decision note for Val (#280) #370–Add the CR-8 acceptance matrix, Electron journeys and cross-slice regressions (#327) #372, feat: reopen saved task notes as read-only receipts #374, feat: reopen a saved task note as a read-only task view (#280) #375 and Run Plan mode on Codex in Codex's native plan collaboration mode (CF-3) #385: no conflicts.Open gates
shared/local-models.tstypes (LocalModelRefaddsschema: 1), with no behaviour change.ConnectionRef.Do not merge. No release.
🤖 Generated with Claude Code