Repository navigation
Conversation
stevbev
marked this pull request as draft
November 23, 2026 04:30
stevbev
force-pushed
the
feature/mtplx-engine
branch
from
November 24, 2026 21:39
7dfa224 to
66a4ad8
Compare
stevbev
marked this pull request as ready for review
November 24, 2026 21:39
The first cut of PAIR seeing an engine that is not a download. - launch_model declares a list of flags (--model picks the files to serve, --model-id fixes the id the server answers to) instead of one flag, so a later commit can stop writing a flag that pins nothing. A manifest naming no flag, repeating one, or listing a non-flag is now a manifest error; vllm.json moves to the list form, which behaves as the single flag did. - MTPLX is described through a manifest plus the per-engine tables that mirror nvpair-shared/engines, so nothing branches on its name: manifest for darwin/arm64 only, discovery key advertised only while a managed server answers /health, appleOnly catalog rows, pack ids matched exactly rather than by prefix, one model per process so Load rewrites launch arguments and restarts the server. Facade and managed server take 8100 and 8101 — its own default 8000 is already the vLLM facade's, and Apple Silicon is where both engines can run. - No install block and no Install button: the engine ships as an app that updates itself, a PAIR-installed second copy would be a second server and a second cache, and the pack cache stays in the user's own ~/.mtplx/models, surviving uninstall and data reset. - Desktop relays what a node reports: wire and display names, links, the disk-read model list (Add model, Delete and Load work while the engine is stopped), the load-pending timeout keyed on the loadRestartsEngine capability instead of the name "vLLM", and Partial records for the icon and welcome maps so an engine without a mark of its own reads as absent, not as an oversight. The mark is MTPLX's own unmodified AppIcon layer. - Docs carry the operational facts: the port map and why 8000 was left alone, no Install action anywhere, the catalog filtered locally because the pack list is not searchable, and that an engine the user installed is not a service PAIR runs. No behavior toward a live engine exists yet; that is the next commits. Signed-off-by: Steven Beverly <thestevbev@gmail.com>
An MTPLX server the user started answers on the port MTPLX.app gave it — on one Mac 6666 because that is what the app's settings file keeps, on another 8001 after the vLLM facade took its own default. Probing only the configured port read an empty port while the real engine went unadopted and unrouted, and Start either did nothing useful or launched a second router beside the running one. - A manifest may declare a `port_source`: a settings file and the key in it naming the port the engine listens on, read fresh each round, so an engine moved in its own application takes effect on the next poll without restarting PAIR. Start adopts on whichever candidate answers as the engine, and the health loop, EngineStatus's port and the broker's advertiser follow it there instead of trusting a cached configured port. A facade is never handed its own listen port as a backend, which would loop a request back into the proxy. - A candidate port answering 401 or 403 is a service waiting for an API key PAIR never sends: neither adopted nor spawned over; Start fails naming the port and the status, and a standing `engine-manager:auth-blocked` warning covers the state until the port answers. Giving up an adopted service takes three rounds in which every candidate refuses, so a dropped request is not read as a stopped engine. - A stranger found while searching for the engine's real port does not block a start — PAIR hands the engine the port to bind, so a service on a search-only port was never in the way of a new copy. What blocks a start is what sits on the port a new copy would bind, plus credential refusals from anywhere. Uninstall keeps the wider rule (deleting an image cannot tell which of an engine's ports a service was using) and names the port the listener was really found on. Port observations file each answer under the port it came from. - Desktop: the model list becomes the union of what an engine has cached and what it has resident, read through the engine:models snapshot. The model an engine is serving is not necessarily in its cache listing — a pack served straight from a path is named by neither `mtplx models` nor the listing — so a running engine with a model under it would otherwise offer nothing. A snapshot naming no list is unknown, not empty: the refresh keeps its last-good list or falls back to discovery. Tests: the two cross-process drop-in manifests still declared the old single "flag" and were rejected as manifest errors before their engine was ever known; both now declare the flag list they mean to test. And the first render of the real MTPLX and vLLM cards pins that a detect-only engine never offers to install or uninstall what PAIR does not manage, and that the model list stays available while the engine is stopped — three facts that were each one edited constant away from changing. Signed-off-by: Steven Beverly <thestevbev@gmail.com>
…ts node
An Apple Silicon Mac with no MTPLX could only ever be shown a Download
button, while the one way to get the engine that is not a GUI —
brew install youssofal/mtplx/mtplx — went unused.
- A manifest can declare an `install.pkg` mode: tap the formula, trust it,
install it, then run the installed command with --version and only call
the install done when that answers. The proof is the point: MTPLX's own
launcher builds its Python runtime inside the first launch, and a start
would pay several hundred megabytes of downloading inside its
600-second readiness window, where the same work inside an install has
thirty minutes.
- `conflicts` names paths whose presence means the engine is already here
by a route PAIR does not own: an MTPLX.app in /Applications stops an
install, because fetching a second copy beside it is not an improvement.
- {cli} resolves from the binary detection actually found rather than the
manifest's literal path — a Homebrew MTPLX puts no ~/.mtplx/bin/mtplx
anywhere, so every model command was being sent to a file that does not
exist.
- EngineStatus reports can_install and owner, the same facts the service
weighs before installing or refusing an uninstall; the desktop's Install
and Uninstall buttons read those two facts instead of a hand-maintained
table of operating systems, which on a peer described the wrong
machine. No default when the facts are absent: an older or unclustered
peer offers nothing rather than guessing, a card for a machine that is
not this one never offers a Download that would land here, and
Uninstall no longer appears for copies PAIR only found and would refuse
to remove.
- The model picker generalizes past vLLM: any engine that names its model
at launch opens it on first enable and on needsModelSelection, while
only vLLM claims request-triggered loading — MTPLX advertises only the
pack it is serving, so its banner must not promise otherwise. The setup
intent carries the engine type with the node id, so a picker cannot open
naming the wrong engine.
The three install modes, the manifest keys and the new status fields are
written up in spec.md and README.md.
Signed-off-by: Steven Beverly <thestevbev@gmail.com>
Two assumptions were carrying the work, and both came from an engine that picks
its own port. Where to look: one configured port, plus one settings file. What a
live engine sounds like: any HTTP 200 on that port. MTPLX breaks both. It moves
upward until it can bind, so on one Mac its server sat on 8001 after PAIR's proxy
took 8000, and on another it sat on 6666 because that is the port the user's own
app keeps in its settings file. Neither is the port PAIR configures for MTPLX, and
on one of the two the settings read was 3911 bytes of a stale answer. It also
identifies itself on /health with "ok": true, while vLLM answers that path with a
bare 200 and llama.cpp with {"status":"ok"}: three engines, one path, no engine
naming itself.
Both halves failed together, which is how they were seen. A MTPLX pushed onto the
port PAIR reserves for probing a vLLM was reported as an installed, running,
healthy vLLM, so a chat kept getting confident answers from a router the user never
chose; a Start of MTPLX would launch a second copy beside the user's own, which
could not bind anything and left two routers for one model.
A probe now reads its body, for every engine, because a status code is not evidence
about who answered. A body that answers another engine's declared identity, a body
that is not a JSON object, and a body too large for PAIR to have read all count as a
foreign service. An empty 200 keeps the meaning its manifest gives it: vLLM's
/health really has no body, and demanding a key from it would trade one mis-read for
a running engine reported offline. json_match can now name a value that is not a
string, which is the only way MTPLX can say what it actually answers, and it does so
on both of its probes. The keys worth yielding to are collected from every loaded
manifest, so no engine has to list the routers it might be confused with, and a
router nobody has heard of gets caught as soon as its own manifest declares how it
identifies itself.
Where to look became a search. It starts from anchors — the port being watched, the
port a settings file names, and the ports the engine's own software probes or lands
on — and walks upward from each, capped at 40 ports and one second for the round.
The cap is not a speed concession: a range PAIR could not finish reads as unknown,
never as empty, so a service that moved to another port cannot be mistaken for gone,
and confirming a quit engine is silent re-runs the whole round rather than only the
dial. PAIR's own compatibility facade answers a marked check with 409
proxy-facade and is read as an empty port, which is what keeps a quit engine from
staying lit and blocking every uninstall; a blanket "any 409 is occupied" would have
let a web app that 409s unknown paths block an install instead.
A Start joins what it finds. An engine observed on another port is adopted there and
the health loop follows that port, and a Start onto a port a stranger is serving is
refused before anything is launched, naming the port the listener is really on rather
than the one PAIR meant to use.
Tests are split by the question they answer: identity_test.go holds who answered,
with fixtures at the size and keys measured off running servers, and
portsweep_test.go holds which ports get asked and what a status or Start concludes
from the round. The relocation pair stages both engines' real manifests on three
reserved ports and skips where an engine has no platform block for the host running
it, since MTPLX is Apple Silicon only. The probe fields and the identity and facade
rules are written up in MANIFEST.md.
Signed-off-by: Steven Beverly <thestevbev@gmail.com>
…k is resident One MTPLX pack has three names: the directory it loads from, the served name it answers /v1/models with, and the cache id its listing calls it by. Consumers that asked what an engine serves got a name and had to guess which pack it belonged to — the way a request for any model sharing a prefix can read as the model being served. This makes "what is resident" an observed answer, and keeps the three ways of failing to observe it from turning into a wrong fact. - packInventory reads the cache the way the engine lists it and keeps the repo id and the directory together in a row; the residency join is string-exact on purpose, with no case folding, separator rewriting or symlink resolution, because normalising would merge rows the engine itself keeps apart on a filesystem that already folds case. Two test fixtures stage reported paths that are exactly one redundant separator from a cached row, so an extraction that tidies what it reads fails instead of joining a near miss in silence. - The empty-versus-unknown split is kept, not collapsed. An empty listing means the inventory was read and nothing is cached. An engine that answered nothing, answered with something that is not a listing, or answered with a body larger than PAIR reads (1 MiB, drained and closed) means nothing was read — and "nothing was read" never becomes "nothing is resident", because it is exactly the state in which a pack a server holds could otherwise be deleted. - The residency read runs under the probe's 3-second bound and the body cap, asked through the marker header so PAIR's own facade answers it rather than forwarding it. The fixture transport records target, marker and deadline; the relocated-server test asserts all three, because a stubbed answer cannot otherwise tell a bounded read from an unbounded one. A manifest whose residency block names a mutating action — a stop, a restart, a relaunch of the engine being asked — is rejected at load; that question does not get to change what it asks about. - A residency answer reaches users in the spelling their rows already carry. An MTPLX serving the Qwen3.8 pack names itself "mtplx-flash-next-optimized-speed" while its listing calls the same pack by its cache id; unioned naively that is two rows for one pack, the cached one offering Load for a model already being served. Residency therefore joins to the inventory row and reports by its key, which is also the handle the load, eject and delete actions take; the advertised list keeps the served name, because that is what a request routes by. Where the join cannot say which row is resident — no answer, an engine that says nothing about its own model, a directory no row names — the served names stay the loaded list: "I cannot tell which cached row this is" is not the statement "nothing is loaded". - Cost is stated where it is paid: one join is a bounded GET plus an inventory read that for MTPLX is a real `mtplx models --json` subprocess carrying the 30-minute action timeout. A sweep that has read the inventory hands it to the join rather than making the engine run the CLI twice per round; a one-click eject pays at most the two reads, and none at all when the engine says nothing about its own model. Tests are built from the measured bodies and stay hermetic: fixtures stage through a stubbed transport on a port with nothing listening, the relocated-server case uses an OS-assigned port in place of the 6666 that is somebody's live session on the machine the captures came from, the transport errors on any path it was not told about, and the cases whose right answer is to ask nothing assert that nothing was asked. Signed-off-by: Steven Beverly <thestevbev@gmail.com>
The residency answer from the previous commit becomes something the interface acts on, and both ways it could waste or hang a click are closed. - Ejecting the pack an MTPLX served was refused by the engine serving it: the guard compared the request against loaded_models, which answers the served name, while the model list — and so the Eject a user clicks — carries the cache listing's spelling of that same pack. Honest and useless. The guard now gets the question the caller has, whether this name may be ejected from this engine, and answers with both spellings: the names the engine reports for what it serves, plus the cache id of the row the residency join says is mapped. The accepted set stays exactly what PAIR can prove is resident; matching is string for string, so a wrong case, a doubled separator, or the bare directory is still refused; and a refusal can finally name the spelling that does work. - Where the join cannot resolve — the read did not arrive, was bigger than PAIR reads, or came from a web app — the guard stops the engine as it always has, because eject is the recoverable half: it frees the memory, the model loads again. What it does not do is hang: the residency half gets one probe read's time (the 3 s, named as probeReadTimeout) instead of the action timeout, and an unreadable residency is reported as an incomplete answer rather than as a list of one served name to refuse on. - The wedge that made those timeouts real: a context bounds a process, not the wait for its output. A listing whose CLI printed its answer, exited and left a grandchild holding the output pipes kept the read waiting on the leftover's schedule. runCommandOutput gains a commandDrainTimeout after the command is seen to exit, and takes the body the tool already wrote when exec reports ErrWaitDelay — a command the caller's deadline killed still reports its own status, not laundered into a success or a hang. The drain times a tool demonstrably done, not one still downloading; those stay separate. - residentPack and packInventory stop being test-only wrappers: their 20 call sites take the real functions, the eject path pays the cache listing once per click rather than per row, and the port-6666 join test drives the fake engine directly instead of a shell script, so it no longer skips. Signed-off-by: Steven Beverly <thestevbev@gmail.com>
MTPLX was launched with `--model <cache id>` and `--model-id <cache id>`, on the understanding that the second fixed the id the server answers to. It does not: the server this Mac's MTPLX app started carries no --model-id in its arguments at all and still answers as a name that comes out of the pack, and routing keys on the pack's cache id, which PAIR gets from the residency join. A launch argument that pinned nothing while naming whichever pack was selected when it was last written is worse than nothing, so it is now removed rather than written. launch_model therefore gains two keys. `clear_flags` names a flag the engine still takes that PAIR has stopped writing; it is emptied at every change of model, on the load that replaces it and the eject that gives it back alike, and a leftover there no longer reads as a selection. `resolve: "pack-path"` looks the value up in the engine's own pack listing — the same rows the residency join reads, so a manifest that asks for the lookup must declare that join — and writes the directory the listing keeps the pack in, which is what MTPLX's app launches with. The lookup fails open: a model no listing holds, and a listing that did not arrive, are launched under the name they were given, and nothing checks whether the resulting path exists. `prepareRequestedModel` now passes the manifest's own launch_model action to changeLaunchModel instead of rebuilding one from its flags, so a manifest that declares clear_flags or resolve means it on that path too. No engine can reach it with either today, so no behaviour changes. Prose in the engine-manager README, MANIFEST.md, spec.md, services-parity.md and engine-settings.mdx, and one comment in nvpair-tui, said the cleared flag fixed the served name; they now say what the captures show. Tests are fixture-driven and run on any host: nothing reads a real pack cache, shells out to mtplx, or touches a live port. The fake engine now records what --model named and answers /health with it under model_path, as MTPLX does, so the join, the eject guard and the stale-flag repair are exercised against a server that really reports a path. Signed-off-by: Steven Beverly <thestevbev@gmail.com>
Deleting a MTPLX pack takes the server down with it: MTPLX has no in-use guard, so a pack removed while a server holds it mapped leaves that server reading a file that is gone, and the delete therefore stops the engine and waits for its port to go quiet first (`stop_before`). What it did not do was ask whether there was anything to stop. It asked the running engine what it had mapped and read the answer as two things — "this pack" or "everything else" — and everything else took the engine down. That covers an idle MTPLX, which always answers `model_path` and answers it empty when it loaded no model; a server the user started themselves that never had a pack; and an engine serving a directory no cached pack sits in. Those cases removed the file with nothing stopped, only after quitting a working server to do it. The same two-valued read also answered a non-answer — no reply, a body larger than PAIR reads, a reply carrying no `model_path` at all — exactly as it answered a clear one, so a rename upstream silently turns every delete into a guess about whether a server has a pack open. Residency at the delete gate is three states now: this pack is what the engine has mapped, the engine says it is not, or PAIR cannot tell. Only the first two are facts about a running server, and only a server that cannot be asked is taken down on suspicion. A server that answers for something else stays up with its port answering, since the removal cannot be removing what that process holds: an engine PAIR did not start is one it adopts rather than quits, and that is the same rule the eject and the status path already apply to a third-party listener. "Cannot tell" still stops, which is the caution the eject takes from the other side — but it is now a state rather than the leftover of a comparison, because the empty answer and the missing answer are one value unless something keeps them apart, and only one of them can delete a pack a server is serving. The three states live at the delete gate only. residentJoin still reports a name or nothing, so the loaded badge, the eject guard and the launch argument read exactly what they read before; `Executor.readLoadedPath` is the read with its two empty cases kept in three, and `loadedPackPath` answers through it unchanged. Joining stays exact string equality, so a directory that only looks familiar once something folds its case or tidies its separators is "cannot tell", not "not this pack", and stops the engine. Tests are fixture-driven and run on any host: the delete seam drives the prebuilt fake engine on reserved loopback ports, and nothing reads a real pack cache, shells out to mtplx, or touches a live port. The fake already answered /health with what it was launched on, empty when it was launched with nothing, so the idle case needed no new fixture. The engine-running-but-idle test fails while a clear "nothing mapped" still reads as unknown, and the stops-for-every answer that cannot name another pack fails while either arm of "cannot tell" is read as permission to skip the stop — so a regression that flattens the states back to two is caught from both directions. Signed-off-by: Steven Beverly <thestevbev@gmail.com>
Deleting a MTPLX pack takes the server down with it, and the engine manager now asks why before it quits anything: a pack the running engine says it is not serving is removed with the server left up, and only a pack the server holds, or one that cannot be ruled out, stops MTPLX first. The desktop still answered that with what it offered before the service decided any of it, namely Delete disabled on the one pack the engine reported and a one-click delete on every row where nothing had been reported. So the delete that quits a working engine was a single click on a list that could not say so, and the row that did warn only warned by greying out. Delete is decided per row now, from the same three answers the engine manager uses: the engine says this pack is not resident, it says it is, or it was never asked. `EngineModels.residencyKnown` carries the third answer across the bridge, because `ModelItem.status` cannot hold it: a missing residency answer still stamps every row `idle`, which is a true statement about what was claimed and a false statement about what is. It is a required field with no default, since a `?? true` fails open on exactly the data the flag exists to describe, and the terminal interface already keeps those three answers apart as `no`, `yes` and `?`. Quitting is always safe and a one-click delete is not, so the two cautious answers share the "Quit MTPLX and delete" row and only the known-idle one acts at once. The confirmation says what happens to the engine rather than what happens to the pack, because on the unasked row the pack may well not be loaded and nothing knows that either way. Whether a delete asks first travels to the handler as the menu item's id, `delete` or `delete-confirm`, which keeps the decision in one function and the handler's dependencies stable. The 180s safety net is keyed on the new `stopsEngineBeforeDelete` capability instead of a fourth timeout, and stays above the 120s RPC budget that has to outlast the stop grace plus the wait for the port to go quiet. `tests/modular/model-delete-affordance.test.ts` holds the whole matrix at component level, `mtplx-served-model-list.test.ts` pins a missing residency key against an empty one, `pending-actions-delete.test.ts` runs the quit's timeout on a fake clock, and `delete-model-restart.test.ts` ties `stop_before` to its capability the way it already tied `restart_after`, including that no manifest may declare both. Each was checked against a broken build: a missing answer offering the plain delete, the bridge defaulting residency to known, an empty answer read as no answer, the timeout dropping MTPLX back to 60s, and a menu id that never asked each failed their own tests, and dropping `stopsEngineBeforeDelete` from the caps failed four files. Left open on purpose: the desktop hides the model list for a stopped engine, which MTPLX's offline cache read and the terminal interface do not, so both delete spellings appear only while MTPLX is up. Recorded in `desktop/docs/services-parity.md`, unchanged here. Signed-off-by: Steven Beverly <thestevbev@gmail.com>
A failed model load or eject reported nothing at all. `sendProcess` was called without `observeResponse`, so the request went out through `JsonRpcSubprocess.send()`, which registers no pending entry — the engine-manager's error reply arrived with nowhere to go. `sendWithResponse` observes it and imposes no timeout, so a load that legitimately takes minutes is still not cut off at 10 s. The fallback report was also unattributable: `failAction` was passed no node, engine, or model, and `pending-actions.store` skips an error that carries no `nodeId` and no real `engineType`. With no superseding model push for these two commands — an engine that refuses keeps serving the model — that left the row spinning for the whole 60 s safety net under a message saying the load had already failed. `refuseRemote` had the attribution half of the same problem: with no context, `reportError` stamped this machine's id on a refusal to uninstall or update a peer, so the entry it might have released was the wrong one, and with no id at all it stamped `''` and released nothing. Adds `tests/modular/model-action-failure.test.ts`, which drives the real emit path — a fake broker child, the real supervisor, the real push bus — rather than handing the store a hand-built error. All four of its cases fail against the code as it was: the three model cases because nothing is reported, the remote case because the error is reported against this machine. Signed-off-by: Steven Beverly <thestevbev@gmail.com>
stevbev
force-pushed
the
feature/mtplx-engine
branch
from
November 25, 2026 21:47
66a4ad8 to
ea38c64
Compare
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.
Description
Problem. An Apple Silicon Mac with MTPLX installed looked to PAIR like a Mac
with no engine on it.
nvpair-engine-managerhad no manifest for it, soengine:get-installednever listed it, the model list stayed empty, Load andEject had nothing to act on, and the proxy had no facade to route to.
Outcome. MTPLX becomes a first-class engine on
darwin/arm64nodes only. Ona node that has it, the engine appears in the engine list and the terminal
interface, its model packs are listed even while it is stopped, a pack can be
downloaded, served, ejected and deleted, and inference reaches it through a
proxy facade on
8100with the managed server on8101. It gets its owndiscovery key (
mx) and its own icon.MTPLX is vLLM-shaped: one model per process, so "serve this pack" rewrites the
launch arguments and restarts the server, and "eject" stops it. It is
detect-only — PAIR finds an MTPLX the user installed and never installs one,
because MTPLX ships as an app that updates itself and a second copy would mean
a second server and a second pack cache on the same machine.
Hiding it on Intel Macs, Linux and Windows is a property of the manifest, not
new code: it declares only
darwin/arm64, so an engine manager elsewhere neverreports the engine, and the existing
unsupportedpath keeps it out of bothclients.
No tracked issue.
Release intent
Changelog title
MTPLX engine support on Apple Silicon Macs
Changelog body
PAIR now recognises MTPLX on Apple Silicon Macs where you have installed it
yourself. On those nodes MTPLX appears as an engine: its model packs are listed
even while it is stopped, and can be downloaded, served, ejected and deleted.
Inference reaches it through a new proxy facade on port 8100, with the managed
server on 8101. PAIR never installs MTPLX, never offers it on Intel Macs, Linux
or Windows, and does not use it for Inference Demo traffic. The pack cache in
~/.mtplx/modelsis yours: nothing PAIR does removes it.Bumps
Bump rationale, for the reviewer: engine-manager gains an embedded manifest,
a new catalog source and the
launch_model.flagscontract; proxy gains a newfacade (ports, route set,
exactIDnaming) that binds on every host;ui-broker plans, relays and owns that facade and advertises
mx; tuigains the engine card, its model-operation wires and download-while-stopped.
job-scheduler and node-scanner have no source change of their own: each
relinks
nvpair-sharedand grows one entry in a derived table (the scheduler'sper-engine contract list, the scanner's advertised service keys), which is a
behaviour change but not a new contract, so
patch.nvpair-errors,nvpair-node-info,nvpair-workload-manager,nvpair-manual-nodes,nvpair-node-settingsandnvpair-cluster-managerneither reference the newengine nor change shape — manual-node targets are still pushed only to the
ollama and lmstudio facades — so they are
none.Scope
In. Detection (four candidate paths), engine lifecycle and health on
/health, the pack list frommtplx models --json(works while stopped), thecatalog from MTPLX's published pack file, pull and remove through the CLI,
load/eject by launch-argument rewrite plus restart, proxy routing, discovery
advertisement, and the two clients' surfacing of all of it. One engine-neutral
plumbing change: a
launch_modelaction can now name several flags that movetogether, which vLLM does not use and MTPLX needs (
--modelnames the files,--model-idpins the served id).Out, deliberately.
installoruninstallblock: MTPLX is detected, never installed, and anexplicit uninstall answers that none is defined for the platform. A data reset
skips it.
/v1/mtplx/settingscontrols. Engine settings keeps ports and launcharguments; the server's own tuning surface is not exposed.
/v1/rerankis not routed atall;
/v1/embeddingscomes along on the shared OpenAI route list and was notexercised against a pack that serves embeddings.
--allow-swap, no--yesin launch arguments, no
--profileor revision pinning, no engine-versionfiltering.
mtplx pull --progress-jsonis the route to real progress later.and llama.cpp, which is what keeps vLLM out too) and no manual-node probing of
MTPLX.
name outside its own tables.
Validation
Environment: three Apple Silicon Mac (32/64/128 GB), MTPLX 2.12.3 installed
as a user application with two packs in
~/.mtplx/models. Nothing was runagainst Linux, Windows or an Intel target; their behavour is inferred from the
manifest's
platformsblock and the platform-independent proxy profile.Commands, all from a clean checkout of this branch:
make check(repo root) — exit 0. Covers SPDX headers, build-script verify,lint, typecheck, service contracts and the desktop tests.
make test— aborts at the first failing module, so the later modules were runindividually from their own directories.
cd desktop && npm run typecheck(node, web and test targets) — clean.npm run test:unit— 58 files, 444 tests pass.npm run lintandnpx prettier --checkon the changed files — clean.npm run dead-code:check— clean.npm run service-contracts:check— "doc fresh, no hardcoded versions, nounignored drift".
cd services/nvpair-tui && go build ./... && go test ./...— green.go test ./...in each remaining Go module.Known failures, all reproduced on the parent commit with none of this branch's
changes present, so none is caused by it:
TestUninstall_TerminatesRunningInstanceand
TestHFToolPath_FindsHFBesideTheEngineALinkPointsToinnvpair-engine-manager(the harness resolves/varwhere the checkout is under/private/var, and a stale PID from an earlier run was read as a live engine) andTestDispatchHardwarePreviews_LimitsConcurrentReadsAcrossNodesAndAddressesinnvpair-node-scanner(needs a127.0.0.2loopback alias).TestEngineLifecycle_ReportsUnexpectedExitfailed once and passed on two rerunsand in isolation; it is timing-sensitive, not related to this change.
Manual checks against the live engine, 21 scripted assertions, all passing, driven
over stdio against the real
nvpair-engine-managerandnvpair-proxybinaries:detection of the installed CLI and its runtime venv; the pack list read while
MTPLX was down; the served pack appearing only in
loadedByEnginewhile itsinventory stayed full; the two-flag launch rewrite and the refusal to start with
no pack selected; a pull and a delete against a throwaway pack directory (the two
real packs were never at risk);
GET /v1/models,/v1/chat/completionsand/v1/messagesthrough the8100facade; and that a server started with--model-idanswers to the pack id rather than to a derived name. Everything therun wrote was undone afterwards: the state file was restored and no port file was
left behind.
Risk
table by default, so a facade profile for MTPLX now exists on Windows and Linux
too, pairing
8100(facade) with8101(managed server). On a host wherenothing is detected it fronts nothing, and the pair is configurable and
persisted in
mtplx-proxy-port.json, but anyone with a service already on8100gains a conflict. Only the Apple Silicon path was run for real.~/.mtplx/models, deliberately: a PAIR-owned prefix would force re-downloadsof 30–54 GB packs. Nothing here deletes that directory, and no
--cache-dirorMTPLX_MODEL_DIRoverride is passed, because MTPLX reads a moved store whetheror not PAIR started it.
mtplx removewill delete the pack arunning server has mapped, and it does not clear a deleted pack from a stopped
engine's launch arguments. The desktop blocks Delete on the served pack; the TUI
only arms a confirmation. That asymmetry is a known gap, not a tested guard.
down and back up, and the packs involved are tens of gigabytes. The client-side
lock and the awaited load path were made engine-neutral to cover it, matching
vLLM's budget.
what the facade sends. A user who sets their own
--api-keyorMTPLX_API_KEYwill find PAIR's calls refused; there is no auth plumbing for this engine yet.
mxjoins the advertised service keys. The TXT encodertreats unknown keys as forward-compatible and peers that predate it ignore it, but
mixed-version multi-node behavour was not exercised.
mtplx.pngis MTPLX's own icon, taken fromits application bundle, following the precedent of the Ollama and LM Studio
marks.