Commit Graph
1304 Commits
Author SHA1 Message Date
Niko1221 db4b257754 fix(docker): fix MODEL_PATH validation, package shape engines in Dockerfile.src, update docs to 0.2.20 2026-11-23 01:04:51 +01:00
Niko1221 2e87c08db1 Release Strata 0.2.20 (Control and engines 0.1.66) 2026-11-22 20:46:53 +01:00
Niko1221 49596a06f4 Merge branch 'f-0220-hy4-backends' into f-0220-int 2026-11-22 16:20:33 +01:00
Niko1221 ddca992850 Merge branch 'f-0220-nextgen' into f-0220-int
# Conflicts:
#	engine/src/hy4flash/run/hy4_gpu_model.hip.h
#	engine/src/hy4flash/run/hy4_main.hip.cpp
#	engine/src/inkling2/cuda/ink_hybrid.cuh
#	engine/src/inkling2/cuda/ink_runner.cuh
#	engine/src/inkling2/hip/ink_hip_backend.hip.cpp
#	engine/src/program/generate.cpp
2026-11-22 15:05:59 +01:00
Niko1221 7a2b207b12 hy4flash/run: integrate portable SSD conversation cache (#6527) and Linux HIP build script 2026-11-22 14:26:51 +01:00
Niko1221 09616de6da inkling2: support local GGUF/.strata import and suppress Qwen engine prompts when shape engine is installed 2026-11-22 14:21:41 +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 bde1682d1a hy4: add AVX-VNNI + S8_K fast CPU kernels, cgroup limits, and Docker shape-engine support 2026-11-21 16:29:40 +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 b4a305a1a0 The source Docker build works again: the ignore list stops cutting out engine/
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).
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 8601e766b3 Merge f-hy4-int (Hy4-Flash Strata side and runner base) into the 0.2.18 branch 2026-11-20 00:15:23 +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 fc00ff5e56 check_cuda_spills: allow i8_kernel on sm_86 (8-byte frame, no spill)
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.
2026-11-19 21:09:41 +01:00
Niko1221 de17f306f7 Merge f-hy4-run (933b9bfd3: Hy4-Flash .strata reader, S_K codecs, Engram reader, gfx1151 runner) into the 0.2.17 release candidate
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).
2026-11-19 20:51:34 +01:00
Niko1221 f85f9dd332 Merge f-eng-0163 (engine 0.1.63 head) into f-0217-int2: the 0.2.17 release candidate
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).
2026-11-19 18:42:38 +01:00
Niko1221 537b501254 file tier: a prefetch gate closed for low benefit keeps its periodic probe inside the 0.55 to 0.65 band (#4538, #4537)
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.
2026-11-19 16:19:22 +01:00
Niko1221 461b94b43a CPU experts: AVX-512 VNNI multi-token rows for UD-Q4_K_XL (Q4_K gate/up, Q5_1 and Q8_0 down)
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.
2026-11-19 10:26:21 +01:00
Niko1221 3e39cae638 [Quant] Add full 42-layer gradient-checkpointed Scale-QAT deep polish for Hy4-Flash-SQ-64.strata 2026-11-19 09:46:53 +01:00
Niko1221 599464cb97 [Quant] Match per-superblock GPTQ scale update for S1.25 and S1.5 in batched GPU encoder 2026-11-19 02:30:09 +01:00
Niko1221 cab3eae975 [Quant] Vectorize batched GPU Block-LDL + MACaQ 64-flip + pure-GPU S_K bit-packing (B=32) 2026-11-19 02:28:46 +01:00
Niko1221 79e0c7d040 Docker: a Podman section, the measured sizes, and the no-GPU message names Podman's way too
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.
2026-11-19 01:08:37 +01:00
Niko1221 4aafb91573 [Quant] Fix cold-expert lazy quantization & Cholesky caching in pilot_parity.py 2026-11-19 00:55:34 +01:00
Niko1221 4dc362978a [Quant] Add GPU decode_sk_torch (0.5ms/expert), layer-batched Scale-QAT/eval, and cached BF16 eval refs 2026-11-19 00:52:05 +01:00
Niko1221 f37add3afb [Quant] Fix H64 symmetric Hessian transform, add MACaQ-R compensation, Q8-INT8 Engram, and CUDA S4_K warp kernel 2026-11-19 00:45:14 +01:00
Niko1221 a2b5af0b6d [Engine] Add native Hy4-Flash .strata v1.0 codecs, reader, 4-module Engram, and tools/squant pipeline 2026-11-19 00:38:14 +01:00
Niko1221 19f18e1037 Docker: the image build context carries engine/third_party/strata-gguf-py (the Terminal bundle's model preparation tools; the first v0.2.16 image build stopped without it) 2026-11-18 23:07:39 +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 91710dff19 Merge f-1117-batfix (b3b766983), release-check fix 7 (MAP): the build scripts name the moved places (terminal/tools/hip/build_windows.bat: repo root three levels up, -S engine, readers and the zip script in terminal/tools, CRLF kept; build_split_cuda.sh / build_split_hip.sh; engine/sycl/tools/build.sh; tools/docker/Dockerfile.src; engine_flow.sh; update_model_flow.sh; trellis/build.sh) with terminal/tools/test_build_windows_bats.py (red on the old script); the Linux SYCL package bundles libz.so.1 with its notice (build_sycl_linux.sh --bundle-system 'libz.so.1' --include 'licenses/*', tools/packaging/notices/libz.txt, terminal/tools/test_bundle_system_notices.py); tools/layout/checks/path_scan2.py extended, docs_paths.py and docs_paths_explained.txt (0 hits over 86 user-facing pages); the docs name the moved places (56 pages, cmake -S engine, terminal/tools, terminal/serve, tools/packaging, app/, engine/sycl) and the "CMake fetches the pinned llama.cpp" sentences are gone
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.
2026-11-17 18:03:25 +01:00
Niko1221 cebd4489aa tools/layout/checks/docs_paths.py: a file name in a sentence is not a hit, and an explained list for lines that are correct as written
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).
2026-11-17 17:20:28 +01:00
Niko1221 26cfd1e0fa tools/layout/checks/docs_paths.py: a scan of the user-facing pages for commands and paths that name a place the move took away
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.
2026-11-17 17:19:49 +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 2c7513613c tools/layout/split: the re-export block goes after the last statement before the first function, and the run ends with a script-mode smoke
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.
2026-11-17 17:06:30 +01:00
Niko1221 194d068e0a tools/layout/checks/path_scan2.py: variables joined with unquoted segments, for-loop variables, cmake -S folders, and paths that existed before the move
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.
2026-11-17 16:56:04 +01:00
Niko1221 926bd1cf9e Dockerfile.src: the engine is configured from engine/ and the Terminal is packaged with tools/packaging/package_terminal.py
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.
2026-11-17 16:55:10 +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