On Metal, Verifier::run_slot_rows returned from its STRATA_GPU_METAL branch without progress_at / progress_beat, so a --batch decode raised no
heartbeat. The only resets left were a new request's prompt read and the rare 1 s sample that falls between two batch windows (0.2-1% of wall time).
Two slots decoding long tool calls (53 tok/s, 3300-3950 of 4096 tokens) with no admission for 60 s ended the engine with "no progress for 60 s
during a request (idle -1)", exit -6 (SOAK-SERVE-1117, M5 Max, 0.1.62). v0.2.15 has the same branch.
The Metal branches of run_slot_rows and run now end like the CUDA / HIP path: progress_at("decode"); progress_beat(). A window that really hangs
in window_run_slots still beats nothing and ends the engine after the limit. CUDA, HIP and SYCL are untouched.
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.
The branch's first fix commits (e22685cbb, 2a20dbce6) dropped later changes of 18526b879 in serve/server.py and 5064fab2b restores them: the net diff of the branch against 18526b879 is the 8 files above (server.py +3 / -3 lines moved, terminal/serve/server_parts/ untouched). Gates by the lane on a clean worktree at 5064fab2b: l620 py-serve 1888 / 0, py-tools 1728 / 0; p1006 py-tests 3835 / 1 (test_drafting EngineArguments test_the_server_applies_it_at_every_start: an 8 GB Arc card adds --kv-resident, the same failure on the untouched base 18526b879 on p1006).
engine/src/program/generate.cpp has `const int64_t small = old_rule();` (and two more). Without WIN32_LEAN_AND_MEAN, <windows.h> pulls in <rpc.h> / <rpcndr.h>, which
define `small`. In 0.2.15 the first <windows.h> of that translation unit came through gguf_reader.hpp, which defines the lean macro; now conversation_spill.hpp (line 38)
and platform/commit.hpp (line 18) reach it first and define only NOMINMAX. Each include below now gets, next to NOMINMAX, the guarded
`#ifndef WIN32_LEAN_AND_MEAN / #define WIN32_LEAN_AND_MEAN / #endif` (inside the same `#if defined(_WIN32)` block, so a Linux build never sees it): include/strata/core/
conversation_spill.hpp, include/strata/platform/commit.hpp; src/core/{conversation_memory, conversation_memory_test, device_main, pinned.cu, pinned_alias_test,
pinned_shared_win_test, verify}; src/program/generate.cpp; sycl/include/{dpct/device, dpct/kernel, dpct/memory, strata/runtime_files}.hpp, sycl/src/core/{copy_queue, pinned.dp}.cpp,
sycl/src/program/generate.cpp; tests/platform/io_priority_test.cpp (18 includes; the other 25 sites already define it earlier in their file). None of these files uses an API the
lean macro leaves out (winsock, shell, RPC / OLE, multimedia): checked by grep. Not covered: the SYCL Windows build also takes dpct/bindless_images.hpp (d3d11.h, which
reaches rpcndr.h by itself), and sycl/src/program/generate.cpp has the same `small` name; no Windows SYCL package is built in 0.2.16 (the release assets are Linux SYCL).
After the layout move these three files put only engine/ (their ROOT) on sys.path and then import setup, strata_control and serve, which are under
terminal/. A Mac source setup (setup.py hands a macOS run to setup_mac.py), an Intel Arc source setup (setup.py hands it to setup_intel.py) and the
Intel server (strata-sycl.sh runs server_intel.py) stopped at their first import with "ModuleNotFoundError: No module named 'setup'" or "'serve'".
Each adds ROOT.parent / "terminal" next to the line that adds ROOT. Found by running every script that has an argument parser from both trees (232
pairs, `python <file> --help` from an empty folder): the other differences are archived scripts under docs/bench-results, which only ran in their old folders.
The CMake projects are in engine/ since the layout move, so `cmake -S . -B build` from a checkout does nothing. The commands in AMD_HIP, GYRO,
INTEL_ARC, MMVQ_IL_TABLE, NVIDIA_V100, OLDER_GPUS, RADEON_780M, SOURCE_INSTALL and STRIX_HALO now say `cmake -S engine ...` (the SYCL
alternative `cmake -S engine/sycl ...`), the two SYCL docker commands in INTEL_ARC name engine/sycl/tools, GYRO's pip line next to its cmake lines
reads terminal/requirements.txt, and the hint that engine/sycl/tools/build.sh prints names engine/sycl/tools. Only commands and the paths in
them changed. Left as they are: ORCA_Q4_K_S.md (it tells the reader to build the v0.2.15 tag, whose layout its commands match), the benchmark
reports and history pages (they record what was run), and the prose that names a folder.
The script takes the checkout root from `git rev-parse --show-toplevel` and ran `cmake -S $repo/sycl` twice (the configure and the later
switch for I8_ESIMD). sycl/ is engine/sycl since the layout move, so both would have failed. The two lines name $repo/engine/sycl.
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.
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.
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.