From PR #5481 (nekorobi-0; its commit 0946bbd77), author kept. On a CPU with AVX-512 VNNI and
no VBMI (Cascade Lake) the SYCL engine's start-up line said "this CPU has no AVX-512: the expert kernels run on AVX-2",
even with STRATA_VNNI_TIER=1 on. The line now says which case it is: no AVX512-VNNI at all; the VNNI tier off or not
available; or (with the tier on and no VBMI) "AVX-512 VNNI tier enabled (no VBMI)". The cpu_vnni_ok() header comment
names the DQ requirement and the switch, and docs/DETAILS.md gains the STRATA_VNNI_TIER row (off by default: those
rows round differently from the AVX-2 rows). Log text and docs only; no computation changes. The two new lines are in
the results file's text list.
From PR #5748 (botBehavior; its commit 5d3f3cda6), author kept. STRATA_TAP_FILE (the residual-stream research dump)
was dropped without a message when the model ran on a layer split: Verifier::init cleared the path unless one verifier
held every layer. On a split each stage now parses STRATA_TAP_LAYERS (same rules as one card: sorted, unique, the last
layer excluded), keeps the layers inside its own range as the drafter's taps do, and the first stage opens the file,
writes the header with the whole layer list and, after the chain has run, gathers every stage's rows to the host
(gather_taps_host) and writes the window, on both the overlapped and the sequential return path. The file has the same
"STAP" v1 layout as one card. Two messages say so when the dump cannot be done (no layer in range; the drafter owns the
split's taps). With STRATA_TAP_FILE unset nothing new runs (tap_split_ stays false) and the one-card path is unchanged.
Author's check (2x RTX 5070 Ti, 2 stages): replies byte-identical with the dump on and off, rows against one card
at cosine 0.998 or more per layer in the median, no empty slots. Not run by us (it needs two cards and a model); the
CUDA build is checked on l620.
From PR #6166 (IvanAndreychikov; its commits 417611ae0 and 955198e42), author kept. A diagnostic for the non-finite
logits reports (#879, #6145): after the direct reader (read_direct) delivers an expert blob, the same byte ranges
are read twice through an independent buffered handle (one synchronous handle per thread and shard) and compared. A
mismatch is reported only when both buffered reads agree with each other and differ from the direct bytes, with the
shard, offsets, a hexdump and a third view from a read-only file mapping that says which side is wrong. A summary
line is printed at exit. STRATA_BLOB_VERIFY=1 arms it; STRATA_BLOB_VERIFY_DELAY_SEC holds it off during the start-up
fill. It is Windows-only code (the other systems compile to nothing), and unset it costs one atomic load per
blob. Both names are in the settings register (status research). Not run by us on a pack (no machine that shows the
fault); the Windows compile is checked on the owner PC build (see the gate table).
From PR #6246 (shjszwh; its commit 6407cc70b), author kept. The gfx906 source build (-DSTRATA_HIP_GFX906=ON)
stopped in dflash2.cpp and verify.cpp ("use of undeclared identifier cudaDeviceGetStreamPriorityRange" and
cudaStreamCreateWithPriority): strata_hip.h had no alias for either name. It now maps both to their hip
functions, next to the other cuda-to-hip device and stream names. The same gap was reported in #5233, #3986 and
#4766; those three fix it in dflash2.cpp alone (a macro test or a missing guard), which would leave the other callers
(mtp.cpp, verify.cpp) unmapped, so only the compat-layer fix is taken. No effect on a build that already compiled.
From PR #4536 (schmittcn; its commit 78f48d507), author kept. Cursor::need tested pos_ + n > size_. A GGUF whose
tensor-name (or key) length is near 2^64 made the sum wrap to a small number, so the check passed and the read went
on; only std::string's length_error stopped it. The test is now n > size_ - pos_ (pos_ never passes size_, so the
subtraction cannot wrap). gguf_reader_test gains a case with a name length of UINT64_MAX - 15: it is refused as
"unexpected end of file in header" (before the fix it ended in a different error).
On an RX 7900 XTX (Windows, HIP) --adapt-async 1 ended long generations with a verify timeout and a display-driver reset every 1 to 3 long answers;
without it the same engine and config ran clean at the same speed (#5672). STRATA_ADAPT_OVERLAP=1 on a gfx1030 card (Windows, HIP) ended the first
request with a GPU fault and a display-driver timeout; it was confirmed on CUDA only (#5738). Both are opt-in. On a Windows HIP engine the engine now
starts with each of them off and prints one line saying why. STRATA_WIN_HIP_RISKY=1 takes both as asked and prints one warning line. Linux HIP, CUDA,
SYCL and Metal are unchanged.
Decision and the lines: include/strata/core/win_hip_risky.hpp; test win_hip_risky_test (both platforms, with and without the override, the lines).
The setting is registered with status research. STRATA_NUMA_BALANCING (the earlier HIP NUMA commit) was missing from the register and is added with
status default: tools/test_settings_register.py failed on it. Windows cannot be run here: the Windows branch is two constants and was compiled on
the HIP build only as the Linux side.
The two row phases of run_split_multi_native (gate/up, then down) end in a barrier: every worker waits for the slowest task of the phase, and the host quantizes the intermediate between them. With STRATA_POOL_DEP=1 the layer call is one batch (mode 7): the experts' gate/up row ranges first (expert-major), then the experts' down row ranges. A down task waits only for its own expert's gate/up tasks (a counter), and the first thread that gets there quantizes that expert's intermediate once. Every gate/up task has a lower index than every down task and waits for nothing, so a waiting down task always waits for a running task. The rows are computed by the same kernels from the same bytes: the outputs are the two-phase batch's bits (bwg_pool_bench hashes equal for Q4_K/Q5_1 and Q4_K/Q8_0 experts, 1-3 tokens, tasks 0 / 41 / 132, 1 and 3 workers). Not used under the NUMA split or for Q2_0 down rows.
The Q4_K / Q5_1 / Q8_0 row loops of native_gu_rows / native_down_rows can request the next rows of the expert while the current row is computed (row_prefetch.hpp; t0 / t1 / nta hint, a prologue for the first rows). It reads and writes nothing: the results are the same bits. On a 22-worker pool over a cold 6 GB arena it moves the layer call by at most 2.5% (0.389 to 0.379 ms), so it stays off.
Adds bwg_pool_bench: the pool's own run_split_multi_native on UD-shaped synthetic experts (Q4_K gate/up, Q5_1 / Q8_0 down), cold or hot arena, optional MADV_HUGEPAGE, a hash of the outputs.
On sm_70 / sm_75 the first verify-window capture ended the engine with "copy_i32_from_mapped launch: invalid argument" on a plain grid-stride copy,
deterministically on a 2080 Ti, and on a V100 only until STRATA_VERIFY_DEBUG=1 changed the calls in between. The launch wrappers read
cudaGetLastError(), which returns the first error since the last read from ANY call of the thread, so an earlier call that failed unchecked is
blamed on the next launch that is checked, and that check exits.
Verifier::capture (CUDA builds) now reads the slot before cudaStreamBeginCapture: a pending error is said once with its text and number ("a CUDA
error was already pending before the verify window's capture") and cleared when it is not sticky. A sticky error (illegal address, lost device)
stays and fails the calls after it as before. Nothing a launch inside the capture produces is cleared. HIP and Metal builds are untouched.
Test: pending_cuda_error_test (a failing cudaMemcpy leaves its error in the slot; take_pending_cuda_error returns it and the slot is empty after;
nothing pending changes nothing; needs a device, exit 77 without).
native_qsa_indexer_append_batch threw one text, "bad geometry, positions, parameters or scaling", for seven different causes (no stream, a wrong
geometry, a negative position, positions past the session's cells, a cell count or base past 2^31, a bad epsilon, a bad RoPE scaling). Three engine
exits on 0.1.58 could not be told apart, and nothing in the log said whether a prefix reuse had handed the append a position past the session.
The check moved into strata/kernels/qsa_batch_check.hpp (pure, no GPU): the text now starts as before and ends with the first failed predicate and
its values (p0, n and the session's cells, the block, the epsilon, the RoPE problem). The conditions are the same as before, so no request that
passed fails and none that failed passes.
Test: qsa_batch_check_test (every predicate, the position case with p0 / n / cells in the text, the old text kept at the start).
--mtp-q4 head|all rewrites the gathered draft-head subset in place as Q4_0 rows (n_embd / 32 * 18 bytes). bind() sized the buffer for the
head's own row, and an IQ4_XS head has the narrower row (1,360 bytes against 1,440 at n_embd 2560), so the host-to-device write went 8.1 MiB
past the buffer on a 106,299-token subset: "mtp: writing the draft head", engine exit 1 at load (GB10 defaults select --mtp-q4 all).
The buffer and the vram_ account now use mtp_draft_head_row_cap (strata/core/mtp_head_rule.hpp): the wider of the two rows. Formats at least
as wide as Q4_0 (Q6_K, Q8_0) and --mtp-q4 off are unchanged.
Test: mtp_head_rule_test (IQ4_XS 1,360 -> 1,440, wider formats and q4 off unchanged, n_embd not a multiple of 32).
host_available_memory (the probe behind --resident-experts, --resident-budget-gib and the arena's RAM check) returned false on two cgroup v2 shapes
that carry no problem for the memory itself, and the engine then read every expert from the files (--mmap-experts) with RAM free:
- a group in the process's chain that has no memory.max (the memory controller is not switched on for it, as for many desktop session scopes): it
counts as no limit of its own now, and the groups above it are still read;
- a container whose /proc/self/cgroup names the host's path while /sys/fs/cgroup is its own group (no cgroup namespace): the path is not in the
mount, so the mount's root is read as the process's own group (on a real v2 host the root has no limit, MemAvailable alone).
An unreadable or malformed limit still fails, and the failure now names what could not be read (HostMemory::why), appended in brackets to the three
"cannot determine available memory for ..." messages (the texts keep their start).
Test: file_expert_source_test (test_host_memory): a controllerless child, the parent's limit above it, a path outside the mount with and without a
limit on the mount's root, an unreadable memory.max. The cases that expected a failure for the first two shapes are replaced.
The auto split scales a stage's miss term by the gap to the fastest stage's link only from a 4x gap on. A PCIe 4.0 x2 slot beside a x8 one (3.6 and 14.1 GB/s probed on a rented
2x RTX 5090) is a gap of 3.92: unscaled, so auto picks K=24 and the x2 card streams ~3,000 experts per prompt chunk (4K prompt 5,950 ms against 4,270 on the x8 card alone).
STRATA_SPLIT_LINK_MIN=3 reads that gap as a link gap; unset, empty or a value below 1 keeps 4. split_rules_test covers the rule and the variable's text.
gr_upmix (prefill/kernels.cu) cached "this card has gfx11 matrix cores" in a function-level static, so on a layer split over an RX 7900 XTX (gfx1100)
and an RX 9070 XT (gfx1201) the card that reached it first decided for both: with the gfx1100 stage first, the gfx1201 stage launched the gfx11 kernel
and the first prompt died with "prefill gr_mix_r: no kernel image is available for execution on the device" (the error check after it names the next
kernel, not the bad launch). The same one-answer-for-all-cards form decided the fused hyper-connection read (STRATA_QFUSE_HC default, verify.cpp), the
DFlash2 Q4 kernel pick (dflash2.cu) and the MTP drafter's stream priority (mtp.cpp), all on "is this a gfx12 card". Each now asks once per device
ordinal through strata::core::PerDeviceFlag; the environment overrides still win for every card.
Test per_device_flag_test (host only, fake arch table: a gfx1100 first then a gfx1201, and the reverse); --legacy is the process-wide form, registered
WILL_FAIL. On a single card nothing changes: identity gate on the R9700 (gfx1201) in RESULTS-0217-FIXGPU.md. Not run on a mixed gfx11 + gfx12 pair: none here.
With --batch-mtp the proposals are checked in the slot windows and were counted only in the engine's totals and its log, so every response of a batch-path
request read timings.draft_n = 0 and draft_n_accepted = 0 (and last_timings) while /metrics and the log showed real drafting; users read it as "MTP is off".
Each batch slot now counts the proposals its windows checked and kept (both the serial and the pipelined group path), and its BDONE line ends with
` drafts=<checked>:<kept>` (nothing is added for a slot that checked none; an older server ignores the key). The server's _apply_bdone adds them to the admission's
DONE counters, which feed the response and the per-request record.
Tests: terminal/serve/test_parallel.py BatchDraftCounters (fake engine with --drafts: the response record reads them; without the key it reads as before),
engine/src/program/bdone_drafts_test.cpp (the text).
The warm-up before READY runs one dummy window per width on token id 1; its misses page that token's experts into the GPU expert cache. With the route prior
on, the first request is routed towards what is resident, so those experts bend its answer: on an RTX 3090 (IQ4_XS, 60K-token passkey prompt, 8 starts per arm) the
probability of <|im_end|> summed over the 8 answer digits had a median of 4.8 to 7.4 % in the first request after a start, 1.7 % with STRATA_WINDOW_WARM=0, 1.4 % with
the prior off (reporter's measurement).
window_warm_on(STRATA_WINDOW_WARM, prior): "0" off, "1" on, unset: on unless the prior is on. Nothing changes without STRATA_ROUTE_PRIOR (the default).
The cost is the graph build of a width that the policy first picks inside a request, tens of ms once.
Test: arch_defaults_test (window_warm_on rows). Not measured here: the reporter's 8-start passkey runs need a 3090 with the arena filled.
include/strata/core/vmm.hpp uses std::size_t and size_t but only included <cstdint> and <vector>; gcc 12 (gcc-toolset-12 on
AlmaLinux 8) does not get it from those. One include line.
On a 10 GB card the Qwen3.6-35B-A3B hybrid placement needed 1696 MiB for its buffers against 989 MiB free after the
weights, the context and the sessions, and nothing the user could set changed that figure: the two staging buffers of
the streamed prompt path (twice the largest layer's experts, 1.3 GB for UD-Q6_K_XL) are alone larger than the free memory.
The message told the user to use fewer slots or a shorter context, which cannot lower it.
place_experts now asks hybrid_plan (include/strata/qwen35/hybrid_fit.hpp, the old arithmetic moved there unchanged).
When the plan with the staging pair does not fit, the plan without it is taken: the streamed prompt path stays off (the
state a layer set with no fast prompt route already has), every batch up to a chunk's rows runs its resident experts on
the GPU and the rest on the CPU pool, and one line says so. Prompts are slower there; the model starts instead of
stopping. STRATA_Q36_KEEP_STAGING=1 keeps the old plan. When even the plan without the pair does not fit, the old
message and exit stay.
Test: engine/tests/program/q36_hybrid_fit_test.cpp (the 10 GB card's figures: old plan does not fit, new plan fits with
2 slots; a big card keeps the staging; a tiny one is still refused; the MTP-only placement and --expert-slots).
With kernel.numa_balancing=1 the NUMA scanner marks the PTEs of the expert arena (registered with hipHostRegister, a KFD userptr range) PROT_NONE
to sample which node touches it; each change invalidates the range and KFD evicts all of the process's GPU queues until it is validated again.
On a two-socket host that was 77-236 s of eviction per engine start and the "no progress for 60 s" stops (7 of 20 fresh 1K prompts), with free
RAM and no swap. The engine now sets MPOL_LOCAL (the same first-touch placement, but the scanner skips the memory) at the top of main(), before
any thread is made, when numa_balancing is on and no policy was set by the user (numactl keeps its own). STRATA_NUMA_BALANCING=keep leaves the
default policy. HIP builds on Linux only; the reporter's PR also changed the CUDA engine, which this commit does not.
Ported from PR #4867 by vivienfanghuagood (header, test, main() call; the hunks moved under engine/ and gated on HIP). The author line of the
original commit is not kept here: the commit is made as the repository owner, the PR author's work is named in this message. Test: numa_balancing_test (the decision, header-only).
Since the MMQ kernels left the HIP and CUDA builds (0.2.16), STRATA_DENSE_MMQ=1 changes nothing: the dense projections of a prompt always run as
dequantize + FP16 GEMM. The setting was still in docs/AMD_HIP.md as a working switch, so a user tuning an RX 6000 card changed a dead knob.
The engine now prints one line at start when the setting is on; docs/AMD_HIP.md says it has no effect since 0.2.16.
The gap the reporter measured on gfx1030 (dense projections 4K prompt 1342 against 2310 tok/s with the old MMQ build) is a missing int8 dense
kernel for RDNA2, not a setting; that work is not in this commit.
Test: dense_mmq_notice_test (header-only, no GPU).
A pruned pack (GSQ-RCO Coder IQ1_M: 48 layers, 256 experts) on the default engine, whose kernels are compiled for 512 experts:
lm_run used the compiled count NE for its prefetch loop, its count tables and the stride of the resident-slot table. The prefetch
asked the stager for experts 256..511, which the pack does not have ("prefill: the expert source could not copy experts 256.. of
layer 0", abort, exit 0xC0000409 on Windows), and host_res (n_layers x the model's n_expert) was read with a 512 stride, so every
layer from 1 on looked at another layer's slots and layers from 24 on read past the table's end. The walk is reached from two
chunks on a small expert cache (the small-card rule) and on every layer-major read, so it hit every card with a small cache.
The walk now loops over lm_expert_count(g.n_expert, NE) and the prefetch list comes from lm_streamed_experts (prefill/lm_walk_rule.hpp).
512-expert packs run the same code with the same count.
Test: lm_walk_rule_test (header-only): a 256-expert pack lists 0..255 and not one more, the slot table has the model's stride,
a resident or pinned expert is not streamed, the compiled count as the bound lists 512.
Under WDDM every page-locked, mapped host buffer counts against the GPU's shared (non-local) segment on each CUDA device it is mapped into, and Windows caps that segment at about half the RAM. The complement was sized from the commit capacity alone, so on a 31 GB PC with two cards the auto size (14.81 GiB) filled the segment and the next 26 KB allocation ("prefill: the token id buffer") failed with out of memory before READY. pin_cache_complement now asks DXGI (platform::gpu_shared_memory_budget, already used for the sliced arena pin) for the room the tightest CUDA device has left, keeps 2 GiB for the buffers mapped after the complement (STRATA_WDDM_SHARED_RESERVE_MIB changes it) and cuts the budget to the rest; where DXGI cannot tell, nothing changes. detail::clamp_budget_to_shared_segment is the arithmetic, with a unit test in file_expert_source_test (the reporter's 14.81 -> 10.97 GiB case at 12.97 GiB left). Not taken from the report: its second clamp (10 GiB of RAM kept for the later working set), which is tuned to one 31 GB machine.
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.
Owner decision 2026-11-19: the route tail skip is off by default; users reported lower quality. From 0.1.42 to 0.1.62 the serve start-up set
rank 7 when the variable was unset (CUDA, HIP gfx1200/gfx1201, where not all experts are on the card and fewer than 90% are cached). Now an unset
value is rank 0 on every backend, and STRATA_ROUTE_TAIL_SKIP=7 (or 1 to 9) turns it on as before.
- include/strata/core/tail_skip_default.hpp: the rule as a header-only function (unset -> 0; 1 to 9 -> itself; anything else -> 0).
- src/core/expert_source.cpp reads the variable through it.
- src/program/generate.cpp: the default-on block of the serve start-up (the cached-share, NVFP4, arch and peer conditions and their two
"off by default" lines) is gone; the line "STRATA_ROUTE_TAIL_SKIP=N is ON" stays for an explicit value; the run manifest says the skip is on only
when the rank is above 0.
- STRATA_TAIL_SKIP_MAX_CACHED moved the default rule's line and is no longer read: marked retired in the settings register (0.1.63).
- tests/core/tail_skip_default_test.cpp (cmake-cpu): unset is 0, 1 to 9 are themselves, everything else is 0.
Accumulates, per pool, the time of run_split_multi_native split into the wait for the workers to park before each
phase, the phase from publish to the last task done, the wait for the workers to park after it, the host's
activation quantization between the two phases, and per worker the time inside the row tasks and the time from
publish to leaving the park. One line every 2,000 calls and one when the pool ends. Diagnostic only; off without
the variable. Re-applied from 24d6ab38f (f-diag-pool) onto the 0.2.16 layout.
A kernel on the shared expert's low-priority side stream issues prefetch hints (cp.async.bulk.prefetch.L2 on
sm_90+, prefetch.global.L2 below) over the next layer's GGUF-form projections, hyper-connection and router
weights and the shared expert's, from the point the wait for the CPU rows starts, and joins through the shared
expert's event. The hints read and write nothing, so the window's values are the same bits. Default off;
STRATA_L2_PF_MIB=n keeps the first n MiB of a layer (in the order the layer reads them), STRATA_L2_PF_BLOCKS
sets the grid. Only the doorbell graph with CPU experts (not all-resident, not a split or batch window,
not the stage profiler). CUDA only (a no-op kernel on HIP is not launched). WeightRef gets native_bytes.
A/B on a rented GB10 (IQ3_S, all experts resident, DFlash2 drafter, fixed draft-cost table, fresh engine per start, interleaved, 3 paired rounds):
decode against the old default, chat / code / JSON / agent turn, STRATA_ATTN_DAILY +0.3 / +0.9 / +0.7 / +1.2 %, STRATA_GR_DOWN_TG +/-0 / +0.7 /
+1.1 / +0.9 % (JSON and agent 3 of 3 pairs for both); all seven bitwise switches of the 12.0 set together +1.7 % (5 rounds). GU_SWIGLU, GR_UP75,
GR_UP_WIDE, SMALL_UNR, DF_PDL measured level or slower there and stay off, and so does the E15 load ordering, which only acts with STRATA_GR_V3
(another summation order, text changes, mixed speed). Gates: identity of the first-token logits and the generated tokens, 6 of 6 prompts, with the
new defaults against the old; BASE-05 against the vastspark 0.1.62 baseline, 9 of 9 prompts identical. Numbers: phaseA-tests/bw/RESULTS-BW-B.md.
sm120_default() is cc 12.0 only, so a GB10 (cc 12.1) never got the bitwise decode switches the 12.0 cards run by default. sm12x_default(major,
minor, gb10_measured) keeps the 12.0 answer and adds the GB10 when the caller's per-switch constant (kGb10*, sm120_series.hpp) says that switch
was measured there, off under STRATA_SM121_PERF=0 and STRATA_DEFAULTS=026 like the GB10 table. The call sites of STRATA_GU_SWIGLU,
STRATA_ATTN_DAILY, STRATA_GR_UP75, STRATA_GR_DOWN_TG, STRATA_GR_UP_WIDE, STRATA_SMALL_UNR, STRATA_GR_V3_PF, STRATA_GR_V3 and STRATA_DF_PDL
ask it; every constant is false in this commit, so nothing changes yet. arch_defaults_test covers the rule and the constants.
On an RTX 5090 with UD-Q4_K_XL (every layer fused-only, the staged entry on) a 64 token prompt took
about 400 ms through the verify windows and 175 ms batched; 48 tokens 284 / 166, 32 tokens 201 / 143,
24 tokens 172 / 130 (prompt ms, median of 3 rounds, --short-read 64 against 16). A batched read has a
floor of about 125-175 ms for any length up to ~100 tokens, the windows cost about 6.5 ms a token, so
they only win up to about 16 tokens. The class default is the Strix Halo rule's twin: kSm120ShortRead
= 16 where the card is a CUDA sm_120 (STRATA_SM120_PERF=0 turns it off), every layer is fused-only and
the staged entry is on. --short-read N given by the user wins as before.
Pure rule in staged_fo_rule.hpp (short_read_default gets a last argument), test in staged_fo_rule_test.
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).
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.