Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
2a674b5
Release 1.2.10: the version, install examples and changelog
ashhart Nov 18, 2026
e5ea8a6
changelog: Unreleased above 1.2.10
ashhart Nov 18, 2026
5c8b3a5
fix(web): Check native version on release bumps
AIFlowML Nov 18, 2026
99a6392
changelog: #3745 under Unreleased
ashhart Nov 18, 2026
63d7832
Use a deterministic clock in the benchmark TTFT test
AIFlowML Nov 18, 2026
6fdc313
changelog: #3783 under Unreleased
ashhart Nov 18, 2026
1ae7447
app: show completed room tickets in the health counter
devopsfortunato Nov 17, 2026
24d2862
bot-vm: accept EPERM from the post-reap group kill on macOS
devopsfortunato Nov 18, 2026
fe56a48
changelog: #3698 under Unreleased
ashhart Nov 18, 2026
3bb1cef
Fix row dispatch tests for both pipeline representations
ashhart Nov 18, 2026
f0e5726
Let the OS readings test accept a small macOS runner's RAM
ashhart Nov 18, 2026
8961ad0
changelog: #3854 under Unreleased
ashhart Nov 18, 2026
e7badcc
docs(glm): FP4-Local receipt on main at TP=2 on two GB10
laudney Nov 15, 2026
1f26021
docs(glm): drop trailing spaces from the FP4-Local receipt's log
laudney Nov 15, 2026
7be94c8
changelog: #3425 under Unreleased
ashhart Nov 18, 2026
ba970d9
Size the conformance fixture listener for concurrent requests
AIFlowML Nov 18, 2026
8b60b64
changelog: #3784 under Unreleased
ashhart Nov 18, 2026
7fb050e
Recognize the Spark BF16 checkpoint in Desktop model checks
AIFlowML Nov 18, 2026
605a225
changelog: #3791 under Unreleased
ashhart Nov 18, 2026
0525127
Keep Desktop download diagnostics together across pipe reads
AIFlowML Nov 18, 2026
7a52080
changelog: #3793 under Unreleased
ashhart Nov 18, 2026
7ec9b66
Honor cancellation during the final download byte sample
AIFlowML Nov 18, 2026
80058f5
changelog: #3795 under Unreleased
ashhart Nov 18, 2026
023de17
Remove deleted models from the open Desktop download history
AIFlowML Nov 18, 2026
176cb66
changelog: #3798 under Unreleased
ashhart Nov 18, 2026
dd55272
Isolate the Desktop power lifecycle test
AIFlowML Nov 18, 2026
1c5c3b5
changelog: #3804 under Unreleased
ashhart Nov 18, 2026
60c80f0
Keep the selected project provider key for new chats and tasks
AIFlowML Nov 18, 2026
5641d53
changelog: #3810 under Unreleased
ashhart Nov 18, 2026
de5fffb
Honor manual benchmark results refresh during status polling
AIFlowML Nov 18, 2026
46ae869
changelog: #3817 under Unreleased
ashhart Nov 18, 2026
d325a8e
fix(web): Point to supported uv installers
AIFlowML Nov 18, 2026
7c2b29f
changelog: #3746 under Unreleased
ashhart Nov 18, 2026
cd5a3d3
Document all four CUDA release fatbin targets
AIFlowML Nov 18, 2026
f2b0d9a
Document the pinned XGrammar release prerequisite
AIFlowML Nov 18, 2026
e63f26f
changelog: #3764 under Unreleased
ashhart Nov 18, 2026
b527bca
Verify helper deadlines without waiting on process startup
AIFlowML Nov 18, 2026
e68012b
Put the helper restart timeout under the mock clock
AIFlowML Nov 18, 2026
e25446c
changelog: #3802 under Unreleased
ashhart Nov 18, 2026
0da6f0f
Use defaults for non-object TensorFold Web settings
AIFlowML Nov 18, 2026
48c4056
changelog: #3808 under Unreleased
ashhart Nov 18, 2026
008396b
Preserve unfinished engine log lines during Web reattachment
AIFlowML Nov 18, 2026
744e475
changelog: #3813 under Unreleased
ashhart Nov 18, 2026
8c55157
Keep cancelled Chat Replay turns out of completed results
AIFlowML Nov 18, 2026
5a7ce8d
changelog: #3815 under Unreleased
ashhart Nov 18, 2026
8e5a5c6
Prune benchmark comparisons after their last run is cleaned up
AIFlowML Nov 18, 2026
ef19caa
changelog: #3820 under Unreleased
ashhart Nov 18, 2026
d66330b
Keep pin and folder when creating a Web conversation
AIFlowML Nov 18, 2026
47ed8d0
changelog: #3825 under Unreleased
ashhart Nov 18, 2026
54beada
Require a completed stream in the Web connection probe
AIFlowML Nov 18, 2026
0ec1048
changelog: #3826 under Unreleased
ashhart Nov 18, 2026
be1065f
Launch registered CLI IDs on the catalog’s Orchestrator
AIFlowML Nov 18, 2026
f5765b5
changelog: #3828 under Unreleased
ashhart Nov 18, 2026
e3fb56c
web: the packaged stand-in reports 1.2.10, matching build.zig.zon
ashhart Nov 19, 2026
106efac
glm cuda: the L2 prefetch's ffn-head site also reads a MoE layer's sh…
Bizuayeu Nov 13, 2026
7c16833
changelog: #3156 under Unreleased
ashhart Nov 19, 2026
2931287
flashnext cuda: the mixed PLE shard and the nested shards leave the p…
jschmied Nov 15, 2026
e1f9607
gradient-serving pins: the two Flash Next load files #3467 changes
jschmied Nov 16, 2026
1827532
changelog: #3467 under Unreleased
ashhart Nov 19, 2026
b55171e
nemotron: drop the Living Weights copies the 10-17 revert left behind…
jschmied Nov 17, 2026
c1a5cbe
changelog: #3707 under Unreleased
ashhart Nov 19, 2026
e9b1208
Ling-3.0-tiny MLA on Metal using existing k3_mla (#1247)
ThinkOffApp Nov 16, 2026
a0e4831
Ling MLA Metal: split GPU tests and one-line comments for lean check
ThinkOffApp Nov 16, 2026
23fc9b7
Ling MLA Metal: kernel contract for rope_cache, rope_q, gate_expand
ThinkOffApp Nov 16, 2026
e74bc69
changelog: #3609 under Unreleased
ashhart Nov 19, 2026
887cf15
app: honor the latest ticket review verdict
AIFlowML Nov 15, 2026
3d05d4f
app: invalidate ticket reviews after new builder evidence
AIFlowML Nov 15, 2026
b57f8db
app: keep review notes and worker evidence scoped to their run
AIFlowML Nov 17, 2026
d870451
changelog: #3484 under Unreleased
ashhart Nov 19, 2026
b7c3a42
Use the native Qwen3.5-2B tap count in Desktop
AIFlowML Nov 18, 2026
490273e
changelog: #3768 under Unreleased
ashhart Nov 19, 2026
7fcd602
Accept OpenAI base URLs in Web engine settings
AIFlowML Nov 18, 2026
1d1aea5
changelog: #3831 under Unreleased
ashhart Nov 19, 2026
7bfd42f
Keep Desktop export actions tied to the current preview
AIFlowML Nov 18, 2026
0466fd7
changelog: #3834 under Unreleased
ashhart Nov 19, 2026
4ba2395
Cancel pending Desktop checks when automatic updates are disabled
AIFlowML Nov 18, 2026
92a438f
changelog: #3836 under Unreleased
ashhart Nov 19, 2026
89d5620
Preserve attachment diagnostics across Desktop draft reopens
AIFlowML Nov 18, 2026
31855de
changelog: #3842 under Unreleased
ashhart Nov 19, 2026
51a1080
core/quant: a GPTQ reader for AutoGPTQ v1 group 128 symmetric weights
BadAd84 Nov 16, 2026
fe3622b
core/quant: gptq reads its JSON fields through modelopt's helpers
ashhart Nov 17, 2026
08540d7
core/quant: drop gptq's test-only zerosSymmetric wrapper
ashhart Nov 17, 2026
da8e444
core/quant: gptq refuses an escaped letter, a bad checkpoint_format a…
BadAd84 Nov 17, 2026
0f8e35a
changelog: #3611 under Unreleased
ashhart Nov 19, 2026
9152300
idol: Idol's denoiser as a native Metal family, with tf-idol and its …
jayleaton Oct 31, 2026
e57c1bb
contract: Idol's denoiser kernels through gates 1-5
jayleaton Oct 31, 2026
66bb209
idol: id_qk keeps a NaN norm as F.normalize does; the recipe
jayleaton Oct 31, 2026
600cae3
idol: attention rounds P to fp16 before P V, so its denominator sums …
jayleaton Oct 31, 2026
09e4d63
idol: the recipe names the tensor units' fp32 operand truncation (#1772)
jayleaton Oct 31, 2026
0c97a43
notices: idol.metal follows idol-sdk's rounding points (Apache 2.0)
jayleaton Nov 11, 2026
dd7c45c
idol_case.py: a synthetic-conditioning case, feature1 and feature2 dr…
jayleaton Nov 11, 2026
a63301b
idol: land on main beside uocr, with the image programs in their own …
ashhart Nov 17, 2026
a178188
changelog: #1766 under Unreleased
ashhart Nov 19, 2026
fa476e8
drama voices: admin keys add and delete catalog voices under --manage…
ashhart Nov 13, 2026
dc6e459
server: the voice HTTP test runs only where its Unix socket pair exists
ashhart Nov 15, 2026
6a0af82
drama voices: bound WAV chunk and resample admission
ashhart Nov 17, 2026
5e17be3
changelog: #3140 under Unreleased
ashhart Nov 19, 2026
1bcfb7f
feat(cli): validate a cluster config file without planning or probes
mvanhorn Nov 13, 2026
4b7e461
docs(cluster): scope config validate to source builds, rename backend…
mvanhorn Nov 14, 2026
f7f1d2a
changelog: #3189 under Unreleased
ashhart Nov 19, 2026
668e953
server: an opt-in request journal with replay and crash quarantine
ashhart Nov 17, 2026
4018681
Document prompt-list replay limits and pin journal trace isolation
ashhart Nov 17, 2026
4587bea
changelog: #3221 under Unreleased
ashhart Nov 19, 2026
5c3d18b
Qwen3.5 on Metal holds its language model without the vision tower st…
jschmied Nov 15, 2026
5a61ce1
changelog: #3407 under Unreleased
ashhart Nov 19, 2026
63996ca
families: Nemotron, GLM, Qwen 3.8 27B, MiniMax M3, Dory, tensor-paral…
ashhart Nov 16, 2026
92332b2
changelog: #3558 under Unreleased
ashhart Nov 19, 2026
7e4c9c4
docs: verify NCCL selection for switchless GLM TP4
vdalesandro Nov 12, 2026
0a28f1b
docs: tighten switchless NCCL note and cite upstream release
vdalesandro Nov 12, 2026
c49a723
docs: the switchless NCCL notes wrapped at 120 columns, and 'a newer …
ashhart Nov 14, 2026
f83452a
changelog: #2993 under Unreleased
ashhart Nov 19, 2026
8c6f4e4
nvfp4 experts cuda: decode half gate-up streams words, scales and x t…
eleqtrizit Nov 4, 2026
0402162
nvfp4 experts cuda: classic, waves and half decode kernels share one …
eleqtrizit Nov 4, 2026
421c318
nvfp4 experts contract: decode CTA records from nvcc 13.0.88, with a …
eleqtrizit Nov 5, 2026
8a280ec
nvfp4 experts contract: zig fmt the decode CTA records
eleqtrizit Nov 5, 2026
3c85833
CHANGELOG: NVFP4 decode expert ring on sm_120 and GB10
eleqtrizit Nov 8, 2026
5c592f4
nvfp4 experts cuda: GB10 keeps register-loaded decode kernels
eleqtrizit Nov 8, 2026
af79b5f
CHANGELOG: move the NVFP4 decode ring line back under Unreleased
eleqtrizit Nov 9, 2026
a0a5052
tests: re-pin zig/kernels/cuda/nvfp4_experts.cu for #2266
ashhart Nov 13, 2026
264d864
changelog: #2266's line from lines/2266.txt in place of its own
ashhart Nov 19, 2026
fb069a3
docs: GLM-5.3-Flash Jammed XSFP4 NZ5 is in 1.2.10
Bizuayeu Nov 18, 2026
d427651
changelog: #3869 under Unreleased
ashhart Nov 19, 2026
6263328
Scope Desktop search project filtering to all conversations
AIFlowML Nov 19, 2026
f11825b
changelog: #3900 under Unreleased
ashhart Nov 19, 2026
a55b0f0
docs: budget released drafter adaptation by class reuse
Maxrio9 Nov 18, 2026
7fbe7ca
docs: adaptation numbers on the independent agent set
Maxrio9 Nov 18, 2026
6db2561
changelog: #3369 under Unreleased
ashhart Nov 19, 2026
440c976
idol: CUDA denoiser for sm_121/sm_120
jayleaton Nov 11, 2026
bef5692
idol: CUDA recipe
jayleaton Nov 11, 2026
db8732d
idol attention: gate 4's values run to 255, so fp16 sums miss by 100x…
jayleaton Nov 6, 2026
5750ec4
notices: idol.cu and idol_attention.cuh follow idol-sdk's rounding po…
jayleaton Nov 11, 2026
a48ba5a
idol: warp_sum, block_sum_serial and the fp16 mma from common, as cud…
jayleaton Nov 12, 2026
a69343f
tests: re-pin cublaslt.zig and kernels.zig for #1767
jayleaton Nov 14, 2026
80fd719
docs: the Idol CUDA recipe says where it has run, and how its attenti…
jayleaton Nov 14, 2026
1ba4074
idol: CUDA on main after #1766, with GustavBlack's GB10 run in the re…
ashhart Nov 17, 2026
54e083f
docs: the Idol CUDA recipe links GustavBlack's GB10 run at 05ab1990a
jayleaton Nov 17, 2026
a5de99d
changelog: #1767's line moves to its lines file for landing
ashhart Nov 17, 2026
e54cb34
cuda tests: split command help to keep the runner under 600 lines
ashhart Nov 18, 2026
9fddc26
changelog: #1767 under Unreleased
ashhart Nov 19, 2026
a532ca1
docs: the Qwen3.8-27B recipe names --thinking-budget 4096 for thinkin…
Nipale-ai Nov 14, 2026
23ff167
docs: the Qwen3.8-27B recipe says a request's thinking_budget must be…
Nipale-ai Nov 14, 2026
c029cb0
changelog: #3373 under Unreleased
ashhart Nov 19, 2026
0b20c81
changelog: #3373 under Unreleased
ashhart Nov 19, 2026
450d5d8
docs: ledger rows 30-32 for Flash Next HIP fusion, stream-tile prefet…
gilby Nov 14, 2026
4fda6a0
changelog: #3160 under Unreleased
ashhart Nov 19, 2026
6a7acc5
tools: served gates prove they ran: drafts landed, the sampler and th…
jschmied Nov 17, 2026
7526815
tools tests: the fake keeps requests sent together open until a censu…
jschmied Nov 18, 2026
a14dfd8
tools tests: the fake waits for a census only while one is read
jschmied Nov 19, 2026
07623f1
tools tests: while a census is polled, the fake waits 60 ms for a req…
jschmied Nov 19, 2026
813ff4c
changelog: #3708 under Unreleased
ashhart Nov 19, 2026
5ab109f
core: a two-session KV isolation test across spill, offload and a ret…
ashhart Nov 18, 2026
d74be31
changelog: #3840 under Unreleased
ashhart Nov 19, 2026
39c6c83
tools: compare drafted and plain IDs on recorded BF16 near-ties
ashhart Nov 18, 2026
d1a958e
changelog: #3841 under Unreleased
ashhart Nov 19, 2026
830ad13
contract: the later nvcc releases' usage table moves to registry_cuda…
ashhart Nov 18, 2026
e9ec8c9
changelog: #3865 under Unreleased
ashhart Nov 19, 2026
08841ce
host ci: run the HIP follower step-parser tests in the nightly Linux …
ashhart Nov 13, 2026
7ed25a4
Keep HIP build registration within the source length limit
ashhart Nov 17, 2026
4e0fdea
changelog: #3091 under Unreleased
ashhart Nov 19, 2026
936ebf1
test: give FakeHub its own thread-safe allocator
ashhart Nov 17, 2026
4b66b0c
Test pull clients with private I/O and trace-free leak checking
ashhart Nov 18, 2026
abb3665
changelog: #3740 under Unreleased
ashhart Nov 19, 2026
165b6e8
Anchor relative Web service token paths to the calling directory
AIFlowML Nov 18, 2026
9c0c27e
changelog: #3838 under Unreleased
ashhart Nov 19, 2026
bc422df
glm: the decode select under the mla_select knock-out; tf-glm-index-s…
ashhart Nov 18, 2026
fbd4ef9
glm: decode key lists past 3,072 blocks on many threadgroups (a sampl…
ashhart Nov 18, 2026
4249bf7
glm: a window's KDA step takes its rows' gates, convolutions and norm…
ashhart Nov 18, 2026
68c9edf
glm: the decode select's loads issued before their compares; glm_inde…
ashhart Nov 18, 2026
eca78df
contract: GLM's decode select mark and merge and the windowed KDA ste…
ashhart Nov 18, 2026
f16b54a
glm: a decode window's dense-attention rows take three launches for a…
ashhart Nov 18, 2026
a311f5e
glm: decode experts take two gate/up outputs a simdgroup up to 4 rows…
ashhart Nov 18, 2026
96a42b9
glm: the hyper-connection boundary's expand puts each slice's partial…
ashhart Nov 18, 2026
cedfe77
contract: GLM's window attention, boundary parts and decode expert sh…
ashhart Nov 18, 2026
9be9e64
glm: the knock-out profile leaves out one launch of the fused MoE pat…
ashhart Nov 18, 2026
9abd5b1
glm: the hyper-connection boundary's split takes two threadgroups a r…
ashhart Nov 18, 2026
9cd3714
glm: on an Ultra's GPU a window of two or more rows puts each KDA hea…
ashhart Nov 18, 2026
95adb8a
glm: dense latent attention loads each step's blocks during the step …
ashhart Nov 18, 2026
757f42f
glm: a one-row window's router and indexer-gate logits take a kernel …
ashhart Nov 18, 2026
030f1d7
contract: GLM's one-row router logits, two-group KDA heads and norm, …
ashhart Nov 18, 2026
7e5f07b
glm: the route select takes each pick with simd_max and simd_min, mem…
ashhart Nov 18, 2026
050b15e
glm: an MLA layer's latent key norm, indexer key norm and indexer wei…
ashhart Nov 18, 2026
ac39a15
glm: dense latent attention scales the queries by 1/16 as the scores …
ashhart Nov 18, 2026
38279ee
glm: a MoE layer's combine moves into the next boundary's expand, whi…
ashhart Nov 18, 2026
e5701ca
glm: a one-row MoE layer drops the select launch: each routed gate/up…
ashhart Nov 18, 2026
5d6d780
glm: a decode MLA layer's query norm joins the cache writes' launch a…
ashhart Nov 18, 2026
cc17776
contract: GLM's simd route select, merged MLA norms, folded query sca…
ashhart Nov 18, 2026
5dcfb0c
glm: the prompt profile leaves out the route's logits and top-k, the …
ashhart Nov 18, 2026
6554215
glm: tf-glm-run hashes each reply's caches once its prompt is done (G…
ashhart Nov 18, 2026
6a9fea8
glm: a prompt chunk's routed experts and deep dense products walk the…
ashhart Nov 18, 2026
1885bee
contract: GLM's prompt experts and dense products in column groups ag…
ashhart Nov 18, 2026
443fe8a
glm metal: no build path in the release binary
ashhart Nov 18, 2026
34cd148
glm: the prompt profile can play each layer's routes and key lists ba…
ashhart Nov 18, 2026
e102343
glm: a prompt chunk's index scores give each simdgroup 16 rows x 64 b…
ashhart Nov 18, 2026
cada835
contract: GLM's prompt index scores at both tile heights against main…
ashhart Nov 18, 2026
908546c
glm: a prompt chunk's routed-expert gathers load each step's codes, s…
ashhart Nov 18, 2026
6aeb2b9
contract: a control for GLM's prompt expert gathers that loads each s…
ashhart Nov 18, 2026
f290779
Drop the trailing blank line in glm_mla_norms_ref.metal (git diff --c…
ashhart Nov 19, 2026
d42deff
changelog: #3458 under Unreleased
ashhart Nov 19, 2026
b303fed
changelog: #3458 under Unreleased
ashhart Nov 19, 2026
efbcf76
kernel contract: the relu2 stream tile at 5, 6 and 8 bits
gilby Nov 12, 2026
64e6db6
nemotron hip: read each matrix at its own oQ width
gilby Nov 12, 2026
6271393
Nemotron on HIP: admit and load a bf16 token table beside quantized m…
gilby Nov 18, 2026
94bf2e1
Move Nemotron config value types to keep config under 600 lines
ashhart Nov 19, 2026
174010e
changelog: #3575 under Unreleased
ashhart Nov 19, 2026
a42f1ae
Merge upstream/main into feat/121-merge-upstream-main
plotarmordev Nov 19, 2026
568a98b
speech: code-point prompt via Utf8View (Zig 0.17 iterator API)
plotarmordev Nov 19, 2026
dfcfd48
server: keep the engine voice catalog through the locked store
plotarmordev Nov 19, 2026
796c931
speech test: restore the output_full lane fill dropped in the merge
plotarmordev Nov 19, 2026
91eeda3
server: refuse --request-voices and --manage-voices on an engine-owne…
plotarmordev Nov 19, 2026
359ae76
Merge remote-tracking branch 'origin/main' into feat/121-merge-upstre…
plotarmordev Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 8 additions & 5 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: TensorFold Web
on:
push:
branches: [main]
paths: ["web/**", ".github/workflows/web.yml"]
paths: ["web/**", ".github/workflows/web.yml", "build.zig.zon"]
pull_request:
paths: ["web/**", ".github/workflows/web.yml"]
paths: ["web/**", ".github/workflows/web.yml", "build.zig.zon"]

permissions:
contents: read
Expand Down Expand Up @@ -60,9 +60,12 @@ jobs:
- run: npm ci
- run: npm test
- run: npm run build
# the built page ships in the package, so it must match the sources
- name: Built page is committed
# The page and stand-in version ship in the package, so both must match the sources.
- name: Generated Web files are committed
run: |
git diff --exit-code -- ../tensorfold_web/ui_dist || { echo "tensorfold_web/ui_dist is stale; run npm run build in ui/ and commit"; exit 1; }
git diff --exit-code -- ../tensorfold_web/ui_dist ../tensorfold_web/data/native-version.json || {
echo "Generated Web files are stale; run npm run build in web/ui and commit"
exit 1
}
- name: No untracked built files
run: test -z "$(git status --porcelain -- ../tensorfold_web/ui_dist)"
130 changes: 130 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Needs glibc 2.28 or newer and NVIDIA driver R580 or newer (CUDA 13.0). The [run
lists the archive's requirements; Windows has [its own guide](docs/WINDOWS.md).

```sh
V=1.2.9
V=1.2.10
case "$(uname -m)" in
aarch64|arm64) PLATFORM=linux-aarch64 ;;
x86_64) PLATFORM=linux-x86_64 ;;
Expand Down
4 changes: 2 additions & 2 deletions RUNBOOK.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ For an archive installation, download the arm64 asset and its companion checksum
[latest release](https://github.com/ashhart/TensorFold/releases/latest), with `V` set to its version:

```sh
V=1.2.9
V=1.2.10
curl -fLO https://github.com/ashhart/TensorFold/releases/download/v$V/tensorfold-$V-macos-arm64.tar.gz
curl -fLO https://github.com/ashhart/TensorFold/releases/download/v$V/tensorfold-$V-macos-arm64.tar.gz.sha256
shasum -a 256 -c tensorfold-$V-macos-arm64.tar.gz.sha256
Expand Down Expand Up @@ -210,7 +210,7 @@ Qwen4 has synthetic gates only.
On a GB10 arm64 host (an x86_64 host uses `linux-x86_64` in the same commands):

```sh
V=1.2.9
V=1.2.10
curl -fLO https://github.com/ashhart/TensorFold/releases/download/v$V/tensorfold-$V-linux-aarch64.tar.gz
curl -fLO https://github.com/ashhart/TensorFold/releases/download/v$V/tensorfold-$V-linux-aarch64.tar.gz.sha256
sha256sum -c tensorfold-$V-linux-aarch64.tar.gz.sha256
Expand Down
1 change: 1 addition & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ These follow a model's release code or a library's model code for their math, ro
- `zig/src/vision/qwen_cuda.zig`: `Qwen3_5VisionModel` in transformers.
- `zig/src/core/picture/patches_test.zig`: recorded image-processor output data from `Lfm3VlImageProcessor` and `Qwen2VLImageProcessor` in transformers; the processing implementation is described below.
- `zig/src/families/flashnext/rotary_config.zig`: `_compute_yarn_parameters` in transformers, for the 64 rotary dims.
- `zig/kernels/metal/idol.metal`, `zig/kernels/cuda/idol.cu` and `zig/kernels/cuda/idol_attention.cuh`: the rounding points of Idol's denoiser in [speridlabs/idol-sdk](https://github.com/speridlabs/idol-sdk) at `4702a7f0`. Copyright speridlabs, Apache License 2.0; see [the license text](LICENSES/Apache-2.0.txt).

transformers is Copyright The HuggingFace Team, Apache License 2.0; see [the license text](LICENSES/Apache-2.0.txt).

Expand Down
220 changes: 220 additions & 0 deletions app/electron/agent/bot-vm/guest.trace-diagnostic.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,220 @@
import assert from 'node:assert/strict'
import { spawnSync } from 'node:child_process'
import { mkdirSync, mkdtempSync, rmSync } from 'node:fs'
import os from 'node:os'
import path from 'node:path'
import { BOT_VM_GUEST } from './guest'

// Trace-only mirror of the guest program: same logic and limits as BOT_VM_GUEST, with P*/F*/X* markers on stderr localizing which syscall raises inside command(); assertions match guest.test.ts.
const DIAG = String.raw`import os, sys, json, stat, subprocess, signal, selectors, time, uuid, fnmatch, itertools
MAX=65536
def E(*a): print(*a, file=sys.stderr, flush=True)
def pathparts(value):
if not isinstance(value,str) or len(value)>2048 or '\x00' in value: raise ValueError('Invalid workspace path.')
if value=='/workspace': value=''
elif value.startswith('/workspace/'): value=value[11:]
elif value.startswith('/'): raise ValueError('Files must stay inside /workspace.')
parts=value.split('/')
if any(p=='..' for p in parts): raise ValueError('Parent paths are not allowed.')
return [p for p in parts if p not in ('','.')]
def directory(parts,create=False):
fd=os.open('/workspace',os.O_RDONLY|os.O_DIRECTORY|os.O_NOFOLLOW)
try:
for p in parts:
if create:
try: os.mkdir(p,0o700,dir_fd=fd)
except FileExistsError: pass
nextfd=os.open(p,os.O_RDONLY|os.O_DIRECTORY|os.O_NOFOLLOW,dir_fd=fd)
os.close(fd); fd=nextfd
return fd
except: os.close(fd); raise
def readfile(parts,limit=1048576):
if not parts: raise ValueError('Choose a file.')
parent=directory(parts[:-1]); fd=None
try:
fd=os.open(parts[-1],os.O_RDONLY|os.O_NOFOLLOW|os.O_NONBLOCK,dir_fd=parent)
s=os.fstat(fd)
if not stat.S_ISREG(s.st_mode) or s.st_nlink!=1: raise ValueError('Only regular files without links can be read.')
if s.st_size>limit: raise ValueError('File exceeds the one MiB text limit.')
with os.fdopen(fd,'rb') as f: fd=None; raw=f.read(limit+1)
if len(raw)>limit: raise ValueError('File exceeds the text limit.')
return raw.decode('utf-8')
finally:
if fd is not None: os.close(fd)
os.close(parent)
def writefile(parts,content):
if not parts or not isinstance(content,str) or len(content.encode('utf-8'))>1048576: raise ValueError('Write requires a file and at most one MiB of UTF-8 text.')
parent=directory(parts[:-1],True); temp='.tensorfold-'+uuid.uuid4().hex
try:
try:
s=os.stat(parts[-1],dir_fd=parent,follow_symlinks=False)
if not stat.S_ISREG(s.st_mode) or s.st_nlink!=1: raise ValueError('Refusing to replace a link or non-regular file.')
except FileNotFoundError: pass
fd=os.open(temp,os.O_WRONLY|os.O_CREAT|os.O_EXCL|os.O_NOFOLLOW,0o600,dir_fd=parent)
with os.fdopen(fd,'w',encoding='utf-8') as f: f.write(content); f.flush(); os.fsync(f.fileno())
os.replace(temp,parts[-1],src_dir_fd=parent,dst_dir_fd=parent)
finally:
try: os.unlink(temp,dir_fd=parent)
except FileNotFoundError: pass
os.close(parent)
def walk(parts):
pending=[parts]; seen=0
while pending and seen<2000:
parentparts=pending.pop(); fd=directory(parentparts)
try:
with os.scandir(fd) as entries: names=sorted(entry.name for entry in itertools.islice(entries,1001))
for name in names[:1000]:
seen+=1
if seen>2000: return
info=os.stat(name,dir_fd=fd,follow_symlinks=False); rel=parentparts+[name]
if stat.S_ISDIR(info.st_mode) and name not in ('node_modules','.git','__pycache__','.venv'): pending.append(rel)
elif stat.S_ISREG(info.st_mode) and info.st_nlink==1: yield rel
finally: os.close(fd)
def command(args):
cmd=args.get('command'); timeout=args.get('timeoutMs',30000)
if not isinstance(cmd,str) or not cmd.strip() or len(cmd)>16384 or '\x00' in cmd: raise ValueError('Command must contain at most 16,384 characters.')
if not isinstance(timeout,(int,float)): raise ValueError('Invalid command timeout.')
timeout=max(1000,min(120000,int(timeout)))/1000
E('P1 pre-Popen: cmd=%r timeout=%r' % (cmd,timeout))
p=subprocess.Popen(['/bin/sh','-c',cmd],cwd='/workspace',stdin=subprocess.DEVNULL,stdout=subprocess.PIPE,stderr=subprocess.STDOUT,start_new_session=True,env={'PATH':'/usr/local/bin:/usr/bin:/bin','HOME':'/workspace','LANG':'C.UTF-8','TMPDIR':'/tmp'})
E('P2 Popen ok: pid=%r pgid=%r' % (p.pid, os.getpgid(p.pid)))
sel=selectors.DefaultSelector(); E('P3 selector created: %s' % type(sel).__name__)
sel.register(p.stdout,selectors.EVENT_READ); E('P4 registered fd=%r' % p.stdout.fileno())
data=bytearray(); end=time.monotonic()+timeout; timedout=False
try:
while sel.get_map():
remaining=end-time.monotonic()
if remaining<=0: timedout=True; E('P5b time limit hit bytes=%d' % (len(data),)); break
for key,_ in sel.select(min(.1,remaining)):
chunk=os.read(key.fileobj.fileno(),8192)
if not chunk: sel.unregister(key.fileobj); E('P5c EOF -> unregistered fd=%r' % key.fileobj.fileno())
elif len(data)<MAX: data.extend(chunk[:MAX-len(data)])
if len(data)>=MAX: E('P5a MAX reached bytes=%d -> break' % (len(data),)); break
E('P6 loop done: bytes=%d timedout=%r bounded=%r' % (len(data),timedout,len(data)>=MAX))
bounded=len(data)>=MAX
if timedout or bounded:
E('P7 primary killpg(%r,SIGKILL)' % p.pid)
try: os.killpg(p.pid,signal.SIGKILL); E('P7a primary killpg returned')
except (ProcessLookupError, PermissionError) as e: E('P7a primary killpg %s: %r' % (type(e).__name__, e))
E('P8 primary p.wait(timeout=2)')
try: code=p.wait(timeout=2); E('P8a reaped code=%r' % (code,))
except subprocess.TimeoutExpired:
E('P8b wait expired -> secondary killpg + wait')
os.killpg(p.pid,signal.SIGKILL); code=p.wait(timeout=2); E('P8c reaped after secondary code=%r' % (code,))
output=data.decode('utf-8',errors='replace')
if timedout: output+='\n[Command stopped at its time limit.]'
if bounded: output+='\n[Command stopped at its output limit.]'
result={'ok':code==0 and not timedout and not bounded,'code':code,'output':output,'truncated':bounded,'interrupted':timedout or bounded}
E('P9 returning normal/bounded result: ok=%r code=%r truncated=%r outlen=%d' % (result['ok'],result['code'],result['truncated'],len(output)))
return result
finally:
E('F1 finally start (poll=%r)' % (p.poll(),))
sel.close(); E('F2 sel.close() ok')
p.stdout.close(); E('F3 p.stdout.close() ok')
E('F4 FINAL killpg(%r,SIGKILL) -- after reap' % p.pid)
try:
os.killpg(p.pid,signal.SIGKILL); E('F4a final killpg returned (no exception)')
except ProcessLookupError as e: E('F4a final killpg ProcessLookupError: %r' % (e,))
except PermissionError as e: E('F4a final killpg PermissionError errno=%r' % (getattr(e,'errno',None),))
E('F5 pre-poll: poll=%r' % (p.poll(),))
if p.poll() is None: E('F5a still unreaped -> p.wait()'); p.wait(); E('F5b waited')
E('F6 finally end')
def main(req):
tool=req.get('tool'); args=req.get('args')
if not isinstance(args,dict): raise ValueError('Invalid tool input.')
if tool=='run_command': return command(args)
parts=pathparts(args.get('path',''))
if tool=='read_file':
text=readfile(parts); lines=text.split('\n'); offset=max(1,min(1000000,int(args.get('offset',1)))); limit=max(1,min(2000,int(args.get('limit',2000))))
out='\n'.join(str(i+offset).rjust(5)+'\t'+line for i,line in enumerate(lines[offset-1:offset-1+limit])); truncated=len(out)>MAX
return {'ok':True,'output':out[:MAX]+ ('\n[Output limited; use a later offset.]' if truncated else ''),'truncated':truncated}
if tool in ('write_file','edit_file'):
if tool=='write_file': content=args.get('content')
else:
content=readfile(parts); old=args.get('old_string'); new=args.get('new_string')
if not isinstance(old,str) or not old or not isinstance(new,str) or content.count(old)!=1: raise ValueError('The old string must occur exactly once.')
content=content.replace(old,new,1)
writefile(parts,content); return {'ok':True,'output':'Saved '+ '/'.join(parts),'changedPaths':['/'.join(parts)]}
if tool=='list_dir':
fd=directory(parts)
try:
with os.scandir(fd) as entries: names=sorted(entry.name for entry in itertools.islice(entries,501))
out=[]
for name in names[:500]:
s=os.stat(name,dir_fd=fd,follow_symlinks=False)
if not stat.S_ISLNK(s.st_mode): out.append(name+('/' if stat.S_ISDIR(s.st_mode) else ''))
return {'ok':True,'output':'\n'.join(out)[:MAX] or '(empty)','truncated':len(names)>500}
finally: os.close(fd)
if tool in ('search','glob'):
value=args.get('query' if tool=='search' else 'pattern')
if not isinstance(value,str) or not value or len(value)>500 or '\x00' in value: raise ValueError('Provide a bounded search string or glob pattern.')
if tool=='glob' and (value.startswith('/') or '..' in value.split('/')): raise ValueError('Glob must stay inside the workspace.')
out=[]; count=0
for rel in walk(parts):
count+=1; name='/'.join(rel)
if tool=='glob':
relative='/'.join(rel[len(parts):])
if fnmatch.fnmatchcase(relative,value) or (value.startswith('**/') and fnmatch.fnmatchcase(relative,value[3:])): out.append(name)
else:
try: text=readfile(rel,65536)
except (ValueError,UnicodeError,OSError): continue
for i,line in enumerate(text.split('\n')):
if value in line: out.append(name+':'+str(i+1)+':'+line[:1000])
if len(out)>=100: break
if len(out)>=100 or sum(len(x)+1 for x in out)>MAX: break
return {'ok':True,'output':'\n'.join(out)[:MAX] or '(no matches)','truncated':count>=2000 or len(out)>=100}
raise ValueError('This tool is not available inside the bot VM.')
try:
E('P0 stdin read')
raw=sys.stdin.buffer.read(1100000)
if len(raw)>1090000: raise ValueError('Request exceeds the VM limit.')
result=main(json.loads(raw)); print(json.dumps(result,ensure_ascii=True))
except Exception as e:
E('X1 outer except: %s: %r' % (type(e).__name__, str(e)))
E('X2 __context__ chain: %r' % (repr(e.__context__),))
print(json.dumps({'ok':False,'output':'VM tool refused: '+str(e)[:500]}))`

const root = mkdtempSync(path.join(os.tmpdir(), 'tensorfold-vm-guest-test-'))
try {
const workspace = path.join(root, 'workspace')
mkdirSync(workspace)
// Same two rewrites guest.test.ts applies to BOT_VM_GUEST, so both programs see one remapped root.
const apply = (src: string) => src.replaceAll('/workspace', workspace).replace('value=value[11:]', `value=value[${workspace.length + 1}:]`)
const realProgram = apply(BOT_VM_GUEST)
const diagProgram = apply(DIAG)
const probe = spawnSync('/usr/bin/python3', ['-I', '-c', "import sys,selectors,platform,json;print(json.dumps({'python':sys.version,'selector':type(selectors.DefaultSelector()).__name__,'platform':platform.platform()}))"], { encoding: 'utf8' })
const envProbe = probe.status === 0 ? JSON.stringify(JSON.parse(probe.stdout)) : JSON.stringify({ probeStatus: probe.status, probeError: probe.error?.message, probeStderr: probe.stderr })
const run = (program: string, tool: string, args: Record<string, unknown>) => spawnSync('/usr/bin/python3', ['-I', '-c', program], { input: JSON.stringify({ tool, args }), encoding: 'utf8', timeout: 10000 })
type RunResult = ReturnType<typeof run>
// Every message carries the case id, iteration, env probe and both stream tails so the CI log alone explains a failure.
const detail = (caseId: string, iteration: number, result: RunResult) => `${caseId} iter=${iteration} env=${envProbe} signal=${result.signal ?? ''} error=${result.error?.message ?? ''} stdout_tail=${result.stdout.slice(-1500)} stderr_tail=${result.stderr.slice(-4000)}`
const parsedOf = (caseId: string, iteration: number, result: RunResult) => {
assert.equal(result.status, 0, `${caseId} iter=${iteration} guest exited abnormally: ${detail(caseId, iteration, result)}`)
return JSON.parse(result.stdout) as { ok?: unknown; truncated?: unknown; interrupted?: unknown; code?: unknown }
}
for (let i = 1; i <= 8; i++) {
const result = run(realProgram, 'run_command', { command: 'yes bounded-output' })
const parsed = parsedOf('A-real-yes', i, result)
assert.equal(parsed.ok, false, detail('A-real-yes', i, result))
assert.equal(parsed.truncated, true, detail('A-real-yes', i, result))
assert.equal(typeof parsed.code, 'number', detail('A-real-yes', i, result))
}
const hello = run(diagProgram, 'run_command', { command: 'printf hello' })
const helloParsed = parsedOf('B-diag-printf', 1, hello)
assert.equal(helloParsed.ok, true, detail('B-diag-printf', 1, hello))
assert.equal(helloParsed.truncated, false, detail('B-diag-printf', 1, hello))
const nap = run(diagProgram, 'run_command', { command: 'sleep 8', timeoutMs: 1000 })
const napParsed = parsedOf('B-diag-timeout', 1, nap)
assert.equal(napParsed.ok, false, detail('B-diag-timeout', 1, nap))
assert.equal(napParsed.interrupted, true, detail('B-diag-timeout', 1, nap))
let lastYesStderr = ''
for (let i = 1; i <= 8; i++) {
const result = run(diagProgram, 'run_command', { command: 'yes bounded-output' })
const parsed = parsedOf('B-diag-yes', i, result)
assert.equal(parsed.ok, false, detail('B-diag-yes', i, result))
assert.equal(parsed.truncated, true, detail('B-diag-yes', i, result))
lastYesStderr = result.stderr
}
console.log(`trace-diagnostic: 8 real runs, 10 instrumented runs, env ${envProbe}`)
console.log(`trace-diagnostic last-instrumented-yes stderr:\n${lastYesStderr}`)
} finally { rmSync(root, { recursive: true, force: true }) }
4 changes: 2 additions & 2 deletions app/electron/agent/bot-vm/guest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def command(args):
bounded=len(data)>=MAX
if timedout or bounded:
try: os.killpg(p.pid,signal.SIGKILL)
except ProcessLookupError: pass
except (ProcessLookupError, PermissionError): pass
try: code=p.wait(timeout=2)
except subprocess.TimeoutExpired:
os.killpg(p.pid,signal.SIGKILL); code=p.wait(timeout=2)
Expand All @@ -94,7 +94,7 @@ def command(args):
finally:
sel.close(); p.stdout.close()
try: os.killpg(p.pid,signal.SIGKILL)
except ProcessLookupError: pass
except (ProcessLookupError, PermissionError): pass
if p.poll() is None: p.wait()
def main(req):
tool=req.get('tool'); args=req.get('args')
Expand Down
Loading