Repository navigation
v0.1.0-rc.1 — decision-model release candidate (GitHub pre-release)
Pre-releasev0.1.0-rc.1 — decision-model release candidate (GitHub pre-release)
This is a release candidate for testing, not a stable release. It is a GitHub-only pre-release: no PyPI package, no container image, no stable tag. The package version stays 0.1.0 (modelsaar --version); the tag is the only marker. The one-line installer at modelsaar.com is unchanged and still pins an earlier commit that does not contain these features — do not point it at this tag.
What is in it (opt-in, experimental)
Both features are off unless you configure them; nothing changes for existing installations.
POST /v1/decisions— ask a decision model (an Ollama model whose capabilities listdecision, e.g.nimble,clef,laya; Ollama ≥ 0.35.0) typed questions about a state and get per-option probabilities back. The request and answer are Ollama's documented System One contract (POST /v1/systemone), carried through the gateway's API-key authentication, model resolution (model= a decision-role deployment id orauto: eligible decision deployments, resident first, then by id — no quality scoring), admission, locality policy and decision records. Question typeschoice(2–255 options),noul(yes/no probability),score(2–10 levels); 1–64 questions; optional base64imagesfor vision-capable decision models. Strict validation (400naming the field;413over the documented 64 KiB text / 32 MiB whole-request limits;server.max_request_bytesbounds what the gateway reads at all). Backend answers are validated against the questions before being returned (502 decision_contract_violationotherwise). Only the Ollama backend has a decision endpoint (501 unsupported_backendelsewhere).routing.classifier.mode: decision— the optional routing classifier (consulted only when the deterministic task signals are ambiguous) can be a decision model instead of a small chat model: onechoicequestion over the closed task-label set; the arg-max label and its probability refine the task label; any timeout, error or out-of-contract answer falls back to the deterministic label exactly as before. Default remainsmode: chat, classifierenabled: false.- Discovery registers such models with role
decision; they are never offered or chosen for chat.
How to try it
Tester guide with the exact pinned install path, prerequisites, limits and a first request: https://modelsaar.com/preview/decision-models/. In short — a source install at this tag, in its own directory and with its own MODELSAAR_HOME, side by side with a stable installation:
git clone https://github.com/gopalasubramanium/modelsaar.git modelsaar-preview && cd modelsaar-preview
git checkout v0.1.0-rc.1
python3 -m venv .venv && . .venv/bin/activate && pip install -e .
export MODELSAAR_HOME=~/.modelsaar-preview
modelsaar init --port 8485 # or --endpoint http://host:11434 --type ollama
modelsaar discover # a decision model shows role "decision"
modelsaar serveContract: docs/routing.md ("Decisions"); classifier configuration: docs/extending.md; release conventions: docs/release.md ("GitHub-only pre-releases").
What the evidence does and does not show
- Fixture-tested in CI at this commit: 285 non-live tests (lint, Python 3.10/3.12/3.13, dependency audit, secret scan, container build, installer jobs) against a fake backend that speaks the documented decision API.
- One bounded live smoke test (2026-10-28, three requests, isolated checkout and home, Ollama 0.40.5 with
nimble-v3):POST /v1/decisionswith an explicit decision model (200, schema-valid), withauto(200; selected a different eligible decision model by the documented tie-break), and one ambiguous chat request withmode: decision(classifier used once, 255 ms). Record:docs/live-runs/2026-10-28-decision-preview-smoke/. - Not shown: answer quality, latency distributions, or any routing benefit of the decision-mode classifier. The 2026-10-25 classifier comparison used the chat classifier and its result (that configuration failed its timeout criteria; not a causal on-versus-off comparison) stands unchanged. No benchmark has been run with these features; no claim of benchmarked quality or classifier superiority is made.
- The wire contract follows Ollama's documented System One API and may change with it.
Also in this candidate
Everything merged on main since the untagged 0.1.0 revision (see CHANGELOG.md): the pinned-commit installer, measured-routing evidence, review fixes and the request-size bounds. Feedback: https://github.com/gopalasubramanium/modelsaar/issues.
Created by Gopala Subramanium — https://me.sgopala.com. Apache-2.0.