Developer documentation / Technical overview
Follow the bytes.
Keep the boundaries.
Meshticulum separates application acceptance from reliable delivery and radio completion. Each layer has its own evidence, and each transfer keeps its original limits.
The reusable stack
Two services.
A bounded transport.
Applications supply current admission and device ownership. Meshticulum supplies reusable contracts, cryptography, reliable flow, resources and carrier workers.
Recorded / 13 November 2026 / one finite LoRa file
65,536 verified bytes at 3.76 kB/s.
Alpha.5 measured 3,757.917 useful bytes/s over 17.439448 seconds including sender startup. The separate first-DATA-queue boundary was 16.716547 seconds, or 3,920.427 bytes/s. Neither reaches 4,000 bytes/s.
The SF5/BW500, preamble32 run used bounded train32, authenticated DATA end markers and checked HAT receive rearm. Six DATA retransmissions were needed and all 14 markers were accepted. The whole file verified, both endpoints closed, and native receive drops stayed at zero. Prior failed work and unknown outcomes remain accounted for across separately authorized recovery.
This is one finite bench sample, with diagnostic overhead, not sustained throughput, a field-range result or an isolated policy comparison. Measured SDK source 794ea711 and firmware mtb1-86f7307b7c remain distinct from release artifact checks.
Read the configuration, timing boundaries and retained failure
01 / Protocol
A request is more than a byte range.
The MR1 resource codec names a public pack and resource, then asks for a bounded range. A response carries a truncated hash of that exact request, a status, the total resource length and the returned offset. The reader checks all of them before assembling the bytes.
MR1 is an application codec. Peer authentication, encryption, deadlines and transport ownership must already be enforced by its exchange. A valid response header alone does not establish publisher trust.
02 / Cryptography
Bind the session. Authenticate every frame.
PeerID identifies the full chain and signing-key identity. SessionKey adds both peers, a session identifier and a separate generation. Service, route, profile, limits and expiry enter the session context; a compact reference on the air is not an identity or permission by itself.
Current radio and TCP codecs derive directional keys with HKDF from a provisioned pairwise secret. ChaCha20-Poly1305 authenticates DATA and ACK packets. Transmit counters are reserved durably before encryption, and receive replay decisions are committed before plaintext is exposed. A retransmission gets a fresh outer counter while retaining the flow's logical sequence number.
Private envelopes add a separate boundary: a sender signs the message and seals it to the intended recipient. The compact binary carrier removes outer Base64 framing while preserving the ciphertext and signature.
The current provisioned session codecs and long-term recipient envelopes do not establish it. An experimental forward-session primitive exists in source; native private lifecycle and erasure qualification remain open.
Today’s radio, TCP and private-envelope protocols use classical cryptography. The experimental provider combines X25519 with ML-KEM-768 and requires both Ed25519 and ML-DSA-65 signatures. A sample handshake takes 9,352 bytes before radio headers, ACKs and retries. Device integration and independent cryptographic review remain open. Read the design and run the demo.
03 / Reliable flow
Credit controls what can enter.
MT05 fragments a transfer and tracks receipt with a cumulative acknowledgement plus a 32-bit selective bitmap. Receiver credit counts available capacity, including held reorder frames and unconsumed delivered bytes. A stale ACK cannot create new credit.
The flow owner routes DATA, retries, probes and ACKs through scheduling and admission. Its accepted flow and port are frozen under reviewed source hashes. The authenticated radio composition currently uses packets up to 255 bytes, leaving 193 useful bytes in a DATA frame.
A driver reporting RF_DONE proves local completion of that attempt. An authenticated peer ACK proves another event. Durable public-resource verification comes later.
The opt-in LoRa queue accepts already encrypted DATA ciphertext after capability negotiation and an immutable grant policy. Session keys, authentication, receiver credit, retries and peer-progress decisions stay on the host. ACK and CONTROL packets retain the synchronous path. Queue acceptance delegates bounded future radio starts; it does not prove transmission or peer receipt.
The default four-frame policy holds pending packets and retained outcomes in four admitted slots. The new source candidate can explicitly negotiate eight frames with matching policy and firmware. The first profiled hardware sample verified a full part at 801 useful bytes/s including startup. A matched R11 retry-fix sample reached 1,053 useful bytes/s with different loss; a later logical-window32 sample reached 1,277 useful bytes/s while keeping the physical train at eight. The subsequent selective-repair fill sample completed the same 23,900 useful bytes at 1,223 useful bytes/s including startup, with 13 DATA retries versus the prior 10. Loss patterns differed, so the samples do not isolate policy effects; the 3,000 bytes/s goal remains open. The subsequent terminal-policy/native-RX diagnostic sample verified the same file in 11.793771 seconds including startup (2,026 useful bytes/s), with six selective retries. Its enabled terminal threshold was not exercised, and diagnostic firmware and loss differed. Six within-train queue underfills make refill work a current lead; the 3,000 bytes/s goal remains open. Read the terminal-policy sample and diagnostic limits. The repair-fill record retains its exact source, wheel and timing boundary. Every packet keeps the original MCU deadline, with at most two seconds of autonomous hold, independent airtime checks and counters charged before transmit eligibility. Dispatch drains pending receive evidence first, preserves at least 5 ms after successful receive rearm between packets, and allows at least 100 ms of reverse listening after the selected train or an empty queue. A valid header can hold the next start until receive completion or a bounded timeout.
QUEUED, ISSUED, STARTED and RF_DONE remain distinct, with stable event timestamps and exact terminal release acknowledgements. Cancellation or expiry keeps charged debt. Cancelled or expired issued work, and unknown physical outcomes, require containment and fence further dispatch. The successful completion path also checks that STATUS has no pending, retained, active or containment work. The queue is closed by default; its finite 24 October hardware comparison measured 16.48% more useful throughput on one about-20-metre LoRa pair.
A separate SPI8 sample kept the same host code and v5 policy. It verified 23,900 useful bytes in 23.765471 seconds including startup (1,006 useful bytes/s), with 26 DATA retries versus six. Native transmit setup was faster, while file goodput fell; uncontrolled loss prevents an isolated SPI comparison. The 3,000 bytes/s goal remains open. Read the SPI8 result and diagnostic limits.
The separate v6 scalar-fill pair sample retained the SPI8 firmware and both MCU boots. It verified the same file in 19.551794 seconds including startup (1,222 useful bytes/s), recording 17 extra offers and 26 DATA retries. The observed rate was 21.55% higher than the preceding v5 SPI8 sample, but loss and recovery patterns differed, so this does not isolate a policy gain. No firmware upgrade or reset occurred between the two samples. Both rates were below the above-2,800 checkpoint and repeated 3,000 bytes/s goal. Read the v6 result and timing boundary · Policy and source controls.
The subsequent header-preservation sample kept the same v6 host runtime and 8 MHz SPI setting after a genuine firmware upgrade, with all earlier debt retained. It verified 23,900 useful bytes in 14.138817 seconds including startup (1,690 useful bytes/s), with 17 DATA retries. The observed rate was 38.28% higher than the preceding sample, but boots and loss patterns differed, so this does not isolate a firmware benefit. It remains below the earlier 2,026 useful bytes/s sample and both throughput thresholds. On this firmware, the historical IRQ_RESTART_HEADER_ONLY category can include selective clearing without an RX restart; it is not an authenticated packet-drop count. Read the header-preservation result and diagnostic limits.
The subsequent R13/v7 repeat-repair sample kept the same firmware and MCU boots. It verified 23,900 useful bytes in 15.147523 seconds including startup (1,578 useful bytes/s), with 18 selective DATA retries and no ordinary retries. Its observed rate was 6.66% lower; differing loss and recovery patterns prevent an isolated policy comparison. Those nine earlier completed samples were below the above-2,800 checkpoint and repeated 3,000 bytes/s goal. Further work examines recovery turns and receive reliability. Read the repeat-repair result and timing boundary.
A separate 32-symbol-preamble trial kept the same SDK/v7 policy, firmware and MCU boots, but failed during startup. The receiver spent 16 startup ACK attempts; the sender sent no DATA and its header-only radio IRQ category rose by 16. No file completed and there is no goodput result. Both units were subsequently observed idle with empty queues; the failed attempt and full allocation remain in the record. The IRQ category can include selective clearing without a restart, and the receive failure is unresolved. Read the failed trial and recovery evidence.
The final Alpha 4 repeat verified 23,900 useful bytes in three consecutive exact-wheel SF5 files at 3,188.156, 3,192.081 and 3,149.246 useful bytes/s including sender process startup. Each accepted 12 authenticated ACKs, verified the whole file, closed both endpoints without forced cleanup and used one DATA retransmission. All three clear the 2.8 kB/s required checkpoint and 3.0 kB/s stretch target. The earlier sync18 sample remains the first 2.872 kB/s result and retains its separate zero-retry boundary. These three newer samples establish repeatability only for the exact near-bench workload, firmware, profile and paired path; sustained larger-file throughput, field range and a matched MeshCore or Reticulum comparison remain open. Read all three samples and the exact timing boundary.
The reviewed v8 source now groups distinct, proven terminal repairs into trains of up to eight packets after FINAL handover and authenticated peer receipt. Existing per-packet accounting and listening floors remain. This source change has no physical qualification result. Terminal repair-train policy and controls.
Optional grant-bound operation limits select incremental journal ceilings for each endpoint role. They can reduce the permitted attempts and estimated airtime without resetting MCU counters, changing absolute ARM limits or refunding earlier debt.
Accepted reliable flow · Authenticated composition · MCU acceleration and evidence boundaries · Queue protocol
Attempt-journal budget checks and snapshots now read durable aggregate totals, removing repeated scans of retained history. Aggregate updates share the reservation's FULL commit, and opening the journal still rebuilds them from the original records. Charged debt, UNKNOWN outcomes and recovery fences remain. The published journal profile measures local synthetic history; radio results have their own timing boundaries.
The checkout file and bundle examples accept --profile-host for 24 fixed phase aggregates across queue, journal, serial and flow work. Profiling is disabled by default. Its time.perf_counter_ns intervals include blocking and overlap, so their totals cannot be added into end-to-end latency or treated as CPU or RF time. Original authority clocks and cleanup still govern the transfer.
The USB writer rechecks the original deadline after writable readiness returns, immediately before each write. Readiness that returns after expiry is rejected. The 64-byte write limit, 2 ms pacing, MCU listening guards and frozen flow remain unchanged.
Phase boundaries and diagnostic behavior · Alpha.4 SF5 repeat qualification · Earlier profiled alpha.3 hardware qualification
04 / Verified resources
The publisher's identity survives the path.
A public pack starts with an independently pinned publisher trust root, signed manifest and content-addressed chunks. Lamplighter verifies the manifest and complete chunks before caching them. Availability information helps select a source; it cannot authenticate that source's content.
Bounded MR1 blocks move raw resource bytes over the scarce carrier. Host code reconstructs any batch representation locally for the whole-chunk verifier. A partial transfer remains unverified, and resume reuses only verified work.
Pack schema and signatures · Publisher and cache verification
05 / Path selection
Use measurements, not interface names.
The resource scheduler works with explicitly supplied routes, verified request timings and shared bottlenecks. It can choose another admitted reader for the same content and retain verified chunks. It does not discover routes autonomously or move a live cipher session between carriers.
Finite native public campaigns have exercised mixed LoRa/IP delivery, injected loss, fresh LoRa resume and measured return to IP under one original resource expiry. Those results demonstrate specific service paths. Sustained network capacity is still a separate qualification.
The HTTP gateway carries bounded requests from a radio-only endpoint through a second unit's internet connection and back. Three consecutive links requests rendered public pages in 17.77–17.99 seconds with a normal 30-second timeout; gateway completion was 16.81–17.08 seconds. A lightweight HTTP search and result page also rendered in about 20 seconds. A bounded 3-second startup gap removed the pre-fix startup race. This is still an application gateway, not transparent IP routing or HTTPS CONNECT; Google's HTTPS redirect and 92 KB search page remain outside it.
Resource path policy · Native path evidence · HTTP gateway evidence
06 / Device ownership
A library import cannot grant a radio.
The host application supplies the exclusive port or HAT owner, current peer and service admission, original clock bounds, and attempt journals. Radio workers reserve cost before device writes. An unknown outcome retains debt and fences further dispatch.
Lantern owns its protected SAGE adapters, native device policy, provisioning, product orchestration and deployment. Meshticulum remains usable by other applications without importing those components.