Files

30 KiB

Migrating to rsReticulum 1.5

This guide covers source and behaviour changes from the published 1.4.0 release (commit 14241a3) to 1.5.0. The crates now follow Reticulum 1.6.0. Migrate Reticulum dependents together to ~1.5.0.

Project minor releases can break the Rust API. Pin an explicit compatible line or a reviewed Git revision. Upstream line references below are to Reticulum 1.6.0 (RNS/...:line).

api/stability.json lists every removed snapshot line under approvedBreakingChanges, and this guide explains each one. Most additions are new public fields and variants. Exhaustive struct literals and exhaustive matches over the types listed in "New fields and variants" no longer compile until you add the new members (or ..Default::default() or ..T::new(..)) or a wildcard arm. Types that are now #[non_exhaustive] cannot be built with a struct literal outside their crate at all: start from Default or a constructor and set the public fields.

Stamps: fractional costs and values everywhere

Reticulum 1.6.0 measures stamp work as a fractional value (RNS/Stamps.py:104-190, stamp_value returns a float) and reads costs as floats. Every stamp cost, stamp value, and required value in the public API is now f64.

Old New
DiscoveryStamper::generate(&self, &[u8; 32], u8) generate(&self, &[u8; 32], f64, &StampControl)
DiscoveryStamper::valid(.., u8) / value(..) -> u8 valid(.., f64) / value(..) -> f64 (also NullStamper, RnsDiscoveryStamper)
discovery::DEFAULT_STAMP_VALUE: u8 discovery::constants::DEFAULT_STAMP_VALUE: f64 (RNS/Discovery.py:77)
discovery::WORKBLOCK_EXPAND_ROUNDS: u32 discovery::constants::WORKBLOCK_EXPAND_ROUNDS: usize
AnnounceRequest, DiscoveryInterfaceConfig, DiscoveredInterface::stamp_value: u8 f64
ReceiverConfig::required_value: u8 f64 (RNS/Discovery.py:262-264)
ReticulumConfig::discover_interfaces_required_value: u8 f64

rns_identity::stamps::StampControl { cancel, deadline, threads } replaces the bare cancellation flag. StampControl::default() gives an uncancelled, unbounded, single-threaded search. Use one clone per search and set cancel to stop it.

let control = rns_identity::stamps::StampControl::default();
let stamp = stamper.generate(&infohash, 16.0, &control);

rns_identity::stamps (stamp_workblock, stamp_value, stamp_valid, generate_stamp, generate_stamped_key) is the shared primitive the transport, link, and LXMF stampers use. The [stamps] config section (RNS/Reticulum.py:505-512) and InitOptions::{enable_stamping, enforce_stamps} control it.

Starting the runtime

  • InitOptions is #[non_exhaustive] and gains enable_stamping, enforce_stamps, keep_starting_after_interface_failure, and start_interfaces_concurrently. Start from the default and set fields:

    let mut options = InitOptions::default();
    options.enable_stamping = true;
    let runtime = init_with_options(None, None, shutdown, foreground, options).await?;
    

    start_interfaces_concurrently starts the configured interfaces at the same time, so a slow one does not hold up the rest. It is off by default; upstream starts them one at a time.

  • ReticulumConfig is #[non_exhaustive] and gains filter, stamps, inbound_queue_lengths, enable_interface_management, default_gravity, autoconnect_interface_gravity, and the autoconnect keys. Start from ReticulumConfig::default() or try_from_config and set fields.

  • rns_tools::init_tracing takes rns_tools::LogLevel instead of tracing::Level. This follows Python's nine numeric levels (RNS/__init__.py:60-68), including Notice (3) and Pathing (7), which tracing cannot express:

    // old
    rns_tools::init_tracing(tracing::Level::INFO, true, false, std::io::stderr);
    // new
    rns_tools::init_tracing(rns_tools::LogLevel::clamped(3), true, false, std::io::stderr);
    

    LogLevel::filter() gives the tracing filter. Utility::loglevel gives each tool's upstream level rule.

  • rns_runtime::jobs::JobScheduler::request_persist is removed. Persistence now runs on upstream's save cadence.

  • rns_runtime::constants::ANNOUNCE_CAP, GRACIOUS_PERSIST_INTERVAL, MAX_QUEUED_ANNOUNCES, and QUEUED_ANNOUNCE_LIFE are removed. Use the rns_transport::constants items of the same names; there the two intervals are f64 seconds.

