Commit Graph
253 Commits
Author SHA1 Message Date
Hasan BasbunarandClaude Opus 5.5 3dca17b725 embeddings lane: pplx-embed on our server, the watch and the cockpit's tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-03 10:51:50 +01:00
Hasan BasbunarandClaude Opus 5.5 013ef12022 proxy v6.68: a Claude Code session is served at its first try on SGLang, its thinking asked with no display
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-02 00:12:24 +01:00
Hasan BasbunarandClaude Opus 5.5 c8ed131c3d proxy: what systemd said last of a lane stands while it does not answer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 17:38:25 +01:00
Hasan BasbunarandClaude Opus 5.5 026d6004b0 cockpit: a login's Origin over plain HTTP, [::1] sent on to localhost, and its key to its own cockpit alone
A browser sends no Sec-Fetch header over plain HTTP to a tailnet or a LAN address, the cockpit's own case: its Origin has to
be the host it asked there. A content policy has no name for an IPv6 address, so nothing of the Agent view opened at [::1]:
the cockpit sends on to localhost. On a pair, the proxy asks what answers on the loopback to prove it is this box's cockpit
before it logs in: an ssh tunnel to the other box's held that port and got this box's key. The banner of a cockpit that does
not answer says nothing of the loopback's IPv6 address. (review of v1.60.0)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:12:08 +01:00
Hasan BasbunarandClaude Opus 5.5 532a94924d cockpit: the agent's relay on a LAN beside the tailnet, ::1, its own client key, and no login from another site
The Agent view's relay takes several addresses (AGENT_BIND=tailscale,192.168.1.10): the tailnet's and a LAN's, each with a
state of its own. The cockpit and the relay serve the loopback's IPv6 address where the box has one. The proxy asks this
box's cockpit on its own loopback, where it always answers, so a pair's tile speaks while Tailscale is down. Where the proxy
knows its clients by their keys, Smoke and Decide go with the key its file labels "cockpit", and say what to add when it has
none, instead of failing on a 401. A login posted by another site's page is refused before it counts as one of the five
tries a minute. Decision 1623.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 13:12:08 +01:00
Hasan BasbunarandClaude Opus 5.5 8a6bc6dc15 keepalive-proxy: the embeddings route says 503 while its lane moves, holds its share of the bodies, and reads no JSON
A restart of the Clipstral lane was a 404, final to a client. Six requests of images held the room of every body until the
lane on the CPU had answered. The model a request names is found without json.loads, which took up to 27 times its body, and
the lane's Retry-After is relayed. (review of v1.60.0)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:54:41 +01:00
Hasan BasbunarandClaude Opus 5.5 b020006dc6 keepalive-proxy: an embeddings client that leaves ends its request at its lane
The proxy waited for the lane's answer and looked at nothing else: a client that gave up after a while and asked again had
its first job computed to its end for nobody, the second behind it. Its socket is looked at once a second until the answer
begins, as _client_left looks at it, under TLS too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:54:40 +01:00
Hasan BasbunarandClaude Opus 5.5 303ff7e2ba clipstral: a lane for Mistral's Multimodal Embed 1B, texts and images on the CPU beside every lane
Its model written here from the published configuration, weights and description, and its server, standard library but for
torch, tokenizers, safetensors and Pillow, in the 27B lane's image; its unit, its installer, its Load, its card, its route
through the proxy by the name a request gives, its pins and its tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 11:54:40 +01:00
Hasan BasbunarandClaude Opus 5.5 a67cd155eb Merge branch 'feat/lane-embeddings-v160e' on v1.59.1: the embeddings lane, its relay v6.64 and v6.65 beside the audit's v6.63
The branch was cut before v1.59.1. Its proxy roles take the next two version numbers, its installer's disk figures add its 5 GB
to v1.59.1's, its card keeps the Lanes view's order and the lanes' boot button with its own systemd verbs, and its tests of an
empty chunked body send the chunk the proxy reads since v6.63.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 05:36:56 +01:00
Hasan BasbunarandClaude Opus 5.5 a8341f2b4f proxy: a path of the box is said to no client, whatever wrapped the error
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:30:53 +01:00
Hasan BasbunarandClaude Opus 5.5 9ea4510dd6 proxy: a path of the box is said to no client, and its test reads no key of the box
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 14:29:26 +01:00
Hasan BasbunarandClaude Opus 5.5 4e22e96e44 proxy, cockpit: what an independent review found in this version, each with its test
A key header of 64 KB of "\n" was read in 8.7 s under the interpreter's lock, with no key, every stream of the box still: it is
refused at once. The red banner of a start that barely moves is no longer drawn again at each reading, its Stop with it. The
words of a box with no lane name what starts one, and a start's length by lane. llama-server's own /chat/completions gets a
chat keepalive. The relay's sign-in page names where this browser reaches the cockpit, through a tunnel or TLS. A body the
cockpit does not read is never its connection's next request. A chunked body shows its size in Traffic. The other box of a
pair is told before a silent stream is cut, and binds nothing for it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:28:36 +01:00
Hasan BasbunarandClaude Opus 5.5 6714aec4fb proxy: a refused key is told where the key is, a file on the box
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 0e07ec50a7 proxy v6.63: its version, what it does now, and the pages that said otherwise
docs/clients.md, docs/opencode.md, README.md and SECURITY.md said x-api-key is
not read, a refused key gets the engine's own 401 and a connection past a
ceiling is closed unsaid; they say what the proxy does, the base URL each kind
of client takes, and what happens to a file the served model does not read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 dbd1994b8b proxy v6.63: a connection past a ceiling is told so, with no thread for it
Past PROXY_MAX_CONN_PER_ADDRESS or PROXY_MAX_REMOTE_CONN a connection was
closed before it was read, and its client saw an empty reply (curl: "(52) Empty
reply from server", 2026-11-30), the cause in the box's journal alone. The
accept loop writes a short 503 with Retry-After and the settings' names, with
no thread and no wait, and closes it a second later, 32 at most at once, so
that a request on its way is not answered with a reset that takes the 503 back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 04ed571398 proxy v6.63: with no descriptor left, accept() waits, says so, and the unit has 65,536
accept() then fails at once and leaves its connection in the queue, and the
proxy came back to it in a loop with no pause: a core at 100 % and no line in
the journal, every client waiting (measured under ulimit -n 64, 2026-11-30). It
pauses and says it once a minute. systemd's own limit was 1,024 descriptors,
two a request in flight.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 4b792eeac6 proxy v6.63: a /v1/responses prompt is counted by the engine, as a chat's is
The engine's count routes take no Responses input items, so the body's size
decided, a token a byte where a wedge is possible: on the 27B's 1M window a
Codex session of 820 kB, about 200,000 tokens, was refused as "about ~820044
tokens", where 2.5 MB of the same text passed on /v1/chat/completions (Codex
0.144.4, 2026-11-30). Its JSON text is counted, its media priced apart: with
the 27B's tokenizer and chat template, a Codex request and ten made from it
(code, French, Chinese, digits, emoji, 120 tools) are counted at or above the
rendered prompt, 1.0 to 2.0 times it, 8 on tabs and blank lines. A request the
engine holds a part of (an earlier response, an item by its id) is judged by
its size, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 48918c3694 proxy v6.63: a tool schema of another draft is written as the engine takes it
SGLang checks every tool's parameters against JSON Schema 2020-12 whatever
draft wrote them, so one tool with a tuple (zod's z.tuple, draft 7), a boolean
exclusiveMinimum or exclusiveMaximum (OpenAPI 3.0), a null required or
properties (Go) or a required on the property itself (draft 3) was a 400 to
every request of the session, as a pattern Python cannot compile was. Each is
written in 2020-12's words with its meaning kept, checked with jsonschema
4.26.0: refused before, taken after, the same instances accepted and refused
(2026-11-30). A schema 2020-12 takes goes on byte for byte.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 a484dcb342 proxy v6.63: a PDF or image the served model does not read no longer ends a session
Claude Code reads a PDF as a document block inside the tool's result. SGLang
refuses the request, the block stays in the conversation, and every turn after
it was refused, /compact included (Claude Code 2.1.326 through the proxy to the
request models of SGLang v0.5.21, 2026-11-30); vLLM and llama.cpp drop it and
the model answers of a file it never saw. An image on a lane that reads text
only did the same on SGLang and vLLM. The block a tool gave back is said to the
model in words, with the way to read the file, the same words at every turn;
what the person sends is the engine's to refuse on its turn, in its own words,
and is said in words after it, where Claude Code keeps it in the last message.
A lane that reads images gets its bodies byte for byte, and so does one the
proxy does not know yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 782211a12a proxy v6.63: no engine: the lane that comes, or that none serves, in the engine's words
With no lane at all a client read "It is stopped, restarting or still loading
(about 9 on a DGX Spark)", to send again once GET http://127.0.0.1:30000/health
answers, an address of its own machine, with a Retry-After for what only the
box's owner brings back: opencode 2.3.2 wrote it again every 30 s, the OpenAI
SDK waited 60 s before it showed it (2026-11-30). systemd says which lane is on
its way, and none being is said as that, with where to start one and no
Retry-After. The engine's address and Python's exceptions stay here. What the
engine says in a 502, 503 or 504 is given, its secrets masked, where it was
dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 76a7f21a58 proxy v6.63: a base URL set wrong is said to its client
An OpenAI client takes http://<box>:30001/v1 and an Anthropic one
http://<box>:30001. With one for the other, with two slashes or with the whole
route as the base, the engine answered {"detail":"Not Found"}, and Claude Code
showed "There's an issue with the selected model. It may not exist or you may
not have access to it" (2.1.326, 2026-11-30). The answer names the route there
is and the base URL each kind of client takes, the route being the client's and
never rewritten; a 404, but a 400 on the Anthropic dialect, where Claude Code
shows its own words for a 404 whatever the answer says. Behind the identity
wall such a path is no operator route any more. Any other 404 is the engine's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 61ec37463e proxy v6.63: a 401 says what is wrong with the key and where the right one is
Every refused key was {"error":"Unauthorized"}: none sent, another box's,
one with quotes or two spaces, one under another scheme. Claude Code showed
"Failed to authenticate. API Error: 401 {"error":"Unauthorized"}", opencode
"Error: Unauthorized" (2026-11-30). The answer names the cause and the next
step, in each route's dialect, with WWW-Authenticate: Bearer, and never a byte
of the key nor of what was sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 a5a4deb310 proxy v6.63: a key in x-api-key is read as the bearer it stands for
Anthropic clients send a key in x-api-key; the engines read Authorization
alone, so the right key came back 401 (anthropic 1.12.1, the AI SDK's provider,
Claude Code with ANTHROPIC_API_KEY, 2026-11-30; anthropic 2.14.0 sends
Authorization). When a request has no Authorization, its
x-api-key is the bearer, under the same comparison and the same guards: the
door, the identity wall, its label and what a listed key may not do. It never
goes to the engine. The operator's /proxy/stop keeps asking Authorization.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 6060debfef proxy v6.63: HTTP/1.0 clients read no chunks, HEAD is its GET, another method a 405
An HTTP/1.0 client (ab, a device's client that asks for it) got the chunk
sizes inside every answer: it gets the answer itself, ended by the connection
(RFC 9112, 6.1). HEAD, what curl -I sends, was a 501: it is asked as the GET it
is the head of, under the same key. OPTIONS and every other method were a 501
page of HTML and no line in the journal: a 405 in JSON with the methods there
are, and a line once a minute. No cross-origin answer is opened. What the
standard parser refuses by itself (too many headers, a version it cannot read)
is JSON and said the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 4548602f52 proxy v6.63: a request body sent in chunks is read, and goes on with a Content-Length
A client that streams its body sends Transfer-Encoding: chunked and no
Content-Length: .NET's PostAsJsonAsync, a fetch with a stream body, a Go or
Java client, a gateway in front. The proxy read that as no body, and the
engine answered "Field required" to a client that had sent one (curl, Node 24
and http.client, 2026-11-30). It is decoded under the ceilings every body has
(MAX_BODY_BYTES, the budget of the bodies in flight, BODY_STALL_S), after the
key, and every guard reads it as any other. Chunks beside a Content-Length or
on HTTP/1.0 are a 400, another coding a 501, and the connection ends there as
after every answer, so no byte of it is ever read as a request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 8bc4164f35 proxy v6.63: a duration is counted on the monotonic clock
The hold and the keeper of a stream the engine has not answered counted on
time.time(): a clock set forward by more than MAX_SILENCE_S (an NTP step after
a boot, a hand) dropped a waiting stream as silent, and one set back wrote no
more keepalive until it caught up (an in-process proxy with its clock moved,
2026-11-30). Every duration is counted on time.monotonic() now; what is
compared with systemd's timestamps, and what dates the engine's facts, keeps
the wall clock, an age below zero being no age.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 17c33a038e proxy v6.63: a silent engine's OpenAI stream ends with its error and a cut, never clean
Past MAX_SILENCE_S the proxy drops the request. On /v1/messages it says so in
an error event; on the OpenAI routes it wrote nothing and ended the stream
with the last chunk, so that openai-python and the AI SDK took an empty
answer, or half of one, for a finished one (2026-11-30). They now get an
explicit error event (upstream_silent) and the connection is cut with no last
chunk, as for an engine's cut, whether the engine had opened its stream or
never answered. /v1/messages is as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 86a576584e proxy v6.63: a keepalive of its own for each route
One shape went to every stream but Anthropic's: a chat chunk whose choices
were empty. The commonest loop there is, chunk.choices[0].delta.content,
raised an IndexError on the first one (openai-python 3.60.0 and 2.54.0), and
inside a /v1/responses stream it raised "Expected to have received
`response.created`" in openai-python's .stream() and read as an error in the
AI SDK (6.0.174), as soon as the first token took more than KEEPALIVE_S
(measured against a fake engine, 2026-11-30).

A chat stream gets an empty delta under the model the request named, a
/v1/completions stream a text_completion chunk, a /v1/responses stream a
comment until the engine's first event went out and OpenAI's own typed
keepalive after it, a route with a shape of its own a comment. Codex, whose
idle timer only an event resets, gets the typed event from the start
(0.144.4, its timer at 3 s, 6 s of prefill: answered). The order a box of a
pair sends the other is byte for byte as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 09:33:19 +01:00
Hasan BasbunarandClaude Opus 5.5 3426a73eb8 proxy v6.63: a POST of /v1/embeddings with no body is a 400, not a cut connection
The relay counted the body it sends to TEI with len(body), and a request of the route with
the key and no body read (a Content-Length of 0, or a chunked body with no length, which the
proxy does not read) reached it with body None: the TypeError went up through the handler and
the client's connection was closed with no answer at all (code review of v1.60.0). Such a
request is refused before the engine, in JSON, as the proxy refuses every other request it
cannot relay, and the cockpit's feed knows the new outcome.

Test: test_a_post_with_no_body_is_refused_in_json_not_cut in tests/test_proxy_embeddings.py,
red on the code before (an empty reply in both cases), green now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 17:11:58 +01:00
Hasan BasbunarandClaude Opus 5.5 a40627b28e Revert "embeddings: the lane moves to llama.cpp on the GPU with x42en's recipe, TEI gone"
This reverts commit 5a9f0ab1. Measured on the reference box on 2026-11-24, x42en's GPU path does
not hold there yet: a request of several texts came back with every value of every vector null,
with the recipe as published, with -fa off and with -np 1; and a new CUDA context beside the 27B
that serves failed at its start when the memory was fragmented ("CUDA error: out of memory" in
ggml_cuda_init, NV_ERR_NO_MEMORY from kgrctxAllocMainCtxBuffer in the kernel's log). The lane
serves TEI on the CPU, as the project's answer of 2026-11-23 in discussion #69 provided for ("if it
holds"). Kept from eabf43ef: a 64 GB DGX Spark refuses the lane (boxmem.py's comment says why for
a lane on the CPU, the README keeps it in the refused row). The pages are rewritten in the next
commits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:40:20 +01:00
Hasan BasbunarandClaude Opus 5.5 9a54f9dfeb embeddings: the lane moves to llama.cpp on the GPU with x42en's recipe, TEI gone
The lane served pplx-embed-v1-0.6b with TEI on the CPU. It now runs the command line x42en
published in discussion #69 (2026-11-19), as the project's answer there of 2026-11-23 announced:
llama.cpp's own server on the GPU, on the image the llama.cpp lanes already pin (b12316, the one
his measures ran on), serving bowang0911's F16 GGUF at ab95a3d1 (pplx-embed-v1-0.6b-f16.gguf,
1,198,177,888 bytes, sha256 08ba3d20..., read from the Hub's API at that revision) with his flags:
--embedding --pooling mean --override-kv qwen3.attention.causal=bool:false -c 8192 -b 8192
-ub 8192 -ngl 999 -fa on -t 4 --embd-normalize 2 --metrics --no-ui, beside --alias
pplx-embed-v1-0.6b and --host 127.0.0.1. The GGUF records causal attention and the model is
bidirectional: without the override the vectors are wrong (x42en: cosine 0.58 against TEI, 0.9994
with it), and a test holds it in the rendered unit.

One engine: on the GB10's unified memory TEI takes no less memory than llama.cpp on the GPU
(x42en: 2.5 GiB of host memory against 2.6 GB at 8K) and is about 50 times slower; its one
advantage would be to leave the chat's decoding alone during an indexing. Its code, its pins,
its tests and its pages go.

Kept from the branch: the port (30028), no key and loopback only (the proxy is the door, with the
box's key), no Conflicts=, the Load that pulls the image and fetches the GGUF (gguf-fetch.py, its
sha256 checked) then enables and starts the lane, the cgroup cap (EMBED_MEMORY 7680m, to be
measured again) and the A725 cores (x42en's set too). The unit checks its GGUF at the head of
ExecStart, its main process, so 78 leaves it failed instead of a restart loop.

The lane holds no other lane's start back: its unit runs neither the engine lanes' memory guard
nor the check of their files, and engine-preflight.sh leaves the registry's kind embed out of the
llama.cpp containers it counts as remnants: counted, its 2.6 GB (over the guard's 2 GiB line)
would have refused a text lane's start, at a switch or at boot, while it served (red on the
registry moved to llamacpp with the guard as it was).

The registry calls its engine llamacpp; the registry test's llama.cpp family (installers on
llamacpp-lane.sh, an opencode provider, the key) leaves it out. The cockpit reads its GGUF from the
unit (unit_target, lane_prepared), names it "pplx-embed v1 0.6B F16 GGUF · bowang0911" and its
engine llama.cpp b12316. check-pins.sh asks for the GGUF; the image is the Unsloth GGUF lane's pin,
asked once there (70 pins). The uninstall inventory names the GGUF's repository and no TEI image.
Sizes: 2 GB beside the Unsloth GGUF lane's image, 10 alone (install.sh, the README's totals).

