ModelSaar

Expanded roadmap

Rendered from docs/roadmap-expanded.md at commit 813abb1662f7. The repository file is authoritative.

The owner decided on 2026-12-05 to bring the features that 0.2.0 listed as out of scope onto the roadmap. Tracking issue: #32. This document gives each item a testable outcome, its dependencies and its place in the order. Version 0.2.0 was the starting point. Version 0.3.0 ships the features described below.

Status words used below, and nowhere loosely:

Evidence is recorded per item in roadmap-matrix.md as fixture (F), entry point (S) or live (L), with who ran it.

What does not change

These hold for every item, including the ones that used to be "out of scope". An item that cannot be built inside them is not built.

  1. Off by default, on by the operator. Every feature below is inert until a configuration key enables it; new hosted and lifecycle operations need explicit configuration. The served-context cap and observed memory accounting can change admission; see the upgrade notes.
  2. Authentication and caller isolation. State created through the API (responses, conversations, tool results, jobs) belongs to the calling key; another key gets 404, not 403.
  3. No arbitrary command execution. The gateway runs no shell, no model-written code outside the evaluator's sandbox, and no "code interpreter" tool.
  4. No unrestricted network fetch. The gateway contacts only hosts the operator listed (security.allowed_backend_hosts and per-feature allow-lists). Remote media in requests is still never fetched.
  5. No silent substitution. A request is served by a deployment that can honour it, or refused with the reason. A feature that changes what is computed (an ensemble, a frame-sampled video, a layout stage) says so in the response and the decision record.
  6. Truthful runtime support. A capability is offered on a runtime only on positive evidence: its documentation, a first-party source reference tied to a version, or a probe — and the record says which.
  7. Bounded everything. Inputs, fan-out, steps, bytes, wall-clock time and stored state have explicit limits with typed errors.
  8. The evaluator stays isolated and is not changed by any of this.

Order

foundations (this change set)
  ├─ F1 resident-memory evidence ───────────┬─► E2 opt-in eviction ──┬─► E8 cluster scheduler
  ├─ F2 version-gated runtime behaviour ─┬──┘                        │
  │                                      └─► E1 native Ollama image/audio embeddings
  ├─ F3 sandbox check, F4 measurement coverage
0.2.0 pieces
  ├─ managed lifecycle ─► E2, E3 opt-in downloads ──────────────────┘
  ├─ response store ───► E4 Conversations API ─► E6 hosted tools
  ├─ closed-choice vote, judge ─► E5 free-text ensembles
  ├─ OCR layout stage ─► E7 gateway-side layout
  └─ vLLM video route ─► E9 video and multimodal alternatives

Order of delivery: F1–F4 → E1 → E2 → E4 → E3 → E5 → E7 → E6 → E9 → E8. Hosted tools come late because they need the Conversations state and the strictest review; the cluster scheduler is last because it needs eviction, downloads and worker identity to exist first.

Foundations shipped in 0.3.0

outcome test
F1 A resident model is counted at the runtime's own figure in the pool's units; cold models, failed queries and unknown residents fall back conservatively; nothing is loaded to be measured tests/test_memory_evidence.py; live: scripts/ps_memory_check.py next to the machine's own memory figures
F2 A behaviour the documentation does not list is used only at or above the Ollama version it was measured on (logprobs ≥ 0.40.16); older or unreadable versions keep the documented exclusion tests/test_ollama_fields.py
F3 modelsaar sandbox check verifies isolation on the host with benign allow/deny checks and names the operator's next step; no backend → skip, never host execution tests/test_operator_workflows.py
F4 modelsaar measurements shows measured / thin / prior / none per deployment and task same file

E1 — Image and audio embeddings through Ollama's native API

Status: shipped in 0.3.0 (fixture-tested and independently exercised on the GX10 with Ollama 0.40.21, including a mixed batch). Operator guide: pipelines.md, "Image and audio embeddings through Ollama".

Why now: Ollama 0.40.16 accepts input maps with text, image or audio on POST /api/embed (api/types.go of that tag; the public endpoint page still describes text only). The owner measured it on the GX10 with embeddinggemma-2: two images and two audio clips each gave distinct 768-dimensional vectors. Ollama's OpenAI-compatible /v1/embeddings remains text-only.

E2 — Opt-in automatic eviction

Status: shipped in 0.3.0 (fixture-tested; tests/test_auto_evict.py). Operator guide: lifecycle.md, "Opt-in automatic eviction".

E3 — Opt-in model downloads

Status: shipped in 0.3.0 (fixture-tested and exercised on a disposable Ollama 0.40.21 store). Reference: lifecycle.md, "Opt-in model downloads".

E4 — Conversations API

Status: shipped in 0.3.0 (fixture-tested; tests/test_conversations.py). Reference: protocols.md, "Conversations API".

E5 — Free-text ensembles

Status: shipped in 0.3.0 (fixture-tested; tests/test_free_text_ensemble.py). Reference: pipelines.md, "Free-text ensembles".

E6 — Hosted tools

Status: shipped in 0.3.0, with fixture and hardware checks. Reference: hosted-tools.md — configuration, wire format, safety properties, audit.

E7 — Gateway-side document layout

Status: both engines shipped in 0.3.0. See tests/test_layout_builtin.py and tests/test_layout_onnx.py. Reference: pipelines.md, "Layout without a service".

E8 — Cluster scheduler

Placement shipped in 0.3.0. modelsaar lifecycle place uses verified weights, observed residency and per-pool capacity. Two physical workers passed the placement and lease check. The cluster job API persists ownership and its submission boundary in SQLite. It passed the two-machine worker-loss and lost-acknowledgement trials.

E9 — Video and multimodal routes where Ollama has no transport