Skip to content

feat(serving): vision sidecar lane — every persona gets eyes beside a text-only mind (#106) - #2111

Merged
joelteply merged 2 commits into
canaryfrom
feat/vision-sidecar-lane-106
Aug 2, 2026
Merged

joelteply merged 2 commits into
canaryfrom
feat/vision-sidecar-lane-106

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What

The residents' unanimous wall this week: perception/look/observe had no local vision endpoint — the main lane serves the text mind (Devstral), cloud rows are keyless, and vision-describe silently skipped every candidate. Personas were blind by construction on a headless box.

Three pieces:

  1. Vision sidecar lane (inference/vision_sidecar.rs): the serving daemon's reconcile, on a ready lane whose model does NOT see, stands up a long-lived EphemeralServingLane (Drop-kills its child, port 58091, CPU placement — the documented coexisting-lane shape) holding the best ON-DISK VL row (GGUF + mmproj both resolve locally, no fetch in a reconcile). Gated on the LIVE free-memory read; verified through the existing vision_lane_ready endpoint truth. Pure decision fns, unit-tested.
  2. ONE-value snapshot contract: snapshot_from_outcome takes Option<SidecarLane>; vision_ready/vision_base_url/vision_model are all projections of it — an address can never publish without verified readiness (None-iff-not-ready pinned in tests).
  3. Consumers: vision-describe's servable gate is endpoint-aware (one check covers VL-mind and sidecar shapes); the llama-server adapter admits the sidecar model through the single-resident guard and routes it to vision_base_url via endpoints_for_model (snapshot-driven, no name sniffing).

Live proof (M5, build 05a8c41, verify-the-deploy green)

  • serving/status: active: Devstral-Small-2507 + vision_ready: true, vision_model: Qwen2.5-VL-7B-Instruct-GGUF, vision_url: http://127.0.0.1:58091/v1
  • cognition/vision-describe on a red/blue test PNG → "two vertical rectangles side by side, left red, right blue" in 1468ms, via the sidecar, minds undisturbed
  • eye-node (apps/eye-node) proven live same session: perception/observe https://example.com → success, 2880×1800 + DOM structure through core→provider→browser

Tests

vision_sidecar 2/2 · serving_daemon 26/26 · serving_consumer 7/7 · llama_server 24/24 · vision_describe 18/18 · openai_adapter 27/27

Known follow-ups (not in-slice): eye-node lifecycle is still operator-run (system-owns-lifecycle wiring next); sidecar footprint not yet registered as its own ResourceConsumer row (#225 sibling); describe's all-skipped outcome still returns a silent null at the command wire (fail-loud PX fix queued).

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

joelteply and others added 2 commits August 2, 2026 10:59
…nly mind so every persona has eyes (#106)

The residents' unanimous wall this week: perception/observe delivers pixels
(eye-node proven live today: success=true, 2880x1800 + DOM structure through
core→provider→browser) but the describe bridge had NO endpoint to interpret
them — the main lane serves the text mind (Devstral), cloud vision rows are
keyless, and vision-describe silently skipped every candidate.

The sidecar: the serving daemon's reconcile, on a ready lane whose model does
NOT see, stands up a long-lived EphemeralServingLane (the eval-lane primitive:
Drop-kills its child, own scanned port 58091, CPU placement — the documented
coexisting-lane shape, no Metal two-resident OOM) holding the best ON-DISK VL
row (GGUF + mmproj both resolve locally; no network fetch inside a reconcile).
Gated on the LIVE free-memory read (the eval-lane second-model SIGKILL lesson)
and verified through the same vision_lane_ready endpoint truth (#106): /props
must confirm modalities.vision before the snapshot claims sight.

ONE value projects the whole contract: snapshot_from_outcome takes
Option<SidecarLane>; vision_ready / vision_base_url / vision_model are all
derived from it, so an address can never publish without verified readiness
(None-iff-not-ready by construction, pinned in tests). A VL mind drops any
sidecar (redundant) and IS the endpoint.

Consumers: vision-describe's servable gate becomes endpoint-aware (a row is
servable iff it IS the verified endpoint's model — covers main-lane and
sidecar shapes with one check); the llama-server adapter routes a request for
the sidecar's model to vision_base_url via endpoints_for_model (snapshot-
driven, id-equality against the canonical PROVIDER_ID const, no name
sniffing). All failure classes probe loud with teaching text (models/pull a
*-VL-*-GGUF to enable the sidecar).

Tests: pure decision fns (candidate skips active model + names artifact gaps;
budget gate refuses with real numbers), snapshot projection (None-iff-not-
ready), row-ready both shapes (sidecar + VL-mind). vision_sidecar 2/2,
serving_daemon 26/26, serving_consumer 7/7, llama_server 24/24,
vision_describe 18/18, openai_adapter 27/27.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… model (#106)

Live round-trip caught it: vision-describe selected the sidecar's model and
routed into ai/generate, but the adapter's single-resident guard only knew
the MAIN lane's residency and refused. The snapshot guarantees TWO
residencies — the active model and (when vision_ready) the sidecar's model,
whose /props the daemon verified before publishing. Admit exactly those;
endpoints_for_model then routes the sidecar request to vision_base_url.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 2e0745f into canary Aug 2, 2026
3 of 4 checks passed
@joelteply
joelteply deleted the feat/vision-sidecar-lane-106 branch August 2, 2026 16:06
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