x42en is credited by name in the CHANGELOG, the lane's page, the model's page and the installer,
for the recipe, the GGUF and his measures, each said to be his, on his own GB10. No figure of the
reference box is written: they come with its measures.

Tests: tests/test_embed_lane.py (rewritten: the flags and the override, the GGUF pin, the shared
image, no guard and no files check in the unit, the pages), tests/test_check_pins.py,
tests/test_engine_preflight.py, dashboard/tests/test_embed_cockpit.py and test_target_names.py;
red on the code before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:40:20 +01:00
Hasan BasbunarandClaude Opus 5.5 ce2d2124c4 renumbering: v1.60.0 takes the proxy versions after v6.62, which the Inkling lane's v1.59.0 holds
The embeddings lane ships as v1.60.0, after v1.58.0 (the speech lane by default) and v1.59.0
(the Inkling lane, prepared on a branch of its own, which takes the next proxy version, v6.62, as
every text lane of the pair's routes did: v6.60 for LFM2.5, v6.61 for LFM3). The lane's commits
took v6.62 and v6.63 when they were written on v1.55.0; they become v6.63 (the relay) and v6.64
(the port read from the lane's unit) everywhere they appear: keepalive-proxy.py's header, history
notes and start-up log, tests/test_proxy_embeddings.py's docstring, dashboard/tests/test_lifecycle.py's
comment. The comments that dated the lane to v1.53 or v1.56 say v1.60 (cockpit.py, base.js,
test_embed_cockpit.py, ci.yml). The relay's behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:40:20 +01:00
Hasan Basbunar e0c994145c proxy v6.63: the embeddings relay reads the lane's port where it poses it
EMBED_PORT moves the lane's engine (the installer renders the unit's --port
from it) and the relay kept aiming at 30028 regardless: with EMBED_PORT=30128
every /v1/embeddings was a 503 as long as the lane served (the blind review of
2026-11-20). With EMBED_UPSTREAM unset the relay now aims at the --port of the
lane's own unit, read again every few seconds so a lane installed later is
followed too; EMBED_UPSTREAM still names it outright for a proxy run by hand.
The lane's doc says the proxy follows the port.

Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:40:20 +01:00
Hasan Basbunar f81996bd27 proxy: /v1/embeddings relayed to the embeddings lane while it serves (v6.62)
TEI answers on 127.0.0.1:30028 (EMBED_UPSTREAM) while qwen38-embed.service is active, and the
route goes to it whole: the text engine's guards read shapes TEI does not speak (its tokenizer,
its served name, its request ids), and the text engine may be absent altogether, where the old
path counted an embeddings body with a tokenizer that was not even there. The door keeps its
key check and no Authorization is sent to TEI, which has no authentication and would print one
in its journal. A box without the lane keeps the text engine's own 404, and no other route
goes to the embeddings engine: /v1/models does not change.

