Skip to content

Releases

v0.1.0-rc.2 — continuation probe and corrected 422 remedy (GitHub pre-release)

Choose a tag to compare

@gopalasubramanium gopalasubramanium released this 28 Oct 16:57
7e75798

v0.1.0-rc.2 — continuation probe and corrected 422 remedy (GitHub pre-release)

This is a release candidate for testing, not a stable release. GitHub-only pre-release: no PyPI package, no container image, no stable tag. The package version stays 0.1.0; the tag is the only marker. The one-line installer at modelsaar.com is unchanged and still pins an earlier commit that contains neither the decision-model features nor this fix — do not point it at this tag. v0.1.0-rc.1 remains available unchanged.

What changed since rc.1

  • New capability probe continuation — modelsaar probe <deployment> --which continuation (also included in --all and available through POST /admin/probe). Agentic clients such as Odysseus replay the previous assistant message with its reasoning_content on every follow-up turn; the gateway marks such requests needs_continuation and, until now, every deployment was excluded because no runtime reports that capability and no probe existed — the result was 422 no_eligible_deployment for a whole class of clients, and the only way out was a hand-written deployments[] override. The probe sends exactly that client shape (user → assistant with content + reasoning_content → user) through the adapter unchanged and records supported only when that request is answered with a well-formed assistant message; unsupported on an explicit 4xx rejection; unknown (capability untouched) on 5xx, transport errors, a timeout (held as uncertain) or an exhausted output budget.
    What it establishes: protocol acceptance — the backend accepts and answers a history carrying reasoning_content. It does not verify that the model semantically uses the replayed reasoning; the OpenAI-compatible API offers no way to check that.
  • Corrected 422 remedy. The "capability … is unknown" remedy now names a probe that exists (modelsaar probe <id> --which <capability>) or, for capabilities no probe covers, only the deployments[] override. For continuation it adds that a context-length exclusion on the same deployment is separate: raising context_length/num_ctx does not establish continuation, and probing continuation does not change the context limit.
  • Default behaviour for unprobed deployments is unchanged: unknown still excludes.

Everything in rc.1 is included unchanged (POST /v1/decisions, classifier mode: decision; both opt-in and experimental).

How to try it

Tester guide (pinned install path, prerequisites, limits, first requests): 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.2
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
modelsaar serve

Then, for a client that replays reasoning (Odysseus and similar), in a second shell with the same MODELSAAR_HOME:

modelsaar probe ollama/<model> --which continuation     # runs through the gateway's admission control; uses local compute

A deployment that reports continuation: supported becomes eligible for such follow-up turns; one that reports unsupported was explicitly rejected by the backend; unknown means the probe could not get an answer — re-run it. If you prefer not to probe, the operator override deployments: [{backend: ollama, model: <model>, capabilities: {continuation: supported}}] still works (and is recorded with operator provenance).

Evidence and limits

  • Fixture-tested in CI at this commit: 294 non-live tests (nine new for the probe, the remedy text, the Odysseus-shaped history and the override path), lint, dependency audit, secret scan, container build, installer jobs.
  • Real-client evidence behind the change: the Odysseus follow-up turn returned 422 against the stable cf56cdd gateway and succeeded against rc.1 only with the manual override (docs/live-runs/2026-10-28-decision-preview-smoke/ records the earlier rc.1 smoke test; the two real-client runs of 2026-10-28/29 are not yet committed as a public record). The probe itself has not yet been run against a live backend in this release; what it reports is defined above.
  • Open WebUI: its real-client test against rc.1 passed (built-in search_knowledge_files returned as a structured tool_calls delta, executed and answered); no change in this candidate.
  • No benchmark has been run; no claim of quality improvement or classifier benefit is made.

Feedback: https://github.com/gopalasubramanium/modelsaar/issues. Created by Gopala Subramanium — https://me.sgopala.com. Apache-2.0.

v0.1.0-rc.1 — decision-model release candidate (GitHub pre-release)

Choose a tag to compare

@gopalasubramanium gopalasubramanium released this 28 Oct 12:22
5b947f2

v0.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 list decision, 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 or auto: eligible decision deployments, resident first, then by id — no quality scoring), admission, locality policy and decision records. Question types choice (2–255 options), noul (yes/no probability), score (2–10 levels); 1–64 questions; optional base64 images for vision-capable decision models. Strict validation (400 naming the field; 413 over the documented 64 KiB text / 32 MiB whole-request limits; server.max_request_bytes bounds what the gateway reads at all). Backend answers are validated against the questions before being returned (502 decision_contract_violation otherwise). Only the Ollama backend has a decision endpoint (501 unsupported_backend elsewhere).
  • 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: one choice question 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 remains mode: chat, classifier enabled: 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 serve

Contract: 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/decisions with an explicit decision model (200, schema-valid), with auto (200; selected a different eligible decision model by the documented tie-break), and one ambiguous chat request with mode: 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.