Add full Inkling-2-Mini (SQ-20, SQ-15, SQ-10, Vision) support across Terminal TUI, Desktop GUI, setup.py, strata_control (inkling_fit, inkling_family, shape_engine component strata-inkling, pictures, discovery, doctor, transfer HF_TOKEN auth), serve (inkling_dialect, inkling_kind, InklingOutputParser, 6-level reasoning_effort none..max, parallel 1..64), tools/packaging, and Docker shape bundling. Includes unit and end-to-end tests for Python and Desktop host.
The move of apps/ to app/ in 0.2.16 left the old names in comments, docstrings, usage lines of scripts ("python apps/desktop/scripts/stage-control.py ...", "cd apps/host") and in a few READMEs. A search of every code path (string literals, join() arguments, imports, workflows, build files) found none still pointing at apps/: the only code use of "apps" left are the Harness's own apps/cli folder and tools/layout (the move scripts, kept as they were). So this changes text only: 131 replacements in 88 files. history/apps/..., @tauri-apps/... and apps/cli are left alone. terminal/strata_control/app_policy.py writes a header line that is also in app/host/server/policy-generated.mjs; both changed together (tests/terminal/test_app_policy.py passes).
Since the layout move /engine/ is the engine's source, but tools/docker/Dockerfile.src.dockerignore still carried the old /engine/ line (the built engine of setup.py), so the build context had no engine/ and `cmake -S engine` could not run. The list now names the folders .gitignore names for the built engines (/terminal/engine/, /terminal/engine-sycl/, /terminal/engine-cuda12/, /engine-sycl/, /engine-cuda12/) and the vendored llama.cpp at its new place (engine/third_party/llama.cpp, terminal/third_party/llama.cpp).
There is no Dockerfile at the repository root, so the commands in docs/DOCKER.md and in the Dockerfile.src header now name it with -f tools/docker/Dockerfile.src (the ignore list next to it is only read then) and pass STRATA_COMMIT, which the Terminal stage needs because .git is not copied. The CUDA 12 example uses nvidia/cuda:12.9.2-devel-ubuntu24.04 (the tag exists) and no longer says BUILD_VISION=0: the picture reader is built for the same architectures as the engine, sm_60 / 61 / 70 included, and package_engine.py checks vision_archs against the package's archs; BUILD_VISION=0 stays documented as the opt-out.
terminal/tests/terminal/test_docker_src_context.py reads the ignore list the way docker does and checks that no tracked file under engine/, tools/ or terminal/ is cut out, that the engine source is in, that the built-engine folders are out, and that every documented source build names the Dockerfile with -f. It fails on the old files and passes now.
Based on the report and change of #6064 by rafal-prasal (credited in the release notes).
App, Terminal and the desktop shell 0.2.17; Control and every engine package 0.1.63. The release manifest (docs/data/release.json, published 2026-11-20,
the aarch64 DeepSeek package no longer an asset of the release: its feed entry names the v0.2.13 file, #6267), the version lines and installer names of the
current pages, the capability table, the settings register (line numbers), and the two tests that pin the versions follow. MIN_ENGINE stays (0, 1, 46).
A CUDA build for sm_86 failed the spill guard on i8_kernel<23, true, 4, true, false>: STACK 8, LOCAL 0 on sm_86, an instance that only had its
sm_89 entry. The frame is the same 8 bytes the sm_89 entry already allows and nothing spills. The entry carries the measured maximum, so any growth
still fails. Owner's decision for 0.2.17.
The merge is clean: every file of f-hy4-run is new on top of the candidate except
engine/include/strata/artifact/model_family.hpp (+6) and engine/cmake/backends/quant.cmake (+3).
Both halves come from main 58ee32277: the app side (f-0217-int2) and the engine
side (f-eng-0163, on f-bw-a). Four conflicts, all in the serve parser and one
doc table:
- terminal/serve/frontend.py, _track (#4923): the app lane and FIX-ENG fixed the
same stray-backtick rule; the FIX-ENG form is kept (it also carries a span
that is already open across lines), the same parity as the app lane's.
- terminal/serve/frontend.py, _quoted_think_end (#5605): the app lane's pair
rule ("</think>" inside a pair of quotes) and FIX-ENG's closing-quote rule
and #6218 backtick-span rule are all kept, in one function.
- terminal/serve/test_parser_track.py: the reference model follows the kept
_track rule.
- terminal/serve/test_parser_stray_backtick.py: both lanes added a file of this
name; the app lane's stays, FIX-ENG's is test_parser_stray_backtick_eng.py.
- docs/DETAILS.md, "On by default" table: FIX-SPEED's longer prefill-share row
and its two new rows are kept; the STRATA_ROUTE_TAIL_SKIP row is not there
any more (tail skip is off by default in 0.2.17, its own section below).
From PR #4538 (cmdruid; its commit 48f6fd4f6, whose own author line is "Agent <agent@secondbrain>"; the PR login is
used as the author), author kept. gate_capacity() judged the read-ahead every 16 decode windows. A gate closed because
the read-ahead did not pay (gate_useless_) is meant to be probed again after 256 windows, but in the hysteresis band
the next decision applied the reopening threshold of a capacity closure (above the high watermark) and so cleared the
benefit reason: the gate stayed closed for good at a steady cache-room ratio between 0.55 and 0.65. A closure that
was for benefit now keeps its probe while the room stays at or above the low watermark; a real capacity drop still
cancels it and needs the high watermark to reopen. One expression, a paragraph in docs/DETAILS.md, and
tools/test_prefetch_gate.py, which compiles the real gate_capacity() from expert_source.cpp with synthetic inputs
(31 checks, no GPU); the PR reports 14 failing checks on the unpatched source. Its default source path now points at
engine/src/core. Before and after runs are in the gate table.
The Q4_K gate/up rows had no 512-bit tier in the default build (the quant layer's Avx2 contract, one token at a time), and the Q5_1 / Q8_0 down rows had a
256-bit VNNI tier per token. kq_avx512.cpp runs the integer part of every block on vpdpbusd (Q4_K: 64-byte vectors, the 6-bit scales through vpdpwssd) with the
weights decoded once per row for every token of a group, and keeps the AVX2 contract's float chain (the eight-lane accumulator, the mins term, the hsum) so each token's
row is the one-token dot's bit for bit. Dispatch only on a CPU with AVX-512 F/BW/VL/DQ/VNNI/VBMI (cpu_avx512_ok); the old rows stay the fallback; kq512_ok checks the
rows against the build's own dot on first use and sends a mismatch back to it; STRATA_NO_KQ512=1 never takes them, STRATA_KQ512_MIN=N moves the token floor (gate/up 3, down 2).
kq512_parity (840 cases: 1 to 160 tokens, real and raw-byte activations, row ranges, the SwiGLU of the gate/up rows) is bit-equal on a Xeon 8352V and skips (77) without
AVX-512. One thread, 256 rows, Xeon 8352V: Q4_K n=2560 8 tokens 113 us against 182 us for the dot per token and 125 us for the AVX2 multi-token rows, 64 tokens 767 / 1474 / 1054;
Q5_1 n=640 8 tokens 44 / 122 / 78; Q8_0 40 / 67 / 48; one token is slower than the dot (Q4_K 68 against 38 us), hence the floors.
docs/DOCKER.md: Podman (rootless, on Ubuntu): the CDI file Podman 4.9 cannot read and the by-hand GPU flags; systemd-oomd ending the load, what
helps and that --cgroups=disabled does not (conmon and the container stay below user@ with it); the IQ3_XXS pack is 1.5 GB (the volume 3.1 GB),
not "about 40 GB"; the image sizes of 0.2.16 on disk and as a download.
tools/docker/entrypoint.sh: the "NVIDIA card but no GPU in the container" message and the card-does-not-match hint name Podman's
--device nvidia.com/gpu=all and the by-hand way.
P1 a typed `strata` in PowerShell is always strata.cmd, P2 install.ps1 keeps
the user PATH's type and other entries, P4 a pressure pacer keeps
systemd-oomd from ending a model load on a Linux desktop, P5 a short
UPDATE.bat stays in the new layout, P6 a clone on a tag says it is on a fixed
release, P8 setup takes the feed's CUDA 12 engine on Pascal / Volta, P10
clean card names in the installer, P11 MALLOC_ARENA_MAX=2 for the server and
engine on Linux, P12 setup's tuning question defaults to No, P13
--gguf-dir without --family / --model, P14 setup uses the Terminal's Auto
drafter rule. Wording follows the approved text list.
It printed "NVIDIA NVIDIA RTX A4000" (the maker added to a name that already had it), named only the first card of a two-card computer
(head -1) and showed the R9700 as the raw lspci line "Advanced Micro Devices, Inc. [AMD/ATI] Device 7551 (rev c0)" (USERTEST-LIN F5).
Now: every card, a count when several are the same ("2 x NVIDIA RTX A4000", "4 x AMD Radeon AI PRO R9700"), the maker once, the product name
from the brackets of an lspci line ("Navi 31 [Radeon RX 7900 XT/7900 XTX]" gives "AMD Radeon RX 7900 XT/7900 XTX", "DG2 [Arc A750]" gives
"Intel Arc A750"), "(rev xx)" dropped, and for an id the installed pciutils does not know the three AMD ids the engines cover are named
(7550 RX 9070 series, 7551 AI PRO R9700, 7590 RX 9060 XT; anything else "AMD graphics card (PCI device xxxx)"). Only NVIDIA, AMD and Intel
cards are named (a server board's ASPEED management chip no longer comes first). The line is for the person to read; nothing decides an engine.
Tests: terminal/tests/terminal/test_install_sh_cards.py (helpers run through sh; with a fake nvidia-smi / lspci on PATH on Linux).
It read the PATH with [Environment]::GetEnvironmentVariable (which expands %VAR% entries) and wrote it back with SetEnvironmentVariable (which
stores a plain REG_SZ), so an entry such as %USERPROFILE%\AppData\Local\Microsoft\WindowsApps became a literal path, the value's type was lost
and a trailing ";" was dropped (USERTEST-WIN finding 6).
Add-ToUserPath now reads the value as stored (DoNotExpandEnvironmentNames) with its type, adds only our folder (nothing when it is already
there, compared after expanding), and writes it back with the same type; a missing value is created as REG_EXPAND_SZ. Running programs are
told through the same environment broadcast SetEnvironmentVariable used. If the registry cannot be written the installer says so in one line
and names the program to run, instead of stopping. STRATA_NO_PATH=1 still skips it.
Tests: terminal/tests/terminal/test_install_path_step.py (text checks, and six cases against a throw-away HKCU\Software key on Windows
PowerShell: kinds ExpandString / String / none, other entries byte for byte, trailing ";", already present, empty value).
install.ps1 puts terminal\current\bin on the user PATH. That folder held strata.cmd and strata.ps1; PowerShell runs the .ps1 first, and the
Windows default execution policy (Restricted) refuses scripts, so a typed `strata` failed with "running scripts is disabled on this system"
(Strix t27a, the owner PC's install; also in 0.2.14 / 0.2.15).
strata.ps1 does the same job as strata.cmd; its only extra is exact argument passing for & | < > ^ in an argument without a space. Nothing
in the product calls it. The archive now carries it as bin\strata-direct.ps1 (for scripts, run with -ExecutionPolicy Bypass -File), so
`strata` can only mean strata.cmd, in every shell and under every execution policy.
An install made by 0.2.15 or earlier keeps its strata.ps1 (strata update never touches the install's bin folder): the first command a new
Control runs renames a stale strata.ps1 that sits beside strata.cmd in a PATH folder or in the installer's own folder to strata-direct.ps1
(Windows only, only a file with Strata's own header, every failure swallowed, one line to stderr for support). Re-running install.ps1 heals it too.
Tests: terminal/tests/terminal/test_launcher_heal.py (12), test_packaging_pins, test_cyrillic_paths; smoke_terminal runs strata-direct.ps1.
On Windows with Python 3.12, platform.system() / uname() ask WMI through _wmi.exec_query. truststore, imported by strata_control/tls.py, calls
platform.system() at import, in the runtime host's start-up thread. When WMI refuses the account (HRESULT 0x80041003, a standard user over an ssh
logon on the Strix test box) the query takes about 5 s; exec_query gives up after 100 ms and returns, the start-up thread ends and its stack goes
away, and the late worker thread reads its struct on that dead stack: an access violation at _wmi.pyd+0x1640 that ends the host (exit 0xC0000005),
and the kill-on-close job takes the server and the engine with it. "The server could not start: runtime control is unavailable; inspect the private
host log." Found with a scratch vectored-exception tracer on Strix (faulting thread start address _wmi.pyd+0x10b0, Rbx = 0x80041003).
Fix: every Strata entry point puts `sys.modules["_wmi"] = None` first (Windows only), so platform falls back to the registry, `ver` and the
environment, as it did before Python 3.12 (same answers: system, release, version, machine, processor, platform, win32_ver, checked).
- strata.py, setup.py, ref/load.py, serve/{server,mcp,cpu_affinity}.py, strata_control/{runtime,management,pictures,app_policy,tls}.py and the
tools the bundle runs (strata_mcp, iq_pack, strata_pack, pack_index, mtp_fetch, mtp_pack, mtp_rt, draft_vocab, strata_tokenizer, calibrate,
nvfp4_local_pack, strata_bench, strata_inspect, dflash2_pack, gguf_reader), plus the __init__ of strata_control, serve and strata_cli (the
first thing a `python -m` entry imports).
- sysinfo.block_wmi(): the second guard for a process whose platform module was imported earlier; tls.install() calls it before truststore. It
replaces platform._wmi_query (setting platform._wmi to None would raise AttributeError, which platform does not handle).
- package_terminal.add_sitecustomize(): the bundle's site-packages/sitecustomize.py carries the same line, for every process of the bundled python.
- tests/terminal/test_wmi_guard.py: each shipped entry file and package starts with the guard (a new entry point without it fails); on Windows each
entry module imported in a fresh process never loads _wmi and platform.system() is still "Windows"; block_wmi / tls / sitecustomize unit tests.
No user-visible text changes.
Found by REL-0216 / the Mac lane; comments and docs only, nothing executed. tools/packaging/mac/README.md: line 57 `python packaging/feed_tool.py` -> `python tools/packaging/feed_tool.py`, line 59
`packaging/UPDATES.md` -> `tools/packaging/UPDATES.md`, line 73 `apps/desktop/scripts/make-dmg.sh` -> `app/desktop/scripts/make-dmg.sh`. tools/packaging/mac/sign-and-notarize.sh lines 35 and 721
(comments): "engine/metal/ sources" -> "metal/ kernel sources" (the engine package carries metal/kernels and metal/engine-msl; engine/metal/ is the source folder of the repository). bash -n of the script ok.
None of the two files is inside a package: the Terminal / Control archive takes terminal/ and the fixed tools subset of package_terminal.py (TOOLS_SUBSET), not tools/packaging/mac.
Gates by the lane: p2006 py-tools, py-tests, docs passed on cebd4489a, bash -n of every changed .sh, the two later docs-only commits on a targeted p1004 run (253 tests + docs 6), and the real build_windows.bat through every CMake configure on the owner PC with a cmake stand-in. 72 files, +911 / -472; no overlap with server.py.
setup.py and strata.py only matter as the program of a command; the two lines that name the key inside an installed Strata are listed in docs_paths_explained.txt. On the head after the docs commit the scan reports no hit (86 pages).
Reads the code spans and code blocks of docs/*.md, README.md, AGENTS.md and .github/*.md (not docs/history, docs/bench-results, release notes, or a page
pinned to an old tag), takes every path-like token, and reports the ones that existed before the move, do not exist now, and have a new place (git's rename
detection between the two revisions): `tools/iq_pack.py` -> `terminal/tools/iq_pack.py`. It also reports `.venv/bin/...` (the environment setup.sh makes is
terminal/.venv) and `-m serve.server` (the module form needs terminal/ as the folder you are in). --fix-list and --fix-all write the hits as a table. Read-only.
libur_loader.so.0 needs libz.so.1, and binary_deps.py no longer lists libz as a base-system library (1a5c6dd19), so the package refused to build.
build_sycl_linux.sh now passes `--bundle-system 'libz.so.1'` to collect_libs.py and packs the notice: package_engine.py without --tree packs
top-level files only, so the licenses/ folder collect_libs.py writes needs `--include 'licenses/*'` (the AMD script packs the whole tree).
tools/packaging/notices/libz.txt is the notice REL-0216 made for the release build (sha256 a553d9ed6ff3339312f11e600523fb28eb939e19c54e29820d6e3c7614319b54):
zlib 1.3, the zlib licence block verbatim from Ubuntu 24.04's zlib1g copyright file. It was built into the SYCL package on p1006: the archive holds
licenses/libz.txt, libz-copyright.txt and GPL-3.txt (collect_libs.py copies the GPL-3 text for every bundled system library).
terminal/tools/test_bundle_system_notices.py: the built-in list and every `--bundle-system` name in a package script have a notices/<name>.txt;
a script that bundles one and calls package_engine.py without --tree packs `licenses/*`; each notice starts with its library name and holds a licence.
Red on the previous script (no notice, no licenses include), green now. No other package script names a system library to bundle; the release
build reported only libz.
split_py.py put the block after the last IMPORT before the first definition; a file that makes its package importable with `sys.path.insert(...)`
needs the block after that statement (serve/server.py did, and the split broke `python serve/server.py`). The block now follows the last statement
that stays in the file and stands before the first function or class. split_server_run.py ends by running `python serve/server.py --help` from a
folder that is not the Terminal's with no PYTHONPATH and fails (exit 4) when that does not work. Re-run on the moved tree before the split it
produces the server.py of the commit before this one, byte for byte.
The first version missed terminal/tools/hip/build_windows.bat: its SRC comes from `for %%I in ("%~dp0..\..") do set "SRC=%%~fI"` and is joined with
unquoted segments, and the break was `cmake -S "%SRC%"` naming a folder with no CMakeLists.txt. Now:
- batch: for-loop and `if not defined X set "X=%Y%\..."` variables are read, case-insensitively, and every `%VAR%\a\b` path is checked;
- PowerShell: `$root = Split-Path -Parent $PSScriptRoot` / Join-Path / Resolve-Path variables and `$root\a\b` / Join-Path uses;
- shell: `${REPO:-$(git rev-parse --show-toplevel)}` is the checkout root;
- `cmake -S <folder>` in batch, shell and command lists must name a folder that has a CMakeLists.txt;
- a path that existed before the move and does not now is a hit even when its first missing name is not a moved top-level folder (tools/vision:
tools/ still exists with other things in it).
On the head before the fixes in the commits just before this one it reports build_windows.bat, build_split_cuda.sh, build_split_hip.sh and
engine/sycl/tools/build.sh; on this head it has no hit that is not an on-purpose dual-layout fallback.
The source image copies the repository root to /src. Its engine stage ran `cmake -S .` (the root has no CMakeLists.txt since the layout move)
and its Terminal stage ran /src/packaging/package_terminal.py (the script is in tools/packaging). Both lines now name the moved places;
the rest of the file already did.
Both scripts take SRC as the checkout (their default is two levels up from tools/packaging, the repository root) and ran `cmake -S "$SRC"`.
The repository root has no CMakeLists.txt since the layout move, so the Linux release builds of the all-cards split engine (NVIDIA and AMD)
would have stopped at configure. They configure "$SRC/engine".