Generated by Mistral Vibe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:40:19 +01:00
Hasan BasbunarandClaude Opus 5.5 9e8dd8b608 proxy v6.62: an image costs on the Inkling 2 Mini lane what its processor counts
Its processor (SGLang's inkling2 image_processing.py in the image the lane pins) gives one token per
40-pixel cell, each side rounded up, and clamps no size; measured through the proxy on the reference
box, 64x64 to 8000x6000, an image costs that plus 3, to the token. The guard charged the Qwen-VL
sizing, 16,386 tokens at most, so past about 26 megapixels it undercounted (8000x6000: 16,172 against
30,003), the case the wedge guard exists for (code review of v1.59.0). The Qwen lanes keep their
sizing. The test fails on the code before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 16:38:13 +01:00
Hasan BasbunarandClaude Opus 5.5 354431c79b v1.59: the proxy relays a none effort as it came on the Inkling 2 Mini lane and refuses System One there (v6.62)
Inkling 2 Mini's chat template reads a reasoning effort by name, none included (0.0, its lowest level), and no
enable_thinking anywhere (its chat_template.jinja at the pinned revision). qwen_effort_none turned a none on any
SGLang lane into enable_thinking false and dropped the level, which the Qwen templates need and this one does not
read: the lane reasoned at its default, high (0.9). An SGLang lane of EFFORT_NONE_NAMES, the Inkling 2 Mini lane's
name, now gets its body as it came; the Qwen lanes still get enable_thinking false.

POST /v1/systemone is refused while it serves (400, the lanes it serves on named): its card says its lowest effort
does not turn the reasoning off, so the one token System One reads is its thought's. The cockpit says it before
any probe, as on the LFM2.5 lane. Its vocabulary, 201,024 tokens, is above the floor the token-id guard holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:20:13 +01:00
Hasan BasbunarandClaude Opus 5.5 b73eac92df v1.59: the Inkling 2 Mini lane (inkling), on SGLang's own image for it, in every lane list
install-inkling.sh serves Thinking Machines' Inkling 2 Mini (thinkingmachines/Inkling-2-Mini at its pinned
revision, Apache-2.0: a looped mixture of experts, 26.4B parameters with 3.4B active, text and images in) with
the DSpark draft head its checkpoint carries, on the text port behind the proxy, as model inkling-2-mini. The
engine is SGLang from the image its cookbook gives the model (lmsysorg/sglang:inkling-2-mini, by the digest of
its arm64 build), with the cookbook's DGX Spark recipe and its DSpark arm word for word, as the reference box
measured it on 2026-11-22: a static share of 0.45, FA4, bfloat16, pages of 128, 8 draft tokens verified per
step, MAX_JOBS=4 and the four SGLANG_OPT_* variables, xgrammar, images on, the inkling reasoning and inkling2
tool-call parsers; the model's window of 1,048,576 tokens and the 48 requests SGLang set itself, said so that
no later default moves them; and what every SGLang lane of this box passes besides (the key by --config, the
scheduler parked when idle, the metrics, the cache report). Its fetch pins refs/main, through which SGLang
reads the draft head by the model's name. Its caches keep the kernels its engine compiles at its first start.

