SibillaOS - Architecture v0.5¶
Date: 2026-07-29. Status: consolidated draft.
Changelog v0.20 (v0.11 cycle, the guard decision): the ecosystem's curated lists showed guard models becoming table stakes for serving stacks (eleven entries from every major lab), and an appliance that serves third parties through API keys owes its operator an answer. Design: Caddy cannot inspect bodies, so when the guard is on the gateway routes /v1/chat/completions - and only that - through a loopback guard stage: a dependency-free Python stdlib proxy (the llmd-mcp doctrine: the one component that never needs pinning) asks a verdict model for a classification of the last user message and forwards the untouched request or refuses with an explicit machine-readable error. The verdict model is Qwen3Guard-Gen-0.6B on a second llama-server - the same pinned binary the reranker ships, one llama.cpp serving both sidecars - and the decisive finding of the vetting: the official Qwen safety template travels INSIDE the community GGUF (mradermacher, Apache-2.0, digest-pinned), so the classification prompt is the vendor's own, applied by --jinja, not a prompt we maintain. Policy decisions: fail closed (a verdict server that does not answer means the request does not pass, and the error says how to disable); Unsafe blocks, Controversial forwards and logs (LLMD_GUARD_STRICT=1 blocks it too); images in vision requests are not classified and the doc says so; CI vets the verdict like it vets the reranker - a blatant probe must come back 400 content_blocked on every push, or the pinned GGUF does not ship. Stated honestly in docs/guard.md: a 0.6B classifier is a filter, not a guarantee, and doctor --redteam exists to see how the configuration really behaves.
Changelog v0.19 (v0.11 cycle, the engine decision): the ds4 route closes, the llama.cpp route opens. The survey settled the first half: ds4 upstream publishes no releases or tags by deliberate choice (the project considers itself a working template), so the gate SibillaOS held for three cycles - integration only against something pinnable - will never open, through nobody's fault. The evidence spike settled the second half on CI hardware: the pinned b11669 llama-server (the exact binary the rerank sidecar already ships) served a real MoE (granite-3.1-3b-a800m, Apache-2.0, 800M active) and satisfied the gateway contract point by point - /v1/models in the OpenAI shape, /v1/chat/completions with the usage block bench depends on, SSE closed by [DONE]. Two findings beyond the contract: llama-server's /v1/models carries a metadata block richer than ollama's (n_params, n_ctx_train, ftype), and every chat response carries native timings (49.7 tok/s decode, 99.7 tok/s prefill on the runner's CPU, informational) - model info and bench would get their numbers for free on this engine. The moe-cache machinery ships in the pinned build (merged upstream in the v0.7.0 release b11669 belongs to); its gain is a GPU-over-host-memory measure and is deferred to real hardware, stated rather than estimated. Decision: llama.cpp becomes the planned third engine for the large tier - repack per the rerank playbook (numbered builds, per-asset sha256), coexistence via llama-swap on the unified-memory tier per the v0.13 design, every serving guard unchanged - in a dedicated integration cycle. ds4 returns to Exploratory as the category's origin, with respect and without resentment: it proved the demand for larger-than-RAM, and the engine that answers it will be the one with releases.
Changelog v0.18 (v0.10 cycle, the reranking decision): the first sidecar that serves a model without being an engine. ollama has no rerank endpoint and vLLM would be a second engine for a 0.6B model; llama.cpp's server exposes /v1/rerank natively and upstream publishes numbered binary builds with per-asset sha256 digests, so the whisper playbook applies unchanged: pin b11669 (the build the v0.7.0 release points at), record the hashes, ship only llama-server and its libraries, loopback behind the gateway's 401 in the standard sandbox. The model question got its own policy: Qwen3-Reranker-0.6B is official and Apache-2.0 but ships no official GGUF, and most community conversions are broken for the rerank endpoint (missing rerank template, null scores) - so the catalog pins one vetted conversion by digest, fail closed as always, and CI asserts a relevance ordering on every push, making the vetting continuous instead of a one-time inspection. A quiet side effect recorded on the roadmap: the ds4 plan-B candidates are llama.cpp-shaped, and this sidecar just proved the whole repackaging path.
Changelog v0.17 (v0.10 cycle, the vision decision): the registry exception, amended from tier-gated to capability-gated. The v0.13 ADR allowed the ollama.com registry as a second source for the LARGE TIER ONLY, because sharded GGUFs made hf.co pulls impossible there. Vision exposed a second case of the same shape: ollama's hf.co pull fetches the model GGUF and nothing else, so the mmproj projector a vision model needs never arrives, and every hf.co entry is text-only by construction. The registry manifest for qwen3.5:9b, read at the source, settles it: a projector layer (from mmproj.gguf, 921 MB) travels with the model layer, so the registry delivers the capability the hf path cannot. Amendment: a catalog entry may be registry-sourced when the hf.co path cannot deliver the capability it exists for, stated in the entry itself (capabilities: [vision]); the CI gate moves from 'registry implies large' to 'registry implies large or a stated capability', and gains the rule the philosophy always implied: no registry entry is ever a default. First beneficiary: qwen3.5:9b (consumer-gpu, Apache-2.0, model layer sha256 recorded from the manifest), additive beside the hf.co Qwen3.5 defaults, which stay text-only and stay defaults. docs/vision.md states the limit honestly: on SibillaOS, seeing images means a registry entry, and the catalog marks which ones do.
Changelog v0.16 (folded into the v0.10 cycle by the maintainer's call): the jump itself, executed on the branch with the fact sheet as the map - series moved on both install paths, runners pinned to ubuntu-26.04 by choice, the source-ISO cache key bumped (a cache serving the old base forever is the quiet failure mode of a series jump), the autoinstall pinned to kernel: linux-generic against subiquity's new HWE/OEM auto-selection, and sibilla kernel rewritten for a world where GA 7.0 already covers Strix Halo. The 26.04 fact sheet, gathered before the spike touched a file: Runners: ubuntu-26.04 and ubuntu-26.04-arm are GA since 2026-09-17, and the ubuntu-latest flip to 26.04 is rolling out mid-October to mid-November - which would be a live hazard if we used ubuntu-latest anywhere, and we do not: every job pins ubuntu-24.04 explicitly, so the fleet changes under us only when we say so (third-party reports of /tmp as quota'd tmpfs on the 26.04 image go on the spike's checklist for the ISO bake). Archive versions on resolute: podman 5.7 (quadlet floor long cleared), python3.14, and caddy STILL 2.6.2 - identical to noble, so the jump neither helps nor hurts the one dependency Debian froze in 2022. Install paths carry over unchanged in shape (releases.ubuntu.com/26.04 and cloud-images resolute with the same SHA256SUMS conventions; the bake must use the releases stream, not the daily, and must not grab the new amd64v3 variant by accident). Subiquity changed twice in ways that matter: the identity user now exists at install time when late-commands run, and the server installer AUTO-INSTALLS HWE/OEM metapackages on matching hardware - the second one must be opted out or the appliance loses its deterministic GA kernel promise. Sweetener: 26.04's GA kernel is 7.0, which covers Strix Halo out of the box, so after the jump the noble-era HWE opt-in collapses into a historical note. ROCm-on-kernel-7.0 with ollama's bundled userspace is the one check only the spike can give. The aesthetics pass treated as documentation. The architecture diagram still drew the pre-0.9 machine (clients, gateway, two engines), which made it wrong, not just old: the redesign shows the real topology - the gateway as the only door with its :8080 and :3000 listeners, six loopback services behind it (both engines, whisper, oauth2-proxy, MCP, the WebUI container), the hw+llmfit layer with governed context, and fleet as the one line that reaches past the machine. The GRUB splash returns where the text echo once failed, done the surviving way: everything guarded (loadfont, gfxterm, background_image), so any firmware or path that cannot render falls through to the existing text theme - ship only what degrades cleanly. MOTD, banner and social card updated to the product's current breadth; PNGs re-rendered from the SVG sources, which remain the single truth. The Qwen3.5 catalog refresh, verified before trusted. Every claim checked at the source: bartowski's three GGUF repos exist, answer gated:false, carry apache-2.0 and single-file quants (the one exception, 27B bf16, ships sharded in a subfolder - unusable via hf.co pull and now excluded by the digest updater together with the mmproj companions whose key would collide with the real bf16); the official Qwen3-Embedding-0.6B GGUF is apache-2.0 and non-gated; the registry manifest for qwen3.5:122b carries its model-layer sha256 (81.4 GB, floor 100 GB at the usual margin). Defaults move to the new family, the Qwen3 entries stay - partly continuity for installed machines, partly honesty about CI, whose caches and import fixtures are built on the 0.6B digests and would gain nothing from a migration. One deliberate gap: ollama's hf.co pull of the qwen35 architecture could not be verified from official notes, so the first install-test run after this catalog lands IS the smoke test, by design - the default-flag move routes the unattended installs through a Qwen3.5 pull. The kernel becomes a stated choice. Survey findings (2026-10): 24.04's GA kernel is 6.8 for the whole LTS life while the HWE stack ships 6.17 and will roll to the 26.04 kernel - and the gap is not cosmetic for this product, because Strix Halo's gfx1151 does not exist for 6.8's amdgpu at all. Decision: GA stays the default (an appliance opts into movement, it does not wake up to it), and sibilla kernel hwe is the deliberate opt-in with the rolling nature printed before installing; the GA kernel stays bootable from GRUB. NPU note from the same survey: nothing appliance-worthy upstream yet (ollama and mainline llama.cpp have no NPU path; Intel's is an OpenVINO preview, AMD's lives outside our engine set), so HWE's newer intel_vpu/amdxdna drivers are future-proofing, not a feature. Structured outputs activated: both pinned engines already enforce response_format JSON schemas (ollama constrained decoding; vLLM 0.32's stable structured_outputs replacing guided_), so the work is a doc, a stdlib example and a CI run under the engine-discrimination policy. TTS watch note: ollama 0.40.8+ serves /v1/audio/speech with the phonon model, but Linux availability is unconfirmed (macOS-first rollout) and the 40m variants are CC BY-NC, outside the catalog policy - re-check next cycle, only the Apache base model qualifies. Toggles reload the gateway instead of restarting it, a product fix found by CI: the fleet test flipped metrics twice in quick succession and caddy hit systemd's start rate limit - and a user running two sibilla toggles back to back would hit the same wall. Every toggle that changes only the Caddyfile (mcp, speech, oidc, webui, metrics, tls) now uses systemctl reload-or-restart: a graceful config reload with no start-limit accounting and no dropped connections, falling back to a real restart only when caddy is down. Two restarts stay restarts on purpose: sibilla key rotates material that reaches caddy through an environment file, which systemd reads only at unit start, and sibilla remove restores a foreign configuration where a clean restart is the honest semantic. The big freshness pass, each bump verified against our integration points before moving. ollama 0.33.2 -> 0.40.11: ps placement format, OLLAMA_NO_CLOUD (plus the newer server.json opt-out), OLLAMA_VERSION installer pinning, the /v1 surface and the registry manifest mediaTypes all verified unchanged; the default context window is now 4096 (noted against the RAM floor margins), and upstream is growing its own /v1/audio endpoints - our gateway's speech route is written before the engine proxy, so whisper keeps answering /v1/audio/ by explicit design, not by accident. vLLM v0.27.1 -> v0.32.0 for three fixed GHSAs (chat-template resource exhaustion among them); the CORS-default break does not reach us because nothing browser-facing talks to vLLM directly, the gateway proxies server-side. whisper.cpp: upstream moved binary assets off semantic tags onto numbered build releases, so the pin moves to the build matching v1.9.5 (which brings ggml hardening: gguf integer-overflow and tensor-bounds fixes), with fresh hashes recorded at pin time as before. The first security patch release, and the pinning discipline paying for itself. Days after the v0.9.0 tag, oauth2-proxy v7.15.5 fixed two Critical authentication bypasses (GHSA-63jm-59jj-478j, GHSA-wr5q-7wxw-x568); the pinned-version policy that makes bumps deliberate also makes them one-line and instantly verifiable (upstream publishes per-asset checksums), so 0.9.1 shipped the fix before any 0.9 artifact was published - the 0.9.0 tag stays in history, unpublished, because a public tag is a promise and moving one breaks it. The WebUI listener learns the gateway's TLS. The :3000 site block follows MODE: internal serves the local-CA certificate for the same hostname (tls internal), acme reuses the certificate Caddy already holds for it - certificates belong to hostnames, not ports, so no second issuance happens - and plain http stays plain. sibilla oidc enable derives its default external URL from the same mode (never promising http where the listener answers https) and sets the session cookie Secure exactly when the URL is https. Survey note, same date: ds4 checked four weeks after our issue - still no tags, no releases, zero replies on #839, and no commits upstream since 2026-08-05; the gate holds, and a second silent cycle will justify evaluating a plan B for the larger-than-RAM story (ik_llama.cpp or llama.cpp direct, both watch-listed).
Changelog v0.14 (v0.9 cycle): fleet closes the cycle's feature list, designed by subtraction. The question "how do profiles reach many machines" had an expensive answer (an agent, a store, key distribution) and a cheap one that the v0.6 config-as-code design had already paid for: profiles are one file, apply is idempotent, apply check is a probe with an exit code - so sibilla fleet is a loop over a hosts file doing ssh, and NOTHING else. Decisions: transport is the operator's own ssh entirely (config, agent, aliases, jump hosts; the tool manages no credentials - the key-distribution problem is refused, not solved); remote privilege is sudo -n, because a password prompt over a batch channel hangs forever while a named refusal is instant; profiles travel over the same ssh channel via remote tee (no scp, no temp files) and carry no secrets by design, which is what makes the push safe by construction; aggregation is one exit code per subcommand (any failed host, any finding, any unhealthy host = nonzero) so cron gets a fleet probe for free; execution is sequential on purpose, output readability over speed, parallelism deferred until a real fleet asks for it. CI runs the whole surface against a real sshd on loopback (a fleet of one is still a fleet) and asserts that an unreachable host reddens the aggregate without hanging. OIDC implementation amendment to the design pass below: oauth2-proxy runs in PROXY mode, not behind forward_auth - implementing found that Caddy's forward_auth copies oauth2-proxy's 401 to the browser verbatim (no redirect to the login page without extra error-handling gymnastics), while proxy mode is oauth2-proxy's primary documented mode and performs the redirect dance natively. The chain on :3000 is Caddy -> oauth2-proxy (loopback 4180) -> WebUI (loopback 3001); with OIDC off Caddy proxies straight to 3001. The WebUI container binds loopback (HOST/PORT env) and every webui/oidc toggle re-renders the gateway; llmd-webui consequently depends on llmd-gateway. oauth2-proxy v7.15.4 pinned and verified against the per-asset sha256 files upstream publishes (MIT, license text verified); config in root-only /etc/llmd/oidc.env consumed via EnvironmentFile, which systemd reads before dropping to the DynamicUser. CI: dex v2.45.1 (memory storage, static client and password, approval skipped) on loopback 5556, a python stand-in on the WebUI's port because the flow under test is the chain rather than the multi-GB container, and curl walking the whole authorization-code flow: 302 to the provider without a session, credentials posted to dex's login form, callback, cookie, authenticated landing asserted on upstream content, direct access asserted again after disable. OIDC design pass, decisions recorded before code. Scope: OIDC protects the WebUI only - humans in a browser authenticate against the team's own IdP (bring-your-own: Entra, Keycloak, Google; the appliance bundles no IdP, dex appears only in CI as the test provider), while the API keeps bearer keys, because SDKs and agents do not speak OIDC comfortably and the boundary between human and machine access should be a clean one. Mechanism, constrained by the Caddy-vs-nginx ADR: stock Caddy has no OIDC module (caddy-security means an xcaddy custom build, already rejected), so authentication is delegated via forward_auth to oauth2-proxy - MIT, single Go binary, tagged releases with upstream per-asset sha256sum files (the llmfit playbook applies at its cleanest; license file to be re-verified at integration). Structural change that makes it clean: the WebUI container moves to loopback (HOST=127.0.0.1, port 3001) and Caddy fronts it on :3000 ALWAYS, OIDC or not - one uniform posture instead of a per-state container reconfiguration, with the WebUI's own login untouched when OIDC is off. When on, Caddy adds forward_auth to oauth2-proxy on loopback 4180 plus the /oauth2/* login-flow routes. sibilla oidc enable ISSUER CLIENT_ID reads the client secret on stdin (never argv, never shell history - the remote-kit rule), generates the cookie secret, and writes its own state file for the same reason mcp and speech have one. Secrets never enter profiles, so config-as-code carries OIDC=on|off at most. CI: dex as a containerized IdP, the full authorization-code flow driven by curl with a cookie jar in apt-install-test, and the rendered Caddyfile variants validated in lint. The first-boot model menu resolves the "model selection screen" half of the desktop-variant v1.0 criterion in console form. Design: an llmd-model-menu oneshot unit ordered Before both llmd-firstboot and getty@tty1 (the menu owns the console before login claims it), gated by conditions (appliance marker, no firstboot.done, no nomenu) plus in-script guards (no declared profile - automation always wins), drawing the auto-selector's exact allowed set (engine match, no embedding, no large: the giant stays an explicit opt-in even here) with the current choice marked as default and a 30-second read on the tty; timeout, EOF, invalid input and any draw failure all keep the default and never cost the boot (the block is ||-true by construction). Cloud images bake /etc/llmd/nomenu because cloud is automation by definition. Unattended ISO installs see only a 30-second pause on tty1 and identical outcomes, which is what keeps the whole existing CI contract green; the menu's own contract (selection, keep-paths, every gate, the exclusion of non-chat entries) is exercised in lint against the real catalog through env-overridable paths, including a separate input override because a test redirecting output to a file would truncate its own input. Speech joins the appliance. The verification spike found whisper.cpp ideal for the project's discipline: MIT, tagged releases carrying prebuilt Ubuntu binaries for both architectures (so the llmfit repack playbook applies literally, with the tarball sha256 recorded at pin time because upstream publishes no checksum file - fail-closed on mismatch or missing recording), a server with an OAI-like transcription API whose path is configurable (--inference-path /v1/audio/transcriptions), and ggml models hosted on Hugging Face, so the signed catalog covers the model with a plain LFS digest (role=speech, engines=[whisper]; the digest updater ignores it by its existing engine filter, and sibilla model use grew an engine guard so no catalog entry can reach the wrong engine's pull). Architecture mirrors MCP: whisper-server on loopback 8090 under a DynamicUser sandboxed unit that never reads keys, the gateway proxies /v1/audio/* inside the route block behind the 401, state in its own /etc/llmd/speech file, opt-in via sibilla speech enable/disable, SPEECH as a declarative profile key. ffmpeg is Recommends, not Depends: without it the endpoint accepts 16 kHz WAV and enable says so; with it the launcher adds --convert. The enable path verifies an already-present model file instead of downloading, which is the air-gapped delivery for free. Supply freshness in the same cycle: ollama pin 0.32.1 -> 0.33.2, motivated by resolved-metadata caching (time to first token roughly halved) and prefill restore points; the hardening drop-in with OLLAMA_NO_CLOUD=1 carries over and CI keeps asserting it on both install paths, which matters more with every release given upstream's growing cloud surface. vLLM container v0.25.1 -> v0.27.1: security patches and CVE fixes plus DeepSeek-V4, Kimi K3 and Qwen3.5 optimizations - the big-model bet reaching the datacenter tier through a supply bump. Expert streaming re-checked upstream: llama.cpp PR 25294 remains open pending maintainer review (as of July 2026, with maintainers preferring to evaluate competing swap architectures first), so the large tier's claim is unchanged and ds4 stays the owner of "larger than RAM", still gated on the answer to our issue.
Changelog v0.13 (v0.8 cycle): the big-model bet opened with a spike instead of code, and the spike paid for itself three times. Finding one: the pinned ollama does layer-level offload (num_gpu) but no MoE expert streaming from disk - that lives in llama.cpp and remains an open feature request upstream - so the honest claim on the shipped engine is "larger than VRAM", never "larger than RAM". Finding two: ds4, despite 11.7k stars and a serious QA-before-releases document, has zero releases, zero tags, zero binary assets - the llmfit playbook (repackage the pinned upstream asset, sha256-verified) has nothing to pin; the original veto (volatile model policy) has morphed into "no releases at all". Decision: engage upstream with an issue requesting tagged releases, offering the Debian packaging as motivation - the integration stays gated on having something to pin, and the issue is SibillaOS's first visible participation in the ecosystem. Finding three: large models on HF are almost always sharded GGUF, which the ollama hf.co pull path does not support - our own recorded limitation collides with the large tier. Decision: the HF-only source policy (a v0.3 design choice) is extended for the LARGE TIER ONLY to the ollama.com registry, whose manifests carry sha256 layer digests, so the digest-verification machinery (catalog, model use fail-closed, import, verify) survives the second source unchanged in principle - the catalog and the digest updater grow a registry-backed entry type. "Larger than RAM" remains ds4's story, gated as above. Decision record, engine coexistence for the unified-memory tier: "one engine per machine" was evaluated against fact and rejected for ds4 - ds4 is deliberately single-model (DeepSeek V4/GLM), so a ds4-only machine would lose embeddings, the small-model catalog, multi-model and RAG: half the shipped product for one model. The chosen design is coexistence via llama-swap (MIT-licensed Go binary, zero dependencies, single pinnable artifact with a real release cadence - the llmfit playbook applies), which extracts the model field from OpenAI-compatible requests and routes to the right upstream, AND manages memory by stopping and starting upstreams - decisive on unified-memory machines, where the resident ollama model must yield every byte of RAM when the 284B giant is requested. The chain on that tier only: caddy (auth, TLS, rate limit, unchanged) -> llama-swap -> ollama + ds4, both OpenAI-compatible so no translation anywhere. On every other machine nothing changes: the gateway keeps pointing straight at the single engine, and all existing guarantees carry over untouched. Both integrations stay gated on ds4 having something to pin. Bounding principle for the whole big-model track, stated once so no cycle erodes it: large models are ADDITIVE SUPPORT, never the default. The identity of the product is that first boot serves what the machine honestly runs; accordingly the model selector never auto-picks the large tier, the RAM floor refuses fail-closed (no --force) anything past physical memory, and an opt-in that fits still states its cost (RAM spill, slower generation) before downloading. Any big-model feature that cannot satisfy these three conditions does not ship. The principle immediately found two real holes on the import path, both closed: import --use wrote the served model without the embedding refusal or the RAM floor (the guards now run there exactly as in use; the import itself is kept), and the import match doubled the tag for registry ids ("gpt-oss:120b:120b") because the digest key already lives inside the id - the jq now appends the key only when the id does not end with it. The tier completed with a second entry (qwen3:235b, Apache-2.0, 142 GB model layer verified from the registry manifest, floor 170 GB at the same ~1.2x margin as gpt-oss) and docs/large-models.md, which states the tier's promise and its cost honestly. Man pages arrived in the same pass (deferred from v0.7): a single sibilla(1) troff page in llmd-hw covering every subcommand, gzipped reproducibly (-9n) at deb build, rendered fatally-on-warnings in lint and asserted inside the deb by the apt path. Survey note, same date: a second single-model disk-streaming project (kimi-k3-in-c, Kimi K3 2.78T from a 1.56 TB checkpoint in 8.24 GB RSS, C99, Apache-2.0, 5.7k stars) confirmed the category's pull and its immaturity in one stroke - engineering rigor (CI, weightless tests, byte-identical determinism), but CLI-only with no server or API, seconds-per-token throughput (26.5 s/token at 8 GB), a base model with no chat template, and no confirmable tagged release. Watch-listed; not integrable as an engine.
Changelog v0.12 (v0.7 cycle): the adoption reading made explicit - found, believed, working on real hardware - and the first two stages shipped. Positioning: the README answers "why not just Ollama" front and center (six differences in a table, with the honest closing that localhost-only users need none of it), because it is the objection every visitor holds and deducibility is not an answer. Proof: the terminal demo stops being acted - the lifecycle CI job records the real session with asciinema on every push (completion asserted present, API key asserted absent) and ships cast plus svg as artifacts; the release procedure swaps the hand-drawn stopgap for the recording. Supply freshness: ollama pin 0.31.1 -> 0.32.1, vLLM container pinned to v0.25.1 (a ":latest" had survived from the PoC, found by this pass), digests to be recorded for every catalog entry by the maintainer tool. Privacy finding turned into policy: recent ollama transparently offloads ":cloud" models to ollama.com and ships with cloud routing enabled by default (the journal showed OLLAMA_NO_CLOUD:false on our own installs) - the hardened unit now pins OLLAMA_NO_CLOUD=1 and CI asserts it on both the image and the apt path, because "nothing leaves the machine" has to include the engine's own cloud. Consumer GPU work, following the Strix Halo inbound: the real gap was not detection (llmd-hw-detect already handled AMD) but the ROCm runtime - ollama's installer bundles it only when it can see the GPU, and cloud images are baked in a GPU-less VM, so AMD deployments silently fell back to CPU; llmd-firstboot now completes the install on the deployed hardware when an AMD GPU is present and /usr/local/lib/ollama/rocm is absent (warn-only, network needed, air-gapped AMD a stated limit). status/doctor/bench stop being NVIDIA-only: AMD cards show by name via lspci with an explicit "ROCm runtime present/MISSING" line, because a silent CPU fallback is the worst possible first contact. The detection logic itself became a CI matrix: llmd-hw-detect probes plain command names, so PATH-prepended stubs exercise datacenter NVIDIA (vllm), consumer NVIDIA, AMD discrete, APU-with-rocm-smi and no-GPU deterministically on a bare runner. docs/validation/gpu.md is the tester guide and the explicit call for hands, including the HSA_OVERRIDE_GFX_VERSION pair collection for APUs (deliberately never set automatically: wrong values crash the runtime). CLI output style: a shared sourced helper (sibilla-style) gives the long-form commands the brand look - emerald values, dim labels, ASCII glyphs, an oracle header with version and host - under two hard rules that make it free of regressions: ANSI only when stdout is a TTY and NO_COLOR is unset (pipes and CI get byte-identical plain text, verified against the historical alignment), and ASCII-only glyphs because they survive the copy-paste into an issue while color does not. bench keeps its stdout as pure markdown (header on stderr) and doctor's pipeline through the redactor naturally strips color, which is fine for a paste-oriented report. Login branding: the appliance images ship an update-motd.d banner (ASCII oracle eye, version, served model, the three commands to start with; ANSI embedded on purpose, pam_motd renders the generated text on the login terminal where there is no tty to probe at generation time), gated behind the appliance marker inside the script itself so the very same deb stays silent on sibilla setup guests - CI asserts the banner on the image and the silence on the guest. The ISO GRUB menu was found already themed (emerald colors, branded entries) from an earlier cycle; a text echo above the menu was prototyped and dropped because text-mode GRUB redraws the screen and the rendering could not be guaranteed. Plymouth deferred to the desktop variant: the text console is a diagnostic surface here. The wallpaper was redesigned in the same pass ("quiet corner", chosen by the maintainer over six candidates across two iterations): near-black emerald field with the oracle eye small in the lower right, identity without intrusion, since desktops live on top of it; source stays SVG at 4K with the PNG rendered from it, and the ISO payload picks it up unchanged. The gold glint was removed from the eye across every shipped asset at the maintainer's call (the slit pupil carries the mark alone; gold survives only as terminal-window buttons and accent text). Final characterization pass: the gateway answers with Server: SibillaOS (deferred header op so it overrides proxied responses too - brand and one less fingerprint, asserted in CI), Open WebUI presents itself as SibillaOS via WEBUI_NAME (upstream appends its own attribution, fairly), and the GPU tester call gained a structured issue form so reports arrive uniform. Man pages noted and deferred to a later cycle. the local model as an MCP server, promoted from exploratory as the Model Context Protocol became the common integration point for agent frameworks. llmd-mcp ships a Streamable HTTP server in ~250 lines of Python standard library: the appliance pins every component it ships, and a dependency-free server is the one kind that never needs pinning. It is stateless by design (no sessions, one JSON response per request, protocol revisions 2025-03-26/06-18/11-25 negotiated at initialize; JSON-RPC batching refused, as the 2025-06-18 revision removed it) - deliberately aligned with the 2026-07-28 protocol revision, which drops protocol-level sessions entirely. Two tools: chat (delegates to the engine's OpenAI-compatible API on loopback, model from /etc/llmd/model) and list_models. Security posture identical to the API: the server listens on 127.0.0.1:8765 under a DynamicUser sandboxed unit and never reads the keys; the gateway proxies /mcp inside the route block behind the 401, so authentication stays in exactly one place. The MCP on/off state lives in its own file (/etc/llmd/mcp) rather than in gateway.conf, because the sibilla-tls and sibilla-metrics conf writers rewrite that file with only the keys they know about and would silently drop a new one. Opt-in via sibilla mcp enable/disable, consistent with webui and metrics. Lint renders and validates the MCP Caddyfile and asserts the /mcp route sits after the 401; the apt-install-test job exercises initialize, tools/list and a real tools/call through the gateway with a valid key, asserts the 401 without one, and verifies disable closes the endpoint. The cycle was then extended (an MCP-only release felt thin) with the first air-gapped brick: sibilla model import FILE hashes the file and reverse-looks it up in the per-quant digests of the signed catalog - identification and integrity from the same signed record, no --force to bypass it - then feeds it to ollama create (content-addressed blobs, so llmd-model-verify closes the loop on the stored artifact; a failed verify rolls the import back). sibilla model use now skips the pull when the model is already in the local store, which is what makes the imported model servable on a machine with no network (and stops use from silently refreshing a pinned artifact). CI covers the whole gate: a reviewed artifact fetched raw from HF imports and serves with no pull, a random file is refused. Third pillar of the cycle, configuration as code: a declared profile (plain KEY=value at /etc/llmd/profile - MODEL, TLS, METRICS, MCP, WEBUI, every key optional so partial profiles compose) and an idempotent sibilla apply that reads the machine state from the same files the toggles own (model, gateway.conf, mcp, webui.enabled), validates the whole profile before touching anything, and runs only the commands that close a gap: the existing sibilla commands are the primitives, apply just decides which need to run. apply export prints the current state as a profile, which makes replication one file copy; API keys are deliberately excluded from profiles (per-machine secrets, sibilla key owns them), and engine switching is refused (a hardware decision, sibilla setup --engine). Fleet story: llmd-firstboot seeds /etc/llmd/model from a declared profile BEFORE model auto-selection (the declared model is what gets downloaded, not the default) and reconciles the rest at the end of first boot, warn-only so a bad profile line still ends in a serving machine; cloud-init writes one file and the machine converges. CI exercises export accuracy (and greps it for key material), a two-axis drift application with the change count asserted, idempotence (second apply reports zero changes), invalid-value rejection before any action, and that switching to the locally imported model does not pull. The air-gapped story then completes on top of import and profile: tools/build-airgap-payload.sh prepares the companion volume on a connected machine, resolving each model on Hugging Face BY its catalog digest (the LFS oid is the identity, the filename just its address) and verifying the download before it enters the payload, plus a generated or provided profile so the payload is self-sufficient; llmd-firstboot mounts the SIBILLA-AIRGAP-labeled volume early (the profile must seed the model choice), imports every model file through the sibilla-model import digest gate once the engine is up (warn-only: a bad file is not a failed boot), skips the network pull when the chosen model is already local, and unmounts. The airgap-test CI job takes the promise literally: the baked cloud image boots with only the payload disk attached and QEMU user networking in restrict=on mode (hostfwd for SSH works, every outbound packet is dropped), and the job asserts payload detection, import through the digest gate, the skipped pull, that the guest itself cannot reach the internet, and a real chat completion. vLLM payloads (container image plus safetensors) are explicitly out of scope for now. Two closing additions to the cycle: sibilla bench measures through the gateway (auth included, so the numbers are what a client experiences) - time to first token from the first streamed chunk, generation speed from the engine's own token usage over wall time, median of three runs against outliers - and prints a shareable markdown table; and the upgrade-test CI job turns the v0.4 apt-updates promise and the v1.0 upgrade-path criterion into an assert: install the latest published release from the live Pages repository, upgrade to the branch packages (versioned RELEASED+ci1 so apt sees an upgrade) with the exact apt upgrade command the docs give (the apt CLI, unlike apt-get upgrade, installs the new dependencies a grown metapackage brings in, e.g. llmd-mcp), then require the serving machine to survive with its key byte-identical, its model unchanged, the gateway answering 200 with the pre-upgrade key, and the branch's new subcommands present. Embeddings complete the agent/RAG story: the catalog gains a role field (schema stays 2, the field is optional and catalog and consumers always travel together in llmd-hw), entries with role=embedding are excluded from chat selection at every consumer (llmd-model-select's allowed set and fallback, sibilla model list which shows them separately, sibilla model use which refuses them with a pointer), and sibilla model pull stages any catalog model - digest-verified, fail-closed, rollback on mismatch - without touching what is served. The gateway needs no change: /v1/embeddings was already proxied wholesale, ollama has spoken the OpenAI embeddings shape since 0.2.6. First entry nomic-embed-text v1.5 Q8_0 (Apache-2.0, non-gated, nomic-bert, digest recorded from the HF LFS oid); CI pulls it, asserts a real vector through the authenticated gateway, that the chat default is untouched, and that both the selector and model use keep refusing it as a chat model. Decision record, gateway choice revisited for rate limiting: nginx was evaluated as a Caddy replacement. For nginx: native limit_req with any variable as the zone key (per-IP and per-bearer-key limiting with no custom binary, exactly what Caddy cannot do without an xcaddy build), and residence in Ubuntu main (verified: nginx 1.24 in pool/main with Canonical security updates) versus Caddy's universe (which, also verified, does receive security updates - 2.6.2-6ubuntu0.24.04.3 in noble-security - so the gap is guarantee strength, not existence). Against: we actively use three Caddy features that nginx replaces only with components we would own or add. tls internal (the automatic local CA behind sibilla tls enable) would become our own openssl CA with a lifecycle we maintain; native ACME would become certbot, which lives in universe or a snap and so gives back the main-component advantage that motivated the move; native Prometheus metrics would regress hard: the packaged prometheus-nginx-exporter (verified: universe, 1.1.0) only reads nginx OSS stub_status, which has connection and request totals but no latency histograms and no per-status counts, i.e. most of what our dashboard shows would need nginx Plus, out-of-archive modules, or log-scraping machinery. The Debian angle is neutral: caddy is in Debian stable too (verified: trixie ships 2.6.2, 2.11 in testing). Auth (map+include vs header_regexp+env) and future OIDC (auth_request vs forward_auth) are parity; performance is irrelevant at inference-bound request rates. And the gateway is the most security-critical, most CI-specified component in the project, now including upgrade continuity for existing installs, which a proxy swap would have to preserve through a deb dependency change and a live service handover. Decision: stay on Caddy; ship the proxy-agnostic kernel-level per-IP baseline; nginx is the committed migration path the day per-key fairness limiting becomes a real deployment requirement or an enterprise review blocks on universe - a dedicated cycle, not a custom Caddy build. The migration stays affordable by design: every consumer goes through llmd-gateway-render and the sibilla commands, so the proxy is an implementation detail behind small, CI-specified interfaces. Developer kit: sibilla connect grows single-purpose outputs that print only their payload so redirection yields a valid file - --env (the three variables every OpenAI SDK and framework reads), --mcp (the claude mcp add command with the key filled in, /mcp derived from the gateway base), --snippet python|node (SDK boilerplate) - and --write now places ~/.aider.conf.yml next to the Continue config, same backup-once rule, same SUDO_USER resolution, 600 permissions since both files carry the key. Continue covers JetBrains as well as VS Code (same ~/.continue), which the kit now says; Cline stores its settings in VS Code internal state, so it stays paste-by-hand rather than pretending to be automated. CI asserts every output (payload present, key filled, unknown snippet language refused) and both written files. A remote-workstation kit is deferred: it deserves design, the key would cross the shell history. Rate limiting baseline, closing the ADR's commitment: appliance first boot inserts a hashlimit rule into ufw's before.rules (marker on both lines, idempotent, placed before COMMIT so the loopback accept keeps priority) dropping NEW connections to 8080 above 2/s sustained with a burst of 60 per source IP - keep-alive clients never notice, floods hit a kernel wall before caddy sees them; proxy-agnostic by construction, so it survives any future gateway migration. sibilla remove strips the rule by marker and reloads. The MCP unit moved to Type=notify with an sd_notify READY from the server right after bind, after CI caught the enable race once (empty 502 on the first initialize): systemctl start now returns only when the endpoint answers.
Changelog v0.10 (v0.5 cycle): the zero-reinstall path. An llmd metapackage plus sibilla setup turn an existing Ubuntu 24.04 into the appliance without touching the OS install: hardware detection, pinned ollama install when missing, model selection and the shared idempotent first-boot logic. Appliance-only behaviors (firewall takeover, apt source activation) moved behind an /etc/llmd/appliance marker that only the ISO and cloud images create, so the apt path stays a good guest. The good-guest lifecycle completes the story: sibilla setup records what it installed (ollama marker, pre-existing Caddyfile backed up before the render, which used to clobber it), sibilla remove tears down only what SibillaOS put on the machine and restores what it displaced (the purge of its own package is the final exec, bash keeps reading from the unlinked fd), sibilla doctor produces a paste-ready secret-free report, and sibilla connect --write places the Continue configuration with a backup. A dedicated CI job exercises the whole cycle on a native runner: local apt repo, install, setup, authenticated API, doctor without key leaks, connect --write, removal verified down to the dead gateway port. README refreshed around this path (terminal demo SVG, branded architecture diagram).
Changelog v0.9 (v0.4 cycle): gateway hardening. Multiple API keys: the default stays in /etc/llmd/apikey (compatibility with sibilla-connect and the docs), extra keys live one-per-file in /etc/llmd/apikeys.d, and llmd-keys-render folds them into a regex alternation handed to the Caddy matcher through the LLMD_KEYS_ALT environment variable (the matcher moved from an equality check to header_regexp; generated keys are alphanumeric, and llmd-keys-render refuses anything that is not, so the regex cannot be corrupted). sibilla key list/add/revoke/rotate manages the lifecycle; every change re-renders the env and restarts caddy, so revocation is immediate. The gateway now writes structured JSON access logs to /var/log/caddy/sibilla-access.log (directory created at first boot: the caddy user does not exist at deb build time). CI exercises the whole lifecycle: added key accepted, revoked key rejected, default rotation invalidating the old key, access log populated. The workflow token dropped to contents: read by default after CodeQL flagged the permissionless jobs. APT repository: flat layout built by apt-ftparchive and signed with the project GPG key (private half in CI secrets, public half committed under apt/ and embedded into llmd-hw as keyring plus sources entry, so installed systems upgrade the llmd packages through plain apt). The publish-apt workflow verifies the repository with apt itself against a local source on every push, signs with a throwaway key on branches, refuses to run on tags without the project secret, and deploys to GitHub Pages on releases. Deb versions follow the release tag on tag builds so upgrades are visible to apt. Catalog trust (schema 2): the maintainer signs catalog/models.json with the project key (detached armored signature committed next to it); the build refuses to embed a catalog that does not verify, and at runtime llmd-catalog-verify gates every consumer (model-select, sibilla model list/use) with a three-state policy: valid proceeds, invalid always aborts, unsigned transitional builds warn and continue. Model integrity: catalog entries optionally record per-quant sha256 digests (the HF LFS oid, which is also the ollama blob name after a pull, verified against a live CI pull); llmd-model-verify checks the pulled blob, sibilla model use fails closed on mismatch, first boot warns loudly but completes (availability over lockout when the upstream repo re-uploads a file). tools/update-digests.sh refreshes the digests from the HF API; the 0.6B CI model joined the catalog so the whole chain is exercised on every install test. SBOM and CVE scanning: syft (pinned) generates SPDX and CycloneDX SBOMs of the llmd packages, the install test captures the dpkg inventory of the actually installed system over SSH, and trivy (pinned) scans that inventory; the gate fails only on CRITICAL findings with a fix available, with a written triage policy and expiring .trivyignore exceptions (docs/supply-chain.md). SBOMs and inventory attach to releases. Hardening from the July 9 mirror incident, recorded for posterity: the autoinstall pins the archive mirror with geoip off, sets Acquire::Languages none and Acquire::Retries 3 in the target (one stale Translation-en index on a mid-sync CDN failed the installer's final apt-get update for hours; translations have no function on a server), the cloud bake persists the same apt config, and autoinstall error-commands dump the target apt state and a faithful chroot reproduction (with /run bind-mounted, since a bare chroot always fails DNS) to the serial console before powering off, so installer failures diagnose themselves in minutes instead of timing out blind. Secure Boot: every ISO now boots in CI under the OVMF secboot firmware build (q35 with SMM, flash write protection, Microsoft keys enrolled in the variables), and the check requires the kernel's own "Secure boot enabled" report on the serial console, not just a successful boot: the repack only overlays files and leaves the signed shim/GRUB EFI chain byte-identical, and this asserts it stays that way.
Changelog v0.8 (v0.3 cycle): unified sibilla CLI as the single entry point (status, model, tls, webui, connect), with the sibilla-* commands kept as aliases. sibilla status is a real health view (engine unit state, models served by the engine API, model store disk usage, GPU utilization via nvidia-smi, gateway reachability honoring the configured mode) and exits nonzero when the engine or gateway is down, so it doubles as a machine check. sibilla model rm and prune reclaim disk; both refuse to touch the served model. CI covers status output and the prune surviving-model invariant. Security baseline: ufw enabled at first boot with only SSH and the gateway port open (webui's 3000 stays closed until the admin opens it; sibilla-tls --acme opens 80/443 itself), unattended security updates configured via an apt.conf.d file shipped in llmd-hw, hardening drop-ins extended to caddy and the firstboot unit, no-new-privileges on both containers. CI asserts the firewall state and the hardening directives with systemctl show (deterministic, no score thresholds) and logs the systemd-analyze security exposure scores for the record. Observability: sibilla metrics enable adds an authenticated /metrics/gateway endpoint (Caddy metrics handler; the site body moved into a route block because Caddy's directive order runs handle-like directives before respond, which would have served metrics without auth). Findings recorded: Ollama 0.31.1 has no Prometheus endpoint (checked in server/routes.go), and Caddy's HTTP instrumentation is opt-in per server even in the 2.6.2 that noble ships (wrapMiddleware only instruments when server metrics are configured; checked in modules/caddyhttp/routes.go after CI caught an exposition with no caddy_http_ series): the renderer emits the servers-metrics global option whenever METRICS=on. vLLM's native /metrics passes through the proxy. Grafana dashboard and scrape config in docs/observability/. Cloud image: cloud/build-cloud.sh bakes the official noble cloud image in a single QEMU boot with a NoCloud seed (llmd debs + pinned ollama installer), then reseals with cloud-init clean --logs --machine-id so the deployer's user-data applies at the real first boot; no libguestfs, same toolchain as the ISO pipeline. Engine and model selection moved into llmd-firstboot as a fallback (runs on the deployed hardware, where the GPU is visible; no-op on ISO installs). The CI cloud-test deploys the qcow2 with a plain user seed and requires a real chat completion plus a clean sibilla status. arm64: the cloud image and the llmfit deb (aarch64 musl release asset, sha256-verified like the amd64 one) build and deploy in CI as a matrix on GitHub's native arm64 runners; those runners expose no /dev/kvm, so QEMU runs under TCG (machine virt, AAVMF firmware) with wider timeouts, and the deploy test asserts the API surface (gateway auth, served model, sibilla status) while token generation stays informational. The arm64 ISO is deferred: the install test would run under pure emulation. curl added to the llmd-hw and llmd-firstboot dependencies: the scripts always needed it and only worked because the base images ship it.
Changelog v0.7 (post v0.1.0): llmfit now ships as a deb built from the pinned upstream release, removing the install-time dependency on its installer. Open WebUI is available as an opt-in Quadlet container (sibilla-webui enable, port 3000, host networking to reach the loopback-only ollama, own login). The gateway config is rendered by llmd-gateway-render from /etc/llmd/gateway.conf, and sibilla-tls switches between plain HTTP, HTTPS with Caddy's local CA for a hostname, and public ACME; the TLS path is exercised in CI. The proxy rewrites the upstream Host header to the upstream address: ollama's DNS-rebinding guard (allowedHostsMiddleware in server/routes.go) rejects non-local Host values on a loopback listener with an empty 403, which silently broke every authenticated request as soon as the gateway served a hostname. CI got stricter in return: the lint job validates all three rendered Caddyfiles with caddy validate and dry-runs the Quadlet generator on the .container files, and the install test checks the wrong-key 401, the webui flag gating (enable/disable without waiting for the image pull), the vllm condition staying off on ollama machines, and the sibilla-tls disable path back to plain HTTP.
Changelog v0.6: release ISOs make the standard installer sections interactive (locale, keyboard, network, storage, identity) while the llmd steps stay automated; CI images remain fully unattended. Model choice happens after install with the sibilla-model CLI (list/use); a boot-time selection menu was considered and deferred, since subiquity cannot host custom screens without a fork. The forced password change is superseded: release users set their own credentials in the installer.
Changelog v0.5: the ISO is now a repack of the official Ubuntu live-server image. The from-scratch debootstrap ISO booted (verified in CI) but had no working installer: subiquity is shipped as a snap in official images and the autoinstall trigger needs cloud-init, neither of which were in our squashfs. Repacking reuses the proven installer stack as is.
1. Goal¶
A minimal Linux distribution with an integrated LLM inference engine (vLLM or Ollama, selected automatically from the detected hardware). The model is recommended, chosen and downloaded during installation. At first boot the system serves an OpenAI-compatible API.
Targets: headless servers and desktop workstations.
2. Decisions¶
| Area | Decision |
|---|---|
| Name | SibillaOS (checked available on 2026-07-03; only namesake found: a Python ORM called "sibilla") |
| Base | Ubuntu 24.04 LTS |
| Engine | Automatic detection: vLLM or Ollama depending on hardware |
| vLLM deployment | OCI container (official image, podman + systemd/Quadlet) |
| Targets | Headless server and desktop |
| Models | Downloaded from Hugging Face during install, recommended by llmfit |
| Catalog | Curated, signed list (subset of the llmfit catalog) |
| Project license | Apache-2.0 for the llmd-* components |
| Visual identity | Emerald serpent eye: lens with a vertical slit pupil, orbiting rune diamonds, golden glint. Palette: forest #0e2a1c, emerald #3ddc84, light green #a8e063, gold accent #f5c542 |
3. Base distribution¶
Ubuntu 24.04 LTS (server: minimal ISO; desktop: GNOME variant).
Reasons: NVIDIA drivers and the CUDA runtime are available and well maintained in the official repositories, autoinstall (Subiquity) is mature for automated installs, and the release has five years of support. A valid alternative for a leaner, community-driven base is Debian 13 "trixie" (current stable, 6.12 LTS kernel, supported until 2028 plus LTS until 2030, see debian.org/releases); its drawback is older NVIDIA drivers. Ubuntu 26.04 LTS is newer but worth adopting only once the NVIDIA ecosystem catches up.
4. Stack¶
+---------------------------------------------+
| (optional) Open WebUI |
+---------------------------------------------+
| llmd-gateway: reverse proxy (Caddy) |
| single OpenAI-compatible API on :8080 |
+----------------------+----------------------+
| Ollama (:11434) | vLLM (:8000) |
| systemd service | container (Quadlet) |
+----------------------+----------------------+
| llmd-hw: hardware detection + llmfit |
| (model recommendation), NVIDIA/CUDA or |
| ROCm drivers, CPU fallback |
+---------------------------------------------+
| Ubuntu 24.04 LTS minimal (server) |
| + optional desktop (GNOME minimal) |
+---------------------------------------------+
Our components (Debian packages):
- llmd-hw: GPU detection (VRAM, vendor, compute capability) for the engine choice; delegates model recommendation to llmfit.
- llmfit (packaged by us as a .deb): existing Rust tool, MIT licensed, that detects the hardware and recommends models with the best quantization and a speed estimate. Scriptable JSON output (
llmfit recommend --json --limit 5), hardware overrides (--memory=24G --ram=64G), use-case filter (--use-case coding). Supports multi-GPU, MoE models, and the Ollama, vLLM and llama.cpp runtimes. Sources: GitHub, llmfit.org. - llmd-engine-ollama / llmd-engine-vllm: packaged engines with hardened systemd units.
- llmd-gateway: single OpenAI-compatible endpoint whatever the engine (Ollama docs, vLLM docs): routing and API key. Defaults to plain HTTP on 8080; sibilla-tls switches to HTTPS with the local CA for a hostname, or to public ACME. The config is rendered by llmd-gateway-render from /etc/llmd/gateway.conf.
- llmd-firstboot: completes or resumes the model download at first boot if it was interrupted during install.
5. Engine selection (in the installer)¶
| Detected hardware | Default |
|---|---|
| NVIDIA datacenter GPU / >= 24 GB VRAM | vLLM |
| NVIDIA consumer GPU / AMD with limited VRAM | Ollama |
| CPU only | Ollama (llama.cpp backend) |
The user can always override the choice. Verified requirements: vLLM supports NVIDIA (primary), AMD MI200/MI300/MI350 and RX 7900/9000, x86/ARM CPUs (vLLM GPU installation); Ollama detects CUDA/ROCm automatically and scales layers to the available VRAM (ollama.com/blog).
6. Installer: engine plus model recommendation via llmfit¶
Base: Ubuntu autoinstall (Subiquity) for the server ISO; the desktop variant uses the same backend. For full UI control: Calamares with a custom module.
Current flow (v0.6): release ISOs show the standard subiquity screens (locale, keyboard, network, storage, identity) via interactive-sections; everything llmd-specific runs automated in the late-commands: hardware detection picks the engine, llmfit picks the default model, firstboot downloads it and brings up the gateway. After install, sibilla-model list shows the curated models that fit the machine plus the llmfit recommendations, and sibilla-model use ID downloads and switches the served model.
Deferred to v1.x: a model selection screen inside the installer itself (subiquity cannot host custom screens without a fork; candidates are a Calamares module for the desktop variant or a first-boot console menu), plus install-time configuration of API port, Open WebUI and LAN exposure.
Model source: Hugging Face (single source)¶
Hugging Face works as the single source for both engines:
- Ollama: direct GGUF pull from HF without a Modelfile:
ollama run hf.co/{user}/{repo}:{quant}(e.g.hf.co/bartowski/Llama-3.2-3B-Instruct-GGUF:IQ3_M), see the HF documentation. Known limit: sharded GGUF files are not supported directly and must be merged first withllama-gguf-split --merge; the curated list must only include single-file repos. - vLLM: loads HF repos in safetensors format natively.
Gated repos (Llama, Gemma and similar require accepting terms and an HF token): by default the installer only offers non-gated models; gated support (HF token input) can land in v1.x.
Note: llmfit is currently distributed via script/brew/scoop/cargo/pip, not as a .deb (GitHub, Install section); we package it ourselves (static Rust binary, straightforward). Its model catalog must also be validated and narrowed to a curated list for installer use.
7. ISO build¶
- Tooling: repack of the official Ubuntu 24.04 live-server ISO with xorriso (
-boot_image any replaykeeps the original hybrid BIOS+UEFI boot setup). The build overlays the autoinstall seed (/nocloud), the llmd packages and branding (/sibilla) and a custom GRUB menu. No root required. - The llmd packages, engines and llmfit are installed by autoinstall late-commands; NVIDIA drivers come from the Ubuntu restricted component via the installer's own driver handling.
- ISO size: close to the upstream live-server image (about 3 GB).
- Own APT repository for the llmd-* packages and the engines. vLLM runs in an OCI container (official vllm/vllm-openai image) managed by podman with systemd units generated via Quadlet: CUDA dependencies isolated from the system, atomic updates, instant rollback. The image is not shipped in the ISO (several GB); it is downloaded at install time only when the hardware justifies vLLM.
- Package and model-list signing (GPG). Secure Boot: Ubuntu signed kernel/shim, NVIDIA drivers with MOK.
8. Security¶
- systemd services with sandboxing (DynamicUser, ProtectSystem, NoNewPrivileges).
- API protected by a mandatory bearer token through the gateway. Plain HTTP by default (do not expose beyond the LAN); sibilla-tls enables HTTPS with a hostname (local CA or ACME).
- unattended-upgrades for the base system; separate channel for engines and models.
- Engine versions are pinned in the installer (OLLAMA_VERSION for the ollama install script, a fixed release asset for llmfit) and bumped deliberately; the CI install test validates every bump.
- The default user password must be changed at first login (chage -d 0). CI images skip this through the CI marker file, since the ssh automation needs the known password.
- No telemetry.
9. Licensing¶
(Technical analysis, not legal advice; a legal review is needed before the public release.)
Project license (llmd-* components, installer, build scripts): Apache-2.0. Permissive, easy to adopt in enterprise contexts, includes an explicit patent grant (which MIT lacks, relevant in AI), and consistent with the ecosystem we integrate. Verified component compatibility:
| Component | License | Source |
|---|---|---|
| vLLM | Apache-2.0 | github.com/vllm-project/vllm/LICENSE |
| Ollama | MIT | github.com/ollama/ollama |
| llmfit | MIT | github.com/AlexsJones/llmfit |
| Ubuntu base | various, redistribution handled by Canonical | - |
All permissive and compatible with Apache-2.0: we can redistribute them in the ISO keeping the original license files.
NVIDIA drivers: the legally delicate part. The License For Customer Use of NVIDIA Software (Linux) allows redistribution of unmodified Linux drivers, with conditions; distributions handle them in separate components (Ubuntu "restricted"). Lowest-risk strategy: do not redistribute NVIDIA files directly, ship the driver packages already packaged by Ubuntu (as the Ubuntu ISO itself does), or fetch them from the Ubuntu repos at install time. Modern NVIDIA kernel modules (the open series, default for Turing and later) are dual MIT/GPL-2.0 (github.com/NVIDIA/open-gpu-kernel-modules); the userspace/CUDA libraries remain proprietary. When in doubt: nvidia-compute-license-questions@nvidia.com.
Models: the default curated list only includes permissively licensed, non-gated HF models. Models under community licenses (Llama, Gemma) are not redistributed by us: the user downloads them directly from HF accepting their terms (v1.x, with an HF token). llmfit already has a built-in license filter.
Curated list: launch candidates¶
Selection based on mid-2026 sources (permissively licensed families available on HF/vLLM/Ollama, see the HF blog and PocketLLM license-ranked):
| Hardware tier | Engine | Candidates (license) |
|---|---|---|
| CPU only / VRAM <= 8 GB | Ollama (quantized GGUF) | Qwen3 4B (Apache-2.0), Phi-4-mini (MIT) |
| Consumer GPU 8-24 GB | Ollama (quantized GGUF) | Qwen3 14B / 30B-A3B (Apache-2.0), Phi-4 14B (MIT), Mistral Small (Apache-2.0), DeepSeek-R1-Distill (MIT) |
| Datacenter GPU >= 24 GB | vLLM (safetensors, FP8 where available) | Qwen3.5-35B-A3B (Apache-2.0), Mistral Small 4 (Apache-2.0), Mistral Large 3 (Apache-2.0, multi-GPU) |
To verify during implementation (not confirmed from primary sources): the exact HF repo ids, the absence of gating for each repo, and the current versions of each family (the sources also mention DeepSeek V4 and GLM-5, both MIT, but they are very large models, out of scope for launch). The optimal quantization per tier is computed by llmfit at runtime: the list pins the allowed families, not the files.
10. Roadmap¶
| Phase | Scope | Rough duration |
|---|---|---|
| PoC | Minimal Ubuntu 24.04 ISO + preinstalled Ollama + autoinstall with hardcoded model download | 2-3 weeks |
| MVP | llmfit in the installer (recommend --json), llmd-hw, gateway, firstboot resume | 4-6 weeks |
| v1.0 | vLLM as second option with auto-detect, desktop variant + Open WebUI, ISO build CI | 6-8 weeks |
11. Decision status¶
All design decisions are made (see the table in section 2). What remains is verification work, not design:
- Confirm HF repo ids and gating for the candidate models (section 9) during implementation.
- Legal review before the public release (NVIDIA drivers in particular).
- Branding: logo and domain for SibillaOS (name checked available, domain to register).
Verified sources (2026-07-03)¶
- llmfit on GitHub (MIT, CLI/TUI, recommend --json, Ollama/vLLM/llama.cpp providers) and llmfit.org
- Debian 13 "trixie" release information
- vLLM GPU installation and supported hardware and vLLM docs
- Ollama OpenAI compatibility and Ollama blog
- Hugging Face: use Ollama with any GGUF model
- vLLM LICENSE (Apache-2.0)
- NVIDIA License For Customer Use of NVIDIA Software (Linux) and NVIDIA open-gpu-kernel-modules (MIT/GPL-2.0)
- Permissive models 2026: HF blog, best open-source LLMs 2026 and PocketLLM license-ranked (secondary sources: repo ids to confirm)
- Name check (2026-07-03): no distribution named "SibillaOS"/"InferOS"/"LemmaOS" found; "GenioOS" discarded for collisions (MediaTek Genio, Quidgest Genio, Semvox geni:OS)