lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

commit d962efe1c923cedc52ae9fff65bd9e615bef84b7
parent c1b74b3007ce9245160b4257730915a4addaeeca
Author: triesap <tyson@radroots.org>
Date:   Thu,  9 Jul 2026 16:46:52 +0000

transport: pass explicit scope to endpoint fingerprints

- update event-store endpoint observation fingerprints for the new scoped constructor
- keep endpoint observations intentionally unscoped until their schema carries target scope
- update the malformed Reticulum outbox test helper to the new target shape
- verify event-store and outbox check lanes after the signature break

Diffstat:
Mcrates/event_store/src/model.rs | 2+-
Mcrates/event_store/src/store.rs | 4++--
Mcrates/outbox/src/store.rs | 3+++
3 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/crates/event_store/src/model.rs b/crates/event_store/src/model.rs @@ -196,7 +196,7 @@ impl RadrootsTransportObservation { ) -> Result<Self, RadrootsEventStoreError> { let endpoint_uri = RadrootsTransportTargetUri::parse(endpoint_uri)?; let endpoint_fingerprint = - RadrootsTransportTargetFingerprint::from_target(&transport_kind, &endpoint_uri); + RadrootsTransportTargetFingerprint::from_target(&transport_kind, &endpoint_uri, None); Ok(Self { transport_kind, endpoint_uri, diff --git a/crates/event_store/src/store.rs b/crates/event_store/src/store.rs @@ -222,7 +222,7 @@ impl RadrootsEventStore { ) -> Result<Vec<RadrootsTransportObservationRow>, RadrootsEventStoreError> { let endpoint_uri = RadrootsTransportTargetUri::parse(endpoint_uri)?; let endpoint_fingerprint = - RadrootsTransportTargetFingerprint::from_target(&transport_kind, &endpoint_uri); + RadrootsTransportTargetFingerprint::from_target(&transport_kind, &endpoint_uri, None); let rows = sqlx::query( "SELECT event_id, transport_kind, endpoint_uri, endpoint_fingerprint, observation_type, first_observed_at_ms, last_observed_at_ms, observation_count, redacted_message FROM event_transport_observation WHERE transport_kind = ? AND endpoint_fingerprint = ? ORDER BY last_observed_at_ms, event_id, observation_type", ) @@ -828,7 +828,7 @@ fn transport_observation_from_row( let endpoint_fingerprint = RadrootsTransportTargetFingerprint::parse(&endpoint_fingerprint_raw)?; let expected_fingerprint = - RadrootsTransportTargetFingerprint::from_target(&transport_kind, &endpoint_uri); + RadrootsTransportTargetFingerprint::from_target(&transport_kind, &endpoint_uri, None); if endpoint_fingerprint != expected_fingerprint { return Err( RadrootsEventStoreError::InvalidStoredTransportEndpointFingerprint { diff --git a/crates/outbox/src/store.rs b/crates/outbox/src/store.rs @@ -2373,10 +2373,13 @@ mod tests { let endpoint_fingerprint = RadrootsTransportTargetFingerprint::from_target( &RadrootsTransportKind::Reticulum, &endpoint_uri, + None, ); RadrootsTransportTarget { kind: RadrootsTransportKind::Reticulum, uri: endpoint_uri, + scope: None, + label: None, fingerprint: endpoint_fingerprint, } }