Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .abcd/work/DECISIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -471,3 +471,4 @@
- 2026-10-07 — **The connection caps are 32 open connections per client address and 512 per listener, constants, loopback held to the 512 only** (iss-2609190254516275; agent, under the maintainer's decision above). 32 is several times any one machine's normal parallelism (URLSession and browsers hold six per host; the Discord bridge asks in-process and holds none) and half one model's 64-request queue, while sixteen addresses are needed to fill a listener; 512 is eight models' whole queues, more than this Mac holds loaded at once, at a cost of tens of megabytes. IPv6 is keyed by the full address, not the /64, so the 512 is the ceiling a peer that mints addresses meets. Loopback is exempt from the per-address cap because every account on this Mac is one address and the cap would let one local client lock the panel out. Wrong if a debug log shows refusals for one legitimate machine or a NAT'd network in normal use (raise or key differently), if the 512 is reached with no hostile peer, or if descriptors run out before it.
- 2026-10-07 — **Loopback gets its own connection budget, not a share of the remote total** (iss-2609190254516275; security review of `fix/listener-connection-caps`). With a bind to `::`, the panel's `localhost` reaches the dual-stack wildcard listener as `::1`. If loopback shared the 512 with remote peers, a LAN machine filling it would lock the operator out of the panel. Loopback now counts against a 512 of its own, and remote peers against theirs. The 32-per-address cap is a guard against accidents, not a security boundary, on a LAN where addresses are free. Shown wrong if the panel is refused while remote peers hold the listener full.
- 2026-10-07 — **The prompt cache's bound is a stored real figure, and a model with none keeps no prompt cache** (iss-2610071035130302; branch `fix/runtime-budget-bounds`; `impact: fix`). Maintainer's follow-up: the uninflated per-token figure is stored as `kv_bytes_per_token` beside `kv_charge_per_token` (`KVShape.BytesPerToken`, from the same scan, held to the charge's bound and never above the charge) rather than derived at launch by dividing the charge. The launcher passes `--dessau-prompt-cache-bytes` (that figure times the served window) and `--prompt-cache-size 10`; `serve.py` hands the bound to `LRUPromptCache(max_bytes=)` and refuses a launch whose bound is missing, negative or not a whole number. A model whose figure or window is unknown follows the flat-charge precedent of `capability.LoadCostOf` (a documented fallback, not a refusal): the flat charge reserves no cache, so its bound is 0 and its server keeps nothing between requests. Upstream's own `--prompt-cache-bytes` is not passed: 0.32.0 applies it only as a trim on the batched path and never to the constructor. What would show this wrong: a real-Mac footprint sample of a model holding several long conversations above its charge, which is still owed.
- 2026-10-07 — **Remedies settled for the issues the drain could not take** (maintainer, interview): Text size scales the chat's fonts itself on macOS (iss-2609200817467659); a long reply splits into one bubble per heading section (iss-2609200816105905); an operator Unload cancels an idle job's soft hold, then unloads (iss-2609202010356702); a silent child is caught by one bounded first completion during readiness, with the 2026-09-21 step floor untouched (iss-2609211754253878). Five more had their remedy stated in their own record and were written without a question (iss-2609190200104841, iss-2609200818340380, iss-2609200822241060, iss-2609200823585535, iss-2609210738484563). iss-2610041945038826 now opens "Waits on" the decision-model spec, as decided earlier today, so a drain hands it back by rule.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ found_during: "fidelity audit of itd-2609182357325215"
origin: researcher-authored
production_mode: hand-written
found_at: "client/DessauChat/Picker.swift"
remedy: "Draw the pairing lock on a Bonjour-discovered row whose server is the paired one, not only on the stored-server row, pinned by an architecture test over Picker.swift; then the maintainer checks by hand, with a paired server on the network, that the lock shows beside it before connecting."
---

client/DessauChat/Picker.swift draws the pairing lock (lock.shield.fill) only on the stored-server row, and that row is rendered only while model.connected is true; a Bonjour-discovered row for the same paired server carries the API-key glyph and no pairing lock. The press release and the acceptance criterion make the lock beside the server's name the one thing the pairing is observable by, so a paired server that Bob has not connected to yet looks unpaired in the picker.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ found_during: "maintainer manual test of the chat client, 2026-09-20"
origin: researcher-authored
production_mode: hand-written
found_at: "client/DessauChat/Bubbles.swift"
remedy: "Split a long reply into one bubble per section at the reply's own markdown headings (a reply with no headings stays one bubble); keep the parts one reply for copy, export and history; pin the split with a test over the markdown splitter, then check by hand with a multi-section answer."
---

A long model response renders as one speech bubble the height of the whole window: a multi-section answer with headings and bullet lists fills the pane as a single grey block, so a reader cannot tell where one part ends and the next begins, and the composer is pushed to the very bottom. Ask: break a long response into several bubbles, one per section, splitting at the response's own headings (or another stated boundary such as a paragraph count when there are none), so the conversation reads as a sequence of parts rather than one wall. Seen with a text-generation model answering a history question in the macOS client; the response carried an H1, an H2, and several bulleted sections.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ found_during: "maintainer manual test of the chat client, 2026-09-20"
origin: researcher-authored
production_mode: hand-written
found_at: "client/DessauChat/DessauChat.swift"
remedy: "Scale the chat's fonts ourselves on macOS: map the five Text size names to a scale factor and apply it to every text style the chat window and Settings use (a scaled-font helper every view goes through), with an architecture test that no chat text uses an unscaled style; then check by hand that Smaller and Huge visibly change both windows."
---

The Text size setting has no visible effect: choosing Smaller, Larger, Extra Large or Huge in Settings leaves the chat window's text at the same size. The setting stores one of five names and applies them through SwiftUI's dynamicTypeSize modifier, which on macOS does not scale the system text styles the way it does on iOS, so the modifier is honoured in the view tree and changes nothing on screen. Seen in the macOS client at Smaller with no change in either window.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ found_during: "maintainer manual test of the chat client, 2026-09-20"
origin: researcher-authored
production_mode: hand-written
found_at: "client/DessauChat/Bubbles.swift"
remedy: "Replace the two colour wells with one Theme row of named swatches (multicolour, blue, purple, pink, red, orange, yellow, green, graphite), the chosen one ringed and named; the swatch colours the user's bubble and a lighter tint of it the model's, legible in light and dark; multicolour (this Mac's accent) is the default; store the swatch name and drop stored hex values without migration (pre-1.0)."
---

Replace the two free-form colour wells in Settings (Your messages, The model's replies, each opening the full system colour panel) with the style of the system's accent-colour row: a single row of named swatches (the multicolour system choice, then blue, purple, pink, red, orange, yellow, green, graphite), the chosen swatch ringed with its name shown beneath, in a Theme section. One choice colours both bubbles: the chosen colour is the user's bubble and a lighter tint of the same colour is the model's bubble, so the pair always reads as one palette. The default is the multicolour swatch, meaning follow this Mac's own accent colour, which is what the user bubble already falls back to today; the model bubble's fallback changes from the secondary grey to the tint. The stored value becomes a swatch name rather than two hex strings; pre-1.0, existing stored hex values are dropped, not migrated. Keep the rule that a colour is appearance-aware so the tint is legible in both light and dark.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ found_during: "maintainer manual test of the chat client, 2026-09-20; decomposit
origin: researcher-authored
production_mode: hand-written
found_at: "client/DessauChat/Picker.swift"
remedy: "When the Bonjour browse lists the server the client is pointed at, show only the discovered row, carrying the stored state (connected, paired), and hide the address row; keep the address row only for a server the browse cannot see; pin with an architecture test over the picker, then check by hand."
---

The model picker lists the same server twice under two names: once as the Bonjour row (the advertised instance name with its 'API key required · N models' summary) and once as the stored-server row (the bare .local address the client is already pointed at). The stored-server row is shown whenever the client is connected and no discovered row is expanded, without checking whether the browse has already listed the server it points at, so the picker's two sections offer one server as two choices with different glyphs. The row exists for a server the browse cannot see; when the browse does see it, the discovered row should carry the stored state (connected, paired) and the address row should not appear.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ found_during: "2026-09-19 autonomous sweep, recorded 2026-09-20"
origin: researcher-authored
production_mode: hand-written
found_at: "client/README.md"
remedy: "Say in the client README that the iPad simulator borrows the Mac's own language model only on a Mac with Apple Intelligence on, and that on any other Mac the built-in model is unavailable in the simulator."
---

The client README's sentence that the iPad simulator borrows the Mac's own language model is true only on a Mac with Apple Intelligence on; on a Mac that cannot run it the sentence has no model to borrow and should say so.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ found_during: "implementation of the tool-call probe (itd-2609201445423499), pil
origin: researcher-authored
production_mode: hand-written
found_at: "internal/runtime/pool.go"
remedy: "Let an operator Unload take the model from an idle job: when the panel's Unload meets the tool-call probe's or the self-test's soft hold, cancel that hold (the job gives way as it does to a client) and then unload, with a pool test that an Unload during the probe's hold succeeds and the probe records nothing; a client's request in flight still refuses the Unload."
---

An operator Unload that lands inside the tool-call probe's hold is refused with 409. Pool.Unload refuses any in-flight hold, and the probe holds the model for the few seconds its one request takes, so an Unload from the panel in that window fails the same way it already does during a self-test run. The exposure is the self-test's, now reachable once more per model per runtime; a capture rather than a change, because the hold is what keeps the model from being evicted under the probe.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ found_during: "maintainer's use of Dessau Chat against Dessau Server v0.9.1, 202
origin: researcher-authored
production_mode: hand-written
found_at: "client/DessauChat/DessauChat.swift"
remedy: "Keep the reasoning box stable while it streams: render its text without re-laying out the whole disclosure on every chunk (throttle updates or append plain text, parsing markdown once the reasoning ends), then check by hand that an open box no longer flickers while thinking."
---

Thinking box flickers when I open it while it's still thinking. It shows stable once it is done. (The maintainer's words. The box is the reasoning DisclosureGroup under a reply; opened while the reasoning is still streaming in, it flickers with each update and settles only once the answer has finished.)
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ found_during: "planning interview itd-2609211335097114"
origin: researcher-authored
production_mode: hand-written
found_at: "internal/runtime/launcher.go"
remedy: "Detect a silent child during readiness with one bounded first completion (a single token, a short timeout) after /health answers, leaving the probe's step floor as the 2026-09-21 decision set it; a child that answers /health but not that completion fails readiness at once instead of after ten minutes, with a runtime test using a fake server that answers /health and never a completion."
---

The readiness wait cannot tell an idle-but-silent child from a slow one: a model server that answers /health but never answers a completion and writes no traceback (no fatal line for the LoadLogger of PR 144 to act on) still costs the full ten-minute readiness timeout, once per process (marked transient). Seen only in principle; the 2026-09-21 incident's child DID write a traceback. The fix would detect the silent case (e.g. a bounded first completion during readiness) and, if it lowers the probe's step floor to do so, REVERSES the 2026-09-21 decision that keeps the floor as the gateway's prefill base — flag for the maintainer, never assert. Routed out of itd-2609211335097114 at its planning interview (decision 6).
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ found_during: "tracing an unexplained model load after a peer's run, 2026-10-04,
origin: researcher-authored
production_mode: hand-written
found_at: "internal/runtime/pool.go"
remedy: "Fold into itd-2610030656210408: spc-2610030846273729 steps 2 (recognise a decision model) and 4 (charge it at weights plus its measured prefill peak at the build's fixed window) are the fix; resolve this issue in the change that lands them. No interim code."
remedy: "Waits on itd-2610030656210408: spc-2610030846273729 steps 2 (recognise a decision model) and 4 (charge it at weights plus its measured prefill peak) are the fix, by the maintainer's decision of 2026-10-07; no interim code, and the issue is resolved in the change that lands those steps."
---

A decision model is charged about five times its size against the memory budget. While the self-test loaded mlx-community/clef-4bit on 2026-10-04, /api/state showed bytes 16330982843 (about 16 GB on disk) and charge_bytes 82463242771 (about 82 GB). The charge probably includes a KV cache sized for a served chat window, which a decision model answering short typed questions never fills. An over-charge like this makes the pool refuse or delay other models for memory that is never used.
Expand Down
Loading