reticiulum-specification/tools
John Poole 9c3b628c6a Worked for 4m 50s
Completed the destination-routed DATA and reverse-PROOF three-tier unit.

Key findings:

Intermediate relays retarget HEADER_2; the final relay delivers HEADER_1.
Each relay records independent reverse-table state.
PROOF destination hashes remain invariant across transport transformations.
A wrong-interface PROOF consumes the reverse entry before being dropped.
REVERSE_TIMEOUT is 480 seconds, not 30 seconds.
Added Tier 1 audit, two-relay flow, deterministic vectors, regenerator, and runtime verifier. Corrected affected specification, flows, playbook, and status documentation.

Verification:

Deterministic regeneration: identical SHA-256
Full pinned suite: 22 passed, 0 failed
git diff --check: passed
No commit created.
2026-06-08 18:32:26 -07:00
..
_gen_toc.py SPEC.md: collapsible ToC + collapse §11.6 NomadNet specifics 2026-05-04 22:05:17 -04:00
README.md Completed the propagation-node announce and peer-sync three-tier unit. 2026-06-08 17:32:55 -07:00
regen_announces.py Bootstrap test-vectors/{announces,lxmf,links}.json + regenerators 2026-05-04 21:56:44 -04:00
regen_identities.py Verify §2.3, §4.3, §7.1, §7.4 against upstream RNS 1.2.0 / LXMF 0.9.6 2026-05-03 10:14:51 -04:00
regen_link_lxmf.py Completed the full link-delivered LXMF unit: 2026-06-08 13:54:27 -07:00
regen_links.py Resolve issue #6 — LRRTT and HEADER_1 for link-addressed DATA (§6.4.2, §6.4.3) 2026-05-10 14:35:56 -04:00
regen_lxmf.py Bootstrap test-vectors/{announces,lxmf,links}.json + regenerators 2026-05-04 21:56:44 -04:00
regen_propagated_lxmf.py Completed the propagated-LXMF three-tier work unit. 2026-06-08 17:23:33 -07:00
regen_propagation_peer.py Completed the propagation-node announce and peer-sync three-tier unit. 2026-06-08 17:32:55 -07:00
regen_request_response.py Completed the REQUEST/RESPONSE three-tier work unit. 2026-06-08 14:03:50 -07:00
regen_resources.py Completed the Resource three-tier work unit. 2026-06-08 13:38:24 -07:00
regen_transport_data.py Worked for 4m 50s 2026-06-08 18:32:26 -07:00
regen_transport_link.py Completed the transport-relayed Link three-tier unit. 2026-06-08 17:50:52 -07:00
requirements.txt Re-anchor against RNS 1.2.4 / LXMF 0.9.7 + track upstream distribution shift 2026-05-08 07:42:25 -04:00
verify_all.py Meant to include these in the prior commit, adding here & now. 2026-06-08 13:23:43 -07:00
verify_announce_app_data.py Re-anchor against RNS 1.2.4 / LXMF 0.9.7 + track upstream distribution shift 2026-05-08 07:42:25 -04:00
verify_announce_roundtrip.py Add three high-value verifiers: token crypto, announce, LXMF opportunistic 2026-05-03 12:41:20 -04:00
verify_destination_hash.py Fix and expand §1.3 — on-disk identity format (real spec bug!) 2026-05-03 11:54:54 -04:00
verify_link_handshake.py Add four more verifiers + receive-propagated flow + frontmatter version 2026-05-03 12:54:34 -04:00
verify_link_lrrtt.py Resolve issue #6 — LRRTT and HEADER_1 for link-addressed DATA (§6.4.2, §6.4.3) 2026-05-10 14:35:56 -04:00
verify_link_lxmf.py Completed the full link-delivered LXMF unit: 2026-06-08 13:54:27 -07:00
verify_lxmf_fields.py docs(lxmf): enumerate FIELD_*/AM_*/RENDERER_*/PN_META_*/SF_* constants in §5.9 2026-05-13 13:12:41 -04:00
verify_lxmf_opportunistic.py Add three high-value verifiers: token crypto, announce, LXMF opportunistic 2026-05-03 12:41:20 -04:00
verify_msgpack_quirk.py Add four more verifiers + receive-propagated flow + frontmatter version 2026-05-03 12:54:34 -04:00
verify_packet_header.py Re-anchor against RNS 1.2.4 / LXMF 0.9.7 + track upstream distribution shift 2026-05-08 07:42:25 -04:00
verify_path_request.py Verify §2.3, §4.3, §7.1, §7.4 against upstream RNS 1.2.0 / LXMF 0.9.6 2026-05-03 10:14:51 -04:00
verify_proof_packet.py Re-anchor against RNS 1.2.4 / LXMF 0.9.7 + track upstream distribution shift 2026-05-08 07:42:25 -04:00
verify_propagated_lxmf.py Completed the propagated-LXMF three-tier work unit. 2026-06-08 17:23:33 -07:00
verify_propagation_peer.py Completed the propagation-node announce and peer-sync three-tier unit. 2026-06-08 17:32:55 -07:00
verify_ratchet_dedup.py Resolve issue #1 — five §7.2/§7.3 gaps from clean-room JS implementation 2026-05-03 20:38:01 -04:00
verify_request_response.py Completed the REQUEST/RESPONSE three-tier work unit. 2026-06-08 14:03:50 -07:00
verify_resource.py Completed the full link-delivered LXMF unit: 2026-06-08 13:54:27 -07:00
verify_rnode_split.py Add four more verifiers + receive-propagated flow + frontmatter version 2026-05-03 12:54:34 -04:00
verify_stamps.py Completed the Resource three-tier work unit. 2026-06-08 13:38:24 -07:00
verify_token_crypto.py Re-anchor against RNS 1.2.4 / LXMF 0.9.7 + track upstream distribution shift 2026-05-08 07:42:25 -04:00
verify_transport_data.py Worked for 4m 50s 2026-06-08 18:32:26 -07:00
verify_transport_link.py Completed the transport-relayed Link three-tier unit. 2026-06-08 17:50:52 -07:00

