Skip to content

fix(serving): a vision sidecar never holds what the main lane needs — OFF pin honored, headroom at the residents' width, yields below it - #4270

Merged
joelteply merged 1 commit into
canaryfrom
fix/a-sidecar-never-holds-what-the-main-lane-needs
Sep 20, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/a-sidecar-never-holds-what-the-main-lane-needs

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What happened (the M5, 17:49Z today)

The 27B was pinned off (an operator unload to make room for the corrective build). The reconcile found 39 GB of headroom after a 2,048-token main lane and launched Ornith-35B as the vision sidecar (20 GB). When the 27B was re-permitted it got what was left: one lane at 2,048. serving/unload on Ornith changed nothing — find_candidate never read the pin, so it would re-admit it on the next tick. The lane climbed to 2 × 67k only after the sidecar process was stopped by hand.

Three seams, one rule

  1. find_candidate(rows, active, pinned_off) skips pinned-off rows, named ("pinned off by the operator (serving/unload)").
  2. sidecar_planned_headroom_bytes is planned at max(served_window, residents' typical prompt floor) — never at a transient starved width (sidecar_window_for_headroom, pure).
  3. An existing sidecar yields when the main lane serves below that floor (serving.vision.sidecar_yields_to_persona_floor), the way it already yields to a solve floor.

The pins and the floor are read once in reconcile_to_plan and moved into the task.

Pinned

a_pinned_off_row_is_never_a_sidecar. The other find_candidate caller (main-lane mmproj availability) passes no pins by design — availability, not admission.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

… it honors the operator's OFF pin, plans its headroom at the residents' width, and yields below it

The M5, 2026-09-20 17:49Z boot: the 27B was pinned off (an operator unload to make room for
the corrective build); the reconcile found 39 GB of headroom after a 2,048-token main lane
and launched Ornith-35B as the vision sidecar (20 GB); when the 27B was re-permitted it got
what was left — one lane at 2,048 — and unloading Ornith did nothing because find_candidate
never read the pin. Three seams, one rule: (1) find_candidate skips pinned-off rows, named;
(2) sidecar_planned_headroom_bytes is computed at max(served window, the residents' typical
prompt floor), never at a transient starved width; (3) an existing sidecar yields when the
main lane serves below that floor (serving.vision.sidecar_yields_to_persona_floor), the way
it already yields to a solve floor. The pins and the floor are read once before the task
and moved in. Pinned: a_pinned_off_row_is_never_a_sidecar.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply

Copy link
Copy Markdown
Contributor Author

Follow-up seen while verifying on the M5 (not in this PR): after the Ornith sidecar's process was stopped, serving/status kept vision_ready: true — the slot's verdict is not re-derived when the child dies; a dead sidecar should read vision_ready: false until the next admission. Same file, separate seam.

@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVE — reviewed at exact head 8fe5fa1 (lib test and windows check running at read time).

Three seams, one rule, and each is the right shape: find_candidate takes the pins as an argument and names the skip ("pinned off by the operator"), so serving/unload on the sidecar means what it says on the next tick, and the other caller passes none by design (availability, not admission) — pinned. The headroom is planned at max(served_window, residents' typical floor) through a pure sidecar_window_for_headroom, so a transient 2,048 main lane can no longer read as 39 GB of room for a 20 GB sidecar; and an existing sidecar YIELDS when the lane serves below that floor, the same move it already makes for a solve floor — the slot is an EphemeralServingLane, whose Drop kills the child, so the yield is real memory back, not a dropped handle. Pins and floor read once in reconcile_to_plan and moved into the task: Track B's shape. No oscillation by construction: the sidecar is re-admitted only against headroom measured at a lane that already holds the floor.

@joelteply
joelteply merged commit a83603b into canary Sep 20, 2026
6 checks passed
@joelteply
joelteply deleted the fix/a-sidecar-never-holds-what-the-main-lane-needs branch September 20, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant