Model download policy
Purpose: Define the rules that govern how LLM model weights are downloaded, verified, and surfaced to players. No model weights are bundled in Steam depots or in the repository. All weights are downloaded explicitly after first launch at the player’s request.
Scope: Conversation Simulator Steam edition and builds from source. The policy applies to registry-managed models and to user-supplied GGUF files. Section 8 covers the inference engine binary and the update manifest that builds from source fetch. The optional voice install (speech engine, Whisper and Kokoro models) is covered under Voice models.
Compliance cross-references: MD-01 (silent download), MD-02 (checksum), MD-03 (licence disclosure), MD-04 (bundled weights) in the studio’s Steam compliance and risk register, kept outside this repository.
1. Download rules
Section titled “1. Download rules”No silent downloads
Section titled “No silent downloads”No model download may be triggered by:
- App startup or splash screen
- Background update checking
- Any installer script or post-install hook
- Pack loading or session start
Every download begins with an explicit player action on a screen that states the model’s size and licence (see Section 4):
- Set me up on the Welcome screen. The card reads “Downloads the AI model (2.5 GB, Apache-2.0). Works offline afterwards.” with the size and licence taken from the registry.
- Confirm & install on the Confirm model install screen, reached from the Install recommended model card in the first-run chooser or in the model manager.
Until the player presses one of these, zero bytes are transferred. The one exception is a download the player already confirmed and that the app was closed in the middle of; it is continued at the next launch (see Section 6).
Cancelling a download leaves no model file on disk: the in-progress .part
file is deleted on cancel.
Only registry-managed and user-supplied models
Section titled “Only registry-managed and user-supplied models”Two sources of model files are accepted:
| Source | Who controls the URL | Checksum verified? |
|---|---|---|
| Registry-managed | model-registry/registry.yaml | YES — mandatory |
| User-supplied GGUF | Player selects a local file path | NO — cannot verify unknown provenance; player is informed |
The app never fetches model weights from any URL other than the one in the registry entry, and a user-supplied GGUF file involves no network fetch at all. There is no auto-update or silent version upgrade for installed model weights.
The chooser’s second card, Use existing Ollama model, connects to a model that the player’s own Ollama installation already holds. The app downloads nothing for it (the step tells the player to pull a model with Ollama first), so it is outside this policy. The demo edition does not show the card.
Destination directory
Section titled “Destination directory”Downloaded model files are written to models/llm/ under the app’s data
folder. The desktop shell builds that folder from the operating system’s
local data directory and the app identifier com.outrightmental.convsim,
and passes it to convsim-core as CONVSIM_DATA_ROOT whenever it launches
the service, which every packaged build does. The demo edition’s shell uses
the same identifier for this folder even though its bundle identifier
differs, so the demo and the full app share one models folder:
| Platform | Models folder |
|---|---|
| Linux / Steam Deck | $XDG_DATA_HOME/com.outrightmental.convsim/models/llm/, or ~/.local/share/com.outrightmental.convsim/models/llm/ when XDG_DATA_HOME is unset |
| macOS | ~/Library/Application Support/com.outrightmental.convsim/models/llm/ |
| Windows | %LOCALAPPDATA%\com.outrightmental.convsim\models\llm\ |
Settings shows the real path in the Local folders list as the Models
row (GET /api/privacy/folders). The app has no setting for moving the
folder; developers can point CONVSIM_DATA_ROOT or CONVSIM_MODELS_DIR
elsewhere. When convsim-core is started without CONVSIM_DATA_ROOT, for
example a developer running the Python service on its own,
convsim_core.paths.platform_data_root falls back to its own defaults:
$XDG_DATA_HOME/convsim (or ~/.local/share/convsim) on Linux and
%LOCALAPPDATA%\outrightmental\convsim on Windows, which are different
folders from the ones the desktop app uses; the macOS fallback is the same
folder as above.
The Saves to row of the confirmation screen (Storage path in the
model manager) shows the full path the file will be written to: the same
Models folder, read from GET /api/privacy/folders, followed by
<model-id>.gguf. While that folder is loading, or if the request fails, the
row is labelled File name and shows <model-id>.gguf alone.
Files are named after the model ID:
<models folder>/ qwen3-4b-instruct-2507-q4_k_m.gguf qwen3-8b-instruct-q4_k_m.gguf ... qwen3-4b-instruct-2507-q4_k_m.gguf.part # only while a download is in progressVoice models
Section titled “Voice models”Voice is an optional install, started by Install voice on the conversation brief or in Settings → Voice output. It follows this policy’s rules: the card states the total size, and its What gets downloaded list names each asset’s source, licence and size, before the button is pressed; every file is verified against a pinned SHA-256 before it is used; a cancel leaves no partial download behind.
Three things are fetched, into models/voice/ under the app’s data folder:
the sherpa-onnx speech engine for this platform, the Whisper base listening
model, and the Kokoro v1.0 voices with their pronunciation data. The pins
live in services/convsim-core/convsim_core/voice/catalog.py, not in the
model registry. The voice setup reference lists each
file, its source and its licence, and where the rules differ from an LLM
download (a voice install is not resumed automatically at the next launch;
pressing Install voice again continues it).
The developer scripts under runtimes/ are the manual alternative: a
whisper-cli with a GGML model, a Kokoro server the player runs. An in-app
install takes over from them.
2. Mirror and CDN policy
Section titled “2. Mirror and CDN policy”Primary source: HuggingFace Hub
Section titled “Primary source: HuggingFace Hub”All registry-managed models list provider: huggingface in model-registry/registry.yaml.
The download URL points directly to HuggingFace Hub (e.g.
https://huggingface.co/<org>/<repo>/resolve/<ref>/<filename>.gguf).
All registry-managed URLs are pinned to a specific repo revision (commit SHA)
and paired with a verified checksum. The schema keeps a PENDING sentinel for
a pre-release entry, but no shipped entry carries one: the per-PR test
test_actual_registry_no_pending_values and the nightly
scripts/validate-registry.py run both reject it. Should one ever appear, the
confirmation screen flags the checksum as not yet confirmed and the setup
pipeline refuses to download it (see Section 4).
No automatic mirror fallback
Section titled “No automatic mirror fallback”The model manager does not configure automatic fallback mirrors. A mirror URL would require a separate trusted checksum and a separate licence disclosure review. Automatic failover to an unvetted mirror could serve unexpected content.
If the HuggingFace URL is unreachable, the install stops with an error and the player can try again; Section 6 describes what is shown. Manual mirror support (the player pastes an alternative URL) is a candidate for a future milestone if demand warrants it.
User-supplied GGUF files
Section titled “User-supplied GGUF files”Players may load any GGUF file from their local filesystem. On the Welcome screen, open Advanced: use Ollama or a local GGUF file and press Use a GGUF file; in the model manager, use the Use a local GGUF file card. The Use a GGUF file step takes a file path and activates it with Use this file. The app performs no network fetch for user-supplied files. The player is responsible for downloading the file themselves and verifying its provenance. The demo edition does not offer this path.
3. Checksum policy
Section titled “3. Checksum policy”SHA-256 is mandatory for all registry-managed models
Section titled “SHA-256 is mandatory for all registry-managed models”Every registry-managed model entry in model-registry/registry.yaml must
include a valid 64-character lowercase hex SHA-256 checksum in the
download.sha256 field. The schema (schemas/model-registry.schema.json)
also accepts the literal PENDING for a pre-release entry, but a registry
entry with PENDING cannot be merged: test_actual_registry_no_pending_values
fails the Backend tests job, and the setup pipeline refuses to download such
an entry (see Section 4).
Post-download verification
Section titled “Post-download verification”After a download completes, the model manager:
- Computes SHA-256 of the downloaded
.partfile in a streaming pass (64 KB blocks, so the file is never held in memory). - Compares the computed digest against
download.sha256from the registry. - On match: renames the
.partfile to<model-id>.ggufin the models folder and marks the installready, storing the verified checksum. - On mismatch: deletes the
.partfile and marks the installchecksum_mismatchwith the message “SHA-256 checksum mismatch. The downloaded file has been deleted.” Nothing partial is kept, so a retry starts from zero. The setup pipeline downloads the file a second time on its own before giving up. If that copy also fails the check, the Verifying (SHA-256) stage fails with the same message and the codeCHECKSUM, and the player is offered Try again (Section 6 says where the error appears). The message does not say that two attempts were made.
The checksum check cannot be skipped or suppressed, even via developer flags.
Updating checksums
Section titled “Updating checksums”When a model provider publishes a new quantisation revision under the same model ID, the registry entry must be updated with the new URL and SHA-256 before the new file is downloadable. Old installed files at the previous checksum remain valid until the player explicitly removes them.
User-supplied GGUF files
Section titled “User-supplied GGUF files”The model manager does not verify checksums for user-supplied GGUF files, and it does not copy the file: only its path is stored. The Use a GGUF file step says so before the path field:
“You are responsible for this model’s license and hardware fit. This app does not claim the model you provide is official, licensed for redistribution, or suitable for your hardware. Review the model’s license before use. The file will not be copied — only its path is stored.”
4. Licence disclosure
Section titled “4. Licence disclosure”Before Confirm & install can be pressed, the Confirm model install screen shows all of the following at once. The screen itself says “No download begins until you click Confirm & install.”
| Row on screen | Source | Example |
|---|---|---|
| Model | name field in registry | Qwen3 4B Instruct 2507 Q4_K_M |
| Size | size_gb in registry | 2.5 GB |
| License | license + license_url in registry | Apache-2.0, linked to https://www.apache.org/licenses/LICENSE-2.0 |
| Min VRAM / Recommended VRAM | hardware in registry | 4 GB / 6 GB |
| Integrity checksum (SHA-256 checksum in the model manager) | download.sha256 in registry | 64 hex chars |
| Saves to (Storage path in the model manager) | Models folder from GET /api/privacy/folders, plus <model-id>.gguf | /home/you/.local/share/com.outrightmental.convsim/models/llm/qwen3-4b-instruct-2507-q4_k_m.gguf on Linux. Until the folder loads the row reads File name and shows qwen3-4b-instruct-2507-q4_k_m.gguf alone (see Section 1) |
| Source (model manager only) | source_type | Official registry |
The licence row is a link that opens the full licence text at license_url
in the player’s browser. This is a hard requirement for compliance rule MD-03.
The download URL itself is not shown on the screen; it is the download.url
of the entry in registry.yaml.
The Set me up card on the Welcome screen states the same size and licence (“Downloads the AI model (2.5 GB, Apache-2.0). Works offline afterwards.”) and starts the install directly, without the confirmation screen. In the demo edition the card reads “Downloads the demo’s AI model (…)”.
An entry with sha256: PENDING cannot be installed. The confirmation screen
adds a warning beginning “Checksum not yet confirmed” to the checksum row,
and if the player goes ahead, the setup pipeline behind Set me up and
Confirm & install (POST /api/setup/install) fails its model stage with
“No verified SHA-256 checksum for this model — cannot install safely.” before
any byte is fetched. The older POST /api/models/install endpoint, which no
screen calls, refuses the same entry with MISSING_CHECKSUM. No shipped entry
carries PENDING.
A user-supplied GGUF file does not pass through this screen. The Use a GGUF file step shows the responsibility notice quoted in Section 3 instead; the app makes no claim about the file’s licence, source or integrity.
5. Model registry schema enforcement
Section titled “5. Model registry schema enforcement”The model registry schema at schemas/model-registry.schema.json enforces:
sha256must be a 64-character hex string or the literal stringPENDING.licenseis required for all registry-managed models.license_urlis required for all registry-managed models.size_gbis required for all registry-managed models.- User-supplied entries must use
license: unknown-user-supplied, and theirdownloadblock may hold onlyprovider: user-filesystemand an optionalpath_hint;urlandsha256are not allowed.
Validation runs in three places:
- The Backend tests job in
.github/workflows/ci.ymlrunsservices/convsim-core/tests/test_model_registry.pyon every pull request and every push tomain. It validatesregistry.yamlagainst the schema, rejects anyPENDINGvalue, and fails if a model weight file (.gguf,.bin,.safetensors,.ptor.ckpt) is found anywhere undermodel-registry/. It does not scan the rest of the repository. - The nightly
.github/workflows/registry-nightly.ymlrunsscripts/validate-registry.py --url-check, which also confirms every download URL still answers. - convsim-core validates the file against the same schema when it loads it
(
model_registry_service.load_and_persist_registry).
A pull request that adds or modifies a registry entry without meeting the schema requirements fails CI.
6. Retry and resume behaviour
Section titled “6. Retry and resume behaviour”Errors from the setup pipeline appear in two places. In the first-run wizard the Setting up your AI step shows the error with a Try again button; the full app also offers Choose a different option, which the demo hides. Three kinds of failure get their own panel there instead: a lost connection shows Network connection lost with Retry (see Network failure), too little disk space shows Not enough disk space with Try again, and a model that downloaded but would not start shows Model loaded but could not start with Choose a smaller model (Try again in the demo). In the model manager the error is shown on the Confirm model install screen under the heading Request failed, and the player can press Confirm & install again.
In-progress download location
Section titled “In-progress download location”Active downloads are written to <models folder>/<model-id>.gguf.part,
beside where the finished file will be. The .part suffix indicates an
in-progress transfer.
Disk space check
Section titled “Disk space check”Before the download starts, the setup pipeline checks that about 2.2 times
the model’s size is free in the models folder (room for the .part file and
the finished file). If not, the install stops with Not enough disk space
and a Try again button; nothing is downloaded.
Cancellation
Section titled “Cancellation”If the player presses Cancel and go home while the install is running:
- The
.partfile is deleted immediately. - The install record is marked
cancelled. - The model stays uninstalled; the model manager offers the install again.
Cancel on the confirmation screen returns to the chooser without starting a download.
Network failure
Section titled “Network failure”If a download fails because of a network error (connection refused or reset, timeout, DNS failure):
- The
.partfile is deleted and the install record is markedfailedwith the codeNETWORKand a message that names the failure: “Could not connect to the download server.” for a refused connection or a DNS failure, “The download timed out waiting for the server.” for a timeout, or “The download stopped because of a network error.” for any other transport failure, such as a connection that drops mid-transfer. The HTTP library’s own text follows in brackets when it has any. The setup job fails its model stage with the same message and records the same code. There is no automatic retry. - The wizard shows the Network connection lost panel (“The download could not complete. Check your internet connection and try again, or choose a different option that does not require a download.”; the demo leaves out the second half) with Retry, Choose a different option (hidden in the demo) and Copy diagnostics. The panel does not show the message; Copy diagnostics copies it together with the code. The wizard picks the panel from the code, not from the message. Only a failure recorded before the code existed is matched on its text instead, for phrases such as “offline”, “timed out” or “connection refused”.
- Retry returns to the Confirm model install screen. If the wizard reopened on a resumed job and the model list has not loaded yet, it restarts the install directly instead. The next download starts from the beginning.
A server that answers with an error status (HTTP 4xx or 5xx) is not treated
as a network failure. The record gets the code HTTP and a message that
names the status, such as “The download server answered with HTTP 404.”,
followed by the library’s text in brackets. The wizard shows that message
with Try again.
App exit during download
Section titled “App exit during download”If the app exits (graceful shutdown or crash) while a download is in progress:
- The
.partfile is left on disk, because the download task died with the process. - On the next launch, convsim-core re-drives the newest unfinished install
job on its own (
resume_orphaned_jobs). Whether a screen shows it depends on whether first-run setup was ever finished. While no onboarding outcome is recorded (GET /api/setup/statusanswersnever-run), the app sends the player to the wizard, which reopens on the Setting up your AI progress step; there is no separate prompt to resume or start over. Once an outcome is recorded (the wizard was finished, or Cancel and go home was pressed at some earlier point), the job still resumes in the background but no screen reopens for it. The model manager shows the running job again only when the player presses Confirm & install for the same model:POST /api/setup/installthen reattaches to the active job instead of starting a new one. - The download sends
Range: bytes=<size of .part>-. If the server answers206 Partial Content, the transfer appends from where it stopped. If it answers200, the.partfile is truncated and the download restarts from the beginning. - The SHA-256 check in Section 3 still gates registration, so a corrupt
resume can never be promoted to
ready.
Post-verification cleanup
Section titled “Post-verification cleanup”After a successful SHA-256 verification, the .part file is renamed to
<model-id>.gguf in the models folder. If the verification fails on both
attempts (Section 3), the .part file is deleted and the player is offered
Try again; the next download starts from zero.
7. Model registry reference
Section titled “7. Model registry reference”The authoritative source of model metadata is model-registry/registry.yaml.
See model-registry/README.md for the policy on adding new entries and the
schema reference.
Current registry entries:
| Model ID | Tier | Size | Licence |
|---|---|---|---|
qwen3-4b-instruct-2507-q4_k_m | Starter | 2.5 GB | Apache-2.0 |
qwen3-8b-instruct-q4_k_m | Standard | 5.0 GB | Apache-2.0 |
qwen3-14b-instruct-q4_k_m | High-quality | 9.0 GB | Apache-2.0 |
mistral-small-3.1-24b-instruct-q4_k_m | High-quality | 14.3 GB | Apache-2.0 |
user-supplied-gguf | User-supplied | Unknown | Unknown |
All registry-managed download URLs are pinned to a commit SHA and paired with a
verified SHA-256 checksum; no entry ships a PENDING value.
The Steam Next Fest demo installs exactly one model: the role: starter entry
(Qwen3 4B Instruct 2507 Q4_K_M), unless CONVSIM_DEMO_MODEL_ID names another
registry id. See docs/steam-next-fest-demo.md
for the decision.
8. Engine binary download policy
Section titled “8. Engine binary download policy”The inference engine (llama-server) is downloaded under the same rules as
model weights: nothing is downloaded at startup, and the player starts it.
Trigger
Section titled “Trigger”The engine is installed by the first stage of the setup pipeline, Getting
the AI engine, which runs when the player presses Set me up or Confirm
& install. The stage is skipped when a llama-server binary is already
present. The system health check in Settings (GET /api/preflight) offers an
Install engine action when the binary is missing; it opens the model
manager, where the same install path applies. POST /api/sidecar/download-runtime
exists for API callers; the app’s screens do not call it directly.
Source and version
Section titled “Source and version”Binaries come from the official llama.cpp GitHub releases
(https://github.com/ggml-org/llama.cpp/releases). Every install — the Steam
bundle, the download scripts and an in-app install — uses the one tag pinned
in runtimes/llama_cpp/pin.json (b9415 at this release). The app does not
show the tag; GET /api/sidecar/download-runtime reports it for a download
started through POST /api/sidecar/download-runtime.
Integrity
Section titled “Integrity”Upstream publishes no checksum file for its releases, so the pin carries a
SHA-256 for every archive the app can install, copied from the digest GitHub’s
release API reports for each asset. The archive is checked in memory against
that digest before anything is written. A mismatch moves the download to
checksum_mismatch and nothing is installed. An archive the pin has no digest
for is refused before it is downloaded: there is no unverified install. The
same rule holds in download-runtime.sh and download-runtime.ps1, and CI
downloads every pinned archive and checks it against the pin.
Destination
Section titled “Destination”The CPU build is placed at ~/.convsim/bin/llama-server (llama-server.exe
with its DLLs on Windows); the Vulkan build goes to
~/.convsim/bin/vulkan/, so the CPU build never sits beside the Vulkan
backend library. On Linux and macOS the shared libraries are installed with
their symlinks. convsim-core looks for the CPU build in this order:
CONVSIM_LLAMA_CPP_EXECUTABLE, then CONVSIM_BUNDLED_RUNTIME_DIR, then
~/.convsim/bin, then PATH; and for the Vulkan build in
CONVSIM_LLAMA_CPP_VULKAN_EXECUTABLE, then CONVSIM_BUNDLED_RUNTIME_DIR/vulkan,
then ~/.convsim/bin/vulkan.
Variants
Section titled “Variants”| Variant | Archive | Where |
|---|---|---|
cpu | win-cpu-x64, win-cpu-arm64, ubuntu-x64, ubuntu-arm64, macos-arm64, macos-x64 | Every platform. On macOS this is the only build, and it uses Metal. |
vulkan | win-vulkan-x64, ubuntu-vulkan-x64, ubuntu-vulkan-arm64 | Windows x64 and Linux. Runs on NVIDIA, AMD and Intel graphics through the driver’s Vulkan runtime. |
Steam builds for Windows and Linux ship both, and the app chooses at every
engine start: the graphics card when the Vulkan build lists a discrete one,
otherwise the processor, with a fallback to the processor when the card fails
(see Choosing how to run the AI). The setup pipeline,
which runs only when no engine is bundled, installs the CPU build; the Vulkan
build is a request on POST /api/sidecar/download-runtime with
"variant": "vulkan". Vulkan is used for NVIDIA cards too, because the NVIDIA
driver ships the Vulkan runtime; llama.cpp publishes CUDA builds per toolkit
version plus a separate cudart-* archive of about 390 MB, so CUDA is not
offered.
Offline behaviour
Section titled “Offline behaviour”Without a connection the Getting the AI engine stage fails with a message
that names the connection problem. The failure is recorded with the code
NETWORK, so the wizard shows the Network connection lost panel, and
Retry behaves as described in Section 6.
Steam builds
Section titled “Steam builds”Every release build bundles llama-server under resources/runtimes/ in the
app bundle, and on Windows and Linux the Vulkan build under
resources/runtimes/vulkan/. The desktop shell exposes that directory to
convsim-core as CONVSIM_BUNDLED_RUNTIME_DIR, so the engine stage is skipped
and no download is needed at first launch. Builds from source download the
engine on first run. See Sidecar bundling.
Update check (builds from source)
Section titled “Update check (builds from source)”A build from source asks GitHub once per visit to the Home screen whether a
newer beta exists, by fetching
https://github.com/ConversationSimulator/ConversationSimulator/releases/download/beta-channel/latest.json.
The request downloads no files: when a newer version is listed, the Home
screen shows a banner whose Install button opens the release page in the
player’s browser. Failures are silent, so an offline machine sees nothing.
Steam builds remove the updater from the Tauri configuration and never make
this request; Steam delivers updates itself.
model-registry/registry.yaml— model metadatamodel-registry/README.md— registry policyschemas/model-registry.schema.json— JSON Schema- Choosing how to run the AI — player-facing model installation guide
- Steam roadmap — model download transparency specification