Verifier scripts

Self-contained Python scripts that test claims in ../SPEC.md against the upstream RNS / LXMF Python stack.

Conventions

  • Each script verifies one claim or one related cluster of claims.
  • Exit code 0 on PASS, non-zero on FAIL.
  • Print a one-line PASS/FAIL summary plus a unified diff or hex dump on mismatch.
  • Reference the SPEC.md section the script verifies in a docstring at the top.

Required environment

The verifier suite does not rely on any fixed virtual-environment path. Create an isolated environment wherever appropriate. From the repository root, the recommended POSIX setup is:

python3 -m venv .venv
.venv/bin/python -m pip install -r tools/requirements.txt

Run the complete pinned baseline:

.venv/bin/python tools/verify_all.py

On Windows, use .venv\Scripts\python.exe for both commands. Activating the environment is optional. A custom environment path works equally well: invoke tools/verify_all.py with that environment's Python executable.

verify_all.py refuses to run the suite when installed RNS/LXMF versions do not exactly match tools/requirements.txt. Individual scripts read RNS.__version__ at startup and print it in their output so a future reader can tell which RNS version a verification ran against.

Status

Populated against RNS 1.2.4 / LXMF 0.9.7:

Script Verifies SPEC.md section Status
verify_all.py pinned-version gate and complete verifier-suite runner
verify_destination_hash.py §1.1, §1.2, §1.3 — identity composition, dest_hash = SHA256(name_hash || identity_hash)[:16], on-disk private-key round-trip via to_file/from_file
verify_packet_header.py §2.1, §2.2, §2.3 — flag byte layout, HEADER_1/HEADER_2 form, originator HEADER_1→HEADER_2 conversion via upstream Transport.outbound
verify_token_crypto.py §3 — Token encrypt/decrypt, HKDF salt = identity_hash, HMAC-then-AES order, PKCS#7 padding
verify_announce_app_data.py §4.3 — LXMF announce app_data 2-element form, parser tolerance
verify_announce_roundtrip.py §4.1, §4.2, §4.5 — announce body layout, signature, dest_hash recompute, tamper rejection
verify_lxmf_opportunistic.py §5.1, §5.2, §5.5, §5.6 — full identity → encrypt → decrypt → parse round-trip
verify_proof_packet.py §6.5 — implicit (64B) and explicit (96B) proof body forms, validator length-dispatch
verify_link_handshake.py §6.1, §6.2, §6.3, §6.6 — LINKREQUEST/LRPROOF body order, link_id derivation, signalling
verify_link_lrrtt.py §6.4.2, §6.4.3 — LRRTT wire form, HEADER_1 header, dest_type=LINK, ctx=0xfe, link-form Token body, msgpack float64 plaintext
verify_link_lxmf.py §5.2, §5.5, §5.6, §6.4.3, §10.1 — DIRECT PACKET/Resource boundary, Link decrypt/parse, wrong-key rejection, receive dispatch
verify_path_request.py §1.2 well-known hashes, §7.1 LXMF path-preamble gating
verify_rnode_split.py §8.3 — RNode air-frame split-packet TX/RX state machines
verify_msgpack_quirk.py §9.3 — encoding name as bytes vs str affects upstream parsing
verify_stamps.py §5.7 — workblock determinism, PoW stamp search/validate, ticket shortcut
verify_ratchet_dedup.py §7.3 / §4.5 step 6.3 — confirms replay defence is keyed on random_blob, NOT on (dest_hash, ratchet_pub)
verify_resource.py §10.2, §10.4, §10.6-§10.9, §10.11, §10.12 — vectors, whole-stream encryption/slicing, receiver assembly/proof, control behavior, multi-segment size, and negative cases
verify_request_response.py §11.1-§11.5 — packet/Resource RPC forms, request-ID domains, correlation, authorization constants, receipt states
verify_propagated_lxmf.py §5.8 — PROPAGATED bundle, full transient ID, packet/Resource boundary, recipient decrypt/signature, /get handler and framing, error constants
verify_propagation_peer.py §5.8.2, §5.8.4, §5.8.5 — propagation announce parser/handler, directional peering key, /offer, peer Resource admission, defaults
regen_identities.py regenerates test-vectors/identities.json
regen_announces.py regenerates test-vectors/announces.json (deterministic announce wire bytes, with and without ratchet)
regen_lxmf.py regenerates test-vectors/lxmf.json (deterministic opportunistic-LXMF plaintext + Token ciphertext)
regen_links.py regenerates test-vectors/links.json (deterministic LINKREQUEST + LRPROOF + derived session key)
regen_link_lxmf.py regenerates test-vectors/link-lxmf.json (deterministic DIRECT PACKET and Resource boundary vectors)
regen_resources.py regenerates test-vectors/resources.json (deterministic Resource ciphertext, parts, ADV, and PRF body)
regen_request_response.py regenerates test-vectors/request-response.json (deterministic packet and Resource RPC forms)
regen_propagated_lxmf.py regenerates test-vectors/propagated-lxmf.json (deterministic PROPAGATED submission and /get forms)
regen_propagation_peer.py regenerates test-vectors/propagation-peer.json (deterministic propagation announce, peering key, /offer, and peer-sync Resource plaintext)

See ../agent.md §3 and ../todo.md for the evidence model and remaining priority order.