From 5e35c9f9d9f40d44846aaa5e11009e03490511d3 Mon Sep 17 00:00:00 2001 From: DeFiDude <59237470+DeFiDude@users.noreply.github.com> Date: Thu, 19 Nov 2026 09:32:57 -0700 Subject: [PATCH] api: approve and document the 1.5.1 DestinationError, held-announce, and tunnel synthesis changes --- api/migrations/1.5.md | 7 +++++-- api/stability.json | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/api/migrations/1.5.md b/api/migrations/1.5.md index 615d954..4514250 100644 --- a/api/migrations/1.5.md +++ b/api/migrations/1.5.md @@ -106,6 +106,7 @@ control it. | `DiscoveryInterfaceConfig::backbone(String, ..)`, `DiscoveryInterfaceConfig::name: String` | `Option`; `None` sends nil | `interface.discovery_name` may be unset (`RNS/Discovery.py:173`) | | `DiscoveryInterfaceConfig::modulation`, `DiscoveryInfo::modulation: Option` | `Option` | | | `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 @@ -138,6 +139,8 @@ hardware MTU (`RNS/Interfaces/Interface.py:255-267`). Build them with `new`. | `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`; `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` | | @@ -420,6 +423,7 @@ constructor and match them with a wildcard arm: - **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: @@ -443,8 +447,7 @@ Exhaustive literals and matches over these types need updating: `InboundTransfer`, `OutboundTransfer`, `MultiSegmentInbound`. - **rns-interface:** TCP, Backbone, Local, RNode, and BLE configs; `TcpInterfaceState`. -- **rns-identity and rns-crypto:** `IdentityError`, `DestinationError`, - `HkdfError`. +- **rns-identity and rns-crypto:** `IdentityError`, `HkdfError`. ## Behaviour and configuration an operator sees diff --git a/api/stability.json b/api/stability.json index a8c51af..391f1ba 100644 --- a/api/stability.json +++ b/api/stability.json @@ -129,6 +129,7 @@ "rns-identity": [ "impl core::default::Default for rns_identity::ratchet::ReceivedRatchetStore", "impl rns_identity::ratchet::ReceivedRatchetStore", + "pub enum rns_identity::destination::DestinationError", "pub fn rns_identity::ratchet::ReceivedRatchetStore::clean_expired(&mut self)", "pub fn rns_identity::ratchet::ReceivedRatchetStore::current_ratchet_id(&mut self, &[u8; 16]) -> core::option::Option>", "pub fn rns_identity::ratchet::ReceivedRatchetStore::default() -> Self", @@ -248,6 +249,7 @@ "pub fn rns_transport::discovery::stamper::NullStamper::valid(&self, &[u8; 32], &[u8], u8) -> bool", "pub fn rns_transport::discovery::stamper::NullStamper::value(&self, &[u8; 32], &[u8]) -> u8", "pub fn rns_transport::discovery::storage::classify(u64) -> rns_transport::discovery::storage::DiscoveryStatus", + "pub fn rns_transport::ingress::IngressController::hold_announce(&mut self, rns_transport::ingress::HeldAnnounce)", "pub fn rns_transport::ingress::IngressController::incoming_announce_frequency(&self) -> f64", "pub fn rns_transport::ingress::IngressController::incoming_pr_frequency(&self) -> f64", "pub fn rns_transport::ingress::IngressController::outgoing_announce_frequency(&self) -> f64", @@ -405,6 +407,7 @@ "pub rns_transport::link_table::LinkEntry::validated: bool", "pub rns_transport::messages::InterfaceStatRpcEntry::ifac_size: usize", "pub rns_transport::messages::TimerTick::timestamp: f64", + "pub rns_transport::messages::TransportMessage::SynthesizeTunnel::raw_packet: bytes::bytes::Bytes", "pub rns_transport::persistence::LegacyPersistedAnnounceEntryV5::app_data: core::option::Option>", "pub rns_transport::persistence::LegacyPersistedAnnounceEntryV5::destination_hash: alloc::vec::Vec", "pub rns_transport::persistence::LegacyPersistedAnnounceEntryV5::hops: u8", @@ -458,6 +461,7 @@ "pub fn rns_protocol::resource::WindowState::grow(&mut self, usize)" ], "rns-interface": [ + "impl rns_interface::traits::TunnelIdentity", "pub async fn rns_interface::auto::spawn_auto_interface(rns_interface::auto::AutoInterfaceConfig, rns_interface::traits::InterfaceId, tokio::sync::mpsc::bounded::Sender, alloc::sync::Arc) -> core::result::Result", "pub const rns_interface::backbone::CHILD_BITRATE_GUESS: u64", "pub const rns_interface::i2p::RECONNECT_WAIT_MAX: u64", @@ -465,6 +469,7 @@ "pub const rns_interface::tcp::RECONNECT_WAIT_MAX: u64", "pub const rns_interface::traits::IC_BURST_MIN_SAMPLES: usize", "pub fn rns_interface::rnode::process_rnode_response(u8, &[u8], rns_interface::traits::InterfaceId, &mut core::option::Option, &mut core::option::Option) -> rns_interface::rnode::RNodeResponse", + "pub fn rns_interface::traits::TunnelIdentity::synthesis(&self, &str) -> core::option::Option", "pub rns_interface::backbone::BackboneServerConfig::listen_ip: alloc::string::String", "pub rns_interface::ble_rnode::BleRNodeConfig::lt_alock: core::option::Option", "pub rns_interface::ble_rnode::BleRNodeConfig::st_alock: core::option::Option",