rhi

Coordinated trade for connected markets
git clone https://radroots.dev/git/rhi.git
Log | Files | Refs | README | LICENSE

commit fa61581f3aaa6e6714288ba06e7e94f5b6a43b01
parent 1335954540a7aaf6bd08e61aadfa2f9501811244
Author: triesap <tyson@radroots.org>
Date:   Wed, 21 Oct 2026 17:08:43 +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:
MCargo.lock | 86+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------
MCargo.toml | 25+++++++++++++------------
Mflake.lock | 8++++----
Mflake.nix | 4++--
Mradroots.service.source_lock.v4.toml | 12++++++------
Msrc/transport_nostr_adapter.rs | 4+++-
Msupply-chain/audits.toml | 6++++++
Msupply-chain/config.toml | 6++++--
Mtests/build_policy.rs | 21++++++++++++---------
Mtests/services_hardening_admin_wave_qualification.rs | 2+-
Mtests/services_hardening_failure_qualification.rs | 2+-
Mtests/services_hardening_native_release.rs | 28+++++++++++++++++++++++++---
Mtests/services_hardening_process.rs | 2+-
Mtests/services_hardening_state_catalog.rs | 2+-
Mtests/services_hardening_wave_100_a.rs | 2+-
Mtests/source_guards.rs | 2+-
Mtools/xtask/src/main.rs | 39+++++++++++++++++++++++++++++++++++----
17 files changed, 181 insertions(+), 70 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock @@ -938,11 +938,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]] @@ -1833,7 +1835,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", @@ -1845,16 +1847,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", @@ -1872,7 +1883,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", @@ -1889,7 +1900,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", @@ -1899,7 +1910,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", @@ -1908,20 +1919,24 @@ dependencies = [ "serde", "serde_json", "thiserror 2.0.18", + "zeroize", ] [[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", @@ -1931,7 +1946,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", @@ -1943,7 +1958,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", @@ -1964,7 +1979,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", @@ -1982,20 +1997,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 = [ "hex", "radroots_core", @@ -2009,7 +2026,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", @@ -2020,19 +2037,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", @@ -2212,6 +2245,7 @@ dependencies = [ "radroots_trade", "radroots_transport", "radroots_transport_nostr", + "radroots_transport_nostr_native", "rustix", "serde", "serde_json", @@ -2304,9 +2338,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", @@ -3272,19 +3306,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 @@ -52,18 +52,19 @@ workspace = true [dependencies] base64 = "0.22" -radroots_event = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha", features = ["serde"] } -radroots_event_codec = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha", features = ["json"] } -radroots_nostr = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha", features = ["events"] } -radroots_protocol = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha" } -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_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, features = ["std"] } -radroots_transport_nostr = { 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" } -radroots_trade = { git = "https://github.com/radrootslabs/lib", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha" } +radroots_event = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha", features = ["serde"] } +radroots_event_codec = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha", features = ["json"] } +radroots_nostr = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha", features = ["events"] } +radroots_protocol = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha" } +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_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, features = ["std"] } +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" } +radroots_secrets = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha" } +radroots_trade = { git = "https://github.com/radrootslabs/lib", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha" } chacha20poly1305 = { version = "0.10" } clap = { version = "4", features = ["derive"] } 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"; @@ -130,7 +130,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 = "rhi" 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 = "94b8018715f5bffc868a0d2974108ec0cd7ace5076dd3b6796ac1c4e4175384a" +source_archive_sha256 = "6b0bc8e7df9c4ad79db25f33b6105d14452b3f57571f2f5bd225fa46440bfef7" +cargo_lock_sha256 = "b31471c5b905c18a3d98b67f573f731d05ef2baacb32657a7f803a8f97913e2e" 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 @@ -589,7 +589,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(RhiNostrAdapterErrorKind::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 = "Automated single-owner review of all seven production Rust modules, both manifests and exact registry archive SHA-256 5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb. The current RHI 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. RHI does not select those browser/Serde modules. This audit admits the exact native RHI 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 @@ -798,8 +798,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" @@ -1166,8 +1167,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 @@ -44,7 +44,7 @@ fn source_lock_metadata_is_exact_and_nix_is_bound() { fn shared_host_packages_are_exactly_source_locked() { for dependency in ["radroots_service_host", "radroots_service_sqlite"] { 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\" }}" ))); } } @@ -52,7 +52,7 @@ fn shared_host_packages_are_exactly_source_locked() { #[test] fn shared_service_sqlite_is_the_only_catalog_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\" }" )); for forbidden in ["rusqlite", "libsqlite3-sys"] { assert!( @@ -65,17 +65,20 @@ fn shared_service_sqlite_is_the_only_catalog_authority() { #[test] fn shared_storage_generation_type_is_exactly_source_locked() { 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 }" )); } #[test] fn shared_transport_spi_is_exactly_source_locked_without_serde() { assert!(MANIFEST.contains( - "radroots_transport = { git = \"https://github.com/radrootslabs/lib\", rev = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\", version = \"=0.1.0-alpha\", default-features = false, features = [\"std\"] }" + "radroots_transport = { git = \"https://github.com/radrootslabs/lib\", rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\", version = \"=0.1.0-alpha\", default-features = false, features = [\"std\"] }" )); assert!(MANIFEST.contains( - "radroots_transport_nostr = { git = \"https://github.com/radrootslabs/lib\", rev = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\", version = \"=0.1.0-alpha\" }" + "radroots_transport_nostr = { git = \"https://github.com/radrootslabs/lib\", rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\", version = \"=0.1.0-alpha\" }" + )); + assert!(MANIFEST.contains( + "radroots_transport_nostr_native = { git = \"https://github.com/radrootslabs/lib\", rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\", version = \"=0.1.0-alpha\" }" )); } @@ -88,15 +91,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( - "workspace_catalog_sha256 = \"1e679431ad70a024affc52e6c71151459aca41707429dd8015d014d27e5f40b6\"" + "workspace_catalog_sha256 = \"424909855b2af1ffc8fa6bbfd5aa0e6d17642662c18212fef4660e71700fbfc8\"" )); assert!(SOURCE_LOCK.contains( - "source_archive_sha256 = \"2e301532e6baa538e94d44aaa34cc8eb8bd209ba910e687ccaf0e967d118455e\"" + "source_archive_sha256 = \"6b0bc8e7df9c4ad79db25f33b6105d14452b3f57571f2f5bd225fa46440bfef7\"" )); 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.ends_with( "[contract_versions]\nconfig = 1\nstate = 11\nadmin = 1\nstatus = 1\nprovider = 1\n" diff --git a/tests/services_hardening_admin_wave_qualification.rs b/tests/services_hardening_admin_wave_qualification.rs @@ -121,7 +121,7 @@ fn qualification_is_executable_source_locked_and_authority_safe() { .all(|byte| byte.is_ascii_hexdigit() && !byte.is_ascii_uppercase()) ); assert_eq!(revision, "053d0c750bf9cd683c6ea37cefe7e79617ba629f"); - assert!(MANIFEST.contains("rev = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\"")); + assert!(MANIFEST.contains("rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\"")); assert!( MANIFEST .contains("radroots_service_host = { git = \"https://github.com/radrootslabs/lib\"") diff --git a/tests/services_hardening_failure_qualification.rs b/tests/services_hardening_failure_qualification.rs @@ -180,7 +180,7 @@ fn historical_source_lock_binds_the_shared_sqlite_failure_corpus() { .expect("Lib revision"); assert_eq!(revision, "053d0c750bf9cd683c6ea37cefe7e79617ba629f"); assert!(MANIFEST.contains( - "radroots_service_sqlite = { git = \"https://github.com/radrootslabs/lib\", rev = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\"" + "radroots_service_sqlite = { git = \"https://github.com/radrootslabs/lib\", rev = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\"" )); assert_eq!( contract["source_locked_shared_sqlite_corpus"], diff --git a/tests/services_hardening_native_release.rs b/tests/services_hardening_native_release.rs @@ -20,7 +20,7 @@ const SYSTEMD_UNIT: &str = include_str!("../packaging/systemd/rhi@.service"); const RELEASE_ACCEPTANCE: &str = include_str!("../scripts/release-acceptance.sh"); const XTASK_MANIFEST: &str = include_str!("../tools/xtask/Cargo.toml"); -const LIB_REVISION: &str = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"; +const LIB_REVISION: &str = "a903133cdcd78b6a25687bd23c793d17d17b90c8"; const LIB_REPOSITORY: &str = "https://github.com/radrootslabs/lib"; #[test] @@ -228,7 +228,29 @@ fn every_radroots_dependency_is_exactly_source_locked() { .iter() .filter(|(name, _)| name.starts_with("radroots_")) .collect::<Vec<_>>(); - assert_eq!(radroots.len(), 12); + assert_eq!( + radroots + .iter() + .map(|(name, _)| name.as_str()) + .collect::<BTreeSet<_>>(), + [ + "radroots_event", + "radroots_event_codec", + "radroots_nostr", + "radroots_protocol", + "radroots_runtime_paths", + "radroots_secrets", + "radroots_service_host", + "radroots_service_sqlite", + "radroots_storage", + "radroots_trade", + "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!( @@ -266,7 +288,7 @@ fn every_radroots_dependency_is_exactly_source_locked() { assert!(source.contains(&format!("?rev={LIB_REVISION}#{LIB_REVISION}"))); for required in [ - "url = \"github:radrootslabs/lib/b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\";", + "url = \"github:radrootslabs/lib/a903133cdcd78b6a25687bd23c793d17d17b90c8\";", "systems = lib.lib.supportedSystems;", "nixosModules.default", ] { diff --git a/tests/services_hardening_process.rs b/tests/services_hardening_process.rs @@ -701,7 +701,7 @@ fn process_qualification_contract_freezes_the_exact_wave_closure() { lower_hex(&Sha256::digest(FAILURE_QUALIFICATION_CONTRACT)), contract["component_qualification"]["sha256"] ); - assert!(SOURCE_LOCK.contains("revision = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\"")); + assert!(SOURCE_LOCK.contains("revision = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\"")); } #[test] diff --git a/tests/services_hardening_state_catalog.rs b/tests/services_hardening_state_catalog.rs @@ -579,7 +579,7 @@ fn secret_object() -> SchemaObject { #[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/tests/services_hardening_wave_100_a.rs b/tests/services_hardening_wave_100_a.rs @@ -52,7 +52,7 @@ fn wave_one_removed_files_remain_absent_with_current_source_binding() { "schema = \"radroots.service.source_lock.v4\"\ncontract_version = 4\nservice = \"rhi\"\n" )); assert!(SOURCE_LOCK.contains("material = \"bound\"")); - assert!(SOURCE_LOCK.contains("lib_revision = \"b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4\"")); + assert!(SOURCE_LOCK.contains("lib_revision = \"a903133cdcd78b6a25687bd23c793d17d17b90c8\"")); } #[test] diff --git a/tests/source_guards.rs b/tests/source_guards.rs @@ -43,7 +43,7 @@ fn rhi_manifest_exact_pins_radroots_contract() { ); assert_eq!( dependency.get("rev").and_then(toml::Value::as_str), - Some("b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"), + Some("a903133cdcd78b6a25687bd23c793d17d17b90c8"), "RHI must source-lock {name} to the exact promoted Lib revision" ); assert_eq!( diff --git a/tools/xtask/src/main.rs b/tools/xtask/src/main.rs @@ -22,7 +22,21 @@ const VERSION: &str = "0.1.0"; const REPOSITORY: &str = "https://github.com/radrootslabs/rhi"; const RUST_VERSION: &str = "1.99.0"; const HOST_FEATURE_PROFILE: &str = "service-host"; -const RADROOTS_DEPENDENCY_COUNT: usize = 12; +const RADROOTS_DEPENDENCIES: [&str; 13] = [ + "radroots_event", + "radroots_event_codec", + "radroots_nostr", + "radroots_protocol", + "radroots_runtime_paths", + "radroots_secrets", + "radroots_service_host", + "radroots_service_sqlite", + "radroots_storage", + "radroots_trade", + "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"; @@ -846,12 +860,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)?; @@ -872,7 +886,7 @@ fn cargo_dependency_revisions(root: &Path) -> Result<BTreeSet<String>, ReleaseEr .to_owned(), ); } - if count != RADROOTS_DEPENDENCY_COUNT { + if names != RADROOTS_DEPENDENCIES.into_iter().collect() { return Err(ReleaseError::InvalidSourceLock); } Ok(revisions) @@ -1841,6 +1855,23 @@ mod tests { assert!(read_source_lock(fixture.path()).is_err(), "{name}"); fs::write(target, original).expect("restore input"); } + let manifest = fixture.path().join("Cargo.toml"); + let original = fs::read_to_string(&manifest).expect("manifest"); + let native = original + .lines() + .find(|line| line.starts_with("radroots_transport_nostr_native =")) + .expect("native connector dependency"); + for changed in [ + original.replace(native, ""), + original.replace( + "radroots_transport_nostr_native =", + "radroots_transport_unexpected =", + ), + ] { + fs::write(&manifest, changed).expect("changed dependency inventory"); + assert!(read_source_lock(fixture.path()).is_err()); + } + fs::write(manifest, original).expect("restore manifest"); } #[test]