commit 0e2be85aa58dd7b276f0e2c4896ef7ad96ca012e
parent a256c4c90dfebfd5446ef7c9eea334dee9508fe3
Author: triesap <tyson@radroots.org>
Date: Wed, 21 Oct 2026 18:19:25 +0000
client: adopt explicit preview and verified shared provider
- Replace the removed memory builder with the public preview constructor.
- Preserve local inspection output and verify network-disabled memory behavior.
- Bind exact published Cargo, Nix and source archive inputs.
- Verify native profiles and actual Darwin and Linux Nix compiler checks.
Diffstat:
9 files changed, 67 insertions(+), 29 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
@@ -935,12 +935,17 @@ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
[[package]]
name = "radroots"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib.git?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"radroots_core",
+ "radroots_domain",
"radroots_event",
+ "radroots_execution",
"radroots_identity",
+ "radroots_protocol",
"radroots_sdk",
+ "radroots_signing",
+ "radroots_storage",
"radroots_trade",
"radroots_transport",
]
@@ -948,7 +953,7 @@ dependencies = [
[[package]]
name = "radroots_blossom"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib.git?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"mediatype",
"serde",
@@ -980,16 +985,26 @@ dependencies = [
[[package]]
name = "radroots_core"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib.git?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"rust_decimal",
"serde",
]
[[package]]
+name = "radroots_domain"
+version = "0.1.0-alpha"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
+dependencies = [
+ "radroots_identity",
+ "serde",
+ "zeroize",
+]
+
+[[package]]
name = "radroots_event"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib.git?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"hex",
"jiff-tzdb",
@@ -1007,7 +1022,7 @@ dependencies = [
[[package]]
name = "radroots_event_codec"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib.git?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"hex",
"radroots_blossom",
@@ -1022,9 +1037,22 @@ dependencies = [
]
[[package]]
+name = "radroots_execution"
+version = "0.1.0-alpha"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
+dependencies = [
+ "futures",
+ "radroots_domain",
+ "radroots_protocol",
+ "radroots_signing",
+ "radroots_storage",
+ "radroots_transport",
+]
+
+[[package]]
name = "radroots_geonames"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib.git?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"fs2",
"futures",
@@ -1038,7 +1066,7 @@ dependencies = [
[[package]]
name = "radroots_identity"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib.git?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"k256",
"serde",
@@ -1048,15 +1076,20 @@ dependencies = [
[[package]]
name = "radroots_protocol"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib.git?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
+ "radroots_domain",
+ "radroots_identity",
"serde",
+ "serde_json",
+ "sha2",
+ "zeroize",
]
[[package]]
name = "radroots_sdk"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib.git?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"radroots_core",
"radroots_event",
@@ -1073,33 +1106,37 @@ dependencies = [
[[package]]
name = "radroots_signing"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib.git?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"hex",
+ "radroots_domain",
"radroots_event",
"radroots_event_codec",
"radroots_identity",
"radroots_protocol",
"sha2",
+ "zeroize",
]
[[package]]
name = "radroots_storage"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib.git?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib.git?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.git?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"hex",
"radroots_core",
@@ -1113,7 +1150,7 @@ dependencies = [
[[package]]
name = "radroots_transport"
version = "0.1.0-alpha"
-source = "git+https://github.com/radrootslabs/lib.git?rev=b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4#b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4"
+source = "git+https://github.com/radrootslabs/lib.git?rev=a903133cdcd78b6a25687bd23c793d17d17b90c8#a903133cdcd78b6a25687bd23c793d17d17b90c8"
dependencies = [
"radroots_event",
"radroots_identity",
diff --git a/Cargo.toml b/Cargo.toml
@@ -28,7 +28,7 @@ test-fixture-geonames-asset = ["radroots/geonames"]
[dependencies]
clap = { version = "4.5", features = ["derive"] }
-radroots = { git = "https://github.com/radrootslabs/lib.git", rev = "b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4", version = "=0.1.0-alpha" }
+radroots = { git = "https://github.com/radrootslabs/lib.git", rev = "a903133cdcd78b6a25687bd23c793d17d17b90c8", version = "=0.1.0-alpha" }
serde_json = "1.0"
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
diff --git a/README b/README
@@ -56,7 +56,7 @@ envelope; scripts should evaluate both.
The current executable accepts only the command-line controls shown by
`radroots --help`; it does not load `.env`, user, or workspace configuration.
`profile inspect` and `health inspect` construct and close the pinned facade's
-local-only memory client. All write operations remain fail closed until their
+explicit in-memory preview client. All write operations remain fail closed until their
canonical SDK orchestration is implemented by a later release.
`.env.example` is retained as pre-refactor implementation evidence, not as a
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
@@ -4,7 +4,7 @@
inputs = {
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";
diff --git a/radroots.lib.source-lock.v1.toml b/radroots.lib.source-lock.v1.toml
@@ -1,9 +1,9 @@
schema = "radroots.lib.source-lock.v1"
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 = "3b27bbb1cacd5329b9c7f2f7f7bf8c826e6f06625ad8f6520f6e5e8e4278b54a"
+source_archive_sha256 = "091ea149cdb024c0eddae00cc8124232c2a56d8254d95dadaaaad5d0fa9af850"
lockfile = "Cargo.lock"
-lockfile_sha256 = "32c8c763a28b1094a29dab9f9ac6b32a9651d6deff613b9c139a164310b76d22"
+lockfile_sha256 = "ee5c60f2ccaa63ad847b56029a04844fefa38798f4639827734d9706c126968d"
diff --git a/src/main.rs b/src/main.rs
@@ -58,9 +58,7 @@ async fn execute(command: &TargetCommand) -> Result<Value, String> {
}
async fn inspect_local_profile() -> Result<Value, String> {
- let client = radroots::client::memory()
- .build()
- .map_err(|error| format!("failed to construct the local SDK client: {error}"))?;
+ let client = radroots::Client::preview();
let profile = radroots::client::local_only();
client
.close()
diff --git a/tests/package_boundary.rs b/tests/package_boundary.rs
@@ -44,7 +44,7 @@ fn implementation_modules_are_private_and_api_is_root_only() {
#[test]
fn nix_outputs_are_real_owned_and_exactly_bounded() {
for required in [
- "github:radrootslabs/lib/b6f927c4d484ed2f8afcf171a83f2c8f967fb4d4",
+ "github:radrootslabs/lib/a903133cdcd78b6a25687bd23c793d17d17b90c8",
"\"aarch64-darwin\"",
"\"x86_64-linux\"",
"craneLib.buildPackage",
diff --git a/tests/target_cli.rs b/tests/target_cli.rs
@@ -15,7 +15,7 @@ fn help_exposes_the_resource_command_tree() {
}
#[test]
-fn health_uses_the_registry_backed_facade() {
+fn health_uses_the_explicit_local_preview_facade() {
let output = radroots()
.args(["health", "inspect", "--format", "json"])
.output()
@@ -27,6 +27,9 @@ fn health_uses_the_registry_backed_facade() {
assert_eq!(value["status"], "ok");
assert_eq!(value["data"]["ready"], true);
assert_eq!(value["data"]["profile"]["artifact_graph"], "registry");
+ assert_eq!(value["data"]["profile"]["profile"], "local_only");
+ assert_eq!(value["data"]["profile"]["storage"], "memory");
+ assert_eq!(value["data"]["profile"]["network_enabled"], false);
}
#[test]