Two design lineages reconciled into one specification, with the parts that run on a general host measured, the parts that depend on public device floors calculated, and the parts that need a fleet stated as a gated protocol. Edition v1.1.0 (evidence edition) adds Virtual Lab measurements on fleet host classes and corrects the codec ratio, the 27B state geometry and the transfer overhead against them.
A household owns several small computers that are idle most of the day and together hold more memory than any one of them. Today every serving path in the THOX fleet routes a whole request to one node that already holds a whole model, so the largest model a home can run is bounded by its largest device. This paper reconciles two THOX design lineages for MeshStack™, the private device mesh, into one specification and tests the parts of it that can be tested without a device fleet. The design has four mechanisms: a capacity-priced pipeline sharder whose two-domain admission rule fails closed; a KV cache organised as a parent-chained, HMAC-keyed graph whose cross-node transfer is gated by both a cost model and a live authority path; a lease-fenced role layer that keeps device owners sovereign under routine churn; and a control plane that degrades to a 239-byte LoRa carrier when the LAN is gone. We report measured results for the mechanisms that run on general hosts: lossless compression of real KV state captured from running GGUF inference reaches 1.17x to 1.20x with a byte-split zstd codec, bit-exact, at 422 to 935 MB/s encode on a CPU host class (the 1.51x of the previous edition was a bfloat16-tensor result and is restated in Section 6.1); parent-chained HMAC keying costs 9.7 microseconds per 64-token chunk; a cross-host KV transfer and a two-host llama.cpp pipeline split were measured on fleet host classes with their caveats stated; and the lease fencing of Section 4.5 passed a live drill on the deployed coordinator, with every stale action rejected. We report calculated results where the inputs are public: at the published THOX class floors (2, 4 and 6 GB) a three-device mesh cannot place the 27.8B demo model used by the current reference implementation at any usable fraction we tried, which contradicts the reference demo's fixtures and is the paper's central negative result. No THOX device measurement is claimed; every measured number is labelled with the host class it ran on.
MeshStack™ exists to spend a household's aggregate device memory on models no single device can hold. Two THOX design documents answer how: the storage-aware parallelism paper of edition 1.1.0 [1], which recommends whole-request placement first and pipeline distribution only after measurement, and the MeshStack v2 design paper [2], which fixes pipeline sharding as the mesh form and adds a KV graph, a secrets graph and a scheduler cost form. A third note proposes expert parallelism and speculative decoding on top [3], and a fourth proposes a lease-based device role layer [4]. They agree on principles and disagree on sequencing, control-plane ownership and what the device floors permit. This paper is the reconciliation, and it adds the evidence that could be produced without a fleet.
The THOX device line (ThoxAir, ThoxMini, ThoxClip, the ThoxKey companion and desktop hosts) runs ThoxOS™, a local-first operating system whose public class floors are 2 GB, 4 GB and 6 GB of RAM for the E2, P4 and P6 classes [5]. A fleet audit of 34 MeshStack-related repositories on 2026-10-30 found that every serving path routes a whole request to a node that already holds the whole model [2]. That pattern is correct for models that fit and useless for models that do not. The design question is how to pool the memory of a few small, churn-prone, owner-controlled devices without pretending the home is a datacenter.
Published systems answer the capacity half of that question. prima.cpp runs 30B to 70B models on heterogeneous home clusters with pipelined-ring parallelism and disk offload [6]; TPI-LLM argues for tensor parallelism on low-resource edge devices [7]; EdgeShard, Galaxy and LinguaLinked partition models across cooperating edge devices [8, 9, 10]; Petals and BloomBee run pipelines over the internet with checkpoint-and-replay recovery and lossless activation compression [11, 12, 13]; exo is the best-known hobbyist implementation [14]. None of them answers the authority half: who may move a household's KV state, when a departed device's permissions die, and how an owner's foreground work stays ahead of mesh jobs. That half is where THOX's design differs, and it is where this paper spends its design effort.
Within THOX the record is split. Lineage A [1] is a source-grounded architecture over five parallelism families with a calculator and an unexecuted physical protocol; it recommends whole-request placement and local staging first. Lineage B [2] fixes pipeline sharding, a five-tier KV graph with grant-gated transfer, a secrets grant graph and a Dynamo-style cost form, with a Python reference implementation whose root suite passed 63 tests at HEAD b01bc03 after a recorded admission regression. Two notes add a lossless-transport proposal with expert parallelism [3] and a lease-based Auto Device Role Mode [4]. The contributions of this paper are:
Everything the paper measures ran on general fleet host classes (an Azure VM CPU host, a fleet GPU host, an EC2 Mac with an Apple M4, and the deployed role coordinator), each labelled where its numbers appear. Nothing ran on a THOX device, and no device measurement is claimed anywhere in this paper. Section 7 states those limits once more, itemised, and Section 9 lists the decisions that only the founders can take.
Tensor parallelism slices every layer's matrices across workers and needs a collective per layer, which assumes a fast symmetric interconnect [15]. Pipeline parallelism assigns contiguous layer ranges to stages and moves one activation tensor per token or micro-batch per boundary. Expert parallelism places experts of a mixture-of-experts layer on different workers and routes tokens to them [16]. Context parallelism partitions sequence or attention state [17]. Lineage A translated all five families into a resource contract and found that only whole-request and pipeline placement are admissible over slow links without backend support that does not yet exist in the fleet [1]; lineage B fixed pipeline as the mesh form and tensor as intra-node only (decision D10) [2]. TPI-LLM's counter-argument, that tensor parallelism can beat pipeline for single-user edge inference, holds when links are fast enough for per-layer collectives and memory is the binding constraint [7]; its evaluation used a controlled testbed, and the THOX relay and Wi-Fi assumptions of Section 3 do not satisfy its premise. This paper keeps pipeline as the generation-1 form and records tensor-on-LAN as a measured question for the benchmark wave.
Datacenter serving systems treat the KV cache as a first-class, tiered, movable object: Mooncake builds a KV-centric disaggregated architecture [18], LMCache a KV layer across engines and tiers [19], CacheBlend reuses precomputed KV at non-prefix positions by selective recomputation [20], CacheGen streams compressed KV over bandwidth-limited links [21], and PagedAttention manages KV inside one engine [22]. Orca, DistServe and SGLang contribute iteration-level scheduling, prefill/decode disaggregation and radix-tree prefix reuse [23, 24, 25]. Tutti and SARIA make SSD-backed KV practical with reload scheduling and persistence selection [26, 27]. MeshStack borrows the premise and changes three things: tiers are devices in a home, movement is gated by authority as well as by cost, and mesh-wide prefill/decode disaggregation is rejected for generation 1 [2].
Lossless KV compression is a young line: GAAC exploits bfloat16 exponent redundancy with calibrated per-channel codes for personal devices [28]; SplitZip targets disaggregated serving with ultra-fast codecs [29]; ZipFusion and others fuse decompression into attention. BloomBee uses a byte-split layout plus entropy coding for activations over the internet [13]. This paper does not design a codec. It measures the simplest construction in that family (byte planes plus a general entropy coder, Zstandard [30]) on real tensors so that the PLACE cost model has a measured ratio instead of a borrowed one, and it compares against a Gaussian control to show that the gain is a property of the tensors.
Borg and Omega established capability-aware placement with shared state and optimistic concurrency [31, 32]; Chubby and Kubernetes leases established the renewable lease as the primitive that makes ownership disappear when its holder does [33, 34]. The Auto Device Role Mode note maps those lessons onto MeshStack: a metadata-only coordinator, a lease with a fencing epoch, hard filters before scoring, and a strict queue in which owner work is P0 [4]. The Dynamo KV Router and llm-d cost form that lineage B adopts prices prefill by prefix overlap and decode by load [2]. Kafila plans stage and memory placement on a trusted set of heterogeneous commodity machines [35]; its fleets are not churn-prone mobile devices.
FlexGen and LLM in a flash established that disk and flash can extend capacity at a latency cost that depends on the demanded fraction of weights and on read layout [36, 37]; FlashMoE and the SSD-resident MoE work extend that to experts [38, 39]. CEMA-Router, Prism, Mesh-Attention and EasyBalance address routing, expert placement, attention locality and cross-layer balance at datacenter or edge-server scale [40, 41, 42, 43]; the lossless-transport note cites them as motivation [3], and this paper keeps them in that role: their numbers are theirs, on their hardware. The stage-level NPU study and the mobile battery study motivate recording dispatch, fallback and energy costs rather than selecting engines by advertised ratings [44, 45]. InferSlice's reference architecture for SLO-driven inference over a telco WAN is the closest formal treatment of SLO gates [46].
| System | Setting | Sharding form | KV movement | Authority model | Owner sovereignty, churn | Evidence class |
|---|---|---|---|---|---|---|
| prima.cpp [6] | home cluster, mixed CPU/GPU, Wi-Fi | pipelined ring with disk offload | none across nodes | none (trusted cluster) | not modelled | measured, authors' hardware |
| TPI-LLM [7] | low-resource edge devices | tensor | none | none | not modelled | measured, authors' testbed |
| EdgeShard / Galaxy [8, 9] | cooperating edge devices | layer partition / hybrid | none | none | not modelled | measured, authors' testbed |
| Petals, BloomBee [11, 13] | internet volunteers | pipeline | node-local | none (untrusted peers assumed) | checkpoint and replay | measured, authors' deployments |
| Mooncake, LMCache [18, 19] | datacenter | n/a | tiered, cost-driven | none | n/a | measured, production |
| Kafila [35] | trusted heterogeneous machines | pipeline, memory-aware | none | trusted set | not modelled | measured, authors' fleet |
| MeshStack lineage A [1] | THOX devices, SSD hosts | whole-request first; pipeline later | session-bound, ephemeral | leases per request | fail closed | calculated; protocol unexecuted |
| MeshStack lineage B [2] | THOX private mesh | contiguous pipeline (D10) | grant-gated T3 (D9) | secrets graph, consumption-time | replan or fail closed (D13) | reference implementation, plan level |
| Auto Device Role Mode [4] | THOX private mesh | whole-request routing | none | lease with fencing epoch | P0 owner work, drain | design note |
| This paper | THOX private mesh plus LoRa fallback | contiguous pipeline, one-stage degenerate case first | grant-gated, cost-gated, measured ratio | secrets graph with epoch-bearing lease grants | P0 owner work, fencing, consumption-time validity | measured on fleet host classes, calculated on floors, simulated protocol + live drill |
A mesh is the set of nodes under one household's administrative control, reachable over a LAN or a private tailnet built on WireGuard [47]. Nodes are E2, P4 and P6 class devices with the public floors of Table 2 [5], plus at most a few larger hub nodes (a desktop, a ThoxKey host). Devices are personal: an owner may close, move or drain one at any moment, and a device that leaves is a routine event with a routine consequence. Links are shared and variable; a broadcast relay documented under roughly 50 peers is the current cross-site path [2]. A LoRa auxiliary mesh on ESP32-class radios running Meshtastic may be present; its over-the-air packet carries a 16-byte cleartext header and at most 239 bytes of encrypted payload, and its fastest preset is rated at 21.88 kbit/s [48, 49].
| Class | Device line | RAM floor | Storage floor | On-device model class |
|---|---|---|---|---|
| E2 | ThoxAir (wireless edge node) | 2 GB | 16 GB flash | about 1B at 4-bit |
| P4 | ThoxMini (personal edge server) | 4 GB | 32 GB flash | about 3B, quantised |
| P6 | ThoxClip (clip-on edge compute) | 6 GB | 64 GB flash | about 3B, quantised |
In scope: an honest-but-curious peer in the same home that holds a channel key and sees headers and advertisements; a departed node that returns holding stale leases and stale decisions; a stolen or compromised device that retains ciphertext and keys for its own chunks; a LAN observer who sees WireGuard ciphertext and LoRa headers. Out of scope: a compromised coordinator host, a malicious engine binary on a certified node, side channels in timing of compression and routing, and physical attacks on key storage. Lineage A's warning stands: activations and KV expose input, and partitioning is not anonymisation [1, 11].
The sharder takes a model geometry (layer count, per-layer weight bytes at the target quantisation, per-layer KV bytes per token), a context policy in tokens, a workspace estimate per stage, and a mesh state. For every stage on node the plan is admissible only if
where is the stage's weight bytes including the embedding on stage 0 and the head on the last stage, is the stage's KV bytes per token summed over its attention layers, is usable RAM, is priced host workspace and is the node's system budget. The two domains are not summed. Lineage B records why this sentence is written so carefully: a merge that charged workspace against the RAM domain stranded 23 of 64 layers and failed four planner tests until decision D23 restored the two-domain semantics [2]. Algorithm 1 is the first-fit contiguous planner used in this paper's calculations; it is conservative and reproducible, and the paper does not claim it is optimal. Whole-request placement is the case in which the first node admits every layer, so the existing routing path is a one-stage plan and ships first, as lineage A recommended [1].
Input: layers 0..L-1 with weight bytes w[l], kv bytes per token k[l]; context T;
workspace WS; nodes n_0..n_m in order (anchor first) with R(n), Sigma(n)
Output: plan (list of stages) or UNPLACEABLE
l <- 0
for each node n in order:
if WS > Sigma(n): continue # workspace domain
start <- l; W <- embed if start = 0 else 0; K <- 0
while l < L and W + w[l] + head(l) + (K + k[l]) * T <= R(n): # RAM domain
W <- W + w[l] + head(l); K <- K + k[l]; l <- l + 1
if l > start: emit stage(n, start, l-1, W, K*T, WS)
if l = L: return plan
return UNPLACEABLE # no partial admission (R1, R8)A KV chunk is the state for a span of tokens at one stage's layer range. Its key is
with the principal's keying secret, a fixed domain string, the 32-byte model fingerprint, the chunk's tokens as 4-byte big-endian integers and a length-prefixed extra field. HMAC-SHA256 is the construction of RFC 2104 over FIPS 180-4 [50, 51]. Lineage B records that an earlier reference serialised tokens as decimal text and omitted the extra field, and that a two-language test against published vectors now pins the construction (decision D21) [2]; Appendix A gives this paper's own known-answer vector.
Proposition 1 (prefix sharing). Two sessions of the same principal and model whose first chunks are identical produce identical keys . Proof. By induction on : the inputs to the -th HMAC are a deterministic function of , which the sessions share for .
Proposition 2 (no false hit from a divergent prefix). If HMAC-SHA256 with secret is a pseudorandom function, then for sessions whose chunk sequences first differ at position , the keys collide with those of the other session with probability at most over keys, and a different model fingerprint or a different principal gives independent keys at every position. Proof sketch. The PRF inputs differ in (or in , or the secret differs), so the outputs are computationally independent of the honest session's keys; the chain propagates the difference because is an input to . A collision would require a PRF output collision. Properties P1 to P5 in Section 6.2 are the executable form of these statements.
When a session needs a chunk, PLACE answers from three options. A local hit costs nothing. A transfer of a prefix of tokens with bytes of KV per token over a link of effective payload rate with per-transfer overhead , using a lossless wire ratio , and a recompute on a stage that prefills at tokens per second, cost
and transfer wins for ; when the denominator is not positive, recompute wins at every prefix length. Transfer is additionally gated by authority (R5): a chunk moves only under a live grant path, however favourable the cost. Lineage B's cost form for session routing, with thermal, battery, churn and link terms, is kept unchanged with its weights labelled bootstrap constants [2]. The ratio is a measured per-model input (Section 6.1), not a constant.
The Auto Device Role Mode note proposes a renewable lease with fields that include a monotonic fencing epoch, an absolute expiry, a heartbeat interval, an owner-preemptible flag that must be false, and a fence token proving that inference belongs to the current epoch [4]. This paper folds that lease into lineage B's secrets graph rather than adding a second control plane: a lease is a grant edge from the coordinator principal to a node for a scope (a stage of a session, or a role class), carrying an epoch and a TTL. Validity is evaluated against the live graph at consumption (R5), so a departed node's leases die with its edges, and the epoch fences late arrivals (R6). The state machine is the note's: AVAILABLE, OFFERED, LEASED, DRAINING, back to AVAILABLE, with EXPIRED on timeout, disconnect or thermal emergency. Hard filters run before scoring, and the queue is P0 owner foreground, P1 owner local inference, P2 running leased completion, P3 new lease, P4 speculative work (R7).
Proposition 3 (no stale completion under fencing). If the coordinator increments the session epoch on every re-lease and a completion is accepted only when its epoch equals the session's current epoch, then no completion produced under a superseded lease is accepted. Proof. A superseded lease carries epoch ; the session's epoch is at least from the re-lease onward and never decreases; equality cannot hold.
Proposition 4 (bounded stale authorisation). With consumption-time validity, the number of accesses authorised after a grant-path node departs is zero; with a positive decision cache of lifetime and consumption interval , it is at most per session. Proof. Live evaluation sees the missing edge at the first consumption after departure. A cached decision taken at time authorises consumptions until , at most of them. Section 6.6 measures both in simulation.
As deployed. The running coordinator implements the fencing of Proposition 3 without a separate epoch column: the fencing token is the unique, monotonically increasing lease identity issued from a persisted counter, a sweeper expires leases 5 s after their TTL lapses, and every mutating call (heartbeat, serving, complete, release) checks that the presented lease identity is the currently live one before it acts. A completion is therefore accepted only under the live lease identity, which is the acceptance property Proposition 3 states for the epoch form. The epoch-bearing lease record of the paragraph above is carried in the parallel app-facing schema (the v2 layer), not in the coordinator's own store. Section 6.6 reports a live drill of the deployed form.
The control plane is one service (R9) that the record names sadie-mesh in lineage B and the Role Coordinator in the role note; the paper treats the name as a founder decision (Section 9) and specifies the behaviour. On the primary carrier it issues plans, grants and leases. When the LAN is gone, a MeshLink radio carries three messages: a presence beacon, a lease heartbeat and a revocation notice. Each fits in one Meshtastic packet. Meshtastic's channel traffic is AES-CTR under a shared key by default, with AES-CCM and signed broadcasts available on recent firmware and no forward secrecy [52]; the heartbeat therefore carries its own MAC under the lease key and the radio is never trusted for authority. Airtime is computed with the standard LoRa formula [53] in Section 6.5.
Against an honest-but-curious peer: KV bytes move only under a grant the peer does not hold, advertisements are principal-keyed, positive-evidence only and bounded (lineage B's D19), and chunk keys reveal nothing about tokens without . Against a departed node that returns: Propositions 3 and 4. Against a stolen device: crypto-shredding of the entry keys that made its chunks readable, so retained ciphertext is inert; this is a key operation, not a data hunt. Against a LAN observer: WireGuard on the primary carrier; on the LoRa carrier the observer sees the 16-byte header, which is why that carrier carries no content. Not argued here: a compromised coordinator, timing side channels in PLACE and the codec, and physical key extraction; Section 7 lists them.
Two implementations exist. Lineage B's Python reference implementation (pipeline sharder, KV graph, secrets grant graph, KV-affinity scheduler, five frozen generation-1 wire schemas) has simulation semantics: it computes plans, keys, costs and grant decisions and executes no tokens; its root suite passed 63 tests with 44 subtests at HEAD b01bc03 on 2026-10-30 [2]. That repository is private and not attached to this work; its test states are quoted from the record and were not re-run here. Lineage A's calculator (33 scenarios, 10 unit tests) is attached and was re-run for this paper: 10 of 10 pass with 83 of 83 executable lines covered. This paper's own code is the experiment set of Appendix A: a clean-room planner, a clean-room keying implementation with property tests, the codec harness, the PLACE grid, the LoRa airtime calculator and the churn simulator, in stdlib Python plus NumPy, PyTorch (CPU) and the zstandard binding.
| Requirement | Where specified | Test or evidence in this paper | Result |
|---|---|---|---|
| R1 capacity truth, R2 contiguity | Section 4.2, Algorithm 1 | exp/admission_experiments.py: 54 scenarios, Unplaceable emitted with no partial plan | runs; results in Section 6.3 |
| R3 lossless wire | Section 4.4 | exp/compression_experiments.py: 28 bit-exact round trips (SHA-256 of decoded bytes) | all pass |
| R4 chunk identity | Section 4.3 | exp/keying_experiments.py: properties P1-P5, known-answer vector | all pass |
| R5 authority at consumption | Section 4.5, Prop. 4 | exp/churn_sim.py: stale authorisations, live vs cached | simulated + live drill; Section 6.6 |
| R6 fencing | Section 4.5, Prop. 3 | exp/churn_sim.py: stale completions, fenced vs unfenced | simulated + live drill; Section 6.6 |
| R7 owner sovereignty | Section 4.5 | not tested here; filters and queue are specification | unbuilt |
| R8 fail closed | Algorithm 1 last line | admission scenarios that return Unplaceable | runs |
| R9 coordinator outside payload | Section 4.1 | architectural; lineage B schemas carry no KV bytes in T4 manifests | specification |
| R10 control-plane degradation | Section 4.6 | exp/lora_experiments.py: airtime and heartbeat capacity | calculated; Section 6.5 |
Setup. The v1.0.1 harness (Sections 6.1 baseline, 6.2, 6.3, 6.5, 6.6 simulation) ran on the authoring container, Linux, 2 vCPU, 7 GB RAM, no accelerator, Python 3.13.18, PyTorch 2.15.0+cpu (CPU), with Qwen/Qwen2.5-0.5B-Instruct [54, 55]: 24 layers, 2 KV heads of dimension 64, so 12,288 bytes of bf16 KV per token (48 MiB at 4096 tokens). The v1.1.0 Virtual Lab measurements ran on fleet host classes, labelled at each result: the codec on an Azure VM (CPU-only, 4 vCPU), the transfer between a fleet GPU host (RTX 4060 Ti) and an Azure VM, the engine split between a CPU VM client and an EC2 Mac (Apple M4, Metal), and the fencing drill live on the deployed coordinator (Azure VM host class). Timing in the harness used one warm-up then 30 repetitions per configuration, medians with interquartile ranges. Every number below is read from summary.json; every figure is generated from it; the lab sections record the sha256 of the lane result file each number traces to.
| Sample (real GGUF KV, f16) | Tokens | Ratio | Encode MB/s | Decode MB/s | Bit-exact |
|---|---|---|---|---|---|
| 3B attention KV | 512 | 1.183 | 935 | 1,908 | yes |
| 3B attention KV | 2,048 | 1.195 | 422 | 635 | yes |
| 27B attention KV | 512 | 1.169 | 565 | 627 | yes |
| 27B attention KV | 2,048 | 1.171 | 517 | 599 | yes |
| 27B recurrent (SSM) state, supplementary | fixed per sequence | 1.107 | 490 | 552 | yes |
On KV captured from a running engine, the byte-split zstd-3 codec reaches 1.17x to 1.19x, bit-exact on every sample (the byte-split maximum across levels is 1.20x, at level 9 on the 3B sample; summary statements in this paper use the cross-level range), at 422 to 935 MB/s encode. That is the number PLACE and the T3 transfer tier should use for GGUF-class state on a CPU host class. It is materially below the 1.51x headline of v1.0.1, and the difference is now explained rather than asserted: v1.0.1 measured tensors serialised in bfloat16 from a Hugging Face model in the harness. Casting the identical captured tensors to bfloat16 and re-running the same codec gives 1.42x (27B) to 1.46x (3B): tensor precision is the dominant term in the gap, because f16 engine state spreads its exponents more widely than bf16 serialisation does. The codec did not change between the editions.
The v1.0.1 harness results stand as harness results. On its 2048-token bfloat16 KV sample, zstd-3 on the raw byte stream reaches 1.31x; the byte-split form lifts that to 1.51x at level 3 and 1.69x with bytesplit-lzma, which is too slow to use; the high byte plane alone compresses 5.81x. Layer-boundary activations compress 1.43x at 2048 tokens in the same harness. A unit Gaussian bfloat16 stream of the same size compresses 1.41x, within 7 percent of the harness KV result: values whose magnitudes cluster within a few binades use few exponent codes, and both real bfloat16 activations and a unit Gaussian do. Three consequences follow. A lossless tier halves nothing, so PLACE must use a measured ratio per model and per precision, and the lossless-transport note's expectation of large lossless gains is not supported [3]. A model-specific gain beyond the Gaussian baseline exists but is small, so calibrated codecs of the GAAC kind are where further lossless gain would come from [28]. And at 422 MB/s and above the codec is not the bottleneck on any LAN a household owns, so compression is on by default for T3 transfers and off only on links faster than the encoder.
Keying a 64-token chunk costs 9.7 microseconds (103,434 keys per second on one core); a 4096-token prefix keyed in 64-token chunks costs 0.37 ms end to end. Against a prefill that takes seconds and a transfer that takes tens of milliseconds, keying is noise, and there is no reason to batch or cache it. Properties P1 to P5 (prefix sharing, divergence, model binding, principal binding, determinism) all pass; the script fails if any does not. The known-answer vector in Appendix A lets the demo page and any other implementation check the same construction.
The reference implementation's demo places the 27.8B model on three nodes because its fixtures give the anchor 9.6 GiB usable [2]. At the public floors the trio holds 12 GB in total, less than the 14.6 GiB of weights before any KV reserve or usable fraction, so the plan is Unplaceable at every fraction and every context we tried; adding a 16 GB hub places it at 50% (Unplaceable), 65% (placed), 80% (placed). Without a hub the geometry needs 6 Clip-class nodes at 50% usable and 2048 tokens of context, and 4 at 80% and 8192 tokens. The smaller models behave as the ThoxOS whitepaper's capacity section predicts [5]: the published 2.49 GB ThoxMini-Phi4Mini file is Unplaceable on one Air at 2048 tokens and placed on one Mini; at 32768 tokens it is Unplaceable on one Mini and Unplaceable on Mini+Air, which is the regime where a two-stage plan buys context rather than parameters. The 0.5B model is Unplaceable on one Air at 32768 tokens and 65% usable. This is the paper's central negative result and it changes the product statement: generation-1 MeshStack serves the 27B class only with a hub in the mesh, and the benchmark wave's bench trio must be described by its real memory, not by the fixtures.
Corrected state geometry (v1.1.0 recompute). The v1.0.1 admission analysis carried a state figure of 188,367 B/token for the 27B class, taken from the design record. Lane T2 measured the real GGUF state directly: attention KV is 65,536 B/token, and the hybrid model's linear-attention layers hold a fixed recurrent state of 156,894,356 B per sequence that does not grow with the prefix (total measured sequence state: 190,461,492 B at 512 tokens and 291,161,652 B at 2048 tokens). The old figure overstated the per-token term by about 2.9x and omitted the fixed state entirely. We recomputed the affected admission outputs with the paper's own planner (exp/admission_experiments.py, corrected model in summary.json): the trio outcome is Unplaceable at every usable fraction, the trio-plus-hub outcome is Unplaceable at 50%, placed at 65%, placed at 80%, and the Clip counts are 6 at 50%, 5 at 65%, 4 at 80% (2048-token context), identical to the v1.0.1 outcomes, because the admission boundary is set by the 14.6 GiB of weights against 12 GB of floors, not by the state term. Any admission output computed anywhere with the 188,367 B/token figure is superseded by this recompute.
| Prefix (tokens) | Measured total (median) | Predicted at realised rate | Error | Status |
|---|---|---|---|---|
| 512 | 61.9 s | 58.9 s | -4.8% | completed, hash-verified |
| 4,096 | 257.8 s | 213.8 s | -17.0% | completed, hash-verified |
| 16,384 | 175.4 s | 174.3 s | -0.6% | completed, hash-verified |
| 65,536 | not claimed | not claimed | NOT completed: aborted at 48% received after about 80 minutes on a stalled path |
v1.0.1 evaluated PLACE on assumed inputs, including a per-transfer overhead a = 0.02 s that nobody had measured. Lane T3 measured the real path: the overhead is a = 0.196 s (median of 7 one-KiB grant sessions; connect, grant wait and completion return, about three round trips at the measured round-trip time), ten times the assumption. The bulk link was equally unlike a constant: median receiver payload 71.5 Mb/s with repetitions at 79.1, 15.5 and 71.5 Mb/s on the same path, and long transfers sagged far below the short-window rate. The transferred bundles were this paper's synthetic bfloat16 Gaussian construction at the 27.8B geometry (measured bundle ratio 1.41), not real model KV; the protocol, grant path and byte counts are the measured objects.
With the measured overhead, the measured link token rate (192.6 tok/s at the measured ratio) and the 27.8B geometry, the crossover is 13.2 tokens at a 50 tok/s prefill and 40.8 tokens at 100 tok/s, and there is no crossover at 200 tok/s or above: a stage that prefills faster than the link's token rate should always recompute, which is the rate comparison of Section 4.4 with measured constants. Judged per run, PLACE with each run's realised rate predicts the measured totals to within 0.6 to 17 percent (Table 5); judged against a single assumed link rate it fails by an order of magnitude on the sagged runs, which is the operational lesson: PLACE needs the telemetry of lineage B's D13, not a better constant [2]. The 65536-token transfer is recorded as not completed and no number is claimed for it.
A 48-byte lease heartbeat takes 723 ms on LongFast and 63 ms on ShortFast; a full 239-byte packet takes 2,157 ms and 204 ms. Under a 10% duty cycle LongFast carries 20-second heartbeats for 2 nodes and ShortFast for 31; under 1% LongFast carries them for 0 nodes at 20 seconds and 4 at 300 seconds, and ShortFast 0 at 5 seconds. A household mesh of a dozen nodes fits on the slow presets only with heartbeats of a minute or more, which is adequate for presence and revocation and inadequate for the 5-second heartbeat the role note proposes for the primary carrier [4]; the degraded mode therefore stretches lease TTLs rather than fail. For scale, moving the 0.5B model's 4096-token KV (48 MiB) over ShortFast at a 10% duty cycle would take about 12 hours: the carrier is a control plane and nothing else (R10). Duty cycles are region specific and the Meshtastic firmware is GPL-3.0, which ThoxOS keeps out of its Core linking boundary [5]; MeshLink is therefore a separate device, not a ThoxOS component.
With a 20-second TTL and 30-second decision cache the median run has 356 sessions and 16 re-leases; an unfenced protocol accepts 3 stale completions from returning holders and the fenced protocol rejects all 3 of them, as Proposition 3 requires. Live evaluation authorises 0 accesses after a grant-path node has left and fails 18 sessions closed at their next consumption; a 30-second cache authorises 105 accesses per run with at most 14 in one session (the Proposition 4 bound at a 2-second consumption interval is 15), and a 300-second cache 288 with at most 50, where the session's own remaining service time, not the cache, is the binding limit. Detection latency tracks the TTL: 7.5 s at 10 s, 17.6 s at 20 s, 57.6 s at 60 s, which is the trade the role note names: a shorter TTL finds departures faster and costs more heartbeats, and the LoRa budget of Section 6.5 bounds how short it can be in degraded mode. These are properties of the protocol under stated distributions; they say nothing about how often real devices leave.
Live drill (measured). The same acceptance property was then exercised on the deployed production coordinator (Azure VM host class), using two drill devices and no production lease. Holder A was granted lease-000015 and marked serving; A then departed mid-session. The lease expired at its 300 s TTL and the coordinator logged the expiry about 0.5 s after the lapse, consistent with its 5 s sweeper and with the simulation's claim that detection latency tracks the TTL. Holder B was granted lease-000016. Every stale action attempted under lease-000015 (heartbeat, serving mark, completion) was rejected with HTTP 404; stale authorisations accepted: 0; stale completions accepted: 0. The live holder's completion under lease-000016 was accepted, and the pool drained to zero leases. The drill validates the deployed mechanism of Section 4.5 (a monotonic lease identity checked on every call), which is the form the fleet actually runs; the epoch-bearing form remains the specification for the app-facing v2 schema. Source: exp/results/vlab_roles.json.
| Configuration | Host classes | Generation | Prompt processing | Runs |
|---|---|---|---|---|
| Two-host split, layer 2,1 | CPU VM client + EC2 Mac (Apple M4, Metal) server | 2.3 tok/s | 18.1 tok/s | 1 completed of 17 attempts |
| Single host (the split client) | CPU VM, heavily contended | 0.9 tok/s median | 3 | |
| Single host (reference) | Azure VM, CPU-only, uncontended | 21.0 tok/s median | 3 |
A stock llama.cpp build split Qwen2.5-3B Q4_K_M across two hosts (layer split 2,1, ggml-rpc tunnelled over SSH because both clouds' firewalls block the RPC ports) and generated at 2.3 tokens per second, against 0.9 tok/s for the same model on the client host alone: offloading two thirds of the layers to the remote Metal GPU beat the contended local CPU despite the wide-area path. The run took 375 s of wall time including tensor upload. The caveats are part of the result: exactly one split run completed out of 17 attempts across topologies, and every failure was transport (tunnel session lifetime, receive-window collapse, server session death), not engine; the number is an existence proof with a throughput indication, not a benchmark. The 21.0 tok/s single-host figure on an uncontended Azure VM is a different host class and is reported only so the split is never compared against it.
Generation-phase wire bytes per token were NOT isolated: on the completed run the client socket had closed before the counter snapshot ran, so load-phase and generation-phase bytes could not be separated, and this paper claims no measured wire rate for generation. The calculated boundary term is 4,096 B per generated token (hidden size 2048 in fp16 crossing the split boundary once per token, plus small control messages), labelled CALCULATED. The 27B split was not achieved: the GPU host class was unreachable for the whole session, and the 27B model as a single-host client on the 7.9 GB VM was killed by the out-of-memory killer with zero tokens generated. Both facts are recorded, not worked around.
The section a sceptical reader should read first.
MeshStack's two design lineages agree more than their documents suggest: pipeline sharding with fail-closed two-domain admission, a KV graph whose transfers are gated by cost and authority, and routine churn handled by replanning. This paper writes the agreement down once, adds the lease and role layer as epoch-bearing grants inside the same secrets graph, and names the LoRa carrier's job. The measurements say the lossless wire is worth 1.17x to 1.20x on real GGUF KV and the keying is free; the transfer, fencing and engine measurements of Sections 6.4, 6.6 and 6.7 replace the last assumed constants with measured ones, caveats included. The calculation says the current demo geometry does not fit the devices the company sells without a hub, which the product statement must now reflect. The simulation says the fencing and consumption-time rules do what their propositions claim. What remains is the evidence that needs a fleet, and the paper states the gate it must pass.
Ordered by what unblocks what. Items 1 to 3 are decisions; the rest is work.
Environment: Linux container, 2 vCPU, 7 GB RAM; Python 3.13.18; PyTorch 2.15.0+cpu (CPU wheel); transformers 5.22.1; zstandard; NumPy; Matplotlib. Node 22 with katex 0.16.11, @fontsource/inter 5.1.0, @fontsource/jetbrains-mono 5.1.1 and Playwright for rendering.
pip install torch --index-url https://download.pytorch.org/whl/cpu && pip install transformers safetensors zstandard numpy matplotlib pypdf python3 exp/compression_experiments.py # downloads Qwen/Qwen2.5-0.5B-Instruct; ~15 min on 2 vCPU python3 exp/keying_experiments.py # fails on any property violation python3 exp/admission_experiments.py python3 exp/place_experiments.py # reads the measured ratio from compression.json python3 exp/lora_experiments.py python3 exp/churn_sim.py # 30 seeds x 18 configurations, ~2 min python3 exp/vlab_evidence.py # verifies lane hashes; writes the scrubbed vlab_*.json (needs the lab tree) python3 exp/analyze.py # writes exp/results/summary.json python3 wp/figures.py && python3 wp/build.py && node wp/katex_render.cjs wp/paper.src.html wp/paper.html node wp/pdf.cjs wp/paper.html wp/cover.pdf wp/body.pdf && python3 wp/merge_pdf.py
Virtual Lab evidence: the lane result files live in the THOX Virtual Lab tree and are not attached; exp/vlab_evidence.py verifies their sha256 (two are hash-pinned in the script) and writes the scrubbed public-edition copies exp/results/vlab_codec.json, vlab_transfer.json, vlab_roles.json and vlab_engine.json, each recording the sha256 of the lane original it derives from and using host classes only. analyze.py folds them into summary.json, so every v1.1.0 number traces to the same single evidence source.
Known-answer vector for the keying construction (secret = bytes 0x00..0x1f, fingerprint = 32 bytes of 0xab, chunks [1,2,3,4] then [5,6]):
key_0 = 57583d1c59f44e361985646b98a63933e762bdb19f1734f866873953cb85ecb2 key_1 = 51be4cd6edb0062c897751ab9e65f3a53626788d8f4d0b5edb3e8c532caefa14
Prompt SHA-256 for the 2048-token sample: b4c3d8a9912eef7b4acb502d6dde047396aac441d74734dc2762610f1d46b6b9 (8.0 repeats of the base passage; host prefill 14.1 s). The artifact zip contains every script, raw results JSON, summary.json, figure sources and the built outputs.
| Symbol | Meaning |
|---|---|
| stage weight bytes, KV bytes per token, priced workspace bytes | |
| node usable RAM and system (workspace) budget | |
| context policy in tokens | |
| chunk key, principal keying secret, model fingerprint, chunk tokens | |
| prefix tokens, KV bytes per token, lossless ratio, link payload rate, transfer overhead, prefill rate | |
| PLACE crossover prefix | |
| decision-cache lifetime, consumption interval | |
| E2, P4, P6 | THOX compute classes (Air, Mini, Clip) |
| T0-T4 | KV tiers: in-context, node-local memory, node-local persistent, mesh transfer, manifest |
This preprint is issued by THOX.ai Research. The authors are Craig Ross (Chief Executive Officer) and Tommy Xaypanya (Chief Technology Officer and Co-Founder), THOX.ai LLC; Tommy Xaypanya is the corresponding and accountable human author. Author consent to this edition is recorded before any submission. Generative AI assistance: the literature retrieval, experiment scripts, analysis, figures and draft text were produced by an AI system (Claude, Anthropic) operating as the THOX digital human Odette Lark under the direction of the corresponding author; every citation was resolved live against its primary page on 2026-11-03 and every number is generated from the experiment outputs. No AI system is an author. Conflicts: the authors are THOX.ai principals; this is an interested-party technical account. Edition history: v1.0.0 was an internal confidential draft; v1.0.1 (2026-11-03) was the public preprint edition, deposited at Zenodo (version DOI 10.5281/zenodo.23919580). This edition (v1.1.0) is the evidence edition: it corrects the codec ratio (Section 6.1), the 27B state geometry and the affected admission outputs (Section 6.3) and the PLACE overhead and crossover analysis (Section 6.4) against Virtual Lab measurements; corrects the fencing mechanism description to the deployed form and adds its live drill (Sections 4.5, 6.6); and adds the first two-host engine measurement (Section 6.7). The design, the negative capacity result and the protocol propositions are unchanged from v1.0.1. Cite this work by the Zenodo concept DOI 10.5281/zenodo.23919579; the version DOI for v1.1.0 is pending deposit.