Interfaces

Old New Reason
TcpServerConfig::listen_ip: String, BackboneServerConfig::listen_ip: String Option<String>; None binds the device or wildcard address bindip = c["listen_ip"] if "listen_ip" in c else None (RNS/Interfaces/TCPInterface.py:518)
RNodeConfig, BleRNodeConfig, SubInterfaceConfig, and the runtime *InterfaceConfig/*RuntimeArgs st_alock/lt_alock: Option<f32> Option<f64> float(c["airtime_limit_short"]) (RNS/Interfaces/RNodeInterface.py:159)
RNodeConfigValidationError::NonFinite { value: f32 } value: f64 same
SubInterfaceConfig::tx_power: u8 (and RNodeSubInterfaceConfig) i8 int(subinterface_config["txpower"]) (RNS/Interfaces/RNodeMultiInterface.py:199)
RNodeMultiConfig::flow_control SubInterfaceConfig::flow_control (per radio) RNS/Interfaces/RNodeMultiInterface.py:205-206
SubInterfaceConfig::mode RNodeMultiConfig::mode (one mode for the device); sub-interfaces gain outgoing RNS/Interfaces/RNodeMultiInterface.py:212
RNodeResponse::Ready(bool) RNodeResponse::Ready
process_rnode_response(cmd, data, id, &mut Option<f32>, &mut Option<f32>) process_rnode_response(cmd, data, id, &mut RNodeSignalStats, Option<u8>) RSSI, SNR, and Q are kept together, as the r_stat_* attributes are
spawn_auto_interface(cfg, id, transport_tx, running) spawn_auto_interface(cfg, id, next_id: Arc<AtomicU64>, transport_tx, spawned_tx, running) AutoInterface spawns one child interface per peer (RNS/Interfaces/AutoInterface.py:134, :392)
McastAddrType: FromStr<Err = String> Err = Infallible upstream accepts any value
DiscoveryInterfaceConfig::backbone(String, ..), DiscoveryInterfaceConfig::name: String Option<String>; None sends nil interface.discovery_name may be unset (RNS/Discovery.py:173)
DiscoveryInterfaceConfig::modulation, DiscoveryInfo::modulation: Option<String> Option<DiscoveryModulation>
PipeInterfaceConfig::respawn_delay: u64 f64 seconds c.as_float("respawn_delay") (RNS/Interfaces/PipeInterface.py:68)
TunnelIdentity::synthesis(&self, name) (1.5.1) removed; a client interface asks transport (TransportMessage::SynthesizeTunnel), which signs with the identity from SetTunnelIdentity the synthesis carries transport's signed costs and status (RNS/Transport.py:3170)

ble_peer::RATSPEAK_SERVICE_UUID, RATSPEAK_RX_UUID, RATSPEAK_TX_UUID, and RATSPEAK_ID_UUID now hold the peer mesh's own UUIDs, service 13370001-c7cb-4de2-98de-5d87fa06443d with RX, TX, and ID at 13370002, 13370003, and 13370004 in the first group. A peer that still advertises the earlier placeholder UUIDs is not found.

These constants are removed. The reconnect waits are now fixed per driver, as upstream's are:

  • tcp::RECONNECT_WAIT_INITIAL, tcp::RECONNECT_WAIT_MAX
  • i2p::RECONNECT_WAIT_MAX
  • backbone::CHILD_BITRATE_GUESS
  • traits::IC_BURST_MIN_SAMPLES
  • rns_transport::constants::IC_BURST_MIN_SAMPLES

TCP, Backbone, and server configs gain bitrate and ifac_size, which feed the hardware MTU (RNS/Interfaces/Interface.py:255-267). Build them with new.

Transport tables and statistics

Old New Reason
IngressController::{incoming,outgoing}_{announce,pr}_frequency(&self) &mut self; outgoing_pr_frequency(&mut self, preemptive: bool) the frequency readers drop stale samples (RNS/Interfaces/Interface.py:366-408)
the announce, link_table, rate_limit, reverse_table, and traffic modules (AnnounceTable, LinkTable, ExpiredLink, RateTable, ReverseTable, TrafficCounter, and their entries) crate-private; read the tables through TransportQuery the actor owns them
RateTable::record, get_rate, cull, RateEntry::rate TransportQuery::GetRateTable returns RateTableRpcEntry rows AnnounceRateTable (RNS/Storage.py:38)
rate_limit::RATE_PENALTY_BASE, RATE_PENALTY_MAX, RATE_VIOLATIONS_BEFORE_PENALTY, RATE_VIOLATION_THRESHOLD removed upstream has no such penalties
PathEntry::touch() PathEntry::used: f64; transport sets it on use path_entry[IDX_PT_USED] = outbound_time (RNS/Transport.py:1618)
ifac::MAX_IFAC_WIRE_BYTES, IfacSignError::PacketTooLarge removed
constants::ANNOUNCE_CACHE_SWEEP_GRACE_SECS, constants::LINKS_CHECK_INTERVAL removed
TransportActor::packet_metrics, packet_metrics_order TransportQuery::GetPacketRssi, GetPacketSnr, GetPacketQ
InterfaceStatRpcEntry::ifac_size: usize Option<usize>; None, like ifac_netname and ifac_signature, for an interface without IFAC get_interface_stats() (RNS/Reticulum.py)
IngressController::hold_announce(..) returning () (1.5.1) returns HoldOutcome (Held, Replaced, Refused); is_filtered() says whether the announce counts as filtered a dropped or replaced held announce is filtered (RNS/Interfaces/Interface.py:297-306)
TransportMessage::SynthesizeTunnel { interface_id, raw_packet } (1.5.1) SynthesizeTunnel { interface_id }; the actor builds the synthesis it carries signed costs, version, and transport status (RNS/Transport.py:3170)
TimerTick { timestamp } TimerTick, with no fields
discovery::storage::classify(u64), DiscoveredInterface::{discovered,last_heard}: u64 f64 timestamps time.time() (RNS/Discovery.py:604)
discovery::build_local_manifest build_manifest

Discovery constants. discovery::key and the constants re-exported at the discovery root (APP_NAME, STAMP_SIZE, FLAG_SIGNED, the aspect and interface-type lists, the THRESHOLD_*_SECS values, and the rest) are removed. Import them from discovery::constants and discovery::constants::key. The blackhole timings are Durations: blackhole_subscriber::{INITIAL_WAIT, JOB_INTERVAL, SOURCE_TIMEOUT, UPDATE_INTERVAL} become discovery::constants::BLACKHOLE_INITIAL_WAIT and so on, and the BLACKHOLE_*_SECS integers are removed.

Messages. TransportMessage, TransportQuery, and TransportQueryResponse are #[non_exhaustive]; code that matches on them needs a wildcard arm. TransportMessage gains SetFilterPolicy, SetLocalDestinationKey, and SetStampPolicy. TransportQuery gains GetActiveLinkCount, GetTrafficTotals, RecallLinkCost, RecallStampValue, SetRequiredOnly, WantsDestinationType, UnwantsDestinationType, and UnwantsAllDestinationTypes. TransportQueryResponse gains OptBoolResult and TrafficTotals. Three existing variants gain fields a constructor must supply: RegisterAnnounceSubscription::paused, SetStoragePaths::{role, done} (see "Stored destinations, ratchets, and announces"), and TransportQuery::ApplyBlackholeManifest::publisher.

The RPC rows (AnnounceRpcEntry, BlackholeRpcEntry, InterfaceStatRpcEntry, PathTableRpcEntry, RateTableRpcEntry, RecalledDestinationRpcEntry, TrafficTotalsRpcEntry) and InterfaceEntry are #[non_exhaustive]. PathTableRpcEntry and RecalledDestinationRpcEntry implement Default. Build an InterfaceEntry with InterfaceEntry::new(name, mode, direction, bitrate, mtu, tx) and its with_* methods.

Actor state. TransportActor's fields are private. Settings fixed at construction move to TransportActorOptions (#[non_exhaustive], Default):

let mut options = TransportActorOptions::default();
options.local_hops_delta = 1;
let (actor, tx) =
    TransportActor::new_with_options(channel_cap, hashlist_cap, InboundQueueLengths::default(), options);
Old field New
is_foreground, static_transport_identity, local_hops_delta, ephemeral_identity_hash TransportActorOptions
interfaces TransportMessage::RegisterInterface / DeregisterInterface; read with TransportQuery::GetInterfaceStats
local_destinations TransportMessage::RegisterDestination / DeregisterDestination
transport_identity_hash, internal_identity_hash TransportMessage::SetTransportIdentity
is_transport_enabled TransportMessage::SetTransportEnabled
storage_dir initialize_storage or initialize_storage_as before run, or TransportMessage::SetStoragePaths
blackhole_sources, blackhole_table TransportMessage::SetBlackholeSources; TransportQuery::GetBlackholedIdentities, BlackholeIdentity, UnblackholeIdentity
path_table, path_states TransportQuery::GetPathTable, HasPath, HopsTo, GetPathState, SetPathState, DropPath
rate_table TransportQuery::GetRateTable
recent_announces TransportQuery::GetRecentAnnounces, RecallDestination
traffic TransportQuery::GetTrafficTotals, GetInterfaceStats
link_table TransportQuery::GetLinkCount, GetActiveLinkCount
is_shared_instance, shared_instance_client_mode TransportMessage::SharedConnectionLost / SharedConnectionRestored; StorageRole::SharedInstanceClient
the receipt maps, save flags, pending queues, state_dirty, and last_state_save internal; no replacement

ReceiptUpdate::Delivered { rtt } gains proof_hash: Option<[u8; 32]> and metrics: PacketMetrics, the proof packet's hash and reception statistics; match it with Delivered { rtt, .. }. rns_runtime::probe::ProbeOutcome gains the same two fields, which rnprobe prints as upstream reads them from the receipt's proof packet (RNS/Utilities/rnprobe.py:166).

Stored destinations, ratchets, and announces

The transport keeps known destinations and received ratchets in upstream's SQLite store, storage/known_destinations.db (KnownDestinationsStore, RNS/Storage.py), and cached announces in storage/cache/announces.db (AnnounceCache). rns_transport::store holds the stores (SqliteKnownDestinations, SqliteAnnounceCache, MemoryStore, and the KnownDestinationStore and AnnounceCacheStore traits), and store::legacy the one-way importers for the earlier files.

  • rns_identity::ratchet::ReceivedRatchetStore is removed. The transport remembers the ratchet of each announce it accepts; read it back through the runtime or a TransportQuery::RecallDestination:

    // old
    let ratchet = store.get(&destination_hash);
    // new
    let ratchet = runtime.recall(destination_hash).await?.and_then(|d| d.ratchet);
    
  • persistence::load_announce_cache, save_announce_cache, sweep_announce_cache, load_announce_cache_legacy_v5, migrate_legacy_announce_entries, and LegacyPersistedAnnounceEntryV5 are removed. The actor writes the announce cache itself; store::legacy::import_rust_announce_cache and import_python_announce_cache read the earlier files.

  • TransportActor::initialize_storage_as(dir, StorageRole) and TransportMessage::SetStoragePaths { storage_dir, role, done } say who owns the directory. StorageRole::Owner (the default, and what initialize_storage uses) imports the earlier files and writes. StorageRole::SharedInstanceClient reads the owner's database once, read-only, and writes nothing. done is answered when loading has finished.

  • rns-transport has a default sqlite-store feature. It builds SQLite from source through rusqlite's bundled feature, so the build needs a C compiler. Every crate here that depends on rns-transport keeps its default features; only a direct dependent of rns-transport alone can set default-features = false. Without the feature, the Sqlite* stores are absent and the transport keeps known destinations, ratchets, and cached announces in memory only, reading and writing none of these files.

Request replies. Request handlers now produce upstream's reply forms (RNS/Link.py:922-935):

// old
RequestOutcome::Reply(packed_value)
RequestOutcome::ReplyWithResource { ack, data, metadata, auto_compress }
// new
RequestOutcome::ReplyValue(packed_value)     // one complete MessagePack value
RequestOutcome::ReplyBytes(raw)              // Python receives `bytes`
RequestOutcome::ReplyFile { source: Box::new(file), metadata: None } // [file, metadata]
RequestOutcome::ReplyWithResource { ack, source: Box::new(std::io::Cursor::new(data)), metadata, auto_compress }

source is any Read + Seek + Send (ResourceSource).

Compression policy. register_request_handler, register_deferred_request_handler, DestinationHandle::register_request_handler, and LinkManagerCommand::RegisterRequestHandler::auto_compress take impl Into<AutoCompress> instead of bool. Existing true/false arguments still compile. AutoCompress::Limit(bytes) is Python's integer form (RNS/Resource.py:372-381).

Deferred handlers on a destination. DestinationHandle::register_deferred_request_handler registers a handler that answers later through its DeferredRequestResponder, so long work stays off the link-manager task. register_deferred_request_handler_with (also on LinkManager) takes a DeferredAdmission in place of the reply byte limit:

let admission = DeferredAdmission::new(64 * 1024)   // largest in-memory reply
    .request_copies(3)                              // copies of the request held
    .busy_reply(b"busy".to_vec())                   // sent when the job limit is reached
    .too_large_reply(b"too large".to_vec());        // sent when the job cannot fit

Without the two replies a refused job is dropped, as before. Jobs are admitted against a process-wide budget; upstream serves every request synchronously and has none (RNS/Link.py:891-940). DeferredAdmission is in the prelude. LinkManagerCommand gains RegisterDeferredRequestHandler, and DestinationRuntimeOptions gains endpoint_dispatch; build the options with ..Default::default().

Close reasons. rns_link::link::CloseReason is #[non_exhaustive] and gains StampFailure (RNS/Link.py:116-119). Add a wildcard arm.

Link stamps. Link::new_stamped_initiator, rns_link::stamp, and LinkClientError/LinkSessionError::StampFailure(LinkStampError) are new. Code that matches these errors exhaustively needs the new arms.

Buffers. The channel buffer types are renamed and follow RNS/Buffer.py:298-349:

Old New
LinkSessionBuffer BidirectionalBuffer
LinkSessionBufferReader / LinkSessionBufferWriter BufferReader / BufferWriter
LinkSessionBufferError BufferError (gains Link, Session, ManagerUnavailable)
LinkSessionBuffer::reader()/writer() into_split()
LinkSessionBufferWriter::with_close_timeout, DEFAULT_CLOSE_TIMEOUT, DEFAULT_READER_CAPACITY removed; the writer's close follows the channel window

LinkSessionChannelHandle::create_reader, create_reader_with_capacity, create_writer, and create_bidirectional_buffer return the new types. DestinationHandle gains the same constructors.

Resources

  • MultiSegmentOutbound::with_options takes a trailing Option<usize>, the link SDU to slice parts by. None keeps the base MTU. Parts follow the link's MTU (RNS/Link.py:392-397).

  • WindowState::grow(&mut self, usize) is now grow(&mut self); the window grows by one per completed round (RNS/Resource.py:917).

  • ResourceError::DecompressedTooLarge, TransferAction::QueryProofCache, and ResourceFlags::app_flag are new. InboundTransfer, OutboundTransfer, and MultiSegmentInbound gain public fields.

  • An inbound Resource can be received as a file of any size, not bound by the in-memory limit (inbound_reassembly_limit, 128 MiB - 1 by default). Each verified segment is appended to the file before its proof is sent, as Resource.assemble writes it (RNS/Resource.py), and a transfer that fails, is cancelled, or cannot be written leaves no file behind. Additions, none of which changes a caller that takes bytes:

    • LinkManager::set_resource_file_channel(dir, min_size, tx) and DestinationHandle::receive_resource_files(dir, min_size, capacity) deliver ResourceFileCompletion { path, size, .. } for ordinary Resources that advertise min_size bytes or more. Without them a Resource above the in-memory limit is refused, as before.
    • LinkSessionResourceOffer::accept_to_file(Option<PathBuf>) assembles the offer into a file in that directory, or for None in the session's LinkSessionConfig::resource_dir (the system temporary directory when unset), and returns its path in LinkSessionReceivedResource::file.
    • A session now offers a Resource above its limit to the application instead of refusing it unseen. accept on such an offer rejects it with LinkSessionResourceError::TooLarge.

    The receiver owns a delivered file and moves or removes it. Use the runtime's storage/resources directory (StoragePaths::resource_dir), where upstream keeps them; the cache job removes a spool left there by a crash after one day.

Crypto

  • X25519PrivateKey::exchange returns Result<[u8; 32], X25519Error> and rejects a low-order peer key (all-zero secret). This matches Python's default backend, which delegates to cryptography (RNS/Cryptography/__init__.py:46-48, RNS/Cryptography/Proxies.py:60-61):

    let shared = private.exchange(&peer)?; // X25519Error::LowOrderPoint
    
  • HkdfError::OutputTooLong(usize) is removed. The only length error is InvalidLength for zero, as hkdf raises only for length < 1 (RNS/Cryptography/HKDF.py:47).

  • IdentityError::EncryptionFailed and DestinationError::InvalidLinkCost are new variants.

Tools (rncp, rnsh, rns-tools)

  • RncpSendRequest::data: Vec<u8> becomes source: Box<dyn ResourceSource>. The file is streamed, as RNS.Resource(open(file_path, "rb"), ..) does (RNS/Utilities/rncp.py:721).
  • RncpSendRequest/RncpFetchRequest: overall_timeout and path_wait are replaced by path_timeout (timeout, RNS/Utilities/rncp.py:405, :662) and shutdown: Option<ShutdownSignal>.
  • progress_tx carries RncpProgress { progress, phy_bytes } instead of f32, for --phy-rates (RNS/Utilities/rncp.py:331).
  • RncpError gains Interrupted, NotFound, RemoteError, RequestFailed, and StampFailure.
  • spawn_rncp_listener_with_resource_dir and rncp_fetch_file_with_resource_dir name the directory a received or fetched file is assembled in before it is moved to the save directory, as rncp moves resource.data (RNS/Utilities/rncp.py). rncp-rs passes storage/resources; the functions without the argument use the system temporary directory. Neither holds the file in memory.
  • rnsh::RnshError is #[non_exhaustive]. Denied carries the remote message, Denied(String), and the enum gains ClientException, LinkClosed, ProtocolError, StampFailure, and Terminated (RNS/Utilities/rnsh/initiator.py:135-149).
  • rns_protocol::rnsh::STREAM_DATA_OVERHEAD is removed.
  • The rns-git library (tier tool-internal, publish = false) is new. It supports rngit-rs, git-remote-rns, and rngcs-rs and is not an integration API.
  • rns-tools has a default rnodeconf-firmware feature, which adds ureq (with TLS) and zip for rnodeconf-rs firmware download and extraction. A dependent of the rns-tools library that does not flash firmware sets default-features = false, as rns-git does. An rnodeconf-rs built without it refuses firmware download and update with one line.

RPC

rpc::RpcRequest gains variants for 1.6.0 shared-instance requests:

  • GetActiveLinkCount, GetLinkDistribution, GetLowestInterfaceBitrate, GetMediumPathTimeout, and GetProfilingResults;
  • ManageInterface;
  • WantsDestinationType, UnwantsDestinationType, and UnwantsAllDestinationTypes.

rpc::InterfaceStatEntry is removed. RpcResponse::InterfaceStats carries rns_transport::messages::InterfaceStatRpcEntry, the type TransportQueryResponse::InterfaceStats uses. It has every field the old type had in 1.4.0, plus the 1.6.0 stats fields, and is #[non_exhaustive]. rpc::PathTableEntry gains value, used, and lr_cost.

New fields and variants

These types are now #[non_exhaustive]. Build them from Default or a constructor and match them with a wildcard arm:

  • rns-transport: TransportMessage, TransportQuery, TransportQueryResponse, InterfaceEntry, and the *RpcEntry rows.
  • rns-runtime: InitOptions, ReticulumConfig, LinkManagerCommand, RnshError.
  • rns-link: CloseReason.
  • rns-identity: DestinationError, from 1.5.1, which adds AnnounceTooLarge.

Exhaustive literals and matches over these types need updating:

  • rns-transport:
    • InterfaceInspectionSnapshot, RecentAnnounce, TunnelPath, PathEntry, ReceiptUpdate;
    • DiscoveryInterfaceConfig and DiscoveryInfo (dst_cost, pr_cost, operator_lxmf_address), discovery::Reason (HopLimit), SkipReason;
    • the persisted entries.
  • rns-runtime:
    • RecalledDestination, LinkConnectOptions, DestinationRuntimeOptions, InterfacePostInit, and the runtime interface configs;
    • LinkSessionConfig, LinkSessionResponse, LinkSessionReceivedResource, LinkSessionResourceReceipt, ResourceCompletion, RnshClientConfig, DestinationRequest, ProbeOutcome, rpc::PathTableEntry;
    • RequestOutcome, ChannelSendError, LinkSessionError, LinkSessionResourceError, LinkClientError, RncpError, RpcRequest, RpcResponse.
  • rns-link: Link, HandshakeError, LinkKeyError.
  • rns-protocol: ResourceError, ResourceFlags, TransferAction, InboundTransfer, OutboundTransfer, MultiSegmentInbound.
  • rns-interface: TCP, Backbone, Local, RNode, and BLE configs; TcpInterfaceState.
  • rns-identity and rns-crypto: IdentityError, HkdfError.

Behaviour and configuration an operator sees

  • Strict config values for the new keys. 1.4.0 already stopped start-up on an unparsable boolean or integer in [reticulum] and [logging]. The same rule now covers the new [stamps] section (RNS/Reticulum.py:505-512), the new [filter] section, and the keys added since 1.4.0: egress_control, default_gravity, ic_max_held_announces, enable_interface_management, autoconnect_interface_gravity, required_discovery_value, and discover_interfaces_required_value (now a float). Each fails with invalid value for [section] key, because ConfigObj's as_bool/as_int raise (RNS/Reticulum.py:508, :625).
  • Interface start failures stop start-up. An interface that fails to build or start (an occupied port, say) fails init and shuts down what started, as Python panics (RNS/Reticulum.py:1306-1311). Embedders that want the old behaviour set InitOptions::keep_starting_after_interface_failure = true and read ReticulumHandle::startup_interface_failures(). panic_on_interface_error still governs runtime driver errors.
  • Server interfaces accept after registration. TCP, Backbone, Local, and I2P servers accept connections only once the interface is registered with transport, so every accepted connection copies the interface's final settings. An embedder that builds a server interface and never registers it no longer accepts connections; there is no timeout.
  • A plain ifac_size is bits. Without ifac_size_unit, ifac_size is read as Python reads it, and a value from 1 to 64 logs a warning where 1.4.0 refused it. See Explicit IFAC units.
  • Per-interface frequency keys are taken as written. A negative ic_burst_freq, ec_pr_freq, or similar key on an interface is no longer refused at load. As in upstream, it puts the interface into permanent limiting (RNS/Reticulum.py:1001-1010, RNS/Interfaces/Interface.py:206).
  • Announce cap timing. On an interface with an announce cap, a queued announce leaves when the wait after the one before it ends, not on the next 250 ms job pass, and each wait counts from that send (RNS/Interfaces/Interface.py, process_announce_queue).
  • Stored files.
    • Destination announce stamps persist as <storage>/stamps/<hash>.dstamp (RNS/Stamps.py:869-875) and are reused across restarts.
    • Known destinations and received ratchets move to storage/known_destinations.db, and cached announces to storage/cache/announces.db. On the first start as the directory's owner, the earlier files are imported once: known_destinations and announce_cache.msgpack are renamed with an .imported suffix, and the files under storage/ratchets and storage/cache/announces are removed as they are imported. A release before this one started on the same directory afterwards finds no known destinations.
    • A database that cannot be opened does not stop the node; it keeps that session's entries in memory and logs the files to remove.
    • The path table is written on upstream's save cadence.
  • Log levels. Every tool and daemon uses Python's numeric levels. Without a loglevel key, rnsd now runs at Notice (3), not Info (4) (RNS/__init__.py:63, :76). At Notice, only notice-tagged info events appear, so a default rnsd log is quieter than 1.4.0's. 1.4.0 mapped levels 3 and 4 both to INFO. Set loglevel = 4 for the old volume. rnsd ignores -v/-q in service mode, as it did before.
  • Discovery auto-connect. Without autoconnect_unverified_implementations, a discovered Backbone is auto-connected when it advertises RNS 1.5.7 or later (1.4.0 took 1.5.2; RNS/Discovery.py:485-486) or rsRNS 1.5.0 or later (1.4.0 required the opt-in for every rsRNS node). Any other implementation still needs the opt-in. Upstream trusts only RNS, so a Python node needs the opt-in to auto-connect to an rsRNS hub.
  • Link MTU. Links signal and adopt the next hop's hardware MTU when link_mtu_discovery is on. It is on by default (RNS/Reticulum.py:105, RNS/Link.py:392-397). Resources on such links use larger parts, and a transit node clamps the signalled MTU. Set link_mtu_discovery = No to keep the 500-byte link MTU.
  • Stamps. With [stamps] keys or the InitOptions switches, destinations stamp announces, path requests, and link requests. Enforcement drops unstamped traffic, as upstream does.