diff --git a/REPORT.md b/REPORT.md index c263b55..833c2f8 100644 --- a/REPORT.md +++ b/REPORT.md @@ -513,3 +513,39 @@ scoped to HA's IP: the scripthost on the same VLAN still gets no connection to `172.19.10.11:443` (checked again now). The entrance path is gone in config (`lounge-haproxy-config` `73f4389`), from inside, and from outside (Serenity's public egress → the Lounge WAN address → the edge's default backend, 404). + +## Found while closing: one spurious cloud fallback at 19:10:53 — forge was alive + +While confirming the 19:12 answers came from forge, the Lounge pod log showed one +earlier line: `19:10:53 falling back to cloud gpt-5.4-mini for /api/chat +(completion-failed: ReadTimeout)`. Forge was not down. Its journal for the minute +before shows **four full reloads of the 64 GB model in two minutes**, each 15–30 s, +alternating between two context sizes: + +``` +19:09:20 runner loaded n_ctx = 8192 (HA chat; HA sends options.num_ctx 8192) +19:09:51 reloaded n_ctx = 131072 (router health probes: default context) +19:10:23 reloaded n_ctx = 8192 (HA strict chat — answered 19:10:25, 62 s end to end) +19:10:53 reloaded n_ctx = 131072 (probe) — the roci-03 pod's probe hit its 45 s limit + at that exact second → "unavailable" → optimistic + request answered by the cloud (HA saw it 46 s later) +19:11:19 reloaded n_ctx = 131072 again (the interrupted load was torn down) +``` + +Three router instances (two Lounge pods, one Serenity) each probe forge every minute, +all at the default context, while HA asks for 8192 — so every alternation is a reload, +and a probe queued behind a live generation plus a reload can exceed 45 s. Effects: +a **"Local preferred" answer silently came from the cloud while forge was working**, +and a "Local only" answer took a minute. The Serenity instance's probe, arriving a +second later, succeeded in 7 s. This is the runner thrash already noted in memory +(`reference_ollama_num_ctx_runner_thrash`); what is new is that it trips the router's +availability verdict, which is privacy-relevant on the optimistic endpoint. + +**Not changed by me.** The fix I recommend: make the router pin `options.num_ctx` on +every forge-bound request (probe, OpenAI dialect, Ollama dialect) to one configured +value, default 131072 — the size the model already runs at, so no extra VRAM — which +ends the reloads entirely; HA's 8192 is a runner-size hint, not a prompt limit (HA trims +history by message count). Router-only, one config knob, a 0.2.2 image. The alternate +is setting `num_ctx` to 131072 in each HA subentry; it has the same effect but has to +be repeated per agent and is invisible in git. I stopped short of either because it +overrides a user-visible HA setting and the main session is tracking the thrash.