Adds tools/ verifier scripts that exercise upstream RNS / LXMF and confirm (or correct) the SPEC.md callouts: - §2.3 HEADER_1→HEADER_2 conversion: verified by stubbing Transport.transmit and seeding a multi-hop path_table entry. - §4.3 app_data 3-element variant: producer in LXMF 0.9.6 actually emits 2 elements only (supported_functionality at LXMRouter.py:999 is dead code); parser tolerates 1/2/3-element + raw UTF-8. - §7.1 path? always-precedes claim: actually conditional on not has_path() AND method==OPPORTUNISTIC. - §7.4 ratchet ring default 8: actually Destination.RATCHET_COUNT = 512 at RNS/Destination.py:85. Also fixes a documentation bug in §1.2: the rnstransport.path.request row of the well-known-hash table had the dest-hash prefix where the name_hash should be (correct name_hash is 7926bbe7dd7f9aba88b0). Seeds test-vectors/identities.json (Alice + Bob) with a regenerator (tools/regen_identities.py) and verifier (tools/verify_destination_hash.py) covering §1.1 and §1.2. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4.5 KiB
TODO
Outstanding work for the spec repo.
Outreach
- File a community-documentation issue on
markqvist/Reticulum. Link this repo as a community-maintained byte-level spec. Ask whether the maintainer would like to bless / link from the official Reticulum manual. Frame it as a complement to (not a replacement for) the existing operator-focused docs.
Test infrastructure
-
Bootstrap
test-vectors/identities.json— Alice + Bob identities populated against RNS 1.2.0. Regenerator attools/regen_identities.py. -
Bootstrap remaining test-vectors files (
announces.json,lxmf.json,links.json) with the existing vectors fromreticulum-mobile-app/reference/test-vectors.json. Convert to the proposed JSON format documented intest-vectors/README.md, adding the regenerator scripts so future contributors can verify vectors against newer upstream RNS releases. -
Write the priority verifier scripts listed in
tools/README.md, in this order (highest interop value first): 1. [x]verify_destination_hash.py— pure-function check, no RNS state needed 2. [x]verify_packet_header.py— bit layout + HEADER_1/HEADER_2 round-trip + originator HEADER_1→HEADER_2 conversion 3. [ ]verify_announce_roundtrip.py— closes the SPEC.md §4 gap (partial coverage inverify_announce_app_data.py) 4. [ ]verify_token_crypto.py— closes SPEC.md §3 gap 5. [ ]verify_lxmf_opportunistic.py— closes SPEC.md §5 gap 6. [ ]verify_link_handshake.py— closes SPEC.md §6 gap 7. [x]verify_path_request.py— closes SPEC.md §7.1, §7.2 gaps 8. [ ]verify_msgpack_quirk.py— closes SPEC.md §9.3 gapEach verifier should remove its corresponding `⚠️ UNVERIFIED` / `🔮 SPECULATION` callout in `SPEC.md` (per `agent.md` §1).
Open ⚠️ UNVERIFIED items in SPEC.md
These need either a runtime test or a stronger upstream source citation to remove their markers:
-
§2.3 Originator HEADER_1 → HEADER_2 conversion. Verified against RNS 1.2.0 by
tools/verify_packet_header.py, which seedsTransport.path_tablewith a multi-hop entry and confirms the converted wire bytes via stubbedTransport.transmit. Citation updated toRNS/Transport.py:1074-1083. -
§4.3 The 3-element
[name, stamp_cost, [capabilities]]app_data variant. Verified against LXMF 0.9.6 bytools/verify_announce_app_data.py. Finding: in this LXMF version the producer emits a 2-element form only (thesupported_functionalityline atLXMF/LXMRouter.py:999is dead code); the parser is prepared for a 3-element form viacompression_support_from_app_data. SPEC.md §4.3 updated to describe the actual current behavior. -
§7.1 path? always precedes LXMF DATA. Verified against LXMF 0.9.6 by
tools/verify_path_request.py. Finding: the preamble fires only whennot has_path()AND method is OPPORTUNISTIC; the retry path can fire a secondrequest_pathafterMAX_PATHLESS_TRIES(LXMRouter.py:2571+). SPEC.md §7.1 rewritten accordingly. Also fixed a documentation bug in §1.2 (path-request name_hash column). -
§7.4 Ratchet ring count default = 8. False — actual upstream default is
Destination.RATCHET_COUNT = 512atRNS/Destination.py:85in RNS 1.2.0, withRATCHET_INTERVAL = 30*60(line 90) andRATCHET_EXPIRY = 60*60*24*30(RNS/Identity.py:69). SPEC.md §7.4 corrected.
Spec polishing (lower priority)
-
Split
SPEC.mdinto per-layer files as the document grows past ~1500 lines. Suggested layout perREADME.md:00-overview.md,01-packet-header.md,02-identity.md,03-announce.md,04-token-crypto.md,05-lxmf.md,06-link.md,07-resource.md,08-transport.md,09-paths-and-discovery.md,10-implementation-gotchas.md. -
Add a "last-verified-against-rns" line to SPEC.md frontmatter (per
agent.md§7) so readers know which RNS version the spec was tested against. -
Document the Reticulum Resource fragmentation protocol — currently absent from SPEC.md but needed for multi-packet LXMF over Link (NomadNet pages > 1 MTU, large file transfers).
-
Document the Propagation
/getpull protocol for offline message retrieval. Used by Sideband when peers are out of range.