Commit Graph
26 Commits
Author SHA1 Message Date
Niko1221 2e87c08db1 Release Strata 0.2.20 (Control and engines 0.1.66) 2026-11-22 20:46:53 +01:00
Niko1221 7aaa789a94 feat(nextgen): apply NextGen integration across engine, qwen35, hy4flash, and inkling2 2026-11-22 13:12:57 +01:00
Niko1221 26350e4387 Release Strata 0.2.19 (Control and engines 0.1.65) 2026-11-22 10:11:54 +01:00
Niko1221 5d84abe07f inkling2: enforce no-thinking mode (off only), wire --gpus 2 EP, fix cross-OS packaging entrypoint 2026-11-22 02:08:05 +01:00
Niko1221 6d355890ff Merge f-0219-ink-app: Inkling-2-Mini TUI, Desktop GUI, serve dialect, and packaging 2026-11-22 01:37:18 +01:00
Niko1221 d8540c1331 inkling2: add TUI, Desktop GUI, control, private HF auth, serving, and Docker support
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.
2026-11-21 20:56:15 +01:00
Niko1221 b60658cae5 hip: first-class Radeon 780M (gfx1103) and Strix Point (gfx1150) iGPU support with UMA coherent GTT allocation and <=1s TDR/MES guards 2026-11-21 19:58:13 +01:00
Niko1221 e616bfda7b Merge main (3142b66b9) into 0.2.18 RC 2026-11-21 01:29:32 +01:00
Niko1221 fcf5bbe86c Release 0.2.18 (Control and engines 0.1.64) 2026-11-21 00:14:58 +01:00
Niko1221 3142b66b96 Paths in comments, usage lines and READMEs: apps/host and apps/desktop are app/host and app/desktop since the layout move
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).
2026-11-20 07:11:56 +01:00
Niko1221 e5d9f05129 package_engine: no strata-vision reader check for a Hy4-Flash package (its runner reads pictures itself) 2026-11-20 01:17:40 +01:00
Niko1221 9c3f3532df package_engine: a Hy4-Flash (shape hy4) HIP package has no hipBLASLt tuning to check (its runner has its own kernels) 2026-11-20 00:44:46 +01:00
Niko1221 01d81206d4 Version 0.2.17 (app and Terminal), 0.1.63 (Control and engines)
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).
2026-11-19 22:16:47 +01:00
Niko1221 383e4f01ac Merge f-0216-fix-plat (55f7b69cb): install scripts and platform fixes P1 to P14
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.
2026-11-18 12:57:57 +01:00
Niko1221 5696cb3f6a P10: install.sh names every graphics card once, with clean names
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).
2026-11-18 10:51:16 +01:00
Niko1221 5dc269cf80 P2: install.ps1 adds its folder to the user PATH without rewriting the rest of it
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).
2026-11-18 10:51:16 +01:00
Niko1221 630e3a3df4 P1: a typed strata in PowerShell is always strata.cmd (no strata.ps1 in the PATH folder)
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.
2026-11-18 10:47:12 +01:00
Niko1221 6f6099fe6e Windows: no Strata process may reach CPython 3.12's _wmi (the runtime host died with 0xC0000005 when WMI refuses the account)
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.
2026-11-18 10:39:54 +01:00
Niko1221 f9a4df21ed docs: the Mac packaging scripts' comments and README name the moved places (tools/packaging/feed_tool.py, tools/packaging/UPDATES.md, app/desktop/scripts/make-dmg.sh, the package's metal/ folder)
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.
2026-11-17 19:34:28 +01:00
Niko1221 18a50687f1 The Linux Intel Arc package bundles libz.so.1 with its notice: build_sycl_linux.sh, notices/libz.txt, and a test that every bundled system library has its notice
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.
2026-11-17 17:11:50 +01:00
Niko1221 9e2dd798fb build_split_cuda.sh and build_split_hip.sh: cmake configures engine/
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".
2026-11-17 16:55:09 +01:00
Niko1221 18526b8792 Merge f-1117-pathfix (44d4a006a), release-check fix 4 (MAP): a second layout path scan for paths built from __file__, a root variable or the working folder (tools/layout/checks/path_scan2); build_cuda_windows.py configures the engine from engine/ and runs the packaging scripts from tools/packaging (with a SourcePaths test); make-dmg.sh runs tools/packaging/binary_deps.py for the minimum-macOS check; docs/media/make_figures.py reads the app's icon sprite and font from terminal/serve/web; the test_control_install ".." escape test climbs to a real setup.py again (path_scan2 0 real misses, p2006 py-tools 1730 / 0, py-tests 3835 / 0, owner-PC CMake configure of engine/ for CUDA 13 and 12 by the lane) 2026-11-17 15:36:32 +01:00
Niko1221 3d83b4328a Engines 0.1.62 (the same number as Control)
Control and the engine packages use ONE number in 0.2.16, 0.1.62, the CMake project version the binaries report (coordinator, 11-17). 0.1.61 went out as Control
with 0.2.15 and is skipped as an engine number. Every 0.1.61 engine label of 07f6f3218 becomes 0.1.62: the Metal STRATA_VERSION, build_hip_linux.sh PKGVER, the
About comment, the issue template, tests/terminal/test_tui2_023_versions.py, docs/data/release.json (engine_version, the 13 engine package names; the
"control_ahead" key is gone with the reverted tool change), and the pages by `tools/release_manifest.py --write` (AGENTS.md, AI_REFERENCE.md, the packaging
pages) and `tools/capability_table.py --write`; both --check pass. tools/test_release_manifest.py: the 0.2.15 "carried engines" case sets its own engine package
again (the live asset list holds this release's engines). Carried packages (the 0.1.59 aarch64 CUDA engine, the DeepSeek engines, the aarch64 Control) stay as
they are; the release build decides the Spark set. docs/data/release.json "published" is the day of the commit: set it on the release day.
2026-11-17 15:36:21 +01:00
Niko1221 07f6f32185 Version 0.2.16 / Control 0.1.62 / engines 0.1.61: app and Terminal 0.2.16, Control 0.1.62, engine packages 0.1.61
Modelled on e39a52e33 (0.2.15, Control) and 38f63bc59 (engines 0.1.60), on the layout-moved tree. Sources: terminal/strata_cli/__init__.py PRODUCT_VERSION;
engine/CMakeLists.txt project version 0.1.62 (the Control number, as the manifest check reads it); engine/metal/CMakeLists.txt STRATA_VERSION 0.1.61-metal;
tools/packaging/build_hip_linux.sh PKGVER 0.1.61; app/desktop package.json, Cargo.toml, Cargo.lock; app/host package.json and package-lock.json;
SettingsUpdates.tsx comment; qa1-storage.test.mjs; terminal/tests/terminal/test_tui2_023_versions.py; the issue template's version placeholder.
docs/data/release.json: tag v0.2.16, product / terminal 0.2.16, Control 0.1.62, engines 0.1.61, the installer, Control and engine file names (the engine set at
0.1.61 includes SYCL, rebuilt in this release; the 0.1.59 aarch64 CUDA engine, the DeepSeek engines and the aarch64 Control stay as they were), "engines_from"
replaced by "control_ahead". The "published" date is the day of this commit: set it on the release day. The pages are written by
`python tools/release_manifest.py --write` (README.md, the seven translated READMEs, AGENTS.md, ten docs pages, tools/packaging README / UPDATES /
ENGINE-COMPONENT) and docs/CAPABILITIES.md by `python tools/capability_table.py --write`; both `--check` pass.
2026-11-17 15:32:24 +01:00
Niko1221 ad1fb73b56 build_cuda_windows.py: the engine is configured from engine/ and the packaging scripts are run from tools/packaging/
After the layout move the recipe still took the repository root as the engine's source: `-S <repo>`, the version read from <repo>/CMakeLists.txt,
and build_vision_windows.bat, package_engine.py and binary_deps.py from <repo>/packaging. None of those exist, so a source build of the Windows
engine would have stopped at configure. The recipe now has ENGINE_SRC (engine/) and PACKAGING (tools/packaging/) and uses them for all of it;
build and output folders stay in the repository root.

terminal/tools/test_build_cuda_windows.py: SourcePaths runs on every OS (main() only runs on Windows with the toolkit, so no suite ever
reached these paths): the engine's CMakeLists.txt and the three scripts exist, the version is read from engine/CMakeLists.txt, every
ENGINE_SRC / PACKAGING path the source names exists, and nothing is built from the checkout root. Fails on the previous recipe (no
ENGINE_SRC, src / "packaging" in the source).
2026-11-17 15:12:26 +01:00
Niko1221 4058aa782b Layout move for 0.2.16: the top level becomes app/, engine/, terminal/, docs/, tools/ and .github/
Made by tools/layout/move_0216.py (the commit before this one) on db8e0be9c, the final code head of 0.2.16:
- 75 git mv (renames, so `git log --follow` and blame keep working; packaging/acceptance_matrix.md shows as delete + add because its links
  changed too) and 3 removals: SETUP.bat, UPDATE.bat and update.sh (setup.py --update pulls the code now);
- 1,425 path edits in 307 files: root-relative paths in CI, Docker, .gitignore and the release scripts; Markdown links; Python and
  Node joins from a root that moved with its folder; explicit edits for code that computes a root or names a moved path; tables of
  repository paths inside tests.

engine/ holds what CMake builds (src, include, cmake, metal, sycl, spark, third_party, the C++ tests and benches). app/ is the desktop
app and its host (was apps/). terminal/ is the Terminal in the layout of the installed one (strata.py, setup.py, strata_cli,
strata_control, serve, bin, data, ref, crates, the Python tools and tests). docs/ has the documentation, docs/lang/ the translated
READMEs, docs/history and docs/bench-results. tools/ has the repository's own checks, packaging, docker, research and nix.
tests/core/test_tqp_ref.py is a pytest file and stays with the Python tests (terminal/tests/core/).
AGENTS.md, README.md, LICENSE, setup.sh and START-HERE.bat stay at the root.

No behaviour change: the same command lines, the same sources. For this head a replay of the script gave the same numbers and the path
scan (tools/layout/checks/path_scan.py) reports no hit; the suites and the builds run on this commit next.
2026-11-17 13:19:21 +01:00