The lane in every list: the registry, boxmem (refused on a 64 GB box: measured on a 128 GB one only), every
engine unit's Conflicts= and After=, the proxy's hold units and its pair's lane names, install.sh
(--with-inkling, --no-inkling, on demand by default, its boot kept by an update, its proof, its summary line),
switch-model.sh (target inkling), prepare-lane.sh, uninstall.sh (its image is its own: the uninstall takes its
tag and a prune reclaims it), check-pins.sh, the cockpit's sudoers lines, the CI's lists and gates, and
lane-templates-check.py (its template as published, rendered for every client shape as SGLang hands them).

The cockpit follows it as an SGLang text lane (the canary, the pool guard and the autoheal are its own), with
its card, its names, its note with the reference box's measures, its engine, its boot default (222 s
measured), its journal and its container; its mark is a plain badge of Thinking Machines' initials, no icon
set having one.

Its clients: opencode's provider inkling (oc-inkling.py), images in, five variants each a level its template
reads by name, a pair of 374,000 and 32,000 that fits the pool measured at its window, and oc-fit-limits.py
keeping that output as its ceiling whatever its window (ANSWER_CAPPED), as its card recommends limits on
output tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:20:13 +01:00
Hasan BasbunarandClaude Opus 5.5 a6b04ce873 v1.51: the proxy turns a reasoning effort into the LFM3 template's enable_thinking (v6.61)
The Liquid AI LFM3 lane's chat template (at the pinned revision) reads enable_thinking, true by
default, and no reasoning effort, as Ornith's does: a reasoning_effort reached it unread, and none
reasoned in full. On a vLLM lane serving lfm3-1.7b the proxy now translates it as it does for Ornith
(ornith_effort, the family read by switch_only_lane): none and minimal turn the reasoning off and win
over the request's own enable_thinking, every other level keeps it; its log line names the LFM3
template. lfm3-1.7b is a lane of the pair's routes. POST /v1/systemone stays refused there, as on
every vLLM lane: vLLM caps top_logprobs, and the option labels are measured on the Qwen tokenizer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 15:38:53 +01:00
Hasan BasbunarandClaude Opus 5.5 9e2351121a v1.51: the proxy knows the Liquid AI LFM2.5 24B-A2B lane and refuses System One there (v6.60)
Its served name, lfm2.5-24b-a2b, is a lane of the pair's routes. POST /v1/systemone is refused while it
serves (400, the lanes it serves on named): its chat template ends every generation prompt with
"<think>" and reads neither enable_thinking nor a reasoning effort, so the one token System One reads
would be the first of a thought, never an option's label. Its vocabulary, 128,000 tokens, is the floor
the token-id guard already holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 15:38:53 +01:00
Hasan BasbunarandClaude Opus 5.5 1b66a453bc v1.51: the proxy says the box transcribes speech while the NVIDIA Nemotron Transcribe lane serves (v6.59)
The lane holds the GPU instead of a text engine, as the image and video lanes do, and a text engine does not come back
from that by itself: a text request then read "It is stopped, restarting or still loading (about 9 minutes)". It now
reads that the box is transcribing speech (qwen38-transcribe.service) and the way back, as v6.22 and v6.58 say it of
the image lanes. Nothing reaches the lane through the proxy: it answers its own audio routes on its own port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 15:38:53 +01:00
Hasan BasbunarandClaude Opus 5.5 95f2c8ffcd v1.50: what the rebase onto v1.49.0 broke, and the Now view's port of the image lane that serves
- keepalive-proxy.py: the rebase put v6.57's history block before v6.58's; the cockpit reads the first.
- tests/test_image_h3_lane.py: an unused import (ruff F401).
- The Now view said "Listens on behind this cockpit" with no address until the cockpit answered, and kept
  the first port it was told after a switch from one image lane to the other. It says the port the cockpit
  read for the unit that serves (/api/image's "unit"), and until then that lane's own default, 30020 or
  30026. A test of each fails on the old page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 21:22:28 +01:00
Hasan BasbunarandClaude Code 2c9435b662 v1.50: what the independent review found on the lane, fixed with tests
- the FlashInfer gate compares what importlib.metadata answers with the version part of the wheel
  file (comparing "0.7.2" with "0.7.2-py3-none-any.whl" was true forever: every update re-downloaded
  1.6 GB and touched the runtime note, which kept the cockpit saying the serving lane ran older
  files); tests run the gate with a stubbed venv (finding 1)
- IMAGE_H3_BIND must be four dotted octets up to 255: 127.0.0.300 is no address and the unit would
  restart-loop into a burned 20-minute smoke (finding 5)
- the switch's usage no longer advertises image-h3 --clients, which its parser refuses (finding 3)
- the Now view asks /api/image for the port instead of defaulting to Qwen-Image's 30020 while
  MiniMax-H3-Image serves on 30026 (finding 6)
- host_packages names the MiniMax-H3-Image lane when it is the one that asked (finding 7)
- the proxy's v6.22 docstring says what v6.58 does: either image lane (finding 8)
- the text-encoder rule moves to lanes.sh h3_encoder_cached, read once by the installer and the
  switch (a rename of a partition folder by MiniMax fixed one copy and left the other re-downloading
  63 GiB, the lanes.sh lesson of 2026-10-16; finding 4)

End-of-request markers (finding 2) wait for the lane's first real generation log on the box, in the
v1.50.0 proof plan, not a guess from the boot fixture.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-15 19:43:15 +01:00
Hasan BasbunarandClaude Opus 5.5 4eda8de142 WIP v1.49: the MiniMax-H3-Image lane: its installer, its unit, its switch, install.sh's flags and every lane list
A lane of its own beside Qwen-Image 2.1 (decisions 1288 and 1374): install-image-h3.sh (venv, the
sglang[diffusion] 0.5.23 wheel, SGLang main at 49f1a44 over it, flash-attn-4 4.0.0b38 and FlashInfer
0.7.2's cubins and jit-cache package by sha256, as SGLang's DGX Spark recipe), qwen38-image-h3.service on
:30026, loopback only, with --sleep-on-idle and --http-graceful-shutdown-timeout 5 (the runtime's own
flags at this commit, where the image and video lanes need patches), its text encoder MiniMax-H3's at
the video lane's pin. On demand like every lane (--with-image-h3, --no-image-h3), the switch, prepare
and uninstall, every unit's Conflicts= and After=, the proxy (v6.57: the box serves images while either
image lane serves), the CI's lists, and the tests that hold each list to lane_registry.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 19:43:15 +01:00
Hasan BasbunarandClaude Opus 5.5 0de9a5b7e7 proxy v6.57: a GGUF lane's checkpoint is its file, so the two quantizations of one revision are two to the pair
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 02:55:56 +01:00
Hasan BasbunarandClaude Opus 5.5 190f04f785 v1.48.1: the proxy as v1.48.0 shipped it
Its one change in this version was a sentence of unit_texts' docstring (the vLLM lanes now
wait on docker run in their bash -c instead of exec'ing it). install.sh compares the file
and restarts qwen38-keepalive when it differs: every box would have dropped the streams in
flight at its update for a comment (independent review of v1.48.1). What the docstring reads
holds either way (the main process's arguments, joined, name the model, its revision and its
slots); the sentence comes with the proxy's next change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 00:12:29 +01:00
Hasan BasbunarandClaude Opus 5.5 911849cecb v1.48.1: a vLLM lane stopped while its engine loads ends stopped, not failed
systemctl stop qwen38-flash-local 16 s into a start (2026-11-13): docker stop sent the
container SIGTERM, vLLM turned it into KeyboardInterrupt("terminated") while it
initialized and, PID 1 in its container, exited 1, which docker run returned to systemd:
"Failed with result 'exit-code'" for a plain stop, 1 being outside SuccessExitStatus.
Every vLLM lane (FP4-Local, Ornith on the same image, Kolibri, both Nemotrons) serves
through that entrypoint. ExecStop now marks the stop in the unit's RuntimeDirectory before
docker stop, and ExecStart waits on docker run instead of exec'ing it: 143 for a stop it was
asked, docker run's own code otherwise, so a crash stays a failure that Restart= starts
again and flash-local's 78 keeps its meaning. systemd removes the directory each time the
unit stops, an automatic restart included (systemd 255). The SGLang and llama.cpp lanes are
left as they are: their journals since 2026-09-01 show no stop that failed but one engine
crash that a stop happened to meet. tests/test_vllm_stop_while_loading.py runs each unit's
ExecStart and ExecStop with a docker that stands in for the engine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 00:12:29 +01:00
Hasan BasbunarandClaude Opus 5.5 028083e0bf v1.48.0: what the independent review found: X-Conversation-Id stays at the door, and a config of the user's own is left in peace
llama-server attaches a request carrying X-Conversation-Id to a resumable stream that stops
when the stream is cancelled, never when its connection closes (server_res_spipe::should_stop
and on_complete, tools/server/server-stream.cpp of b12291, read 2026-11-13): relayed, closing
(the llama.cpp lanes' abort, CLOSE_ABORTS) and the cockpit's memory floor left such a
generation running to its end on one of the two windows. The proxy reads nothing of it and
SGLang and vLLM ignore it: dropped from every relayed request (proxy v6.56). Test: the fake
llama-server records the header, which reached it before the fix, in both spellings.

install.sh said "could not update ... check them by hand" at every update to a config of the
user's own that holds neither lane's entry: oc-merge-limits.py returns 3 there, "not in path:
nothing to merge" (it was || true before c33ea43). Only a refusal is said now. Test: such a
config gets no note (it did before), the refused one still does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 18:37:50 +01:00
Hasan BasbunarandClaude Opus 5.5 6b2f12ac11 v1.48.0: the proxy's startup line says v6.56 too, the bearer test proves the door refuses, and the lane's memory at its two windows
226194e moved the proxy's docstring and history to v6.56 and left its startup line at
v6.55: tests/test_proxy_guard.py (the three copies of the version agree) failed in two
jobs of the local CI (50 ok, 2 failures, the same test). The lowercase-bearer test now
asserts the door's own 401 body for a wrong key, so a door that admitted it (refused by
the engine instead, with its "Invalid API Key") fails it: proved by that mutant.
dashboard/lifecycle.py said the lane holds 86.6 GiB, its one-window figure: 97,552 MiB
with the two windows it serves (100,881 in its 1M mode).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 17:25:15 +01:00
Hasan BasbunarandClaude Code 226194ef33 v1.48.0: the lowercase bearer the door admits reaches llama.cpp spelled as the engine spells it (proxy v6.56)
Measured on the live lane 2026-11-12: "bearer <key>" passes the door (its rule is
SGLang's, the scheme read in any case, measured 2026-10-08) and llama-server compares
the "Bearer " prefix exactly and 401s it, while every SGLang and vLLM lane served the
same client. _upstream_auth now normalizes the scheme after the door has byte-for-byte
compared the key, and only for the shape the door admits: one space, the key after it.

Test: tests/test_proxy_llamacpp_guard.py (its fake llama-server now checks the prefix
as the real one does; the new test fails 401 without the fix, passes with it).
prod_checks (live tool) expects the one door rule on every engine again.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-13 16:46:12 +01:00
Hasan BasbunarandClaude Fable 5.2 b79492502a v1.48.0: what the lane's code review found: prompts counted on llama.cpp, the start guard, the effort "none"
A code review of the branch found seven things. Six hold and are fixed,
each with a test that fails on the code before.

The proxy asked llama-server's /tokenize for a count it does not give
(it reads "content" alone and answers the tokens): no body was counted
on this lane, its size decided at one token a byte, and every chat body
past 241,172 bytes was refused. A chat is now counted by llama-server's
own count route, a prompt by /tokenize's content.

The pool the proxy read was one slot's window where the unit holds two:
it is the windows of all the slots (/props), so the flash ceiling of
250,000 holds again, and it is lifted past a window of 262,144, as on
the FP4-Local lane (the 1M option was cut at 250,000).

engine-preflight.sh, which every lane runs before it starts, counted any
llama-server on the GPU as what is left of an engine: one of the user's
own would have held every lane's start back. Only a llama-server in this
lane's container counts.

A reasoning effort of "none" in chat_template_kwargs reached the patched
template, which refuses it: it becomes enable_thinking false, as on the
other Qwen lanes. gguf-fetch.py keeps the Hugging Face token on a
redirect that stays on the same host. The installer refuses a leading
zero in its numbers (0262144 was read in octal and rendered -c 182472).

bench.sh keeps the first pass of each probe on this lane: the second
finds the first's answer in the n-gram pool (36.0 then 273.4 tok/s).

The quality measured on 2026-11-12 is written (GSM8K 0.984 on 250,
HumanEval 0.994 on 164, 20 tool calls of 20), and the 1M option (YaRN at
four times, the KV cache in q8_0, one request): three codes of three
found in 985,296 tokens.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 12:10:09 +01:00