commit cfad1c61a6b7d7eb6620bd268eb77c6c49f3ebc2
parent 7e0511e47308a61e16d9e1270149c2dbc63d004b
Author: triesap <tyson@radroots.org>
Date: Wed, 21 Oct 2026 18:05:54 +0000
transport: adopt explicit native host and verified shared provider
- Compose the shared Nostr session with its source-owned native connector.
- Bind exact Cargo, Nix and generated service source inputs to published Lib.
- Enforce the complete native dependency inventory and retain review debt.
- Verify native policy and runtime checks plus actual Darwin and Linux Nix tests.
Diffstat:
15 files changed, 179 insertions(+), 69 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
@@ -948,11 +948,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555"
dependencies = [
"cfg-if",
+ "js-sys",
"libc",
"r-efi 6.0.0",
"rand_core 0.10.1",
"wasip2",
"wasip3",
+ "wasm-bindgen",
]
[[package]]
@@ -1524,6 +1526,7 @@ dependencies = [
"radroots_storage",
"radroots_transport",
"radroots_transport_nostr",
+ "radroots_transport_nostr_native",
"rustix",
"serde",
"serde_json",
@@ -1895,7 +1898,7 @@ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
[[package]]
name = "radroots_blossom"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"mediatype",
"serde",
@@ -1907,16 +1910,25 @@ dependencies = [
[[package]]
name = "radroots_core"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"rust_decimal",
"serde",
]
[[package]]
+name = "radroots_domain"
+version = "0.1.0-alpha"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
+dependencies = [
+ "radroots_identity",
+ "zeroize",
+]
+
+[[package]]
name = "radroots_event"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"hex",
"jiff-tzdb",
@@ -1934,7 +1946,7 @@ dependencies = [
[[package]]
name = "radroots_event_codec"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"hex",
"radroots_blossom",
@@ -1951,7 +1963,7 @@ dependencies = [
[[package]]
name = "radroots_identity"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"k256",
"serde",
@@ -1961,7 +1973,7 @@ dependencies = [
[[package]]
name = "radroots_nostr"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"nostr 0.44.7",
"radroots_event",
@@ -1970,12 +1982,13 @@ dependencies = [
"serde",
"serde_json",
"thiserror 2.0.18",
+ "zeroize",
]
[[package]]
name = "radroots_nostr_connect"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"nostr 0.44.7",
"radroots_event",
@@ -1991,15 +2004,18 @@ dependencies = [
[[package]]
name = "radroots_protocol"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
+ "radroots_identity",
"serde",
+ "sha2",
+ "zeroize",
]
[[package]]
name = "radroots_runtime_paths"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"rustix",
"serde",
@@ -2009,7 +2025,7 @@ dependencies = [
[[package]]
name = "radroots_secrets"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"chacha20poly1305",
"serde",
@@ -2021,7 +2037,7 @@ dependencies = [
[[package]]
name = "radroots_service_host"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"bytes",
"fs2",
@@ -2042,7 +2058,7 @@ dependencies = [
[[package]]
name = "radroots_service_sqlite"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"fs2",
"futures",
@@ -2060,20 +2076,22 @@ dependencies = [
[[package]]
name = "radroots_storage"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
+ "radroots_domain",
"radroots_event",
"radroots_event_codec",
"radroots_protocol",
"radroots_trade",
"radroots_transport",
"sha2",
+ "zeroize",
]
[[package]]
name = "radroots_trade"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"radroots_core",
"radroots_event",
@@ -2083,7 +2101,7 @@ dependencies = [
[[package]]
name = "radroots_transport"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"radroots_event",
"radroots_identity",
@@ -2094,19 +2112,35 @@ dependencies = [
[[package]]
name = "radroots_transport_nostr"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
+ "async-utility",
"async-wsocket",
"futures",
+ "getrandom 0.4.2",
"nostr-sdk",
"radroots_event_codec",
"radroots_nostr",
"radroots_protocol",
"radroots_transport",
- "rustls",
"serde_json",
"sha2",
"tokio",
+ "url",
+ "wasm-bindgen-futures",
+ "web-time",
+]
+
+[[package]]
+name = "radroots_transport_nostr_native"
+version = "0.1.0-alpha"
+source = "git+https://github.com/radrootslabs/lib?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
+dependencies = [
+ "futures",
+ "radroots_transport",
+ "radroots_transport_nostr",
+ "rustls",
+ "tokio",
"tokio-rustls",
"tokio-tungstenite",
"url",
@@ -2327,9 +2361,9 @@ dependencies = [
[[package]]
name = "rustls-webpki"
-version = "0.103.15"
+version = "0.103.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"
+checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281"
dependencies = [
"ring",
"rustls-pki-types",
@@ -3275,19 +3309,29 @@ dependencies = [
]
[[package]]
+name = "web-time"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
name = "webpki-roots"
version = "0.26.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9"
dependencies = [
- "webpki-roots 1.0.9",
+ "webpki-roots 1.0.10",
]
[[package]]
name = "webpki-roots"
-version = "1.0.9"
+version = "1.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"
+checksum = "1c1c8e20c8a38fc7d65abfe74eb7280e4aa667e8eec8bc84996d2874810748d9"
dependencies = [
"rustls-pki-types",
]
diff --git a/Cargo.toml b/Cargo.toml
@@ -58,17 +58,18 @@ futures-executor = "0.3"
hex = "0.4"
jsonschema = { version = "0.48.1", default-features = false }
nostr = { version = "0.44.2", features = ["nip04", "nip44", "nip46", "nip49"] }
-radroots_identity = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha" }
-radroots_nostr = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha", features = ["events"] }
-radroots_nostr_connect = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha" }
-radroots_event_codec = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha", features = ["json"] }
-radroots_runtime_paths = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha" }
-radroots_service_host = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha" }
-radroots_service_sqlite = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha" }
-radroots_secrets = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha", features = ["std"] }
-radroots_storage = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha", default-features = false }
-radroots_transport = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha", default-features = false }
-radroots_transport_nostr = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha" }
+radroots_identity = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha" }
+radroots_nostr = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha", features = ["events"] }
+radroots_nostr_connect = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha" }
+radroots_event_codec = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha", features = ["json"] }
+radroots_runtime_paths = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha" }
+radroots_service_host = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha" }
+radroots_service_sqlite = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha" }
+radroots_secrets = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha", features = ["std"] }
+radroots_storage = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha", default-features = false }
+radroots_transport = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha", default-features = false }
+radroots_transport_nostr = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha" }
+radroots_transport_nostr_native = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha" }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", features = ["raw_value"] }
sha2 = "0.10"
diff --git a/flake.lock b/flake.lock
@@ -45,17 +45,17 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
- "lastModified": 1792224313,
- "narHash": "sha256-SdpBK4wv43TsvgNXgf81XoKCMNwCEAdCMSkbabWbWpo=",
+ "lastModified": 1792599601,
+ "narHash": "sha256-7md838KxMxBzdQNo6E4uGWzq3LyH6PGHgD/FMtjA/Wc=",
"owner": "radrootslabs",
"repo": "lib",
- "rev": "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4",
+ "rev": "a903133cdcd78b6a25687bd23c793d17d17b90c8",
"type": "github"
},
"original": {
"owner": "radrootslabs",
"repo": "lib",
- "rev": "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4",
+ "rev": "a903133cdcd78b6a25687bd23c793d17d17b90c8",
"type": "github"
}
},
diff --git a/flake.nix b/flake.nix
@@ -8,7 +8,7 @@
# that upstream fetch defect while preserving the same locked sources.
crane.url = "github:ipetkov/crane/01bc1d404a51a0a07e9d8759cd50a7903e218c82";
lib = {
- url = "github:radrootslabs/lib/b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4";
+ url = "github:radrootslabs/lib/a903133cdcd78b6a25687bd23c793d17d17b90c8";
inputs.crane.follows = "crane";
};
nixpkgs.follows = "lib/nixpkgs";
@@ -128,7 +128,7 @@
buildInfo = {
serviceVersion = "0.1.0";
serviceCommit = self.rev or "0000000000000000000000000000000000000000";
- libRevision = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4";
+ libRevision = "a903133cdcd78b6a25687bd23c793d17d17b90c8";
rustVersion = "1.99.0";
target = "x86_64-unknown-linux-gnu";
featureProfile = "service-host";
diff --git a/radroots.service.source_lock.v4.toml b/radroots.service.source_lock.v4.toml
@@ -2,12 +2,12 @@ schema = "radroots.service.source_lock.v4"
contract_version = 4
service = "myc"
repository = "https://github.com/radrootslabs/lib"
-revision = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+revision = "a903133cdcd78b6a25687bd23c793d17d17b90c8"
architecture = "radroots.crates.release.v2"
-workspace_catalog_sha256 = "1e679431ad70a024affc52e6c71151459aca41707429dd8015d014d27e5f40b6"
+workspace_catalog_sha256 = "424909855b2af1ffc8fa6bbfd5aa0e6d17642662c18212fef4660e71700fbfc8"
version = "0.1.0-alpha"
-source_archive_sha256 = "2e301532e6baa538e94d44aaa34cc8eb8bd209ba910e687ccaf0e967d118455e"
-cargo_lock_sha256 = "991dcdf4595aa486f80a2c817b1edc46b0febb9eba169338760ba575c55d0c45"
+source_archive_sha256 = "6b0bc8e7df9c4ad79db25f33b6105d14452b3f57571f2f5bd225fa46440bfef7"
+cargo_lock_sha256 = "4285fa1e2d0954ef9b28434ea6dc338a8e0ab38a82727e50512e51a27348ac85"
rust_version = "1.99.0"
host_feature_profile = "service-host"
@@ -33,12 +33,12 @@ trailer = "two_zero_blocks"
[nix]
material = "bound"
-lib_revision = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+lib_revision = "a903133cdcd78b6a25687bd23c793d17d17b90c8"
supported_systems = ["aarch64-darwin", "x86_64-linux"]
[nix.public_input_lock]
path = "flake.lock"
-sha256 = "cd10fd6b3496fd7aa7f5bf2549d42752b9d5be6ad43f3c9f5f510309bc0ac6d3"
+sha256 = "08533633e0cb307e0881c2649b7e83cabaaf227ee6535d62f4ee4c3ae31fd383"
binding = "exact_regular_file_bytes"
mutable_reference = "forbidden"
lib_input = "lib"
diff --git a/src/transport_nostr_adapter.rs b/src/transport_nostr_adapter.rs
@@ -634,7 +634,9 @@ fn build_transport(
.with_timeouts(connect_timeout, request_timeout, connect_timeout)
.and_then(|config| config.with_max_connections(maximum_connections))
.map_err(|_| adapter_error(MycRelayAdapterErrorKind::Configuration))?;
- Ok(Some(NostrTransport::new(config)))
+ Ok(Some(radroots_transport_nostr_native::create_transport(
+ config,
+ )))
}
fn configuration_integer(
diff --git a/supply-chain/audits.toml b/supply-chain/audits.toml
@@ -173,6 +173,12 @@ criteria = "network-parser-reviewed"
version = "0.3.1"
notes = "Reused exact published Lib 3af7814ea4f76f2cca3d33d4c2bd8a854f3fb78f source review for the identical registry version/checksum and same private native transport composition. Rand 0.10.1 is the reviewed baseline for a separately recorded 0.10.3 delta. Original use restrictions remain binding; this is not a second independent audit. Reviewed all production source, feature gates and manifest: native std time uses a OnceLock monotonic origin and explicit wall-clock conversion; checked arithmetic returns Option and duration subtraction saturates, while duration operators can panic on overflow/underflow. There is no network parser or variable-sized input allocation. Native SDK connection durations come from validated adapter configuration, and packet timestamps do not supply Instant arithmetic. The no_std/WASM provider is a separately linked Sync static and is not admitted as the Radroots browser clock. This automated native-use source review is not independent audit, arbitrary-duration panic freedom or browser/no_std runtime qualification."
+[[audits.web-time]]
+who = "Codex (automated single-owner source review)"
+criteria = "safe-to-deploy"
+version = "1.1.0"
+notes = "Reused exact published RHI fa61581f3aaa6e6714288ba06e7e94f5b6a43b01 review for the identical archive and native connector composition. Original restrictions remain binding; this is not a second independent audit. Automated single-owner review of all seven production Rust modules, both manifests and exact registry archive SHA-256 5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb. The current Myc macOS/Linux composition selects only the cfg-gated std::time reexport; no build script, filesystem/network access, unsafe code or independent native clock implementation is present. Browser modules use fixed Duration arithmetic and thread-local Performance/Date bindings; missing Performance, negative wall time and unchecked duration operators can panic, and host clocks are not trusted authorization time. Optional Serde checks numeric epoch-offset overflow and duplicate/missing/unknown fields, but the caller must bound deserializer input and normalize errors. Myc does not select those browser/Serde modules. This audit admits the exact native Myc dependency use; it is not an independent review, browser clock/resource qualification, a guarantee about hostile JavaScript globals or permission to deserialize unbounded network input."
+
[[audits.zeroize]]
who = "Codex (automated single-owner source review)"
criteria = "safe-to-deploy"
diff --git a/supply-chain/config.toml b/supply-chain/config.toml
@@ -802,8 +802,9 @@ version = "1.15.1"
criteria = "safe-to-deploy"
[[exemptions.rustls-webpki]]
-version = "0.103.15"
+version = "0.103.16"
criteria = "safe-to-deploy"
+notes = "Existing version-specific TLS review debt follows the patched provider selection. Independent full-crate audit remains outstanding; no advisory ignore or audit claim is added."
[[exemptions.rustversion]]
version = "1.0.22"
@@ -1170,8 +1171,9 @@ version = "0.26.11"
criteria = "safe-to-deploy"
[[exemptions.webpki-roots]]
-version = "1.0.9"
+version = "1.0.10"
criteria = "safe-to-deploy"
+notes = "Existing version-specific TLS review debt follows the patched provider selection. Independent full-crate audit remains outstanding; no advisory ignore or audit claim is added."
[[exemptions.winapi]]
version = "0.3.9"
diff --git a/tests/build_policy.rs b/tests/build_policy.rs
@@ -30,35 +30,35 @@ fn service_host_is_the_exact_default_feature_profile() {
#[test]
fn shared_runtime_paths_is_exactly_pinned_to_the_source_locked_lib() {
assert!(MANIFEST.contains(
- "radroots_runtime_paths = { git = \"https://github.com/radrootslabs/lib\", rev = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\", version = \"=0.1.0-alpha\" }"
+ "radroots_runtime_paths = { git = \"https://github.com/radrootslabs/lib\", rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\", version = \"=0.1.0-alpha\" }"
));
}
#[test]
fn shared_identity_is_exactly_pinned_to_the_source_locked_lib() {
assert!(MANIFEST.contains(
- "radroots_identity = { git = \"https://github.com/radrootslabs/lib\", rev = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\", version = \"=0.1.0-alpha\" }"
+ "radroots_identity = { git = \"https://github.com/radrootslabs/lib\", rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\", version = \"=0.1.0-alpha\" }"
));
}
#[test]
fn shared_service_host_is_exactly_pinned_to_the_source_locked_lib() {
assert!(MANIFEST.contains(
- "radroots_service_host = { git = \"https://github.com/radrootslabs/lib\", rev = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\", version = \"=0.1.0-alpha\" }"
+ "radroots_service_host = { git = \"https://github.com/radrootslabs/lib\", rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\", version = \"=0.1.0-alpha\" }"
));
}
#[test]
fn shared_service_sqlite_is_exactly_pinned_to_the_source_locked_lib() {
assert!(MANIFEST.contains(
- "radroots_service_sqlite = { git = \"https://github.com/radrootslabs/lib\", rev = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\", version = \"=0.1.0-alpha\" }"
+ "radroots_service_sqlite = { git = \"https://github.com/radrootslabs/lib\", rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\", version = \"=0.1.0-alpha\" }"
));
}
#[test]
fn shared_storage_evidence_is_exactly_pinned_to_the_source_locked_lib() {
assert!(MANIFEST.contains(
- "radroots_storage = { git = \"https://github.com/radrootslabs/lib\", rev = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\", version = \"=0.1.0-alpha\", default-features = false }"
+ "radroots_storage = { git = \"https://github.com/radrootslabs/lib\", rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\", version = \"=0.1.0-alpha\", default-features = false }"
));
}
@@ -68,10 +68,11 @@ fn delivery_dependencies_are_exactly_source_locked() {
"radroots_event_codec",
"radroots_transport",
"radroots_transport_nostr",
+ "radroots_transport_nostr_native",
] {
assert!(
MANIFEST.contains(&format!(
- "{dependency} = {{ git = \"https://github.com/radrootslabs/lib\", rev = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\", version = \"=0.1.0-alpha\""
+ "{dependency} = {{ git = \"https://github.com/radrootslabs/lib\", rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\", version = \"=0.1.0-alpha\""
)),
"{dependency} is not pinned to the exact source lock"
);
@@ -99,15 +100,15 @@ fn source_lock_binds_the_current_cargo_lock() {
));
assert!(SOURCE_LOCK.contains(&format!("cargo_lock_sha256 = \"{digest}\"")));
assert!(SOURCE_LOCK.contains(&format!("sha256 = \"{flake_digest}\"")));
- assert!(SOURCE_LOCK.contains("revision = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\""));
+ assert!(SOURCE_LOCK.contains("revision = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\""));
assert!(SOURCE_LOCK.contains(
- "[nix]\nmaterial = \"bound\"\nlib_revision = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\"\nsupported_systems = [\"aarch64-darwin\", \"x86_64-linux\"]\n"
+ "[nix]\nmaterial = \"bound\"\nlib_revision = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\"\nsupported_systems = [\"aarch64-darwin\", \"x86_64-linux\"]\n"
));
assert!(SOURCE_LOCK.contains(
- "workspace_catalog_sha256 = \"1e679431ad70a024affc52e6c71151459aca41707429dd8015d014d27e5f40b6\""
+ "workspace_catalog_sha256 = \"424909855b2af1ffc8fa6bbfd5aa0e6d17642662c18212fef4660e71700fbfc8\""
));
assert!(SOURCE_LOCK.contains(
- "source_archive_sha256 = \"2e301532e6baa538e94d44aaa34cc8eb8bd209ba910e687ccaf0e967d118455e\""
+ "source_archive_sha256 = \"6b0bc8e7df9c4ad79db25f33b6105d14452b3f57571f2f5bd225fa46440bfef7\""
));
assert!(SOURCE_LOCK.ends_with(
"[contract_versions]\nconfig = 1\nstate = 12\nadmin = 1\nstatus = 1\nprovider = 1\n"
diff --git a/tests/package_boundary.rs b/tests/package_boundary.rs
@@ -1534,6 +1534,7 @@ fn step159_provider_delivery_is_sealed_exact_and_durability_ordered() {
}
for required in [
"radroots_transport_nostr",
+ "radroots_transport_nostr_native::create_transport",
"prepare_delivery(request)",
"execute_prepared_delivery(prepared).await",
"DeliveryOutcomeKind::Accepted",
@@ -1564,6 +1565,7 @@ fn step159_provider_delivery_is_sealed_exact_and_durability_ordered() {
"pub struct myc::MycDeliveryWorker",
"pub struct myc::MycNostrDeliveryAdapter",
"radroots_transport_nostr::",
+ "radroots_transport_nostr_native::",
"radroots_transport::",
] {
assert!(
diff --git a/tests/services_hardening_local_signer_transport.rs b/tests/services_hardening_local_signer_transport.rs
@@ -84,7 +84,7 @@ fn machine_contract_freezes_the_complete_local_signer_transport() {
#[test]
fn implementation_uses_only_the_hardened_fixed_unix_admin_boundary() {
for required in [
- "radroots_service_host = { git = \"https://github.com/radrootslabs/lib\", rev = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\"",
+ "radroots_service_host = { git = \"https://github.com/radrootslabs/lib\", rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\"",
"const MYC_LOCAL_SIGNER_ENDPOINT: &str = \"/v1/provider/operation\"",
"radroots_service_host::AdminClient",
".mutate::<_, LocalSignerResponse>(",
diff --git a/tests/services_hardening_native_release.rs b/tests/services_hardening_native_release.rs
@@ -17,7 +17,7 @@ const FLAKE_LOCK: &str = include_str!("../flake.lock");
const CARGO_CONFIG: &str = include_str!("../.cargo/config.toml");
const SYSTEMD_UNIT: &str = include_str!("../packaging/systemd/myc@.service");
-const LIB_REVISION: &str = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4";
+const LIB_REVISION: &str = "a903133cdcd78b6a25687bd23c793d17d17b90c8";
const LIB_REPOSITORY: &str = "https://github.com/radrootslabs/lib";
#[test]
@@ -214,7 +214,28 @@ fn every_radroots_dependency_is_exactly_source_locked() {
.iter()
.filter(|(name, _)| name.starts_with("radroots_"))
.collect::<Vec<_>>();
- assert_eq!(radroots.len(), 11);
+ assert_eq!(
+ radroots
+ .iter()
+ .map(|(name, _)| name.as_str())
+ .collect::<BTreeSet<_>>(),
+ [
+ "radroots_event_codec",
+ "radroots_identity",
+ "radroots_nostr",
+ "radroots_nostr_connect",
+ "radroots_runtime_paths",
+ "radroots_secrets",
+ "radroots_service_host",
+ "radroots_service_sqlite",
+ "radroots_storage",
+ "radroots_transport",
+ "radroots_transport_nostr",
+ "radroots_transport_nostr_native",
+ ]
+ .into_iter()
+ .collect()
+ );
for (name, dependency) in radroots {
let dependency = dependency.as_table().expect("detailed dependency");
assert_eq!(
@@ -253,7 +274,7 @@ fn every_radroots_dependency_is_exactly_source_locked() {
for required in [
"lib = {",
- "url = \"github:radrootslabs/lib/b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\";",
+ "url = \"github:radrootslabs/lib/a903133cdcd78b6a25687bd23c793d17d17b90c8\";",
"inputs.crane.follows = \"crane\";",
"systems = lib.lib.supportedSystems;",
"nixosModules.default",
@@ -279,8 +300,8 @@ fn every_radroots_dependency_is_exactly_source_locked() {
"treefmt-nix": "treefmt-nix"
},
"locked": {
- "lastModified": 1792224313_u64,
- "narHash": "sha256-SdpBK4wv43TsvgNXgf81XoKCMNwCEAdCMSkbabWbWpo=",
+ "lastModified": 1792599601_u64,
+ "narHash": "sha256-7md838KxMxBzdQNo6E4uGWzq3LyH6PGHgD/FMtjA/Wc=",
"owner": "radrootslabs",
"repo": "lib",
"rev": LIB_REVISION,
diff --git a/tests/services_hardening_runtime_context.rs b/tests/services_hardening_runtime_context.rs
@@ -288,7 +288,7 @@ fn unsupported_profile_platform_and_diagnostics_fail_safely() {
#[test]
fn shared_runtime_paths_are_the_only_path_policy_and_identity_authority() {
assert!(MANIFEST.contains(
- "radroots_runtime_paths = { git = \"https://github.com/radrootslabs/lib\", rev = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\", version = \"=0.1.0-alpha\" }"
+ "radroots_runtime_paths = { git = \"https://github.com/radrootslabs/lib\", rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\", version = \"=0.1.0-alpha\" }"
));
assert!(LIB_SOURCE.contains("mod runtime_context;"));
assert!(!LIB_SOURCE.contains("pub mod runtime_context;"));
diff --git a/tests/services_hardening_state_catalog.rs b/tests/services_hardening_state_catalog.rs
@@ -469,7 +469,7 @@ fn catalog_errors_are_stable_source_free_and_redacted() {
#[test]
fn catalog_source_is_pure_pinned_and_uses_only_the_shared_authority() {
assert!(MANIFEST.contains(
- "radroots_service_sqlite = { git = \"https://github.com/radrootslabs/lib\", rev = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\", version = \"=0.1.0-alpha\" }"
+ "radroots_service_sqlite = { git = \"https://github.com/radrootslabs/lib\", rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\", version = \"=0.1.0-alpha\" }"
));
assert!(LIB_SOURCE.contains("mod state_catalog;"));
assert!(!LIB_SOURCE.contains("pub mod state_catalog;"));
diff --git a/tools/xtask/src/main.rs b/tools/xtask/src/main.rs
@@ -22,6 +22,20 @@ const VERSION: &str = "0.1.0";
const REPOSITORY: &str = "https://github.com/radrootslabs/myc";
const RUST_VERSION: &str = "1.99.0";
const HOST_FEATURE_PROFILE: &str = "service-host";
+const RADROOTS_DEPENDENCIES: [&str; 12] = [
+ "radroots_event_codec",
+ "radroots_identity",
+ "radroots_nostr",
+ "radroots_nostr_connect",
+ "radroots_runtime_paths",
+ "radroots_secrets",
+ "radroots_service_host",
+ "radroots_service_sqlite",
+ "radroots_storage",
+ "radroots_transport",
+ "radroots_transport_nostr",
+ "radroots_transport_nostr_native",
+];
const SOURCE_LOCK: &str = "radroots.service.source_lock.v4.toml";
const CONFIG_EXAMPLE: &str = "contracts/services_hardening/config.v1.example.toml";
const CONFIG_SCHEMA: &str = "contracts/services_hardening/config.v1.schema.json";
@@ -845,12 +859,12 @@ fn cargo_dependency_revisions(root: &Path) -> Result<BTreeSet<String>, ReleaseEr
.and_then(toml::Value::as_table)
.ok_or(ReleaseError::InvalidSourceLock)?;
let mut revisions = BTreeSet::new();
- let mut count = 0_usize;
+ let mut names = BTreeSet::new();
for (name, dependency) in dependencies {
if !name.starts_with("radroots_") {
continue;
}
- count += 1;
+ names.insert(name.as_str());
let table = dependency
.as_table()
.ok_or(ReleaseError::InvalidSourceLock)?;
@@ -871,7 +885,7 @@ fn cargo_dependency_revisions(root: &Path) -> Result<BTreeSet<String>, ReleaseEr
.to_owned(),
);
}
- if count != 11 {
+ if names != RADROOTS_DEPENDENCIES.into_iter().collect() {
return Err(ReleaseError::InvalidSourceLock);
}
Ok(revisions)
@@ -1668,6 +1682,23 @@ mod tests {
fs::copy(root.join(name), target).expect("fixture input");
}
read_source_lock(fixture.path()).expect("exact fixture");
+
+ let manifest_path = fixture.path().join("Cargo.toml");
+ let manifest = fs::read_to_string(&manifest_path).expect("manifest");
+ let native_line = manifest
+ .lines()
+ .find(|line| line.starts_with("radroots_transport_nostr_native ="))
+ .expect("native connector dependency");
+ for changed in [
+ manifest.replace(&format!("{native_line}\n"), ""),
+ manifest.replace("radroots_transport_nostr_native =", "radroots_unexpected ="),
+ ] {
+ assert_ne!(changed, manifest);
+ fs::write(&manifest_path, changed).expect("changed manifest");
+ assert!(read_source_lock(fixture.path()).is_err());
+ }
+ fs::write(&manifest_path, manifest).expect("restore manifest");
+
let path = fixture.path().join(SOURCE_LOCK);
let original = fs::read_to_string(&path).expect("lock bytes");
for changed in [