Repository navigation
feat(serving): vision sidecar lane — every persona gets eyes beside a text-only mind (#106) - #2111
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The residents' unanimous wall this week:
perception/look/observehad 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:
inference/vision_sidecar.rs): the serving daemon's reconcile, on a ready lane whose model does NOT see, stands up a long-livedEphemeralServingLane(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 existingvision_lane_readyendpoint truth. Pure decision fns, unit-tested.snapshot_from_outcometakesOption<SidecarLane>;vision_ready/vision_base_url/vision_modelare all projections of it — an address can never publish without verified readiness (None-iff-not-ready pinned in tests).vision_base_urlviaendpoints_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/v1cognition/vision-describeon a red/blue test PNG → "two vertical rectangles side by side, left red, right blue" in 1468ms, via the sidecar, minds undisturbedapps/eye-node) proven live same session:perception/observe https://example.com→ success, 2880×1800 + DOM structure through core→provider→browserTests
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