commit d8047c7f9c7f623e3e6692922f0932dd8a58c703 parent 01bc7fdb8ac4fc58c2233c0994faedebcc239c8c Author: triesap <tyson@radroots.org> Date: Sun, 11 Oct 2026 02:06:14 +0000 projection: build coherent rows in bounded resumable batches - Store canonical cards, complete profiles and root-indexed thread rows. - Fence bounded source batches and promote only complete coherent generations. - Preserve sparse local custody and recover interrupted legacy coordination. - Qualify real provider failures, current Rust and exact native source artifacts. Diffstat:
40 files changed, 3432 insertions(+), 724 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock @@ -1876,7 +1876,7 @@ checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" [[package]] name = "radroots_blossom" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "mediatype", "serde", @@ -1888,7 +1888,7 @@ dependencies = [ [[package]] name = "radroots_core" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "rust_decimal", "serde", @@ -1897,7 +1897,7 @@ dependencies = [ [[package]] name = "radroots_event" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "hex", "jiff-tzdb", @@ -1915,7 +1915,7 @@ dependencies = [ [[package]] name = "radroots_event_codec" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "hex", "radroots_blossom", @@ -1932,7 +1932,7 @@ dependencies = [ [[package]] name = "radroots_identity" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "k256", "serde", @@ -1942,7 +1942,7 @@ dependencies = [ [[package]] name = "radroots_nostr" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "base64", "nostr 0.44.8", @@ -1959,7 +1959,7 @@ dependencies = [ [[package]] name = "radroots_protocol" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "serde", ] @@ -1967,7 +1967,7 @@ dependencies = [ [[package]] name = "radroots_sdk" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "radroots_blossom", "radroots_core", @@ -1992,7 +1992,7 @@ dependencies = [ [[package]] name = "radroots_secrets" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "chacha20poly1305", "sha2", @@ -2003,7 +2003,7 @@ dependencies = [ [[package]] name = "radroots_signing" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "hex", "radroots_event", @@ -2017,7 +2017,7 @@ dependencies = [ [[package]] name = "radroots_storage" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "radroots_event", "radroots_event_codec", @@ -2031,7 +2031,7 @@ dependencies = [ [[package]] name = "radroots_storage_sqlite" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "fs2", "radroots_event", @@ -2048,7 +2048,7 @@ dependencies = [ [[package]] name = "radroots_sync" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "radroots_event", "radroots_event_codec", @@ -2063,7 +2063,7 @@ dependencies = [ [[package]] name = "radroots_trade" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "hex", "radroots_core", @@ -2077,7 +2077,7 @@ dependencies = [ [[package]] name = "radroots_transport" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "radroots_event", "radroots_identity", @@ -2089,7 +2089,7 @@ dependencies = [ [[package]] name = "radroots_transport_nostr" version = "0.1.0-alpha" -source = "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" +source = "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" dependencies = [ "async-wsocket", "futures", diff --git a/Cargo.toml b/Cargo.toml @@ -31,18 +31,18 @@ jiff_tzdb = { package = "jiff-tzdb", version = "=0.1.8", default-features = fals futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] } hex = { version = "0.4" } nostr = { version = "0.44.7", default-features = false } -radroots_blossom = { package = "radroots_blossom", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "65410d47c90160ab45c91b185101fdcf6cdf7e12" } -radroots_event = { package = "radroots_event", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "65410d47c90160ab45c91b185101fdcf6cdf7e12" } -radroots_event_codec = { package = "radroots_event_codec", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "65410d47c90160ab45c91b185101fdcf6cdf7e12" } -radroots_identity = { package = "radroots_identity", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "65410d47c90160ab45c91b185101fdcf6cdf7e12" } -radroots_nostr = { package = "radroots_nostr", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "65410d47c90160ab45c91b185101fdcf6cdf7e12" } -radroots_protocol = { package = "radroots_protocol", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "65410d47c90160ab45c91b185101fdcf6cdf7e12" } -radroots_sdk = { version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "65410d47c90160ab45c91b185101fdcf6cdf7e12" } -radroots_signing = { package = "radroots_signing", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "65410d47c90160ab45c91b185101fdcf6cdf7e12" } -radroots_storage = { package = "radroots_storage", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "65410d47c90160ab45c91b185101fdcf6cdf7e12" } -radroots_sync = { package = "radroots_sync", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "65410d47c90160ab45c91b185101fdcf6cdf7e12" } -radroots_transport = { package = "radroots_transport", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "65410d47c90160ab45c91b185101fdcf6cdf7e12" } -radroots_transport_nostr = { package = "radroots_transport_nostr", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "65410d47c90160ab45c91b185101fdcf6cdf7e12" } +radroots_blossom = { package = "radroots_blossom", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "de141d793734b62c7391313c232c992d5d1ab7b5" } +radroots_event = { package = "radroots_event", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "de141d793734b62c7391313c232c992d5d1ab7b5" } +radroots_event_codec = { package = "radroots_event_codec", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "de141d793734b62c7391313c232c992d5d1ab7b5" } +radroots_identity = { package = "radroots_identity", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "de141d793734b62c7391313c232c992d5d1ab7b5" } +radroots_nostr = { package = "radroots_nostr", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "de141d793734b62c7391313c232c992d5d1ab7b5" } +radroots_protocol = { package = "radroots_protocol", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "de141d793734b62c7391313c232c992d5d1ab7b5" } +radroots_sdk = { version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "de141d793734b62c7391313c232c992d5d1ab7b5" } +radroots_signing = { package = "radroots_signing", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "de141d793734b62c7391313c232c992d5d1ab7b5" } +radroots_storage = { package = "radroots_storage", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "de141d793734b62c7391313c232c992d5d1ab7b5" } +radroots_sync = { package = "radroots_sync", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "de141d793734b62c7391313c232c992d5d1ab7b5" } +radroots_transport = { package = "radroots_transport", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "de141d793734b62c7391313c232c992d5d1ab7b5" } +radroots_transport_nostr = { package = "radroots_transport_nostr", version = "=0.1.0-alpha", default-features = false, git = "https://github.com/radrootslabs/lib", rev = "de141d793734b62c7391313c232c992d5d1ab7b5" } serde = { version = "1", default-features = false, features = ["derive", "alloc"] } serde_json = { version = "1", default-features = false, features = ["alloc"] } sha2 = { version = "0.10", default-features = false } diff --git a/TeraFFI/provenance.json b/TeraFFI/provenance.json @@ -22,9 +22,9 @@ "sha256": "3ed9b7ece2f86e5b5d1ddc6ecbb97deb49c46ca2ea91a930eaec1b580232345c" }, { - "bytes": 81099336, + "bytes": 82046880, "path": "TeraFFI.xcframework/ios-arm64-simulator/libtera_ffi.a", - "sha256": "0c4f0bfe3e628091abc37094eedbbf3f615de1bfd1cab1a540c54f5fa3aece59" + "sha256": "67a32100c57baada79d005d8bfdf02406e12d1567d81326bed124d957a0f47ba" }, { "bytes": 105627, @@ -37,9 +37,9 @@ "sha256": "3ed9b7ece2f86e5b5d1ddc6ecbb97deb49c46ca2ea91a930eaec1b580232345c" }, { - "bytes": 81172216, + "bytes": 82093032, "path": "TeraFFI.xcframework/ios-arm64/libtera_ffi.a", - "sha256": "9ce2c8c2c0092bc8bf782ebf3ae7e7cd57ece8d62507580fcecbca31af8ef31c" + "sha256": "a5101197979bab291a6e7c0af2f4aa59c81b89791157079ce5d4771c3f25f67e" }, { "bytes": 64990, @@ -77,34 +77,34 @@ "sha256": "3ed9b7ece2f86e5b5d1ddc6ecbb97deb49c46ca2ea91a930eaec1b580232345c" }, { - "bytes": 23981536, + "bytes": 24494736, "path": "native/aarch64-apple-darwin/libtera_ffi.dylib", - "sha256": "d6ef2b36122a5c68ad484a42ee1de9c551d2da69443dcea753598182a5f2944e" + "sha256": "29332f19cef211e82539b58d8190cb4c215b9a2d7615770bebc0673398abe2a3" }, { - "bytes": 81099336, + "bytes": 82046880, "path": "native/aarch64-apple-ios-sim/libtera_ffi.a", - "sha256": "0c4f0bfe3e628091abc37094eedbbf3f615de1bfd1cab1a540c54f5fa3aece59" + "sha256": "67a32100c57baada79d005d8bfdf02406e12d1567d81326bed124d957a0f47ba" }, { - "bytes": 81172216, + "bytes": 82093032, "path": "native/aarch64-apple-ios/libtera_ffi.a", - "sha256": "9ce2c8c2c0092bc8bf782ebf3ae7e7cd57ece8d62507580fcecbca31af8ef31c" + "sha256": "a5101197979bab291a6e7c0af2f4aa59c81b89791157079ce5d4771c3f25f67e" }, { - "bytes": 161454, + "bytes": 165250, "path": "source/aarch64-apple-darwin.json", - "sha256": "61317f69e75fd5e25585a4d68e8a278dc51c6c9d0f41576486df4edc6ff75be8" + "sha256": "71ea2553b49ce1537c428eabf07adb27955c46b5d321021454a3dde52c26b1b6" }, { - "bytes": 161379, + "bytes": 165175, "path": "source/aarch64-apple-ios-sim.json", - "sha256": "6e3a05d47a80a7bad6cea838fb8bdb94384bd4d214a32c48a5e604588eb71633" + "sha256": "89ae6356cff373c1a320133f289a6a11a7a3391a6f7cf52755ebd2640bf935be" }, { - "bytes": 161349, + "bytes": 165145, "path": "source/aarch64-apple-ios.json", - "sha256": "8563e4980f7f3748bc94f4ae3f05d77fb9b611ad381a35089ccc2dbb4de1120e" + "sha256": "aebd712ae40359c37927ab4cec5e3a46d6fac56f6fb4b439dfaf3d5735e38133" } ], "language": "swift", @@ -112,7 +112,7 @@ "schema": "radroots.artifact-manifest.v2", "source": { "repository": "https://github.com/radrootslabs/tera", - "tree": "d006741f65282b17cba239dc508c87b9f9059f06" + "tree": "12ea824303b5fac6610f776d75d57ab8a44e9a38" }, "source_records": { "aarch64-apple-darwin": "source/aarch64-apple-darwin.json", @@ -139,9 +139,9 @@ "sha256": "3ed9b7ece2f86e5b5d1ddc6ecbb97deb49c46ca2ea91a930eaec1b580232345c" }, { - "bytes": 81099336, + "bytes": 82046880, "path": "Tera/Frameworks/TeraFFI.xcframework/ios-arm64-simulator/libtera_ffi.a", - "sha256": "0c4f0bfe3e628091abc37094eedbbf3f615de1bfd1cab1a540c54f5fa3aece59" + "sha256": "67a32100c57baada79d005d8bfdf02406e12d1567d81326bed124d957a0f47ba" }, { "bytes": 105627, @@ -154,9 +154,9 @@ "sha256": "3ed9b7ece2f86e5b5d1ddc6ecbb97deb49c46ca2ea91a930eaec1b580232345c" }, { - "bytes": 81172216, + "bytes": 82093032, "path": "Tera/Frameworks/TeraFFI.xcframework/ios-arm64/libtera_ffi.a", - "sha256": "9ce2c8c2c0092bc8bf782ebf3ae7e7cd57ece8d62507580fcecbca31af8ef31c" + "sha256": "a5101197979bab291a6e7c0af2f4aa59c81b89791157079ce5d4771c3f25f67e" }, { "bytes": 807948, @@ -174,19 +174,19 @@ "sha256": "5d74060f97e52dad69ab7567c16d6b6b34acfab846f468450d89e2394a8a69d5" }, { - "bytes": 161454, + "bytes": 165250, "path": "TeraFFI/source/aarch64-apple-darwin.json", - "sha256": "61317f69e75fd5e25585a4d68e8a278dc51c6c9d0f41576486df4edc6ff75be8" + "sha256": "71ea2553b49ce1537c428eabf07adb27955c46b5d321021454a3dde52c26b1b6" }, { - "bytes": 161379, + "bytes": 165175, "path": "TeraFFI/source/aarch64-apple-ios-sim.json", - "sha256": "6e3a05d47a80a7bad6cea838fb8bdb94384bd4d214a32c48a5e604588eb71633" + "sha256": "89ae6356cff373c1a320133f289a6a11a7a3391a6f7cf52755ebd2640bf935be" }, { - "bytes": 161349, + "bytes": 165145, "path": "TeraFFI/source/aarch64-apple-ios.json", - "sha256": "8563e4980f7f3748bc94f4ae3f05d77fb9b611ad381a35089ccc2dbb4de1120e" + "sha256": "aebd712ae40359c37927ab4cec5e3a46d6fac56f6fb4b439dfaf3d5735e38133" } ], "schema": "tera.installed-native-artifacts.v1" diff --git a/TeraFFI/source.lock b/TeraFFI/source.lock @@ -1,10 +1,10 @@ schema = "tera.installed-source.v1" repository = "https://github.com/radrootslabs/tera" -source_tree = "d006741f65282b17cba239dc508c87b9f9059f06" -manifest_sha256 = "3dbdebcb97e89ba170c27c9aadc3df04617c0d6eada2a718691e1dedd1f19770" +source_tree = "12ea824303b5fac6610f776d75d57ab8a44e9a38" +manifest_sha256 = "cd0a611be546d47cf3314daa64f087924b440f7c6586fdf5bddfd4c990d5789c" source_date_epoch = 1787871027 [foundation] repository = "https://github.com/radrootslabs/lib" -revision = "65410d47c90160ab45c91b185101fdcf6cdf7e12" +revision = "de141d793734b62c7391313c232c992d5d1ab7b5" version = "0.1.0-alpha" diff --git a/TeraFFI/source/aarch64-apple-darwin.json b/TeraFFI/source/aarch64-apple-darwin.json @@ -186,36 +186,36 @@ "proc-macro2 v1.0.107|default,proc-macro (*)", "quote v1.0.47|default,proc-macro", "quote v1.0.47|default,proc-macro (*)", - "radroots_blossom v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_blossom v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_core v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_core v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_event v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_event v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_event_codec v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|json,serde,std", - "radroots_event_codec v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|json,serde,std (*)", - "radroots_identity v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_identity v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|blossom,events,std", - "radroots_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|blossom,events,std (*)", - "radroots_protocol v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_protocol v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_sdk v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|blossom,nostr,sqlite,sync", - "radroots_sdk v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|blossom,nostr,sqlite,sync (*)", - "radroots_secrets v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|", - "radroots_signing v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_signing v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_storage v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde", - "radroots_storage v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde (*)", - "radroots_storage_sqlite v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|", - "radroots_sync v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|", - "radroots_sync v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)| (*)", - "radroots_trade v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|json,serde,std", - "radroots_trade v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|json,serde,std (*)", - "radroots_transport v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_transport v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_transport_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|", - "radroots_transport_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)| (*)", + "radroots_blossom v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_blossom v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_core v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_core v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_event v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_event v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_event_codec v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|json,serde,std", + "radroots_event_codec v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|json,serde,std (*)", + "radroots_identity v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_identity v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|blossom,events,std", + "radroots_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|blossom,events,std (*)", + "radroots_protocol v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_protocol v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_sdk v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|blossom,nostr,sqlite,sync", + "radroots_sdk v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|blossom,nostr,sqlite,sync (*)", + "radroots_secrets v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|", + "radroots_signing v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_signing v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_storage v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde", + "radroots_storage v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde (*)", + "radroots_storage_sqlite v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|", + "radroots_sync v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|", + "radroots_sync v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)| (*)", + "radroots_trade v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|json,serde,std", + "radroots_trade v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|json,serde,std (*)", + "radroots_transport v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_transport v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_transport_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|", + "radroots_transport_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)| (*)", "rand v0.8.7|alloc,getrandom,libc,rand_chacha,std,std_rng", "rand v0.9.5|alloc,default,os_rng,small_rng,std,std_rng,thread_rng", "rand_chacha v0.3.1|std", @@ -498,15 +498,15 @@ }, "target": "aarch64-apple-darwin" }, - "cargo_lock_sha256": "5dee96b2185c5cfb5588eacbd1723402abaa8668560c4f7c0ae559f6a869e27c", + "cargo_lock_sha256": "8728db9b542653fc1cb5cfd898352e81fa26c1af67b82465b86f573949d1605d", "disposition": "local_staged_source_only", "foundation": { "architecture": "radroots.crates.release.v2", - "lockfile_sha256": "5dee96b2185c5cfb5588eacbd1723402abaa8668560c4f7c0ae559f6a869e27c", + "lockfile_sha256": "8728db9b542653fc1cb5cfd898352e81fa26c1af67b82465b86f573949d1605d", "repository": "https://github.com/radrootslabs/lib", - "revision": "65410d47c90160ab45c91b185101fdcf6cdf7e12", + "revision": "de141d793734b62c7391313c232c992d5d1ab7b5", "schema": "radroots.lib.source-lock.v1", - "source_archive_sha256": "6405e4445f8069b656b81b43de25a74ba91340c926b865ce88cbc62104ebcb24", + "source_archive_sha256": "a817ba6d25fbfeea9aac0f996414e7725f519e0769f54e316e6bf6b84522f3a8", "version": "0.1.0-alpha", "workspace_catalog_sha256": "ee295f2352e2577a4052d980624415aec9871197d4fc9910a4c21c83a9179200" }, @@ -723,15 +723,15 @@ "files": { "Cargo.lock": { "bytes": 94906, - "git_blob": "dfe3ae4936a3d97813a3a5c2b881b94786a54d0a", + "git_blob": "d0a0fa340ae2ec2cd298e6487d98157aacf29628", "mode": "100644", - "sha256": "5dee96b2185c5cfb5588eacbd1723402abaa8668560c4f7c0ae559f6a869e27c" + "sha256": "8728db9b542653fc1cb5cfd898352e81fa26c1af67b82465b86f573949d1605d" }, "Cargo.toml": { "bytes": 4442, - "git_blob": "ebea8eee4917348c462b669b480ecb938a00b7aa", + "git_blob": "1b10326ac72a40c05b12ec8454e16857e309f46c", "mode": "100644", - "sha256": "e7934baae4c765de90f09aec69c099c8ff2b30c37db05f61fe2efdd7785fbc63" + "sha256": "020f3b24746352c49612ce12dd1ebf826df5de60f0ced610ab6bc97026338513" }, "Makefile": { "bytes": 4182, @@ -1880,10 +1880,10 @@ "sha256": "1d105fa23b9914c466009402f60bf3de83be3cf302be39b818392d5ae11faa6c" }, "core/crates/tera_core/src/runtime/product_surface/today.rs": { - "bytes": 130321, - "git_blob": "1d059ed32a190b662f94aeac8c1396f8c1f9f478", + "bytes": 130518, + "git_blob": "af09610dedad8c7592971d20fbdb736e82dca6ad", "mode": "100644", - "sha256": "cdf65cf74fcd873dcea900ecf1832caeec7ce44fe2cfff15367f626a26f5c0f3" + "sha256": "21d8dc871fac73be25e3ab0eb68b3ba201319bbd828cde18f6fa996200bf1399" }, "core/crates/tera_core/src/runtime/product_surface/today_admission_tests.rs": { "bytes": 13548, @@ -1909,6 +1909,36 @@ "mode": "100644", "sha256": "6f5810256ca221ca66ec4056e07fc635103e0ed02da01f5a8c53161535d7eaf6" }, + "core/crates/tera_core/src/runtime/product_surface/today_build.rs": { + "bytes": 10242, + "git_blob": "cf4afb4a633e12d1edecd94ca102681290011edb", + "mode": "100644", + "sha256": "b873b0da79e3af236ff892a3910f8630eaca0e00a9f21db7d4cf6c6daa0c9eea" + }, + "core/crates/tera_core/src/runtime/product_surface/today_build_fault_tests.rs": { + "bytes": 8703, + "git_blob": "9d1226e08d87bfe5cb1b8a22b3c547bc450a5150", + "mode": "100644", + "sha256": "cdc4f28dcc4710d4c1e980f2816af986b405a60df643e4d1acf0cce5b6e763bc" + }, + "core/crates/tera_core/src/runtime/product_surface/today_build_progress.rs": { + "bytes": 4973, + "git_blob": "d5e5f7dff4fb87c43db36bf8f3753176697a537a", + "mode": "100644", + "sha256": "e524280a699d792cd3df07b6dca5d54cb7166f82580f42b5ed19cb3d1a756ab1" + }, + "core/crates/tera_core/src/runtime/product_surface/today_build_reference_tests.rs": { + "bytes": 5198, + "git_blob": "618f85135aebffd2a8ac7af674b8c64e8a9f8567", + "mode": "100644", + "sha256": "f56a2a748eff12a45e6c41785f71b90e98a99cd662faf7d398e32dc238641691" + }, + "core/crates/tera_core/src/runtime/product_surface/today_build_tests.rs": { + "bytes": 5697, + "git_blob": "dda7f04f6f32c80343fc0ad993be81f0360bd562", + "mode": "100644", + "sha256": "5178d6a9f31de24b1f554c2b2972f1703ea86b07c2cbb75b943ae8fa7e4b5ecb" + }, "core/crates/tera_core/src/runtime/product_surface/today_cache_cleanup.rs": { "bytes": 2146, "git_blob": "0c07a60ee13ffd96603888d835d6e10936f3e2c7", @@ -1922,16 +1952,16 @@ "sha256": "56ab264f207b5b7d4fa5ff67f54f169e6bc65b785aed23e9f56bd4490e7ebf4a" }, "core/crates/tera_core/src/runtime/product_surface/today_calendar_migration.rs": { - "bytes": 10664, - "git_blob": "74c7bab33cc45bed2867f3b18525242fb3c38a4a", + "bytes": 10824, + "git_blob": "932ddebf641703ff83a9179148a9ab9be40f2847", "mode": "100644", - "sha256": "fa01f28b24461f35effe7a943a44aba8381c547b8949dd59d3b82f211124afee" + "sha256": "82f742025ddf0d5f5f60d32e6f1a4b1d80815c19ecb9dd5c3dd852dc28aad653" }, "core/crates/tera_core/src/runtime/product_surface/today_calendar_migration_tests.rs": { - "bytes": 22836, - "git_blob": "cbbb1520e5b8bbc5b7a99f87eca534eb72a426bf", + "bytes": 24401, + "git_blob": "a4fa2f4587d2f7a6d6895549e74f987cc5a1bfcb", "mode": "100644", - "sha256": "9cf1f4aba644abe1d1b382a86bcacd3dabfd8cb3d05dd08c935eb227745f0b63" + "sha256": "ba04ae391cb9c65e372720b9819613ca17925e960905e1a35f0f4f2b2e20dd8c" }, "core/crates/tera_core/src/runtime/product_surface/today_calendar_tests.rs": { "bytes": 3065, @@ -1939,35 +1969,53 @@ "mode": "100644", "sha256": "a445af34eca65a5ee148a4fa268d5e7814daa53466d758fb16ee5428e26d2961" }, + "core/crates/tera_core/src/runtime/product_surface/today_coordination_retirement.rs": { + "bytes": 7319, + "git_blob": "11204837ff3c9c49912773bab546e490d36b3d91", + "mode": "100644", + "sha256": "afee0148bde8272a9aae7505a8dc37f0c67b48aac182c043724ffc0a537a372f" + }, + "core/crates/tera_core/src/runtime/product_surface/today_coordination_retirement_tests.rs": { + "bytes": 9989, + "git_blob": "21cf4310e3e2c3fde5385ac4fc39709918da92f4", + "mode": "100644", + "sha256": "ba6a8fc169e87e2b6c6042cfe8e9b35c0f1382020edbb3fc8e75adec2da50695" + }, + "core/crates/tera_core/src/runtime/product_surface/today_counted_fault_tests.rs": { + "bytes": 2260, + "git_blob": "b0a0294592ab9bda5a173fcd199ca9127cc95639", + "mode": "100644", + "sha256": "cd8adbdc8d7c2acd366ae17594f8a34788bd703151f8bbf60eadc187dfb51ae8" + }, "core/crates/tera_core/src/runtime/product_surface/today_counted_storage_tests.rs": { - "bytes": 18045, - "git_blob": "57ec50f9f50037aa2e630cb48febb5355d3ab47e", + "bytes": 22859, + "git_blob": "d01b99e75868c4b283065c76542f7b10f75ac66f", "mode": "100644", - "sha256": "d5da0dc2e13a5a72731c3efc1b4fd02459acc542a94c5a38380dfa1b9e9520da" + "sha256": "e5de8fa76030e011ca34fefbc6824be1b571679adf5a74a86139108e381d0ea4" }, "core/crates/tera_core/src/runtime/product_surface/today_interruption_tests.rs": { - "bytes": 9701, - "git_blob": "1983e44682123ffff05d916fb38243acf63cb54d", + "bytes": 9876, + "git_blob": "622a7729c9a7a855a608a16f6e5e65c001c5d013", "mode": "100644", - "sha256": "be3e7423769e23d70ce32060874df6c8b5004c6db6e910c5c1691fac0f783e1f" + "sha256": "9e6e9d5b3e833b2601ac916d742dd4e145d2172d128a8c8818d178dbae74759e" }, "core/crates/tera_core/src/runtime/product_surface/today_media_collection.rs": { - "bytes": 4659, - "git_blob": "085e77a54c38a26b65de54cd618d53f5cfd6797a", + "bytes": 5512, + "git_blob": "c59e11ce05bb8a02793bfe8831434214d506f9d5", "mode": "100644", - "sha256": "bdb583caec79f555506ecccf91449c2ce4c4de107165fccf0b5b0eae6313da45" + "sha256": "a65e4c7cc390f8d6c19be8b087c95a8e56409cf18678c447e94fc607dc45e185" }, "core/crates/tera_core/src/runtime/product_surface/today_media_collection_budget_tests.rs": { - "bytes": 5636, - "git_blob": "2730144367c477f7e063c89b2f90ba8d5945faf7", + "bytes": 5639, + "git_blob": "f53aad194cf7257e3028ac8a92aaf102d3c6bbd1", "mode": "100644", - "sha256": "3be886e04c99abb891bff97fd3bc3f4c43071246926fd8ae4e781ef2e6060a30" + "sha256": "b5a0829da419012ce5903a02265669fabd3b25e06b49e9091bd83bb388c078a5" }, "core/crates/tera_core/src/runtime/product_surface/today_media_collection_tests.rs": { - "bytes": 10403, - "git_blob": "ed7d788afb94ff7c0ac967654ee0a5b41c60d096", + "bytes": 11054, + "git_blob": "b289eb8d0d3287426e11bf3f500c8edbf7f532f4", "mode": "100644", - "sha256": "ea3402bbd0ae1230a661c74072dfc27275348c83510700a339a715a3fdf33a56" + "sha256": "bfb337035bc2e4bdb568f8b7ec6c5ad440c63034ed43bac44f0d8f027be06949" }, "core/crates/tera_core/src/runtime/product_surface/today_media_retrieval.rs": { "bytes": 8726, @@ -1976,10 +2024,10 @@ "sha256": "fe7d0381ef8886e3735fd85a2624bd853e5395722eccb83e40f4b4923ae9ca59" }, "core/crates/tera_core/src/runtime/product_surface/today_media_visibility.rs": { - "bytes": 1070, - "git_blob": "3ebfa97a1fa927801c1e379bd9ad98935bd80a26", + "bytes": 1249, + "git_blob": "f840e6ce45a25efef496d33e8e6fde5ffe65a7ab", "mode": "100644", - "sha256": "3a1dea2fe0528307f90820f571d67a58cc020f7cf7f5042613bfdfc70e7b9b5e" + "sha256": "ba95996f99480061d07d7961ed35aac3670ccaa4da6a97f5036bb9b181a95493" }, "core/crates/tera_core/src/runtime/product_surface/today_media_visibility_tests.rs": { "bytes": 13288, @@ -2000,10 +2048,10 @@ "sha256": "a818a499cd947e6424351131c61fec6a1bc2ef833129fecda356c35f61541699" }, "core/crates/tera_core/src/runtime/product_surface/today_performance_tests.rs": { - "bytes": 14490, - "git_blob": "816b82c2e38b921ffb9a8a4e25054688ef61b1ca", + "bytes": 15165, + "git_blob": "6df18229bc3c3683c00b10e568f6a993a440b2a6", "mode": "100644", - "sha256": "785e0c163b7660648b07bf128183cfa722acf661660b922da75ddb212e93ff80" + "sha256": "ffdc575160493138065784a3f76b0477551366c4f3cf0c5aabf0b1aafe726215" }, "core/crates/tera_core/src/runtime/product_surface/today_permissive_evidence_tests.rs": { "bytes": 1242, @@ -2030,22 +2078,52 @@ "sha256": "25fdb0267fba678ab8952d94e5d4a278f6ee062c32b2fc65b9ad5c6ec6e4300e" }, "core/crates/tera_core/src/runtime/product_surface/today_refresh.rs": { - "bytes": 6406, - "git_blob": "f7391f8f735f97a72e8c106c8f21d7e6029e1707", + "bytes": 5338, + "git_blob": "58a5d0df68645ff81b239dad1e1caf88d1da0c26", + "mode": "100644", + "sha256": "18d99f9115f91e8eef599be165649737932a0c8cf52d1fc07815d045323cd383" + }, + "core/crates/tera_core/src/runtime/product_surface/today_row_state.rs": { + "bytes": 5338, + "git_blob": "7cf7140c07dba93cdee2a0e7be41d6415aa3ab6b", + "mode": "100644", + "sha256": "98fad615d7a93076c0fd7e81e0f9318c803041ddfc620ecfb285089ed2992874" + }, + "core/crates/tera_core/src/runtime/product_surface/today_rows.rs": { + "bytes": 3390, + "git_blob": "a9ff22a3aac26e53960f24899d53ff83bacbea15", + "mode": "100644", + "sha256": "5387efbadf5eb6e6b6e4bf19bab4e84db3cafb74e12eea3b48c3d74c374f7951" + }, + "core/crates/tera_core/src/runtime/product_surface/today_rows_tests.rs": { + "bytes": 3721, + "git_blob": "41f110d8a9d3c9cb33375597d10b8afe9b49e028", "mode": "100644", - "sha256": "eccef47b40e5744c53df3835ccb668e07ef1e5b4014ef8f74d0ff9ae1cbb7f27" + "sha256": "8c51aacb12a7798cd28907f1ca3619bfaf660ca5c559fd3ada4cba208a5d8127" }, "core/crates/tera_core/src/runtime/product_surface/today_scope_tests.rs": { - "bytes": 14361, - "git_blob": "b9d288dcab30e0bed87480745b39a981687ce82f", + "bytes": 15119, + "git_blob": "b7b0e530e615f10304c6a68c861d81bdbc1df2bf", + "mode": "100644", + "sha256": "889c9fddc075c45938f58c3ab3c003eac95afde5b25872fccce95a4060ee26e4" + }, + "core/crates/tera_core/src/runtime/product_surface/today_sidecar.rs": { + "bytes": 6642, + "git_blob": "9a35ba705081278f621ae10a673227850e98e528", + "mode": "100644", + "sha256": "d6254581e23d124f62cab8a3727e76b6bbc22b68d89d4b013115bcf9da2b609a" + }, + "core/crates/tera_core/src/runtime/product_surface/today_sidecar_tests.rs": { + "bytes": 930, + "git_blob": "1538e0a2cea3e76454333ec49edd995257032347", "mode": "100644", - "sha256": "34a250e47e016cb39997f6282619ef2874a7280b8fd039a798a962b265f96e6f" + "sha256": "ca76aa9c7e48d7eb5012e8856410e925fcfd85fe9c2c012c92633bea73ba39a5" }, "core/crates/tera_core/src/runtime/product_surface/today_submission_overlay.rs": { - "bytes": 6047, - "git_blob": "0d9f13a90e5668e33d388a9b37bc871e804e8caa", + "bytes": 5426, + "git_blob": "fa4f4369ff922bd6b6f893f4189e0dcf02f65b4e", "mode": "100644", - "sha256": "896dcf36b95780c0c2f05795e1c23103dd7dcd4a061f812b2c6696b2b3d17480" + "sha256": "b983ae490550f21c6abeda2fcabc8716036ae93f741098968cbaa884630f6497" }, "core/crates/tera_core/src/runtime/product_surface/today_sync.rs": { "bytes": 10240, @@ -2078,10 +2156,10 @@ "sha256": "4b22bf45cfd3524a1eb66924a7c48fb66f4709e9c1b29b0b7b7cb11969ac00ce" }, "core/crates/tera_core/src/runtime/product_surface/today_visibility_tests.rs": { - "bytes": 13443, - "git_blob": "000456f0b98d5ddabdb330661878f69151251420", + "bytes": 14034, + "git_blob": "efb2c51cc915bb182e079833999896e3ba8c1449", "mode": "100644", - "sha256": "a42251adecbd1ed572a2f8355ed54f0e42e44d239c4fd3a2266cf5492b65ad27" + "sha256": "b4379afea2f5b293f9fd5778d07fa4e52d34e927f3d67f50a25bb424ab9f0ab8" }, "core/crates/tera_core/src/runtime/product_surface/viewer_calendar.rs": { "bytes": 2970, @@ -2204,10 +2282,10 @@ "sha256": "0dbf39b1a85db893ba348b9d4b743b04a9fd76eee6fe2a1341e547e82821baf7" }, "core/crates/tera_core/src/runtime/visibility.rs": { - "bytes": 7894, - "git_blob": "7afd51388955fd12a1c118b3070fd157c9b50a33", + "bytes": 7659, + "git_blob": "cb44912ecf1e5fee6bb7898d12d76060794f6239", "mode": "100644", - "sha256": "db7c9e4b35103b4b609f1123b934cdba74b161ec5b3a2ac7d9ff3cb3fe471e56" + "sha256": "bd44513a7cf440f6e29957c4a214ae79eb63ae0f5eeb17a417ec650371766924" }, "core/crates/tera_core/src/runtime/visibility_tests.rs": { "bytes": 4047, @@ -2366,10 +2444,10 @@ "sha256": "a561c4a2249021d13125570413af511495689ff2fe1f5263187d76043183b7d6" }, "core/crates/tera_ffi/src/error.rs": { - "bytes": 22019, - "git_blob": "5689b345bf9a0abbe789b2673959d63449f895d1", + "bytes": 22155, + "git_blob": "2fa463064d3893ae2fe9b9ec6202b32b58314b23", "mode": "100644", - "sha256": "46331bfec4a46475c673cad8fb6428db4a706847b12fef10d96bcaa64d5576e1" + "sha256": "0da6d975046e1d9ba5223c74966f3bd790568aaaa279c99aedce43c76bd6a569" }, "core/crates/tera_ffi/src/invalidation.rs": { "bytes": 6914, @@ -2901,9 +2979,9 @@ }, "radroots.lib.source-lock.v1.toml": { "bytes": 482, - "git_blob": "2f8b02996d761dbb55f1684a0952e9b18632d4c8", + "git_blob": "796ae135dfb225d4b8bbc9bf958f061c69d1138e", "mode": "100644", - "sha256": "bac51b23151f89376784d47fd039711d2d6d218c14c48b7879ec7a9c8232ae13" + "sha256": "cd24f9ea0acb7f7102509356b8e515270b048a2a08006b618d6f86240ce6910b" }, "rust-toolchain.toml": { "bytes": 79, @@ -3428,13 +3506,13 @@ "sha256": "0164f2b369fdcf734f73bd1df2a2f5b2e05b7bbd94c2d3ae75869fff6d876140" }, "test-fixtures/legacy-identifiers.v1.json": { - "bytes": 198425, - "git_blob": "60590ffa51e603691813504e034278662655c561", + "bytes": 200616, + "git_blob": "8830a4b971c23fc52aee69757860b9f4ddbb206d", "mode": "100644", - "sha256": "5acdd0615e9170b603617b92c88b7194f5629e5e958354871eda212198515f05" + "sha256": "617e81be2f133f698ed2b6897fe47304bce1919b11c90b2bc7fb2927812725b0" } }, "policy": "staged_inputs", - "tree": "d006741f65282b17cba239dc508c87b9f9059f06" + "tree": "12ea824303b5fac6610f776d75d57ab8a44e9a38" } } diff --git a/TeraFFI/source/aarch64-apple-ios-sim.json b/TeraFFI/source/aarch64-apple-ios-sim.json @@ -186,36 +186,36 @@ "proc-macro2 v1.0.107|default,proc-macro (*)", "quote v1.0.47|default,proc-macro", "quote v1.0.47|default,proc-macro (*)", - "radroots_blossom v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_blossom v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_core v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_core v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_event v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_event v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_event_codec v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|json,serde,std", - "radroots_event_codec v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|json,serde,std (*)", - "radroots_identity v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_identity v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|blossom,events,std", - "radroots_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|blossom,events,std (*)", - "radroots_protocol v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_protocol v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_sdk v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|blossom,nostr,sqlite,sync", - "radroots_sdk v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|blossom,nostr,sqlite,sync (*)", - "radroots_secrets v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|", - "radroots_signing v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_signing v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_storage v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde", - "radroots_storage v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde (*)", - "radroots_storage_sqlite v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|", - "radroots_sync v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|", - "radroots_sync v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)| (*)", - "radroots_trade v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|json,serde,std", - "radroots_trade v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|json,serde,std (*)", - "radroots_transport v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_transport v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_transport_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|", - "radroots_transport_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)| (*)", + "radroots_blossom v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_blossom v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_core v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_core v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_event v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_event v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_event_codec v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|json,serde,std", + "radroots_event_codec v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|json,serde,std (*)", + "radroots_identity v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_identity v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|blossom,events,std", + "radroots_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|blossom,events,std (*)", + "radroots_protocol v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_protocol v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_sdk v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|blossom,nostr,sqlite,sync", + "radroots_sdk v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|blossom,nostr,sqlite,sync (*)", + "radroots_secrets v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|", + "radroots_signing v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_signing v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_storage v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde", + "radroots_storage v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde (*)", + "radroots_storage_sqlite v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|", + "radroots_sync v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|", + "radroots_sync v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)| (*)", + "radroots_trade v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|json,serde,std", + "radroots_trade v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|json,serde,std (*)", + "radroots_transport v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_transport v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_transport_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|", + "radroots_transport_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)| (*)", "rand v0.8.7|alloc,getrandom,libc,rand_chacha,std,std_rng", "rand v0.9.5|alloc,default,os_rng,small_rng,std,std_rng,thread_rng", "rand_chacha v0.3.1|std", @@ -496,15 +496,15 @@ }, "target": "aarch64-apple-ios-sim" }, - "cargo_lock_sha256": "5dee96b2185c5cfb5588eacbd1723402abaa8668560c4f7c0ae559f6a869e27c", + "cargo_lock_sha256": "8728db9b542653fc1cb5cfd898352e81fa26c1af67b82465b86f573949d1605d", "disposition": "local_staged_source_only", "foundation": { "architecture": "radroots.crates.release.v2", - "lockfile_sha256": "5dee96b2185c5cfb5588eacbd1723402abaa8668560c4f7c0ae559f6a869e27c", + "lockfile_sha256": "8728db9b542653fc1cb5cfd898352e81fa26c1af67b82465b86f573949d1605d", "repository": "https://github.com/radrootslabs/lib", - "revision": "65410d47c90160ab45c91b185101fdcf6cdf7e12", + "revision": "de141d793734b62c7391313c232c992d5d1ab7b5", "schema": "radroots.lib.source-lock.v1", - "source_archive_sha256": "6405e4445f8069b656b81b43de25a74ba91340c926b865ce88cbc62104ebcb24", + "source_archive_sha256": "a817ba6d25fbfeea9aac0f996414e7725f519e0769f54e316e6bf6b84522f3a8", "version": "0.1.0-alpha", "workspace_catalog_sha256": "ee295f2352e2577a4052d980624415aec9871197d4fc9910a4c21c83a9179200" }, @@ -721,15 +721,15 @@ "files": { "Cargo.lock": { "bytes": 94906, - "git_blob": "dfe3ae4936a3d97813a3a5c2b881b94786a54d0a", + "git_blob": "d0a0fa340ae2ec2cd298e6487d98157aacf29628", "mode": "100644", - "sha256": "5dee96b2185c5cfb5588eacbd1723402abaa8668560c4f7c0ae559f6a869e27c" + "sha256": "8728db9b542653fc1cb5cfd898352e81fa26c1af67b82465b86f573949d1605d" }, "Cargo.toml": { "bytes": 4442, - "git_blob": "ebea8eee4917348c462b669b480ecb938a00b7aa", + "git_blob": "1b10326ac72a40c05b12ec8454e16857e309f46c", "mode": "100644", - "sha256": "e7934baae4c765de90f09aec69c099c8ff2b30c37db05f61fe2efdd7785fbc63" + "sha256": "020f3b24746352c49612ce12dd1ebf826df5de60f0ced610ab6bc97026338513" }, "Makefile": { "bytes": 4182, @@ -1878,10 +1878,10 @@ "sha256": "1d105fa23b9914c466009402f60bf3de83be3cf302be39b818392d5ae11faa6c" }, "core/crates/tera_core/src/runtime/product_surface/today.rs": { - "bytes": 130321, - "git_blob": "1d059ed32a190b662f94aeac8c1396f8c1f9f478", + "bytes": 130518, + "git_blob": "af09610dedad8c7592971d20fbdb736e82dca6ad", "mode": "100644", - "sha256": "cdf65cf74fcd873dcea900ecf1832caeec7ce44fe2cfff15367f626a26f5c0f3" + "sha256": "21d8dc871fac73be25e3ab0eb68b3ba201319bbd828cde18f6fa996200bf1399" }, "core/crates/tera_core/src/runtime/product_surface/today_admission_tests.rs": { "bytes": 13548, @@ -1907,6 +1907,36 @@ "mode": "100644", "sha256": "6f5810256ca221ca66ec4056e07fc635103e0ed02da01f5a8c53161535d7eaf6" }, + "core/crates/tera_core/src/runtime/product_surface/today_build.rs": { + "bytes": 10242, + "git_blob": "cf4afb4a633e12d1edecd94ca102681290011edb", + "mode": "100644", + "sha256": "b873b0da79e3af236ff892a3910f8630eaca0e00a9f21db7d4cf6c6daa0c9eea" + }, + "core/crates/tera_core/src/runtime/product_surface/today_build_fault_tests.rs": { + "bytes": 8703, + "git_blob": "9d1226e08d87bfe5cb1b8a22b3c547bc450a5150", + "mode": "100644", + "sha256": "cdc4f28dcc4710d4c1e980f2816af986b405a60df643e4d1acf0cce5b6e763bc" + }, + "core/crates/tera_core/src/runtime/product_surface/today_build_progress.rs": { + "bytes": 4973, + "git_blob": "d5e5f7dff4fb87c43db36bf8f3753176697a537a", + "mode": "100644", + "sha256": "e524280a699d792cd3df07b6dca5d54cb7166f82580f42b5ed19cb3d1a756ab1" + }, + "core/crates/tera_core/src/runtime/product_surface/today_build_reference_tests.rs": { + "bytes": 5198, + "git_blob": "618f85135aebffd2a8ac7af674b8c64e8a9f8567", + "mode": "100644", + "sha256": "f56a2a748eff12a45e6c41785f71b90e98a99cd662faf7d398e32dc238641691" + }, + "core/crates/tera_core/src/runtime/product_surface/today_build_tests.rs": { + "bytes": 5697, + "git_blob": "dda7f04f6f32c80343fc0ad993be81f0360bd562", + "mode": "100644", + "sha256": "5178d6a9f31de24b1f554c2b2972f1703ea86b07c2cbb75b943ae8fa7e4b5ecb" + }, "core/crates/tera_core/src/runtime/product_surface/today_cache_cleanup.rs": { "bytes": 2146, "git_blob": "0c07a60ee13ffd96603888d835d6e10936f3e2c7", @@ -1920,16 +1950,16 @@ "sha256": "56ab264f207b5b7d4fa5ff67f54f169e6bc65b785aed23e9f56bd4490e7ebf4a" }, "core/crates/tera_core/src/runtime/product_surface/today_calendar_migration.rs": { - "bytes": 10664, - "git_blob": "74c7bab33cc45bed2867f3b18525242fb3c38a4a", + "bytes": 10824, + "git_blob": "932ddebf641703ff83a9179148a9ab9be40f2847", "mode": "100644", - "sha256": "fa01f28b24461f35effe7a943a44aba8381c547b8949dd59d3b82f211124afee" + "sha256": "82f742025ddf0d5f5f60d32e6f1a4b1d80815c19ecb9dd5c3dd852dc28aad653" }, "core/crates/tera_core/src/runtime/product_surface/today_calendar_migration_tests.rs": { - "bytes": 22836, - "git_blob": "cbbb1520e5b8bbc5b7a99f87eca534eb72a426bf", + "bytes": 24401, + "git_blob": "a4fa2f4587d2f7a6d6895549e74f987cc5a1bfcb", "mode": "100644", - "sha256": "9cf1f4aba644abe1d1b382a86bcacd3dabfd8cb3d05dd08c935eb227745f0b63" + "sha256": "ba04ae391cb9c65e372720b9819613ca17925e960905e1a35f0f4f2b2e20dd8c" }, "core/crates/tera_core/src/runtime/product_surface/today_calendar_tests.rs": { "bytes": 3065, @@ -1937,35 +1967,53 @@ "mode": "100644", "sha256": "a445af34eca65a5ee148a4fa268d5e7814daa53466d758fb16ee5428e26d2961" }, + "core/crates/tera_core/src/runtime/product_surface/today_coordination_retirement.rs": { + "bytes": 7319, + "git_blob": "11204837ff3c9c49912773bab546e490d36b3d91", + "mode": "100644", + "sha256": "afee0148bde8272a9aae7505a8dc37f0c67b48aac182c043724ffc0a537a372f" + }, + "core/crates/tera_core/src/runtime/product_surface/today_coordination_retirement_tests.rs": { + "bytes": 9989, + "git_blob": "21cf4310e3e2c3fde5385ac4fc39709918da92f4", + "mode": "100644", + "sha256": "ba6a8fc169e87e2b6c6042cfe8e9b35c0f1382020edbb3fc8e75adec2da50695" + }, + "core/crates/tera_core/src/runtime/product_surface/today_counted_fault_tests.rs": { + "bytes": 2260, + "git_blob": "b0a0294592ab9bda5a173fcd199ca9127cc95639", + "mode": "100644", + "sha256": "cd8adbdc8d7c2acd366ae17594f8a34788bd703151f8bbf60eadc187dfb51ae8" + }, "core/crates/tera_core/src/runtime/product_surface/today_counted_storage_tests.rs": { - "bytes": 18045, - "git_blob": "57ec50f9f50037aa2e630cb48febb5355d3ab47e", + "bytes": 22859, + "git_blob": "d01b99e75868c4b283065c76542f7b10f75ac66f", "mode": "100644", - "sha256": "d5da0dc2e13a5a72731c3efc1b4fd02459acc542a94c5a38380dfa1b9e9520da" + "sha256": "e5de8fa76030e011ca34fefbc6824be1b571679adf5a74a86139108e381d0ea4" }, "core/crates/tera_core/src/runtime/product_surface/today_interruption_tests.rs": { - "bytes": 9701, - "git_blob": "1983e44682123ffff05d916fb38243acf63cb54d", + "bytes": 9876, + "git_blob": "622a7729c9a7a855a608a16f6e5e65c001c5d013", "mode": "100644", - "sha256": "be3e7423769e23d70ce32060874df6c8b5004c6db6e910c5c1691fac0f783e1f" + "sha256": "9e6e9d5b3e833b2601ac916d742dd4e145d2172d128a8c8818d178dbae74759e" }, "core/crates/tera_core/src/runtime/product_surface/today_media_collection.rs": { - "bytes": 4659, - "git_blob": "085e77a54c38a26b65de54cd618d53f5cfd6797a", + "bytes": 5512, + "git_blob": "c59e11ce05bb8a02793bfe8831434214d506f9d5", "mode": "100644", - "sha256": "bdb583caec79f555506ecccf91449c2ce4c4de107165fccf0b5b0eae6313da45" + "sha256": "a65e4c7cc390f8d6c19be8b087c95a8e56409cf18678c447e94fc607dc45e185" }, "core/crates/tera_core/src/runtime/product_surface/today_media_collection_budget_tests.rs": { - "bytes": 5636, - "git_blob": "2730144367c477f7e063c89b2f90ba8d5945faf7", + "bytes": 5639, + "git_blob": "f53aad194cf7257e3028ac8a92aaf102d3c6bbd1", "mode": "100644", - "sha256": "3be886e04c99abb891bff97fd3bc3f4c43071246926fd8ae4e781ef2e6060a30" + "sha256": "b5a0829da419012ce5903a02265669fabd3b25e06b49e9091bd83bb388c078a5" }, "core/crates/tera_core/src/runtime/product_surface/today_media_collection_tests.rs": { - "bytes": 10403, - "git_blob": "ed7d788afb94ff7c0ac967654ee0a5b41c60d096", + "bytes": 11054, + "git_blob": "b289eb8d0d3287426e11bf3f500c8edbf7f532f4", "mode": "100644", - "sha256": "ea3402bbd0ae1230a661c74072dfc27275348c83510700a339a715a3fdf33a56" + "sha256": "bfb337035bc2e4bdb568f8b7ec6c5ad440c63034ed43bac44f0d8f027be06949" }, "core/crates/tera_core/src/runtime/product_surface/today_media_retrieval.rs": { "bytes": 8726, @@ -1974,10 +2022,10 @@ "sha256": "fe7d0381ef8886e3735fd85a2624bd853e5395722eccb83e40f4b4923ae9ca59" }, "core/crates/tera_core/src/runtime/product_surface/today_media_visibility.rs": { - "bytes": 1070, - "git_blob": "3ebfa97a1fa927801c1e379bd9ad98935bd80a26", + "bytes": 1249, + "git_blob": "f840e6ce45a25efef496d33e8e6fde5ffe65a7ab", "mode": "100644", - "sha256": "3a1dea2fe0528307f90820f571d67a58cc020f7cf7f5042613bfdfc70e7b9b5e" + "sha256": "ba95996f99480061d07d7961ed35aac3670ccaa4da6a97f5036bb9b181a95493" }, "core/crates/tera_core/src/runtime/product_surface/today_media_visibility_tests.rs": { "bytes": 13288, @@ -1998,10 +2046,10 @@ "sha256": "a818a499cd947e6424351131c61fec6a1bc2ef833129fecda356c35f61541699" }, "core/crates/tera_core/src/runtime/product_surface/today_performance_tests.rs": { - "bytes": 14490, - "git_blob": "816b82c2e38b921ffb9a8a4e25054688ef61b1ca", + "bytes": 15165, + "git_blob": "6df18229bc3c3683c00b10e568f6a993a440b2a6", "mode": "100644", - "sha256": "785e0c163b7660648b07bf128183cfa722acf661660b922da75ddb212e93ff80" + "sha256": "ffdc575160493138065784a3f76b0477551366c4f3cf0c5aabf0b1aafe726215" }, "core/crates/tera_core/src/runtime/product_surface/today_permissive_evidence_tests.rs": { "bytes": 1242, @@ -2028,22 +2076,52 @@ "sha256": "25fdb0267fba678ab8952d94e5d4a278f6ee062c32b2fc65b9ad5c6ec6e4300e" }, "core/crates/tera_core/src/runtime/product_surface/today_refresh.rs": { - "bytes": 6406, - "git_blob": "f7391f8f735f97a72e8c106c8f21d7e6029e1707", + "bytes": 5338, + "git_blob": "58a5d0df68645ff81b239dad1e1caf88d1da0c26", + "mode": "100644", + "sha256": "18d99f9115f91e8eef599be165649737932a0c8cf52d1fc07815d045323cd383" + }, + "core/crates/tera_core/src/runtime/product_surface/today_row_state.rs": { + "bytes": 5338, + "git_blob": "7cf7140c07dba93cdee2a0e7be41d6415aa3ab6b", + "mode": "100644", + "sha256": "98fad615d7a93076c0fd7e81e0f9318c803041ddfc620ecfb285089ed2992874" + }, + "core/crates/tera_core/src/runtime/product_surface/today_rows.rs": { + "bytes": 3390, + "git_blob": "a9ff22a3aac26e53960f24899d53ff83bacbea15", + "mode": "100644", + "sha256": "5387efbadf5eb6e6b6e4bf19bab4e84db3cafb74e12eea3b48c3d74c374f7951" + }, + "core/crates/tera_core/src/runtime/product_surface/today_rows_tests.rs": { + "bytes": 3721, + "git_blob": "41f110d8a9d3c9cb33375597d10b8afe9b49e028", "mode": "100644", - "sha256": "eccef47b40e5744c53df3835ccb668e07ef1e5b4014ef8f74d0ff9ae1cbb7f27" + "sha256": "8c51aacb12a7798cd28907f1ca3619bfaf660ca5c559fd3ada4cba208a5d8127" }, "core/crates/tera_core/src/runtime/product_surface/today_scope_tests.rs": { - "bytes": 14361, - "git_blob": "b9d288dcab30e0bed87480745b39a981687ce82f", + "bytes": 15119, + "git_blob": "b7b0e530e615f10304c6a68c861d81bdbc1df2bf", + "mode": "100644", + "sha256": "889c9fddc075c45938f58c3ab3c003eac95afde5b25872fccce95a4060ee26e4" + }, + "core/crates/tera_core/src/runtime/product_surface/today_sidecar.rs": { + "bytes": 6642, + "git_blob": "9a35ba705081278f621ae10a673227850e98e528", + "mode": "100644", + "sha256": "d6254581e23d124f62cab8a3727e76b6bbc22b68d89d4b013115bcf9da2b609a" + }, + "core/crates/tera_core/src/runtime/product_surface/today_sidecar_tests.rs": { + "bytes": 930, + "git_blob": "1538e0a2cea3e76454333ec49edd995257032347", "mode": "100644", - "sha256": "34a250e47e016cb39997f6282619ef2874a7280b8fd039a798a962b265f96e6f" + "sha256": "ca76aa9c7e48d7eb5012e8856410e925fcfd85fe9c2c012c92633bea73ba39a5" }, "core/crates/tera_core/src/runtime/product_surface/today_submission_overlay.rs": { - "bytes": 6047, - "git_blob": "0d9f13a90e5668e33d388a9b37bc871e804e8caa", + "bytes": 5426, + "git_blob": "fa4f4369ff922bd6b6f893f4189e0dcf02f65b4e", "mode": "100644", - "sha256": "896dcf36b95780c0c2f05795e1c23103dd7dcd4a061f812b2c6696b2b3d17480" + "sha256": "b983ae490550f21c6abeda2fcabc8716036ae93f741098968cbaa884630f6497" }, "core/crates/tera_core/src/runtime/product_surface/today_sync.rs": { "bytes": 10240, @@ -2076,10 +2154,10 @@ "sha256": "4b22bf45cfd3524a1eb66924a7c48fb66f4709e9c1b29b0b7b7cb11969ac00ce" }, "core/crates/tera_core/src/runtime/product_surface/today_visibility_tests.rs": { - "bytes": 13443, - "git_blob": "000456f0b98d5ddabdb330661878f69151251420", + "bytes": 14034, + "git_blob": "efb2c51cc915bb182e079833999896e3ba8c1449", "mode": "100644", - "sha256": "a42251adecbd1ed572a2f8355ed54f0e42e44d239c4fd3a2266cf5492b65ad27" + "sha256": "b4379afea2f5b293f9fd5778d07fa4e52d34e927f3d67f50a25bb424ab9f0ab8" }, "core/crates/tera_core/src/runtime/product_surface/viewer_calendar.rs": { "bytes": 2970, @@ -2202,10 +2280,10 @@ "sha256": "0dbf39b1a85db893ba348b9d4b743b04a9fd76eee6fe2a1341e547e82821baf7" }, "core/crates/tera_core/src/runtime/visibility.rs": { - "bytes": 7894, - "git_blob": "7afd51388955fd12a1c118b3070fd157c9b50a33", + "bytes": 7659, + "git_blob": "cb44912ecf1e5fee6bb7898d12d76060794f6239", "mode": "100644", - "sha256": "db7c9e4b35103b4b609f1123b934cdba74b161ec5b3a2ac7d9ff3cb3fe471e56" + "sha256": "bd44513a7cf440f6e29957c4a214ae79eb63ae0f5eeb17a417ec650371766924" }, "core/crates/tera_core/src/runtime/visibility_tests.rs": { "bytes": 4047, @@ -2364,10 +2442,10 @@ "sha256": "a561c4a2249021d13125570413af511495689ff2fe1f5263187d76043183b7d6" }, "core/crates/tera_ffi/src/error.rs": { - "bytes": 22019, - "git_blob": "5689b345bf9a0abbe789b2673959d63449f895d1", + "bytes": 22155, + "git_blob": "2fa463064d3893ae2fe9b9ec6202b32b58314b23", "mode": "100644", - "sha256": "46331bfec4a46475c673cad8fb6428db4a706847b12fef10d96bcaa64d5576e1" + "sha256": "0da6d975046e1d9ba5223c74966f3bd790568aaaa279c99aedce43c76bd6a569" }, "core/crates/tera_ffi/src/invalidation.rs": { "bytes": 6914, @@ -2899,9 +2977,9 @@ }, "radroots.lib.source-lock.v1.toml": { "bytes": 482, - "git_blob": "2f8b02996d761dbb55f1684a0952e9b18632d4c8", + "git_blob": "796ae135dfb225d4b8bbc9bf958f061c69d1138e", "mode": "100644", - "sha256": "bac51b23151f89376784d47fd039711d2d6d218c14c48b7879ec7a9c8232ae13" + "sha256": "cd24f9ea0acb7f7102509356b8e515270b048a2a08006b618d6f86240ce6910b" }, "rust-toolchain.toml": { "bytes": 79, @@ -3426,13 +3504,13 @@ "sha256": "0164f2b369fdcf734f73bd1df2a2f5b2e05b7bbd94c2d3ae75869fff6d876140" }, "test-fixtures/legacy-identifiers.v1.json": { - "bytes": 198425, - "git_blob": "60590ffa51e603691813504e034278662655c561", + "bytes": 200616, + "git_blob": "8830a4b971c23fc52aee69757860b9f4ddbb206d", "mode": "100644", - "sha256": "5acdd0615e9170b603617b92c88b7194f5629e5e958354871eda212198515f05" + "sha256": "617e81be2f133f698ed2b6897fe47304bce1919b11c90b2bc7fb2927812725b0" } }, "policy": "staged_inputs", - "tree": "d006741f65282b17cba239dc508c87b9f9059f06" + "tree": "12ea824303b5fac6610f776d75d57ab8a44e9a38" } } diff --git a/TeraFFI/source/aarch64-apple-ios.json b/TeraFFI/source/aarch64-apple-ios.json @@ -186,36 +186,36 @@ "proc-macro2 v1.0.107|default,proc-macro (*)", "quote v1.0.47|default,proc-macro", "quote v1.0.47|default,proc-macro (*)", - "radroots_blossom v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_blossom v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_core v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_core v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_event v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_event v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_event_codec v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|json,serde,std", - "radroots_event_codec v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|json,serde,std (*)", - "radroots_identity v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_identity v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|blossom,events,std", - "radroots_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|blossom,events,std (*)", - "radroots_protocol v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_protocol v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_sdk v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|blossom,nostr,sqlite,sync", - "radroots_sdk v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|blossom,nostr,sqlite,sync (*)", - "radroots_secrets v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|", - "radroots_signing v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_signing v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_storage v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde", - "radroots_storage v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde (*)", - "radroots_storage_sqlite v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|", - "radroots_sync v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|", - "radroots_sync v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)| (*)", - "radroots_trade v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|json,serde,std", - "radroots_trade v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|json,serde,std (*)", - "radroots_transport v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std", - "radroots_transport v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|serde,std (*)", - "radroots_transport_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)|", - "radroots_transport_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47)| (*)", + "radroots_blossom v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_blossom v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_core v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_core v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_event v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_event v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_event_codec v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|json,serde,std", + "radroots_event_codec v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|json,serde,std (*)", + "radroots_identity v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_identity v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|blossom,events,std", + "radroots_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|blossom,events,std (*)", + "radroots_protocol v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_protocol v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_sdk v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|blossom,nostr,sqlite,sync", + "radroots_sdk v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|blossom,nostr,sqlite,sync (*)", + "radroots_secrets v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|", + "radroots_signing v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_signing v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_storage v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde", + "radroots_storage v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde (*)", + "radroots_storage_sqlite v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|", + "radroots_sync v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|", + "radroots_sync v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)| (*)", + "radroots_trade v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|json,serde,std", + "radroots_trade v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|json,serde,std (*)", + "radroots_transport v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std", + "radroots_transport v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|serde,std (*)", + "radroots_transport_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)|", + "radroots_transport_nostr v0.1.0-alpha (https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d79)| (*)", "rand v0.8.7|alloc,getrandom,libc,rand_chacha,std,std_rng", "rand v0.9.5|alloc,default,os_rng,small_rng,std,std_rng,thread_rng", "rand_chacha v0.3.1|std", @@ -496,15 +496,15 @@ }, "target": "aarch64-apple-ios" }, - "cargo_lock_sha256": "5dee96b2185c5cfb5588eacbd1723402abaa8668560c4f7c0ae559f6a869e27c", + "cargo_lock_sha256": "8728db9b542653fc1cb5cfd898352e81fa26c1af67b82465b86f573949d1605d", "disposition": "local_staged_source_only", "foundation": { "architecture": "radroots.crates.release.v2", - "lockfile_sha256": "5dee96b2185c5cfb5588eacbd1723402abaa8668560c4f7c0ae559f6a869e27c", + "lockfile_sha256": "8728db9b542653fc1cb5cfd898352e81fa26c1af67b82465b86f573949d1605d", "repository": "https://github.com/radrootslabs/lib", - "revision": "65410d47c90160ab45c91b185101fdcf6cdf7e12", + "revision": "de141d793734b62c7391313c232c992d5d1ab7b5", "schema": "radroots.lib.source-lock.v1", - "source_archive_sha256": "6405e4445f8069b656b81b43de25a74ba91340c926b865ce88cbc62104ebcb24", + "source_archive_sha256": "a817ba6d25fbfeea9aac0f996414e7725f519e0769f54e316e6bf6b84522f3a8", "version": "0.1.0-alpha", "workspace_catalog_sha256": "ee295f2352e2577a4052d980624415aec9871197d4fc9910a4c21c83a9179200" }, @@ -721,15 +721,15 @@ "files": { "Cargo.lock": { "bytes": 94906, - "git_blob": "dfe3ae4936a3d97813a3a5c2b881b94786a54d0a", + "git_blob": "d0a0fa340ae2ec2cd298e6487d98157aacf29628", "mode": "100644", - "sha256": "5dee96b2185c5cfb5588eacbd1723402abaa8668560c4f7c0ae559f6a869e27c" + "sha256": "8728db9b542653fc1cb5cfd898352e81fa26c1af67b82465b86f573949d1605d" }, "Cargo.toml": { "bytes": 4442, - "git_blob": "ebea8eee4917348c462b669b480ecb938a00b7aa", + "git_blob": "1b10326ac72a40c05b12ec8454e16857e309f46c", "mode": "100644", - "sha256": "e7934baae4c765de90f09aec69c099c8ff2b30c37db05f61fe2efdd7785fbc63" + "sha256": "020f3b24746352c49612ce12dd1ebf826df5de60f0ced610ab6bc97026338513" }, "Makefile": { "bytes": 4182, @@ -1878,10 +1878,10 @@ "sha256": "1d105fa23b9914c466009402f60bf3de83be3cf302be39b818392d5ae11faa6c" }, "core/crates/tera_core/src/runtime/product_surface/today.rs": { - "bytes": 130321, - "git_blob": "1d059ed32a190b662f94aeac8c1396f8c1f9f478", + "bytes": 130518, + "git_blob": "af09610dedad8c7592971d20fbdb736e82dca6ad", "mode": "100644", - "sha256": "cdf65cf74fcd873dcea900ecf1832caeec7ce44fe2cfff15367f626a26f5c0f3" + "sha256": "21d8dc871fac73be25e3ab0eb68b3ba201319bbd828cde18f6fa996200bf1399" }, "core/crates/tera_core/src/runtime/product_surface/today_admission_tests.rs": { "bytes": 13548, @@ -1907,6 +1907,36 @@ "mode": "100644", "sha256": "6f5810256ca221ca66ec4056e07fc635103e0ed02da01f5a8c53161535d7eaf6" }, + "core/crates/tera_core/src/runtime/product_surface/today_build.rs": { + "bytes": 10242, + "git_blob": "cf4afb4a633e12d1edecd94ca102681290011edb", + "mode": "100644", + "sha256": "b873b0da79e3af236ff892a3910f8630eaca0e00a9f21db7d4cf6c6daa0c9eea" + }, + "core/crates/tera_core/src/runtime/product_surface/today_build_fault_tests.rs": { + "bytes": 8703, + "git_blob": "9d1226e08d87bfe5cb1b8a22b3c547bc450a5150", + "mode": "100644", + "sha256": "cdc4f28dcc4710d4c1e980f2816af986b405a60df643e4d1acf0cce5b6e763bc" + }, + "core/crates/tera_core/src/runtime/product_surface/today_build_progress.rs": { + "bytes": 4973, + "git_blob": "d5e5f7dff4fb87c43db36bf8f3753176697a537a", + "mode": "100644", + "sha256": "e524280a699d792cd3df07b6dca5d54cb7166f82580f42b5ed19cb3d1a756ab1" + }, + "core/crates/tera_core/src/runtime/product_surface/today_build_reference_tests.rs": { + "bytes": 5198, + "git_blob": "618f85135aebffd2a8ac7af674b8c64e8a9f8567", + "mode": "100644", + "sha256": "f56a2a748eff12a45e6c41785f71b90e98a99cd662faf7d398e32dc238641691" + }, + "core/crates/tera_core/src/runtime/product_surface/today_build_tests.rs": { + "bytes": 5697, + "git_blob": "dda7f04f6f32c80343fc0ad993be81f0360bd562", + "mode": "100644", + "sha256": "5178d6a9f31de24b1f554c2b2972f1703ea86b07c2cbb75b943ae8fa7e4b5ecb" + }, "core/crates/tera_core/src/runtime/product_surface/today_cache_cleanup.rs": { "bytes": 2146, "git_blob": "0c07a60ee13ffd96603888d835d6e10936f3e2c7", @@ -1920,16 +1950,16 @@ "sha256": "56ab264f207b5b7d4fa5ff67f54f169e6bc65b785aed23e9f56bd4490e7ebf4a" }, "core/crates/tera_core/src/runtime/product_surface/today_calendar_migration.rs": { - "bytes": 10664, - "git_blob": "74c7bab33cc45bed2867f3b18525242fb3c38a4a", + "bytes": 10824, + "git_blob": "932ddebf641703ff83a9179148a9ab9be40f2847", "mode": "100644", - "sha256": "fa01f28b24461f35effe7a943a44aba8381c547b8949dd59d3b82f211124afee" + "sha256": "82f742025ddf0d5f5f60d32e6f1a4b1d80815c19ecb9dd5c3dd852dc28aad653" }, "core/crates/tera_core/src/runtime/product_surface/today_calendar_migration_tests.rs": { - "bytes": 22836, - "git_blob": "cbbb1520e5b8bbc5b7a99f87eca534eb72a426bf", + "bytes": 24401, + "git_blob": "a4fa2f4587d2f7a6d6895549e74f987cc5a1bfcb", "mode": "100644", - "sha256": "9cf1f4aba644abe1d1b382a86bcacd3dabfd8cb3d05dd08c935eb227745f0b63" + "sha256": "ba04ae391cb9c65e372720b9819613ca17925e960905e1a35f0f4f2b2e20dd8c" }, "core/crates/tera_core/src/runtime/product_surface/today_calendar_tests.rs": { "bytes": 3065, @@ -1937,35 +1967,53 @@ "mode": "100644", "sha256": "a445af34eca65a5ee148a4fa268d5e7814daa53466d758fb16ee5428e26d2961" }, + "core/crates/tera_core/src/runtime/product_surface/today_coordination_retirement.rs": { + "bytes": 7319, + "git_blob": "11204837ff3c9c49912773bab546e490d36b3d91", + "mode": "100644", + "sha256": "afee0148bde8272a9aae7505a8dc37f0c67b48aac182c043724ffc0a537a372f" + }, + "core/crates/tera_core/src/runtime/product_surface/today_coordination_retirement_tests.rs": { + "bytes": 9989, + "git_blob": "21cf4310e3e2c3fde5385ac4fc39709918da92f4", + "mode": "100644", + "sha256": "ba6a8fc169e87e2b6c6042cfe8e9b35c0f1382020edbb3fc8e75adec2da50695" + }, + "core/crates/tera_core/src/runtime/product_surface/today_counted_fault_tests.rs": { + "bytes": 2260, + "git_blob": "b0a0294592ab9bda5a173fcd199ca9127cc95639", + "mode": "100644", + "sha256": "cd8adbdc8d7c2acd366ae17594f8a34788bd703151f8bbf60eadc187dfb51ae8" + }, "core/crates/tera_core/src/runtime/product_surface/today_counted_storage_tests.rs": { - "bytes": 18045, - "git_blob": "57ec50f9f50037aa2e630cb48febb5355d3ab47e", + "bytes": 22859, + "git_blob": "d01b99e75868c4b283065c76542f7b10f75ac66f", "mode": "100644", - "sha256": "d5da0dc2e13a5a72731c3efc1b4fd02459acc542a94c5a38380dfa1b9e9520da" + "sha256": "e5de8fa76030e011ca34fefbc6824be1b571679adf5a74a86139108e381d0ea4" }, "core/crates/tera_core/src/runtime/product_surface/today_interruption_tests.rs": { - "bytes": 9701, - "git_blob": "1983e44682123ffff05d916fb38243acf63cb54d", + "bytes": 9876, + "git_blob": "622a7729c9a7a855a608a16f6e5e65c001c5d013", "mode": "100644", - "sha256": "be3e7423769e23d70ce32060874df6c8b5004c6db6e910c5c1691fac0f783e1f" + "sha256": "9e6e9d5b3e833b2601ac916d742dd4e145d2172d128a8c8818d178dbae74759e" }, "core/crates/tera_core/src/runtime/product_surface/today_media_collection.rs": { - "bytes": 4659, - "git_blob": "085e77a54c38a26b65de54cd618d53f5cfd6797a", + "bytes": 5512, + "git_blob": "c59e11ce05bb8a02793bfe8831434214d506f9d5", "mode": "100644", - "sha256": "bdb583caec79f555506ecccf91449c2ce4c4de107165fccf0b5b0eae6313da45" + "sha256": "a65e4c7cc390f8d6c19be8b087c95a8e56409cf18678c447e94fc607dc45e185" }, "core/crates/tera_core/src/runtime/product_surface/today_media_collection_budget_tests.rs": { - "bytes": 5636, - "git_blob": "2730144367c477f7e063c89b2f90ba8d5945faf7", + "bytes": 5639, + "git_blob": "f53aad194cf7257e3028ac8a92aaf102d3c6bbd1", "mode": "100644", - "sha256": "3be886e04c99abb891bff97fd3bc3f4c43071246926fd8ae4e781ef2e6060a30" + "sha256": "b5a0829da419012ce5903a02265669fabd3b25e06b49e9091bd83bb388c078a5" }, "core/crates/tera_core/src/runtime/product_surface/today_media_collection_tests.rs": { - "bytes": 10403, - "git_blob": "ed7d788afb94ff7c0ac967654ee0a5b41c60d096", + "bytes": 11054, + "git_blob": "b289eb8d0d3287426e11bf3f500c8edbf7f532f4", "mode": "100644", - "sha256": "ea3402bbd0ae1230a661c74072dfc27275348c83510700a339a715a3fdf33a56" + "sha256": "bfb337035bc2e4bdb568f8b7ec6c5ad440c63034ed43bac44f0d8f027be06949" }, "core/crates/tera_core/src/runtime/product_surface/today_media_retrieval.rs": { "bytes": 8726, @@ -1974,10 +2022,10 @@ "sha256": "fe7d0381ef8886e3735fd85a2624bd853e5395722eccb83e40f4b4923ae9ca59" }, "core/crates/tera_core/src/runtime/product_surface/today_media_visibility.rs": { - "bytes": 1070, - "git_blob": "3ebfa97a1fa927801c1e379bd9ad98935bd80a26", + "bytes": 1249, + "git_blob": "f840e6ce45a25efef496d33e8e6fde5ffe65a7ab", "mode": "100644", - "sha256": "3a1dea2fe0528307f90820f571d67a58cc020f7cf7f5042613bfdfc70e7b9b5e" + "sha256": "ba95996f99480061d07d7961ed35aac3670ccaa4da6a97f5036bb9b181a95493" }, "core/crates/tera_core/src/runtime/product_surface/today_media_visibility_tests.rs": { "bytes": 13288, @@ -1998,10 +2046,10 @@ "sha256": "a818a499cd947e6424351131c61fec6a1bc2ef833129fecda356c35f61541699" }, "core/crates/tera_core/src/runtime/product_surface/today_performance_tests.rs": { - "bytes": 14490, - "git_blob": "816b82c2e38b921ffb9a8a4e25054688ef61b1ca", + "bytes": 15165, + "git_blob": "6df18229bc3c3683c00b10e568f6a993a440b2a6", "mode": "100644", - "sha256": "785e0c163b7660648b07bf128183cfa722acf661660b922da75ddb212e93ff80" + "sha256": "ffdc575160493138065784a3f76b0477551366c4f3cf0c5aabf0b1aafe726215" }, "core/crates/tera_core/src/runtime/product_surface/today_permissive_evidence_tests.rs": { "bytes": 1242, @@ -2028,22 +2076,52 @@ "sha256": "25fdb0267fba678ab8952d94e5d4a278f6ee062c32b2fc65b9ad5c6ec6e4300e" }, "core/crates/tera_core/src/runtime/product_surface/today_refresh.rs": { - "bytes": 6406, - "git_blob": "f7391f8f735f97a72e8c106c8f21d7e6029e1707", + "bytes": 5338, + "git_blob": "58a5d0df68645ff81b239dad1e1caf88d1da0c26", + "mode": "100644", + "sha256": "18d99f9115f91e8eef599be165649737932a0c8cf52d1fc07815d045323cd383" + }, + "core/crates/tera_core/src/runtime/product_surface/today_row_state.rs": { + "bytes": 5338, + "git_blob": "7cf7140c07dba93cdee2a0e7be41d6415aa3ab6b", + "mode": "100644", + "sha256": "98fad615d7a93076c0fd7e81e0f9318c803041ddfc620ecfb285089ed2992874" + }, + "core/crates/tera_core/src/runtime/product_surface/today_rows.rs": { + "bytes": 3390, + "git_blob": "a9ff22a3aac26e53960f24899d53ff83bacbea15", + "mode": "100644", + "sha256": "5387efbadf5eb6e6b6e4bf19bab4e84db3cafb74e12eea3b48c3d74c374f7951" + }, + "core/crates/tera_core/src/runtime/product_surface/today_rows_tests.rs": { + "bytes": 3721, + "git_blob": "41f110d8a9d3c9cb33375597d10b8afe9b49e028", "mode": "100644", - "sha256": "eccef47b40e5744c53df3835ccb668e07ef1e5b4014ef8f74d0ff9ae1cbb7f27" + "sha256": "8c51aacb12a7798cd28907f1ca3619bfaf660ca5c559fd3ada4cba208a5d8127" }, "core/crates/tera_core/src/runtime/product_surface/today_scope_tests.rs": { - "bytes": 14361, - "git_blob": "b9d288dcab30e0bed87480745b39a981687ce82f", + "bytes": 15119, + "git_blob": "b7b0e530e615f10304c6a68c861d81bdbc1df2bf", + "mode": "100644", + "sha256": "889c9fddc075c45938f58c3ab3c003eac95afde5b25872fccce95a4060ee26e4" + }, + "core/crates/tera_core/src/runtime/product_surface/today_sidecar.rs": { + "bytes": 6642, + "git_blob": "9a35ba705081278f621ae10a673227850e98e528", + "mode": "100644", + "sha256": "d6254581e23d124f62cab8a3727e76b6bbc22b68d89d4b013115bcf9da2b609a" + }, + "core/crates/tera_core/src/runtime/product_surface/today_sidecar_tests.rs": { + "bytes": 930, + "git_blob": "1538e0a2cea3e76454333ec49edd995257032347", "mode": "100644", - "sha256": "34a250e47e016cb39997f6282619ef2874a7280b8fd039a798a962b265f96e6f" + "sha256": "ca76aa9c7e48d7eb5012e8856410e925fcfd85fe9c2c012c92633bea73ba39a5" }, "core/crates/tera_core/src/runtime/product_surface/today_submission_overlay.rs": { - "bytes": 6047, - "git_blob": "0d9f13a90e5668e33d388a9b37bc871e804e8caa", + "bytes": 5426, + "git_blob": "fa4f4369ff922bd6b6f893f4189e0dcf02f65b4e", "mode": "100644", - "sha256": "896dcf36b95780c0c2f05795e1c23103dd7dcd4a061f812b2c6696b2b3d17480" + "sha256": "b983ae490550f21c6abeda2fcabc8716036ae93f741098968cbaa884630f6497" }, "core/crates/tera_core/src/runtime/product_surface/today_sync.rs": { "bytes": 10240, @@ -2076,10 +2154,10 @@ "sha256": "4b22bf45cfd3524a1eb66924a7c48fb66f4709e9c1b29b0b7b7cb11969ac00ce" }, "core/crates/tera_core/src/runtime/product_surface/today_visibility_tests.rs": { - "bytes": 13443, - "git_blob": "000456f0b98d5ddabdb330661878f69151251420", + "bytes": 14034, + "git_blob": "efb2c51cc915bb182e079833999896e3ba8c1449", "mode": "100644", - "sha256": "a42251adecbd1ed572a2f8355ed54f0e42e44d239c4fd3a2266cf5492b65ad27" + "sha256": "b4379afea2f5b293f9fd5778d07fa4e52d34e927f3d67f50a25bb424ab9f0ab8" }, "core/crates/tera_core/src/runtime/product_surface/viewer_calendar.rs": { "bytes": 2970, @@ -2202,10 +2280,10 @@ "sha256": "0dbf39b1a85db893ba348b9d4b743b04a9fd76eee6fe2a1341e547e82821baf7" }, "core/crates/tera_core/src/runtime/visibility.rs": { - "bytes": 7894, - "git_blob": "7afd51388955fd12a1c118b3070fd157c9b50a33", + "bytes": 7659, + "git_blob": "cb44912ecf1e5fee6bb7898d12d76060794f6239", "mode": "100644", - "sha256": "db7c9e4b35103b4b609f1123b934cdba74b161ec5b3a2ac7d9ff3cb3fe471e56" + "sha256": "bd44513a7cf440f6e29957c4a214ae79eb63ae0f5eeb17a417ec650371766924" }, "core/crates/tera_core/src/runtime/visibility_tests.rs": { "bytes": 4047, @@ -2364,10 +2442,10 @@ "sha256": "a561c4a2249021d13125570413af511495689ff2fe1f5263187d76043183b7d6" }, "core/crates/tera_ffi/src/error.rs": { - "bytes": 22019, - "git_blob": "5689b345bf9a0abbe789b2673959d63449f895d1", + "bytes": 22155, + "git_blob": "2fa463064d3893ae2fe9b9ec6202b32b58314b23", "mode": "100644", - "sha256": "46331bfec4a46475c673cad8fb6428db4a706847b12fef10d96bcaa64d5576e1" + "sha256": "0da6d975046e1d9ba5223c74966f3bd790568aaaa279c99aedce43c76bd6a569" }, "core/crates/tera_ffi/src/invalidation.rs": { "bytes": 6914, @@ -2899,9 +2977,9 @@ }, "radroots.lib.source-lock.v1.toml": { "bytes": 482, - "git_blob": "2f8b02996d761dbb55f1684a0952e9b18632d4c8", + "git_blob": "796ae135dfb225d4b8bbc9bf958f061c69d1138e", "mode": "100644", - "sha256": "bac51b23151f89376784d47fd039711d2d6d218c14c48b7879ec7a9c8232ae13" + "sha256": "cd24f9ea0acb7f7102509356b8e515270b048a2a08006b618d6f86240ce6910b" }, "rust-toolchain.toml": { "bytes": 79, @@ -3426,13 +3504,13 @@ "sha256": "0164f2b369fdcf734f73bd1df2a2f5b2e05b7bbd94c2d3ae75869fff6d876140" }, "test-fixtures/legacy-identifiers.v1.json": { - "bytes": 198425, - "git_blob": "60590ffa51e603691813504e034278662655c561", + "bytes": 200616, + "git_blob": "8830a4b971c23fc52aee69757860b9f4ddbb206d", "mode": "100644", - "sha256": "5acdd0615e9170b603617b92c88b7194f5629e5e958354871eda212198515f05" + "sha256": "617e81be2f133f698ed2b6897fe47304bce1919b11c90b2bc7fb2927812725b0" } }, "policy": "staged_inputs", - "tree": "d006741f65282b17cba239dc508c87b9f9059f06" + "tree": "12ea824303b5fac6610f776d75d57ab8a44e9a38" } } diff --git a/core/crates/tera_core/src/runtime/product_surface/today.rs b/core/crates/tera_core/src/runtime/product_surface/today.rs @@ -71,6 +71,9 @@ mod calendar_wire_tests; #[path = "today_calendar_migration.rs"] mod calendar_migration; +#[path = "today_coordination_retirement.rs"] +mod coordination_retirement; + #[cfg(test)] #[path = "today_permissive_evidence_tests.rs"] mod permissive_evidence; @@ -79,12 +82,20 @@ mod permissive_evidence; #[path = "today_calendar_migration_tests.rs"] mod calendar_migration_tests; +#[path = "today_build.rs"] +mod build; #[path = "today_paging.rs"] mod paging; #[path = "today_paging_scope.rs"] mod paging_scope; #[path = "today_refresh.rs"] mod refresh; +#[path = "today_row_state.rs"] +mod row_state; +#[path = "today_rows.rs"] +mod rows; +#[path = "today_sidecar.rs"] +mod sidecar; pub use paging::TodayPageRequest; #[path = "today_reconciliation.rs"] @@ -205,6 +216,8 @@ pub enum TodayError { InvalidRequest, #[error("today projection has not been refreshed")] ProjectionMissing, + #[error("today projection is rebuilding")] + ProjectionRebuilding, #[error("today frozen snapshot is unavailable")] SnapshotMissing, #[error("today cursor position is absent from its frozen snapshot")] @@ -251,6 +264,10 @@ struct TodayProjectionState { store_generation: [u8; 32], source_events: u64, content_generation: u64, + #[serde(default, skip_serializing_if = "Option::is_none")] + row_generation: Option<ProjectionGeneration>, + #[serde(default, skip_serializing_if = "Option::is_none")] + source_token: Option<radroots_storage::event::EventSourceToken>, cards: Vec<ProjectedCard>, profiles: BTreeMap<String, ProfileSummary>, thread: Vec<ThreadEntry>, @@ -811,22 +828,6 @@ fn ingest_receipt( } } -fn refresh_receipt( - update: TodayProjectionUpdate, - state: &TodayProjectionState, - changed: bool, -) -> TodayRefreshReceipt { - TodayRefreshReceipt { - update, - source_events: state.source_events, - visible_cards: state.cards.len().try_into().unwrap_or(u64::MAX), - profiles: state.profiles.len().try_into().unwrap_or(u64::MAX), - thread_entries: state.thread.len().try_into().unwrap_or(u64::MAX), - content_generation: state.content_generation, - changed, - } -} - fn local_media_evidence( state: &TodayProjectionState, ) -> BTreeMap<[u8; 32], Phase1InboundMediaState> { @@ -978,6 +979,7 @@ async fn current_store_generation(storage: &dyn EventStore) -> Result<[u8; 32], ) } +#[cfg(test)] async fn query_all_visible( storage: &dyn radroots_storage::Storage, ) -> Result<Vec<radroots_storage::event::StoredVisibleEvent>, TodayError> { @@ -998,6 +1000,7 @@ async fn query_all_visible( Ok(items) } +#[cfg(test)] fn project_state( context: &LocalNetwork, store_generation: &[u8; 32], @@ -1010,39 +1013,21 @@ fn project_state( let mut profiles = BTreeMap::new(); let mut thread = Vec::new(); for stored in visible { - let admitted = verify_nip01_event(stored.event().envelope().clone()) - .ok() - .and_then(|verified| admit_verified_event(verified).ok()); - let Some(admitted) = admitted else { - quarantined_source_ids.push(stored.event().id().to_hex()); + let Some(row) = rows::reduce(context, &stored)? else { continue; }; - match &admitted { - RadrootsAdmittedEvent::Profile(profile) => { - profiles.insert( - profile.event().author().to_hex(), - profile_summary(&admitted)?, - ); + match row { + rows::TodayRow::Profile { summary, .. } => { + profiles.insert(summary.author_pubkey.clone(), summary); } - RadrootsAdmittedEvent::Reply(_) => { - thread.push(reply_entry(&admitted)?); + rows::TodayRow::Thread(entry) => { + thread.push(entry); } - RadrootsAdmittedEvent::Comment(_) => { - if let Some(entry) = comment_entry(&admitted) { - thread.push(entry); - } + rows::TodayRow::Card(card) => { + cards.push(card); } - _ => { - let locality = locality_tags(admitted.event().tags_as_vec()); - let evidence = locality_evidence(context.locality.as_deref(), &locality); - if let ProductEventClassification::Card(card) = - classify_admitted_event(&admitted, context.admit(evidence)) - { - cards.push(ProjectedCard { - card: *card, - locality, - }); - } + rows::TodayRow::Quarantined { event_id } => { + quarantined_source_ids.push(event_id); } } } @@ -1058,6 +1043,8 @@ fn project_state( store_generation: *store_generation, source_events, content_generation: 0, + row_generation: None, + source_token: None, cards, profiles, thread, @@ -1371,6 +1358,17 @@ async fn load_state( context: &LocalNetwork, generation: ProjectionGeneration, ) -> Result<Option<TodayProjectionState>, TodayError> { + if let Some(local) = sidecar::load(storage, context).await? { + return row_state::load(storage, context, local).await; + } + load_legacy_state(storage, context, generation).await +} + +async fn load_legacy_state( + storage: &dyn radroots_storage::Storage, + context: &LocalNetwork, + generation: ProjectionGeneration, +) -> Result<Option<TodayProjectionState>, TodayError> { if !calendar_migration::ready(storage).await? { return Ok(None); } @@ -1409,6 +1407,9 @@ async fn store_state( generation: ProjectionGeneration, state: &TodayProjectionState, ) -> Result<(), TodayError> { + if state.row_generation.is_some() { + return sidecar::save(runtime, context, &sidecar::LocalState::from_state(state)?).await; + } let id = projection_id()?; let document = ProjectionDocument::new(projection_document_key(context), encode(state)?)?; let write = runtime.today_projection_lock.begin_write(); @@ -1465,6 +1466,8 @@ fn decode_state(value: &[u8]) -> Result<TodayProjectionState, TodayError> { fn decode_state_document(value: &[u8]) -> Result<(TodayProjectionState, bool), TodayError> { if let Ok(state) = serde_json::from_slice::<TodayProjectionState>(value) && state.schema_version == TODAY_PROJECTION_DOCUMENT_SCHEMA_VERSION + && state.row_generation.is_none() + && state.source_token.is_none() && state.content_generation != 0 && content_generation(&state)? == state.content_generation && validate_media_state(&state).is_ok() @@ -1706,6 +1709,10 @@ fn migrate_legacy_media_values(value: &mut serde_json::Value) -> Result<(), Toda } fn content_generation(state: &TodayProjectionState) -> Result<u64, TodayError> { + if let Some(generation) = state.row_generation { + let local = sidecar::LocalState::from_state(state)?.revision()?; + return row_state::content_generation(generation, local); + } let mut canonical = state.clone(); canonical.content_generation = 0; let digest = @@ -2119,6 +2126,8 @@ mod tests { let mut value = serde_json::to_value(state).expect("state value"); let object = value.as_object_mut().expect("state object"); object.remove("mediaCache").expect("new cache field"); + object.remove("rowGeneration"); + object.remove("sourceToken"); object.insert("contentGeneration".to_owned(), serde_json::json!(0)); downgrade_media_to_legacy(&mut value); let canonical = serde_json::to_vec(&value).expect("legacy canonical"); @@ -2815,7 +2824,7 @@ mod tests { .await .unwrap(); - let migrated = load_state(storage, &context, generation) + let migrated = load_legacy_state(storage, &context, generation) .await .unwrap() .expect("migrated state"); diff --git a/core/crates/tera_core/src/runtime/product_surface/today_build.rs b/core/crates/tera_core/src/runtime/product_surface/today_build.rs @@ -0,0 +1,288 @@ +//! Bounded application staging over the canonical owner. Caller holds Today mutex. +use super::*; +use radroots_storage::{ + event::VisibilityIndexBounds, + projection::{ + InvalidationReason, ProjectionHealth, ProjectionInvalidation, + batch::ProjectionDocumentBatch, + cache::{ProjectionCacheLimits, ProjectionCacheScope}, + }, +}; +use std::time::{Duration, Instant}; +#[path = "today_build_progress.rs"] +pub(super) mod progress; +pub(super) use progress::BuildProgress; + +const SOURCE_ROWS: u16 = 63; +const WORK_BYTES: u64 = 16 * 1024 * 1024; + +pub(super) enum BuildOutcome { + Complete(Box<BuildProgress>), + Pending, +} + +pub(super) async fn run( + runtime: &TeraRuntime, + context: &LocalNetwork, + query_scope: [u8; 32], + now_unix_ms: u64, +) -> Result<BuildOutcome, TodayError> { + let deadline = Instant::now() + Duration::from_secs(5); + let storage = runtime + .client + .storage() + .map_err(|_| TodayError::RuntimeUnavailable)?; + let policy = runtime.load_author_visibility().await?; + let policy_digest = policy.cache_digest()?; + let source = loop { + if Instant::now() >= deadline { + return Ok(BuildOutcome::Pending); + } + let status = + EventStore::maintain_visibility(storage, VisibilityIndexBounds::new(64, WORK_BYTES)?) + .await?; + if status.is_complete() { + break status.token(); + } + }; + let id = ProjectionId::parse(progress::ID)?; + let mut active_status = ProjectionStore::status(storage, id.clone()).await?; + if let Some(status) = active_status.as_ref() + && status.health() == ProjectionHealth::Invalidated + && status.active_rebuild().is_none() + { + retire_active(runtime, storage, source, status.generation()).await?; + active_status = None; + } + if active_status + .as_ref() + .is_some_and(|value| value.health() != ProjectionHealth::Ready) + { + return Err(TodayError::CorruptProjection); + } + let mut active = active_status.as_ref().map(|value| value.generation()); + let status = EventStore::status(storage).await?; + if EventStore::source_token(storage).await? != source { + return Err(radroots_storage::Error::SourceEpochChanged.into()); + } + if let Some(generation) = active { + let header = progress::load(storage, id.clone(), generation, progress::HEADER) + .await? + .ok_or(TodayError::CorruptProjection)?; + if !header.complete || header.generation != generation { + return Err(TodayError::CorruptProjection); + } + if header.source == source + && header.query_scope == query_scope + && header.policy == policy_digest + { + if EventStore::source_token(storage).await? != source { + return Err(radroots_storage::Error::SourceEpochChanged.into()); + } + return Ok(BuildOutcome::Complete(Box::new(header))); + } + // An interrupted legacy upgrade may retain two protected identities. + // Its incompatible application cache can release metadata protection; + // all old payloads remain, and its Invalidated status resumes on reopen. + if let Some(legacy) = ProjectionStore::status(storage, projection_id()?).await? + && !coordination_retirement::retired(storage, &legacy).await? + { + let replacement = BuildProgress::new( + source, + query_scope, + policy_digest, + None, + status.raw_events(), + )?; + let write = runtime.today_projection_lock.begin_write(); + ProjectionStore::invalidate( + storage, + ProjectionInvalidation::new( + id.clone(), + generation, + replacement.generation, + InvalidationReason::ProjectionGenerationChanged, + now_unix_ms.max( + active_status + .as_ref() + .and_then(|value| value.checkpoint()) + .map_or(0, ProjectionCheckpoint::updated_at_unix_ms), + ), + )?, + ) + .await?; + write.complete(); + retire_active(runtime, storage, source, generation).await?; + active = None; + } + } + if Instant::now() >= deadline { + return Ok(BuildOutcome::Pending); + } + ProjectionStore::configure_projection_cache( + storage, + id.clone(), + ProjectionCacheLimits::new(64 * 1024 * 1024, 2, 32, 1_800_000)?, + ) + .await?; + let prior = progress::pointer(storage).await?; + let requested = match prior { + Some(value) + if value.source == source + && value.query_scope == query_scope + && value.policy == policy_digest + && value.expected_active == active + && Some(value.generation) != active => + { + value + } + prior => { + if let Some(prior) = prior + && Some(prior.generation) != active + { + let write = runtime.today_projection_lock.begin_write(); + ProjectionStore::retire_projection_generation( + storage, + ProjectionCacheScope::new(id.clone(), prior.generation, source, active)?, + ) + .await?; + write.complete(); + } + BuildProgress::new( + source, + query_scope, + policy_digest, + active, + status.raw_events(), + )? + } + }; + // Acknowledge the identity before any staged row can escape. Per-batch + // cursor/counters are written atomically with their deterministic row values. + progress::save_pointer(runtime, &requested).await?; + let mut build = progress::load( + storage, + id.clone(), + requested.generation, + progress::PROGRESS, + ) + .await? + .unwrap_or(requested); + if build.source != source + || build.query_scope != query_scope + || build.policy != policy_digest + || build.expected_active != active + { + return Err(TodayError::CorruptProjection); + } + while !build.complete && Instant::now() < deadline { + if runtime.load_author_visibility().await?.cache_digest()? != policy_digest { + return Err(CursorError::Stale.into()); + } + let bounds = build + .after + .map_or(EventQueryBounds::first(SOURCE_ROWS)?, |cursor| { + EventQueryBounds::first(SOURCE_ROWS) + .expect("positive fixed limit") + .after(cursor) + }); + let page = EventStore::query_visible_at(storage, EventQuery::all(bounds), source).await?; + let mut charge = 4096u64; + for stored in page.items() { + charge = charge + .checked_add(VisibilityIndexBounds::charge( + stored.event().raw_json().len() as u64, + )?) + .ok_or(radroots_storage::Error::SpaceInsufficient)?; + } + if charge > WORK_BYTES { + return Err(radroots_storage::Error::SpaceInsufficient.into()); + } + let mut documents = Vec::new(); + for stored in page.items() { + if !policy.allows(&stored.event().envelope().author().to_hex()) { + continue; + } + if let Some(row) = rows::reduce(context, stored)? { + build.count(&row)?; + documents.push(row.document()?); + } + } + build.after = page.next_cursor(); + build.complete = build.after.is_none(); + documents.push(ProjectionDocument::new( + progress::PROGRESS.into(), + encode(&build)?, + )?); + let batch = ProjectionDocumentBatch::new(build.scope()?, documents)?; + let write = runtime.today_projection_lock.begin_write(); + ProjectionStore::put_projection_batch(storage, batch).await?; + write.complete(); + } + if !build.complete || Instant::now() >= deadline { + return Ok(BuildOutcome::Pending); + } + if runtime.load_author_visibility().await?.cache_digest()? != policy_digest { + return Err(CursorError::Stale.into()); + } + let source_position = (build.source_events != 0) + .then(|| { + EventSequence::new(build.source_events) + .map(|sequence| EventPosition::new(source.generation(), sequence)) + }) + .transpose()?; + let checkpoint = ProjectionCheckpoint::new( + id.clone(), + build.generation, + source_position, + build.document_rows()?, + now_unix_ms, + )?; + let final_batch = ProjectionDocumentBatch::new( + build.scope()?, + vec![ProjectionDocument::new( + progress::HEADER.into(), + encode(&build)?, + )?], + )?; + let write = runtime.today_projection_lock.begin_write(); + ProjectionStore::promote_projection_batch(storage, final_batch, checkpoint).await?; + write.complete(); + if EventStore::source_token(storage).await? != source { + return Err(radroots_storage::Error::SourceEpochChanged.into()); + } + Ok(BuildOutcome::Complete(Box::new(build))) +} + +async fn retire_active( + runtime: &TeraRuntime, + storage: &dyn radroots_storage::Storage, + source: radroots_storage::event::EventSourceToken, + generation: ProjectionGeneration, +) -> Result<(), TodayError> { + let write = runtime.today_projection_lock.begin_write(); + ProjectionStore::retire_projection_generation( + storage, + ProjectionCacheScope::new( + ProjectionId::parse(progress::ID)?, + generation, + source, + Some(generation), + )?, + ) + .await?; + write.complete(); + Ok(()) +} + +#[cfg(test)] +#[path = "today_build_tests.rs"] +mod tests; + +#[cfg(test)] +#[path = "today_build_fault_tests.rs"] +mod fault_tests; + +#[cfg(test)] +#[path = "today_build_reference_tests.rs"] +mod reference_tests; diff --git a/core/crates/tera_core/src/runtime/product_surface/today_build_fault_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_build_fault_tests.rs @@ -0,0 +1,250 @@ +use super::super::{ + performance_tests::counted_storage::{CountedStorage, QueryCounts}, + tests::{context, keys, signed, visible_admission}, +}; +use super::*; +use std::sync::Arc; +use tokio::time::{Duration, timeout}; + +const NOW: u64 = 2_000_000_000; +async fn counted(root: &tempfile::TempDir) -> (Arc<TeraRuntime>, Arc<QueryCounts>) { + let mut runtime = super::super::performance_tests::reopen_counted_sqlite(root).await; + let counts = Arc::new(QueryCounts::default()); + runtime.client = radroots_sdk::ClientBuilder::new() + .storage(Arc::new(CountedStorage { + client: runtime.client.clone(), + counts: counts.clone(), + })) + .build() + .unwrap(); + (Arc::new(runtime), counts) +} +async fn fixture() -> (tempfile::TempDir, Arc<TeraRuntime>, Arc<QueryCounts>) { + let root = tempfile::tempdir().unwrap(); + let (runtime, counts) = counted(&root).await; + for index in 0..130 { + EventStore::admit( + runtime.client.storage().unwrap(), + visible_admission( + signed( + 1, + vec![], + &format!("Synthetic durable build row{index}"), + NOW, + ), + NOW * 1_000, + ), + ) + .await + .unwrap(); + } + counts.take(); + (root, runtime, counts) +} +async fn build(runtime: &TeraRuntime) -> Result<BuildOutcome, TodayError> { + let selected = context(None, 1); + let scope = paging_scope::query_scope(&selected, runtime.store_public_key).unwrap(); + let _guard = runtime.today_projection_lock.lock().await; + run(runtime, &selected, scope, NOW * 1_000).await +} +fn complete(result: BuildOutcome) -> BuildProgress { + let BuildOutcome::Complete(value) = result else { + panic!("small source must complete"); + }; + *value +} + +#[tokio::test] +async fn every_batch_and_promotion_refusal_reopens_to_exact_complete_rows() { + for (operation, ordinal) in [("batch", 1), ("batch", 2), ("batch", 3), ("promotion", 1)] { + for after in [false, true] { + let (root, runtime, counts) = fixture().await; + counts.faults.failure(operation, ordinal, after); + assert!( + matches!( + build(&runtime).await, + Err(TodayError::Storage( + radroots_storage::Error::BackendUnavailable + )) + ), + "{operation}/{ordinal}/{after}" + ); + assert!(!runtime.today_projection_lock.can_collect()); + let active = ProjectionStore::status( + runtime.client.storage().unwrap(), + ProjectionId::parse(progress::ID).unwrap(), + ) + .await + .unwrap(); + assert_eq!(active.is_some(), operation == "promotion" && after); + runtime.shutdown().await.unwrap(); + drop(runtime); + let (reopened, _) = counted(&root).await; + let built = complete(build(&reopened).await.unwrap()); + assert_eq!(built.cards, 130); + assert_eq!(built.document_rows().unwrap(), 132); + let active = ProjectionStore::status( + reopened.client.storage().unwrap(), + ProjectionId::parse(progress::ID).unwrap(), + ) + .await + .unwrap() + .unwrap(); + assert_eq!(active.generation(), built.generation); + assert_eq!(active.checkpoint().unwrap().projected_rows(), 132); + reopened.shutdown().await.unwrap(); + } + } +} + +#[tokio::test] +async fn actual_cancelled_sqlite_batch_resumes_only_the_unscanned_rows_after_reopen() { + let (root, runtime, counts) = fixture().await; + let pause = counts.faults.pause("batch", 2, true); + let selected = runtime.clone(); + let pending = tokio::spawn(async move { build(&selected).await }); + timeout(Duration::from_secs(5), pause.entered.notified()) + .await + .unwrap(); + let before = progress::pointer(runtime.client.storage().unwrap()) + .await + .unwrap() + .unwrap(); + pending.abort(); + assert!(matches!(pending.await, Err(error) if error.is_cancelled())); + assert!(!runtime.today_projection_lock.can_collect()); + assert!( + ProjectionStore::status( + runtime.client.storage().unwrap(), + ProjectionId::parse(progress::ID).unwrap() + ) + .await + .unwrap() + .is_none() + ); + runtime.shutdown().await.unwrap(); + drop(runtime); + let (reopened, calls) = counted(&root).await; + let built = complete(build(&reopened).await.unwrap()); + assert_eq!(built.generation, before.generation); + assert_eq!(built.cards, 130); + let observed = calls.take(); + assert_eq!(observed.get("event.rows"), Some(&4)); + assert_eq!(observed.get("projection.put_projection_batch"), Some(&1)); + assert!(observed["event.max_rows"] <= 63 && observed["event.max_work_bytes"] <= WORK_BYTES); + assert!( + observed["projection.max_batch_rows"] <= 64 + && observed["projection.max_batch_bytes"] <= WORK_BYTES + ); + reopened.shutdown().await.unwrap(); +} + +#[tokio::test] +async fn changed_canonical_source_cannot_promote_a_staged_generation() { + let (root, runtime, counts) = fixture().await; + let pause = counts.faults.pause("batch", 1, true); + let selected = runtime.clone(); + let pending = tokio::spawn(async move { build(&selected).await }); + timeout(Duration::from_secs(5), pause.entered.notified()) + .await + .unwrap(); + let prior = progress::pointer(runtime.client.storage().unwrap()) + .await + .unwrap() + .unwrap(); + EventStore::admit( + runtime.client.storage().unwrap(), + visible_admission( + signed( + 1, + vec![], + "Synthetic source changed during staging", + NOW + 1, + ), + (NOW + 1) * 1_000, + ), + ) + .await + .unwrap(); + pause.resume.notify_one(); + assert!(matches!( + pending.await.unwrap(), + Err(TodayError::Storage( + radroots_storage::Error::SourceEpochChanged + )) + )); + assert!( + ProjectionStore::status( + runtime.client.storage().unwrap(), + ProjectionId::parse(progress::ID).unwrap() + ) + .await + .unwrap() + .is_none() + ); + runtime.shutdown().await.unwrap(); + drop(runtime); + let (reopened, _) = counted(&root).await; + let built = complete(build(&reopened).await.unwrap()); + assert_ne!(built.generation, prior.generation); + assert_eq!(built.cards, 131); + reopened.shutdown().await.unwrap(); +} + +#[tokio::test] +async fn changed_policy_after_terminal_batch_refuses_promotion_and_rebuilds_under_current_policy() { + use crate::runtime::visibility::AuthorVisibility; + let (root, runtime, counts) = fixture().await; + let pause = counts.faults.pause("batch", 3, true); + let selected = runtime.clone(); + let pending = tokio::spawn(async move { build(&selected).await }); + timeout(Duration::from_secs(5), pause.entered.notified()) + .await + .unwrap(); + let policy_owner = TeraRuntime::test_memory().unwrap(); + policy_owner + .set_author_visibility(&keys().public_key().to_string(), AuthorVisibility::Muted) + .await + .unwrap(); + let id = ProjectionId::parse("tera.author_visibility.v1").unwrap(); + let generation = ProjectionGeneration::new(Sha256::digest(id.as_str()).into()).unwrap(); + let document = ProjectionStore::projection_document( + policy_owner.client.storage().unwrap(), + id.clone(), + generation, + "policy".into(), + ) + .await + .unwrap() + .unwrap(); + ProjectionStore::put_projection_document( + runtime.client.storage().unwrap(), + id, + generation, + document, + ) + .await + .unwrap(); + pause.resume.notify_one(); + assert!(matches!( + pending.await.unwrap(), + Err(TodayError::Cursor(CursorError::Stale)) + )); + assert!( + ProjectionStore::status( + runtime.client.storage().unwrap(), + ProjectionId::parse(progress::ID).unwrap() + ) + .await + .unwrap() + .is_none() + ); + runtime.shutdown().await.unwrap(); + drop(runtime); + let (reopened, _) = counted(&root).await; + let built = complete(build(&reopened).await.unwrap()); + assert_eq!(built.cards, 0); + assert_eq!(built.source_events, 130); + assert_eq!(built.document_rows().unwrap(), 2); + reopened.shutdown().await.unwrap(); +} diff --git a/core/crates/tera_core/src/runtime/product_surface/today_build_progress.rs b/core/crates/tera_core/src/runtime/product_surface/today_build_progress.rs @@ -0,0 +1,144 @@ +//! Small acknowledged progress; no retained source/card/thread collection. +use super::*; +use radroots_storage::event::{EventCursor, EventSourceToken}; +use radroots_storage::projection::batch::ProjectionWriteScope; + +pub(in super::super) const ID: &str = "tera.today.rows.v1"; +pub(in super::super) const PROGRESS: &str = "0.progress"; +pub(in super::super) const HEADER: &str = "0.header"; +const POINTER: &str = "today.rows.staging"; +const POINTER_ID: &str = "tera.today.build.v1"; + +#[derive(Clone, Deserialize, Eq, PartialEq, Serialize)] +#[serde(deny_unknown_fields, rename_all = "camelCase")] +pub(in super::super) struct BuildProgress { + pub(in super::super) source: EventSourceToken, + pub(in super::super) query_scope: [u8; 32], + pub(in super::super) policy: Option<[u8; 32]>, + pub(in super::super) generation: ProjectionGeneration, + pub(super) expected_active: Option<ProjectionGeneration>, + pub(super) after: Option<EventCursor>, + pub(in super::super) source_events: u64, + pub(in super::super) cards: u64, + pub(in super::super) profiles: u64, + pub(in super::super) threads: u64, + pub(in super::super) quarantined: u64, + pub(in super::super) complete: bool, +} + +impl BuildProgress { + pub(super) fn new( + source: EventSourceToken, + query_scope: [u8; 32], + policy: Option<[u8; 32]>, + active: Option<ProjectionGeneration>, + source_events: u64, + ) -> Result<Self, TodayError> { + let mut digest = Sha256::new(); + digest.update(b"tera.today.row-generation.v1\0"); + digest.update(encode(&(source, query_scope, policy))?); + digest.update(uuid::Uuid::new_v4().as_bytes()); + Ok(Self { + source, + query_scope, + policy, + generation: ProjectionGeneration::new(digest.finalize().into())?, + expected_active: active, + after: None, + source_events, + cards: 0, + profiles: 0, + threads: 0, + quarantined: 0, + complete: false, + }) + } + pub(super) fn scope(&self) -> Result<ProjectionWriteScope, TodayError> { + Ok(ProjectionWriteScope::new( + ProjectionId::parse(ID)?, + self.generation, + self.source, + self.expected_active, + )?) + } + pub(super) fn count(&mut self, row: &rows::TodayRow) -> Result<(), TodayError> { + let count = match row { + rows::TodayRow::Card(_) => &mut self.cards, + rows::TodayRow::Profile { .. } => &mut self.profiles, + rows::TodayRow::Thread(_) => &mut self.threads, + rows::TodayRow::Quarantined { .. } => &mut self.quarantined, + }; + *count = count.checked_add(1).ok_or(TodayError::CorruptProjection)?; + Ok(()) + } + pub(in super::super) fn document_rows(&self) -> Result<u64, TodayError> { + [self.cards, self.profiles, self.threads, self.quarantined] + .into_iter() + .try_fold(2u64, |total, value| { + total + .checked_add(value) + .ok_or(TodayError::CorruptProjection) + }) + } + pub(in super::super) fn receipt( + &self, + update: TodayProjectionUpdate, + changed: bool, + ) -> TodayRefreshReceipt { + TodayRefreshReceipt { + update, + source_events: self.source_events, + visible_cards: self.cards, + profiles: self.profiles, + thread_entries: self.threads, + content_generation: u64::from_be_bytes( + self.generation.as_bytes()[..8] + .try_into() + .expect("digest prefix"), + ) + .max(1), + changed, + } + } +} + +pub(super) async fn pointer( + storage: &dyn radroots_storage::Storage, +) -> Result<Option<BuildProgress>, TodayError> { + load( + storage, + ProjectionId::parse(POINTER_ID)?, + projection_generation()?, + POINTER, + ) + .await +} +pub(super) async fn save_pointer( + runtime: &TeraRuntime, + progress: &BuildProgress, +) -> Result<(), TodayError> { + let storage = runtime + .client + .storage() + .map_err(|_| TodayError::RuntimeUnavailable)?; + let write = runtime.today_projection_lock.begin_write(); + ProjectionStore::put_projection_document( + storage, + ProjectionId::parse(POINTER_ID)?, + projection_generation()?, + ProjectionDocument::new(POINTER.into(), encode(progress)?)?, + ) + .await?; + write.complete(); + Ok(()) +} +pub(in super::super) async fn load( + storage: &dyn radroots_storage::Storage, + id: ProjectionId, + generation: ProjectionGeneration, + key: &str, +) -> Result<Option<BuildProgress>, TodayError> { + let document = + ProjectionStore::projection_document(storage, id, generation, key.into()).await?; + document.map(|value| decode(value.value())).transpose() +} diff --git a/core/crates/tera_core/src/runtime/product_surface/today_build_reference_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_build_reference_tests.rs @@ -0,0 +1,142 @@ +use super::super::tests::{context, signed, visible_admission}; +use super::*; +const NOW: u64 = 2_000_000_000; + +#[tokio::test] +async fn row_generations_equal_canonical_reference_for_five_families_dense_threads_and_calendar_locality() + { + for sqlite in [false, true] { + let root = tempfile::tempdir().unwrap(); + let runtime = if sqlite { + super::super::performance_tests::reopen_counted_sqlite(&root).await + } else { + TeraRuntime::test_memory().unwrap() + }; + let mut events = vec![ + signed( + 0, + vec![], + r#"{"name":"Synthetic farm","website":"https://example.com","custom":{"enabled":true}}"#, + NOW, + ), + signed(1, vec![], "Synthetic ordinary update", NOW), + signed( + 1, + vec![vec![ + "imeta", + "url https://media.example/photo.jpg", + "m image/jpeg", + "dim 10x20", + "size 123", + "alt Field photo", + ]], + "Synthetic photo https://media.example/photo.jpg", + NOW + 1, + ), + signed(1, vec![vec!["t", "RADROOTS-ASK"]], "Synthetic ask", NOW + 2), + signed( + 31922, + vec![ + vec!["d", "date"], + vec!["title", "Synthetic date event"], + vec!["start", "2033-05-18"], + ], + "", + NOW + 3, + ), + signed( + 31923, + vec![ + vec!["d", "timed"], + vec!["title", "Synthetic timed event"], + vec!["start", "2000000200"], + vec!["D", "23148"], + ], + "", + NOW + 4, + ), + signed( + 30402, + vec![ + vec!["d", "carrots"], + vec!["title", "Synthetic carrots"], + vec!["summary", "Fresh"], + vec!["published_at", "2000000005"], + vec!["location", "Victoria"], + vec!["price", "3", "CAD"], + vec!["radroots:price_unit", "lb"], + vec!["status", "active"], + ], + "available", + NOW + 5, + ), + signed( + 1, + vec![vec!["location", "Toronto"]], + "Synthetic excluded locality", + NOW + 6, + ), + ]; + let thread_root = events[1].id().to_hex(); + for index in 0..130 { + events.push(signed( + 1, + vec![vec!["e", &thread_root, "", "root"]], + &format!("Synthetic dense reply{index}"), + NOW + 10, + )); + } + let storage = runtime.client.storage().unwrap(); + for event in events { + EventStore::admit(storage, visible_admission(event, NOW * 1_000)) + .await + .unwrap(); + } + let canonical = EventStore::rebuild_visibility(storage).await.unwrap(); + for locality in [None, Some("Victoria"), Some("Toronto")] { + let selected = context(locality, 1); + runtime + .phase1_refresh_today(&selected, NOW + 100, TodayProjectionUpdate::Rebuild) + .await + .unwrap(); + let state = load_state(storage, &selected, projection_generation().unwrap()) + .await + .unwrap() + .unwrap(); + let status = EventStore::status(storage).await.unwrap(); + let visible = query_all_visible(storage).await.unwrap(); + assert_eq!(visible.len(), canonical.visible_event_ids().len()); + let reference = project_state( + &selected, + status.generation().as_bytes(), + status.raw_events(), + visible, + BTreeMap::new(), + ) + .unwrap(); + assert_eq!(state.cards, reference.cards); + assert_eq!(state.profiles, reference.profiles); + assert_eq!(state.thread, reference.thread); + assert_eq!( + state.quarantined_source_ids, + reference.quarantined_source_ids + ); + assert_eq!(state.thread.len(), 130); + assert!( + state + .thread + .iter() + .all(|entry| entry.reference.root == thread_root) + ); + for zone in ["UTC", "America/Vancouver", "Pacific/Auckland"] { + let calendar = + super::super::super::ViewerCalendarContext::new(NOW + 100, zone).unwrap(); + assert_eq!( + ranked_cards(&state, &selected, &calendar).unwrap(), + ranked_cards(&reference, &selected, &calendar).unwrap() + ); + } + } + runtime.shutdown().await.unwrap(); + } +} diff --git a/core/crates/tera_core/src/runtime/product_surface/today_build_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_build_tests.rs @@ -0,0 +1,176 @@ +use super::super::tests::{context, signed, visible_admission}; +use super::*; +use radroots_storage::projection::document_query::{ + ProjectionDocumentGenerations, ProjectionDocumentQuery, +}; + +#[tokio::test] +async fn complete_generation_contains_independent_rows_and_exact_checkpoint() { + let runtime = TeraRuntime::test_memory().unwrap(); + let selected = context(None, 1); + let storage = runtime.client.storage().unwrap(); + for index in 0..130 { + EventStore::admit( + storage, + visible_admission( + signed(1, vec![], &format!("Synthetic row{index}"), 2_000_000_000), + 2_000_000_000_000, + ), + ) + .await + .unwrap(); + } + let _guard = runtime.today_projection_lock.lock().await; + let scope = paging_scope::query_scope(&selected, runtime.store_public_key).unwrap(); + let BuildOutcome::Complete(built) = run(&runtime, &selected, scope, 2_000_000_000_000) + .await + .unwrap() + else { + panic!("complete small fixture"); + }; + assert_eq!(built.cards, 130); + assert_eq!(built.document_rows().unwrap(), 132); + let status = ProjectionStore::status(storage, ProjectionId::parse(progress::ID).unwrap()) + .await + .unwrap() + .unwrap(); + assert_eq!(status.generation(), built.generation); + assert_eq!(status.health(), ProjectionHealth::Ready); + let page = ProjectionStore::query_projection_documents_at( + storage, + ProjectionDocumentQuery::new( + ProjectionId::parse(progress::ID).unwrap(), + ProjectionDocumentGenerations::Exact(built.generation), + 256, + ) + .unwrap(), + built.source, + built.generation, + ) + .await + .unwrap(); + assert_eq!(page.records().len(), 132); + let mut rows = 0; + for record in page + .records() + .iter() + .filter(|record| record.key().starts_with("card.")) + { + assert!(matches!( + rows::TodayRow::from_document(record.document().unwrap()).unwrap(), + rows::TodayRow::Card(_) + )); + rows += 1; + } + assert_eq!(rows, 130); + let BuildOutcome::Complete(again) = run(&runtime, &selected, scope, 2_000_000_001_000) + .await + .unwrap() + else { + panic!("complete unchanged generation"); + }; + assert_eq!(again.generation, built.generation); + assert_eq!(again.cards, built.cards); +} + +#[tokio::test] +async fn terminal_staged_progress_resumes_promotion_without_recounting() { + let runtime = TeraRuntime::test_memory().unwrap(); + let selected = context(None, 1); + let storage = runtime.client.storage().unwrap(); + EventStore::admit( + storage, + visible_admission( + signed(1, vec![], "Synthetic pending promotion", 2_000_000_000), + 2_000_000_000_000, + ), + ) + .await + .unwrap(); + let source = EventStore::source_token(storage).await.unwrap(); + let scope = paging_scope::query_scope(&selected, runtime.store_public_key).unwrap(); + let id = ProjectionId::parse(progress::ID).unwrap(); + let _guard = runtime.today_projection_lock.lock().await; + while !EventStore::maintain_visibility( + storage, + VisibilityIndexBounds::new(64, WORK_BYTES).unwrap(), + ) + .await + .unwrap() + .is_complete() + {} + ProjectionStore::configure_projection_cache( + storage, + id.clone(), + ProjectionCacheLimits::new(64 * 1024 * 1024, 2, 32, 1_800_000).unwrap(), + ) + .await + .unwrap(); + let mut staged = BuildProgress::new(source, scope, None, None, 1).unwrap(); + let events = EventStore::query_visible_at( + storage, + EventQuery::all(EventQueryBounds::first(1).unwrap()), + source, + ) + .await + .unwrap(); + let row = rows::reduce(&selected, &events.items()[0]) + .unwrap() + .unwrap(); + staged.count(&row).unwrap(); + staged.complete = true; + progress::save_pointer(&runtime, &staged).await.unwrap(); + ProjectionStore::put_projection_batch( + storage, + ProjectionDocumentBatch::new( + staged.scope().unwrap(), + vec![ + row.document().unwrap(), + ProjectionDocument::new(progress::PROGRESS.into(), encode(&staged).unwrap()) + .unwrap(), + ], + ) + .unwrap(), + ) + .await + .unwrap(); + assert!( + ProjectionStore::status(storage, id.clone()) + .await + .unwrap() + .is_none() + ); + let BuildOutcome::Complete(completed) = run(&runtime, &selected, scope, 2_000_000_000_000) + .await + .unwrap() + else { + panic!("resume completed scan"); + }; + assert_eq!(completed.cards, 1); + assert_eq!(completed.generation, staged.generation); + assert_eq!( + ProjectionStore::status(storage, id) + .await + .unwrap() + .unwrap() + .checkpoint() + .unwrap() + .projected_rows(), + 3 + ); +} + +#[tokio::test] +async fn returning_to_an_unchanged_context_does_not_reuse_retired_staging_identity() { + let runtime = TeraRuntime::test_memory().unwrap(); + let first = context(Some("Victoria"), 1); + let second = context(Some("Toronto"), 1); + let _guard = runtime.today_projection_lock.lock().await; + for selected in [&first, &second, &first] { + let scope = paging_scope::query_scope(selected, runtime.store_public_key).unwrap(); + let result = run(&runtime, selected, scope, 2_000_000_000_000) + .await + .unwrap(); + assert!(matches!(result, BuildOutcome::Complete(_))); + } +} diff --git a/core/crates/tera_core/src/runtime/product_surface/today_calendar_migration.rs b/core/crates/tera_core/src/runtime/product_surface/today_calendar_migration.rs @@ -24,7 +24,8 @@ pub(super) async fn ready(storage: &dyn radroots_storage::Storage) -> Result<boo return Ok(true); }; if status.generation() == projection_generation()? { - return Ok(status.health() == ProjectionHealth::Ready); + return Ok(status.health() == ProjectionHealth::Ready + || coordination_retirement::retired(storage, &status).await?); } if status.generation() == legacy_generation()? { return Ok(false); @@ -159,7 +160,10 @@ pub(super) async fn begin( return Ok(None); }; let replacement = projection_generation()?; - if status.generation() == replacement && status.health() == ProjectionHealth::Ready { + if status.generation() == replacement + && (status.health() == ProjectionHealth::Ready + || coordination_retirement::retired(storage, &status).await?) + { return Ok(None); } if status.generation() != legacy_generation()? { diff --git a/core/crates/tera_core/src/runtime/product_surface/today_calendar_migration_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_calendar_migration_tests.rs @@ -15,7 +15,7 @@ fn fixture() -> serde_json::Value { serde_json::from_str(include_str!("calendar_v1_fixture.json")).unwrap() } -async fn open(root: &Path) -> TeraRuntime { +pub(super) async fn open(root: &Path) -> TeraRuntime { let config = MobileUserStoreConfig::from_encoded( root, &keys().public_key().to_string(), @@ -28,7 +28,7 @@ async fn open(root: &Path) -> TeraRuntime { RuntimeBuilder::new(config).build().await.unwrap() } -async fn seed_legacy(runtime: &TeraRuntime) { +pub(super) async fn seed_legacy(runtime: &TeraRuntime) { let fixture = fixture(); let raw = fixture["event"].as_str().unwrap(); let event = @@ -126,7 +126,21 @@ async fn assert_current(runtime: &TeraRuntime) { .unwrap() .unwrap(); assert_eq!(status.generation(), projection_generation().unwrap()); - assert_eq!(status.health(), ProjectionHealth::Ready); + assert_eq!(status.health(), ProjectionHealth::Invalidated); + assert!( + coordination_retirement::retired(runtime.client.storage().unwrap(), &status) + .await + .unwrap() + ); + let rows = ProjectionStore::status( + runtime.client.storage().unwrap(), + ProjectionId::parse(build::progress::ID).unwrap(), + ) + .await + .unwrap() + .unwrap(); + assert_eq!(rows.health(), ProjectionHealth::Ready); + assert_eq!(rows.generation(), state.row_generation.unwrap()); } #[cfg(feature = "mobile-social")] @@ -666,3 +680,36 @@ async fn corrupt_legacy_bytes_and_source_changes_before_promotion_preserve_origi assert_eq!(raw(&runtime).await, before); runtime.shutdown().await.unwrap(); } + +#[tokio::test] +async fn migrated_calendar_accepts_a_subsequent_source_change_with_two_generation_limit() { + let root = tempfile::tempdir().unwrap(); + let runtime = open(root.path()).await; + seed_legacy(&runtime).await; + let original = old_bytes(&runtime).await; + let selected = context(None, 1); + runtime + .phase1_refresh_today(&selected, NOW, TodayProjectionUpdate::Rebuild) + .await + .unwrap(); + EventStore::admit( + runtime.client.storage().unwrap(), + visible_admission( + signed(1, vec![], "Synthetic post-migration update", NOW + 1), + (NOW + 1) * 1_000, + ), + ) + .await + .unwrap(); + runtime + .phase1_refresh_today(&selected, NOW + 2, TodayProjectionUpdate::Incremental) + .await + .unwrap(); + let page = runtime + .phase1_today_page(&selected, TodayPageRequest::first(20, NOW + 2, "UTC")) + .await + .unwrap(); + assert_eq!(page.items.len(), 2); + assert_eq!(old_bytes(&runtime).await, original); + runtime.shutdown().await.unwrap(); +} diff --git a/core/crates/tera_core/src/runtime/product_surface/today_coordination_retirement.rs b/core/crates/tera_core/src/runtime/product_surface/today_coordination_retirement.rs @@ -0,0 +1,225 @@ +//! One acknowledged retirement intent preserves legacy refusal and restart recovery. +use super::*; +use radroots_storage::{ + event::EventSourceToken, + projection::{ + InvalidationReason, ProjectionHealth, ProjectionInvalidation, ProjectionStatus, + cache::ProjectionCacheScope, + }, +}; +const ID: &str = "tera.today.build.v1"; +const KEY: &str = "calendar.coordination.retired"; +const MAX_BYTES: usize = 4096; + +#[derive(Clone, Deserialize, Serialize)] +#[serde(deny_unknown_fields, rename_all = "camelCase")] +struct Retirement { + schema_version: u16, + source: EventSourceToken, + rows: ProjectionGeneration, + now_unix_ms: u64, + complete: bool, +} +impl Retirement { + fn validate(&self) -> Result<(), TodayError> { + if self.schema_version != 1 + || self.now_unix_ms == 0 + || self.rows == projection_generation()? + { + return Err(TodayError::CorruptProjection); + } + radroots_storage::event::SourceGeneration::new(*self.source.generation().as_bytes())?; + ProjectionGeneration::new(*self.rows.as_bytes())?; + Ok(()) + } + fn invalidation(&self) -> Result<ProjectionInvalidation, TodayError> { + Ok(ProjectionInvalidation::new( + projection_id()?, + projection_generation()?, + self.rows, + InvalidationReason::ProjectionGenerationChanged, + self.now_unix_ms, + )?) + } +} +async fn load(storage: &dyn radroots_storage::Storage) -> Result<Option<Retirement>, TodayError> { + ProjectionStore::projection_document( + storage, + ProjectionId::parse(ID)?, + projection_generation()?, + KEY.into(), + ) + .await? + .map(|document| { + if document.value().len() > MAX_BYTES { + return Err(TodayError::CorruptProjection); + } + let value: Retirement = decode(document.value())?; + value.validate()?; + Ok(value) + }) + .transpose() +} +async fn save(runtime: &TeraRuntime, value: &Retirement) -> Result<(), TodayError> { + value.validate()?; + let bytes = encode(value)?; + if bytes.len() > MAX_BYTES { + return Err(TodayError::CorruptProjection); + } + let storage = runtime + .client + .storage() + .map_err(|_| TodayError::RuntimeUnavailable)?; + let write = runtime.today_projection_lock.begin_write(); + ProjectionStore::put_projection_document( + storage, + ProjectionId::parse(ID)?, + projection_generation()?, + ProjectionDocument::new(KEY.into(), bytes)?, + ) + .await?; + write.complete(); + Ok(()) +} + +pub(super) async fn retired( + storage: &dyn radroots_storage::Storage, + status: &ProjectionStatus, +) -> Result<bool, TodayError> { + let Some(value) = load(storage).await? else { + return Ok(false); + }; + if !value.complete + || status.generation() != projection_generation()? + || status.health() != ProjectionHealth::Invalidated + || status.active_rebuild().is_some() + { + return Ok(false); + } + let source = EventStore::source_token(storage).await?; + if source.generation() != value.source.generation() { + return Err(TodayError::CorruptProjection); + } + Ok( + ProjectionStore::invalidation(storage, projection_id()?, value.rows) + .await? + .as_ref() + == Some(&value.invalidation()?), + ) +} + +/// Caller holds the existing Today mutex. A pending marker is repaired before +/// allocating a successor stage; it never changes canonical or legacy payloads. +pub(super) async fn resume(runtime: &TeraRuntime) -> Result<(), TodayError> { + let storage = runtime + .client + .storage() + .map_err(|_| TodayError::RuntimeUnavailable)?; + let Some(mut value) = load(storage).await? else { + return Ok(()); + }; + let status = ProjectionStore::status(storage, projection_id()?) + .await? + .ok_or(TodayError::CorruptProjection)?; + if value.complete { + if !retired(storage, &status).await? { + return Err(TodayError::CorruptProjection); + } + return Ok(()); + } + if status.generation() != projection_generation()? || status.active_rebuild().is_some() { + return Err(TodayError::UnsupportedProjectionVersion); + } + let active = ProjectionStore::status(storage, ProjectionId::parse(build::progress::ID)?) + .await? + .ok_or(TodayError::CorruptProjection)?; + let header = build::progress::load( + storage, + ProjectionId::parse(build::progress::ID)?, + value.rows, + build::progress::HEADER, + ) + .await? + .ok_or(TodayError::CorruptProjection)?; + let source = EventStore::source_token(storage).await?; + if active.generation() != value.rows + || active.health() != ProjectionHealth::Ready + || !header.complete + || header.generation != value.rows + || header.source != value.source + || source.generation() != value.source.generation() + { + return Err(TodayError::CorruptProjection); + } + if status.health() == ProjectionHealth::Ready { + let write = runtime.today_projection_lock.begin_write(); + ProjectionStore::invalidate(storage, value.invalidation()?).await?; + write.complete(); + } else if status.health() != ProjectionHealth::Invalidated { + return Err(TodayError::CorruptProjection); + } + if ProjectionStore::invalidation(storage, projection_id()?, value.rows) + .await? + .as_ref() + != Some(&value.invalidation()?) + { + return Err(TodayError::CorruptProjection); + } + let write = runtime.today_projection_lock.begin_write(); + ProjectionStore::retire_projection_generation( + storage, + ProjectionCacheScope::new( + projection_id()?, + projection_generation()?, + source, + Some(projection_generation()?), + )?, + ) + .await?; + write.complete(); + value.complete = true; + save(runtime, &value).await +} + +pub(super) async fn finish( + runtime: &TeraRuntime, + progress: &build::BuildProgress, + now_unix_ms: u64, +) -> Result<(), TodayError> { + let storage = runtime + .client + .storage() + .map_err(|_| TodayError::RuntimeUnavailable)?; + if load(storage).await?.is_some() { + return resume(runtime).await; + } + let Some(status) = ProjectionStore::status(storage, projection_id()?).await? else { + return Ok(()); + }; + if status.generation() != projection_generation()? + || status.health() != ProjectionHealth::Ready + || status.active_rebuild().is_some() + { + return Err(TodayError::UnsupportedProjectionVersion); + } + if EventStore::source_token(storage).await? != progress.source { + return Err(CursorError::Stale.into()); + } + let value = Retirement { + schema_version: 1, + source: progress.source, + rows: progress.generation, + now_unix_ms: now_unix_ms.max( + status + .checkpoint() + .map_or(0, ProjectionCheckpoint::updated_at_unix_ms), + ), + complete: false, + }; + save(runtime, &value).await?; + resume(runtime).await +} + +#[cfg(test)] +#[path = "today_coordination_retirement_tests.rs"] +mod tests; diff --git a/core/crates/tera_core/src/runtime/product_surface/today_coordination_retirement_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_coordination_retirement_tests.rs @@ -0,0 +1,288 @@ +use super::super::{ + calendar_migration_tests::{open, seed_legacy}, + tests::context, +}; +use super::*; +const NOW: u64 = 2_000_000_000; + +#[tokio::test] +async fn promoted_rows_before_retirement_intent_recover_after_source_or_context_changes() { + use super::super::tests::{signed, visible_admission}; + for (changed_source, interrupted_retirement) in + [(false, false), (true, false), (false, true), (true, true)] + { + let root = tempfile::tempdir().unwrap(); + let runtime = open(root.path()).await; + seed_legacy(&runtime).await; + let selected = context(None, 1); + let prior = { + let _guard = runtime.today_projection_lock.lock().await; + let scope = paging_scope::query_scope(&selected, runtime.store_public_key).unwrap(); + let build::BuildOutcome::Complete(value) = + build::run(&runtime, &selected, scope, NOW * 1_000) + .await + .unwrap() + else { + panic!("small legacy source"); + }; + value + }; + let storage = runtime.client.storage().unwrap(); + let row_header = ProjectionStore::projection_document( + storage, + ProjectionId::parse(build::progress::ID).unwrap(), + prior.generation, + build::progress::HEADER.into(), + ) + .await + .unwrap() + .unwrap(); + let legacy = ProjectionStore::projection_document( + storage, + projection_id().unwrap(), + calendar_migration::legacy_generation().unwrap(), + projection_document_key(&selected), + ) + .await + .unwrap() + .unwrap(); + if interrupted_retirement { + ProjectionStore::invalidate( + storage, + ProjectionInvalidation::new( + ProjectionId::parse(build::progress::ID).unwrap(), + prior.generation, + ProjectionGeneration::new([7; 32]).unwrap(), + InvalidationReason::ProjectionGenerationChanged, + NOW * 1_000 + 1, + ) + .unwrap(), + ) + .await + .unwrap(); + } + assert!( + load(runtime.client.storage().unwrap()) + .await + .unwrap() + .is_none() + ); + runtime.shutdown().await.unwrap(); + drop(runtime); + let reopened = open(root.path()).await; + if changed_source { + EventStore::admit( + reopened.client.storage().unwrap(), + visible_admission( + signed(1, vec![], "Synthetic post-promotion update", NOW + 1), + (NOW + 1) * 1_000, + ), + ) + .await + .unwrap(); + } + let selected = context((!changed_source).then_some("Victoria"), 1); + let receipt = reopened + .phase1_refresh_today(&selected, NOW + 2, TodayProjectionUpdate::Rebuild) + .await + .unwrap(); + assert_eq!(receipt.source_events, if changed_source { 2 } else { 1 }); + assert!( + load(reopened.client.storage().unwrap()) + .await + .unwrap() + .unwrap() + .complete + ); + let state = load_state( + reopened.client.storage().unwrap(), + &selected, + projection_generation().unwrap(), + ) + .await + .unwrap() + .unwrap(); + assert_eq!(state.cards.len(), if changed_source { 2 } else { 1 }); + let storage = reopened.client.storage().unwrap(); + assert_eq!( + ProjectionStore::projection_document( + storage, + ProjectionId::parse(build::progress::ID).unwrap(), + prior.generation, + build::progress::HEADER.into() + ) + .await + .unwrap() + .unwrap(), + row_header + ); + assert_eq!( + ProjectionStore::projection_document( + storage, + projection_id().unwrap(), + calendar_migration::legacy_generation().unwrap(), + projection_document_key(&context(None, 1)) + ) + .await + .unwrap() + .unwrap(), + legacy + ); + let usage = ProjectionStore::configure_projection_cache( + storage, + ProjectionId::parse(build::progress::ID).unwrap(), + radroots_storage::projection::cache::ProjectionCacheLimits::new( + 64 * 1024 * 1024, + 2, + 32, + 1_800_000, + ) + .unwrap(), + ) + .await + .unwrap(); + assert_eq!(usage.protected_generations, 1); + reopened.shutdown().await.unwrap(); + } +} + +#[tokio::test] +async fn pending_coordination_retirement_reopens_at_each_owner_boundary_without_losing_legacy_bytes() + { + for phase in 0..3 { + let root = tempfile::tempdir().unwrap(); + let runtime = open(root.path()).await; + seed_legacy(&runtime).await; + let selected = context(None, 1); + let storage = runtime.client.storage().unwrap(); + let old = ProjectionStore::projection_document( + storage, + projection_id().unwrap(), + calendar_migration::legacy_generation().unwrap(), + projection_document_key(&selected), + ) + .await + .unwrap() + .unwrap(); + { + let _guard = runtime.today_projection_lock.lock().await; + let scope = paging_scope::query_scope(&selected, runtime.store_public_key).unwrap(); + let build::BuildOutcome::Complete(progress) = + build::run(&runtime, &selected, scope, NOW * 1_000) + .await + .unwrap() + else { + panic!("small legacy fixture"); + }; + let events = EventStore::status(storage).await.unwrap(); + let ticket = calendar_migration::begin(storage, NOW * 1_000, &events) + .await + .unwrap() + .unwrap(); + calendar_migration::complete( + storage, + &ticket, + ProjectionCheckpoint::new( + projection_id().unwrap(), + projection_generation().unwrap(), + Some(EventPosition::new( + events.generation(), + EventSequence::new(events.raw_events()).unwrap(), + )), + events.raw_events(), + NOW * 1_000, + ) + .unwrap(), + ) + .await + .unwrap(); + let marker = Retirement { + schema_version: 1, + source: progress.source, + rows: progress.generation, + now_unix_ms: NOW * 1_000, + complete: false, + }; + save(&runtime, &marker).await.unwrap(); + if phase >= 1 { + ProjectionStore::invalidate(storage, marker.invalidation().unwrap()) + .await + .unwrap(); + } + if phase >= 2 { + ProjectionStore::retire_projection_generation( + storage, + ProjectionCacheScope::new( + projection_id().unwrap(), + projection_generation().unwrap(), + marker.source, + Some(projection_generation().unwrap()), + ) + .unwrap(), + ) + .await + .unwrap(); + } + assert!(!load(storage).await.unwrap().unwrap().complete); + } + runtime.shutdown().await.unwrap(); + drop(runtime); + let reopened = open(root.path()).await; + reopened + .phase1_refresh_today(&selected, NOW + 1, TodayProjectionUpdate::Incremental) + .await + .unwrap(); + let storage = reopened.client.storage().unwrap(); + let marker = load(storage).await.unwrap().unwrap(); + assert!(marker.complete); + let status = ProjectionStore::status(storage, projection_id().unwrap()) + .await + .unwrap() + .unwrap(); + assert_eq!(status.health(), ProjectionHealth::Invalidated); + assert!(retired(storage, &status).await.unwrap()); + assert_eq!( + ProjectionStore::projection_document( + storage, + projection_id().unwrap(), + calendar_migration::legacy_generation().unwrap(), + projection_document_key(&selected) + ) + .await + .unwrap() + .unwrap(), + old + ); + let page = reopened + .phase1_today_page(&selected, TodayPageRequest::first(20, NOW + 1, "UTC")) + .await + .unwrap(); + assert_eq!(page.items.len(), 1); + reopened.shutdown().await.unwrap(); + } +} + +#[test] +fn retirement_marker_refuses_unknown_schema_generation_and_time() { + let source = EventSourceToken::new( + radroots_storage::event::SourceGeneration::new([1; 32]).unwrap(), + 1, + ); + let value = Retirement { + schema_version: 1, + source, + rows: ProjectionGeneration::new([2; 32]).unwrap(), + now_unix_ms: 1, + complete: false, + }; + value.validate().unwrap(); + for variant in 0..3 { + let mut invalid = value.clone(); + match variant { + 0 => invalid.schema_version += 1, + 1 => invalid.rows = projection_generation().unwrap(), + _ => invalid.now_unix_ms = 0, + } + assert!(invalid.validate().is_err()); + } +} diff --git a/core/crates/tera_core/src/runtime/product_surface/today_counted_fault_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_counted_fault_tests.rs @@ -0,0 +1,77 @@ +//! Fault boundaries wrap actual provider calls; no operation returns a fabricated success. +use radroots_storage::Error; +use std::sync::{Arc, Mutex}; +use tokio::sync::Notify; + +#[derive(Clone)] +pub(crate) struct FaultPause { + pub(crate) entered: Arc<Notify>, + pub(crate) resume: Arc<Notify>, +} +struct Armed { + operation: &'static str, + ordinal: usize, + seen: usize, + after: bool, + refuse: bool, + pause: Option<FaultPause>, +} +#[derive(Default)] +pub(crate) struct FaultController(Mutex<Option<Armed>>); +impl FaultController { + pub(crate) fn failure(&self, operation: &'static str, ordinal: usize, after: bool) { + assert!(ordinal > 0); + *self.0.lock().unwrap() = Some(Armed { + operation, + ordinal, + seen: 0, + after, + refuse: true, + pause: None, + }); + } + pub(crate) fn pause(&self, operation: &'static str, ordinal: usize, after: bool) -> FaultPause { + assert!(ordinal > 0); + let pause = FaultPause { + entered: Arc::new(Notify::new()), + resume: Arc::new(Notify::new()), + }; + *self.0.lock().unwrap() = Some(Armed { + operation, + ordinal, + seen: 0, + after, + refuse: false, + pause: Some(pause.clone()), + }); + pause + } + pub(crate) async fn boundary(&self, operation: &'static str, after: bool) -> Result<(), Error> { + let action = { + let mut slot = self.0.lock().unwrap(); + if let Some(armed) = slot.as_mut() + && armed.operation == operation + && armed.after == after + { + armed.seen += 1; + if armed.seen == armed.ordinal { + slot.take() + } else { + None + } + } else { + None + } + }; + if let Some(action) = action { + if let Some(pause) = action.pause { + pause.entered.notify_one(); + pause.resume.notified().await; + } + if action.refuse { + return Err(Error::BackendUnavailable); + } + } + Ok(()) + } +} diff --git a/core/crates/tera_core/src/runtime/product_surface/today_counted_storage_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_counted_storage_tests.rs @@ -7,19 +7,29 @@ use radroots_storage::{ }; use std::sync::{Arc, Mutex}; +#[path = "today_counted_fault_tests.rs"] +mod faults; #[derive(Default)] -pub(super) struct QueryCounts(Mutex<std::collections::BTreeMap<&'static str, u64>>); +pub(crate) struct QueryCounts { + values: Mutex<std::collections::BTreeMap<&'static str, u64>>, + pub(crate) faults: faults::FaultController, +} impl QueryCounts { fn add(&self, key: &'static str, amount: u64) { - *self.0.lock().unwrap().entry(key).or_default() += amount; + *self.values.lock().unwrap().entry(key).or_default() += amount; + } + fn maximum(&self, key: &'static str, amount: u64) { + let mut values = self.values.lock().unwrap(); + let value = values.entry(key).or_default(); + *value = (*value).max(amount); } - pub(super) fn take(&self) -> std::collections::BTreeMap<&'static str, u64> { - std::mem::take(&mut self.0.lock().unwrap()) + pub(crate) fn take(&self) -> std::collections::BTreeMap<&'static str, u64> { + std::mem::take(&mut self.values.lock().unwrap()) } } -pub(super) struct CountedStorage { - pub(super) client: radroots_sdk::Client, - pub(super) counts: Arc<QueryCounts>, +pub(crate) struct CountedStorage { + pub(crate) client: radroots_sdk::Client, + pub(crate) counts: Arc<QueryCounts>, } impl CountedStorage { fn storage(&self) -> &dyn radroots_storage::Storage { @@ -28,6 +38,48 @@ impl CountedStorage { } impl EventStore for CountedStorage { + fn source_token(&self) -> BoxFuture<'_, Result<EventSourceToken, Error>> { + Box::pin(async move { + self.counts.add("event.source_token", 1); + EventStore::source_token(self.storage()).await + }) + } + fn maintain_visibility( + &self, + bounds: VisibilityIndexBounds, + ) -> BoxFuture<'_, Result<VisibilityIndexProgress, Error>> { + Box::pin(async move { + self.counts.add("event.maintain_visibility", 1); + EventStore::maintain_visibility(self.storage(), bounds).await + }) + } + fn query_visible_at( + &self, + query: EventQuery, + source: EventSourceToken, + ) -> BoxFuture<'_, Result<EventPage<StoredVisibleEvent>, Error>> { + Box::pin(async move { + self.counts.add("event.query_visible_at", 1); + let result = EventStore::query_visible_at(self.storage(), query, source).await; + if let Ok(page) = &result { + self.counts.add("event.rows", page.items().len() as u64); + self.counts + .maximum("event.max_rows", page.items().len() as u64); + self.counts.maximum( + "event.max_work_bytes", + 4096 + page + .items() + .iter() + .map(|stored| { + VisibilityIndexBounds::charge(stored.event().raw_json().len() as u64) + .unwrap() + }) + .sum::<u64>(), + ); + } + result + }) + } fn status(&self) -> BoxFuture<'_, Result<EventStoreStatus, Error>> { Box::pin(async move { self.counts.add("event.status", 1); @@ -98,6 +150,77 @@ impl EventStore for CountedStorage { } impl ProjectionStore for CountedStorage { + fn configure_projection_cache( + &self, + id: ProjectionId, + limits: cache::ProjectionCacheLimits, + ) -> BoxFuture<'_, Result<cache::ProjectionCacheUsage, Error>> { + ProjectionStore::configure_projection_cache(self.storage(), id, limits) + } + fn retire_projection_generation( + &self, + scope: cache::ProjectionCacheScope, + ) -> BoxFuture<'_, Result<cache::ProjectionCacheUsage, Error>> { + ProjectionStore::retire_projection_generation(self.storage(), scope) + } + fn put_projection_batch( + &self, + batch: batch::ProjectionDocumentBatch, + ) -> BoxFuture<'_, Result<(), Error>> { + Box::pin(async move { + self.counts.faults.boundary("batch", false).await?; + self.counts.add("projection.put_projection_batch", 1); + self.counts + .maximum("projection.max_batch_rows", batch.documents().len() as u64); + self.counts + .maximum("projection.max_batch_bytes", batch.logical_bytes() as u64); + let result = ProjectionStore::put_projection_batch(self.storage(), batch).await; + self.counts.faults.boundary("batch", true).await?; + result + }) + } + fn promote_projection_batch( + &self, + batch: batch::ProjectionDocumentBatch, + checkpoint: ProjectionCheckpoint, + ) -> BoxFuture<'_, Result<ProjectionStatus, Error>> { + Box::pin(async move { + self.counts.faults.boundary("promotion", false).await?; + self.counts.add("projection.promote_projection_batch", 1); + let result = + ProjectionStore::promote_projection_batch(self.storage(), batch, checkpoint).await; + self.counts.faults.boundary("promotion", true).await?; + result + }) + } + fn query_projection_documents_at( + &self, + query: document_query::ProjectionDocumentQuery, + source: EventSourceToken, + active: ProjectionGeneration, + ) -> BoxFuture<'_, Result<document_query::ProjectionDocumentPage, Error>> { + Box::pin(async move { + self.counts.add("projection.query_documents_at", 1); + let result = ProjectionStore::query_projection_documents_at( + self.storage(), + query, + source, + active, + ) + .await; + if let Ok(page) = &result { + self.counts + .add("projection.rows", page.records().len() as u64); + } + result + }) + } + fn query_projection_documents( + &self, + query: document_query::ProjectionDocumentQuery, + ) -> BoxFuture<'_, Result<document_query::ProjectionDocumentPage, Error>> { + ProjectionStore::query_projection_documents(self.storage(), query) + } fn status( &self, projection_id: ProjectionId, diff --git a/core/crates/tera_core/src/runtime/product_surface/today_interruption_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_interruption_tests.rs @@ -148,10 +148,11 @@ async fn verified_unsupported_winner_survives_reopen_before_projection_refresh() let storage = reopened.client.storage().unwrap(); let canonical = EventStore::rebuild_visibility(storage).await.unwrap(); assert_eq!(canonical.current_heads()[0].event_id, *newer.id()); - let before = load_state(storage, &selected, generation) - .await - .unwrap() - .unwrap(); + let before = load_state(storage, &selected, generation).await.unwrap(); + assert!( + before.is_none(), + "changed canonical truth refuses the stale row generation" + ); let presented = reopened .phase1_me(&selected, &keys().public_key().to_string(), NOW + 10, "UTC") .await @@ -174,7 +175,8 @@ async fn verified_unsupported_winner_survives_reopen_before_projection_refresh() "scenario": "verified_unsupported_winner_after_admission", "durable_receipt_recovered": true, "canonical_selected_unsupported_winner": true, - "profiles_before_read": before.profiles.len(), + "profiles_before_read": before.as_ref().map_or(0, |state| state.profiles.len()), + "stale_rows_refused_before_read": before.is_none(), "profile_presented_before_refresh": presented.profile.is_some(), "profiles_after_explicit_refresh": after.profiles.len(), "product_correction_qualified": false diff --git a/core/crates/tera_core/src/runtime/product_surface/today_media_collection.rs b/core/crates/tera_core/src/runtime/product_surface/today_media_collection.rs @@ -65,38 +65,60 @@ async fn unreferenced( if remaining.is_empty() { return Ok(Some(remaining)); } - let mut query = ProjectionDocumentQuery::new( - projection_id()?, - ProjectionDocumentGenerations::All, - PAGE_ROWS, - )?; let mut bytes = 0_usize; - for _ in 0..MAX_PAGES { - let page = match ProjectionStore::query_projection_documents(storage, query.clone()).await { - Ok(page) => page, - Err(_) => return Ok(None), - }; - for record in page.records() { - let Some(document) = record.document() else { - return Ok(None); - }; - bytes = bytes.saturating_add(document.value().len()); - if bytes > MAX_DOCUMENT_BYTES || record.generation() != projection_generation()? { + let mut pages = 0_usize; + for (id, local) in [ + (projection_id()?, false), + (ProjectionId::parse(sidecar::ID)?, true), + ] { + let mut query = + ProjectionDocumentQuery::new(id, ProjectionDocumentGenerations::All, PAGE_ROWS)?; + loop { + pages += 1; + if pages > MAX_PAGES { return Ok(None); } - let Some(mut state) = current_ownership(document.value(), record.key()) else { - return Ok(None); + let page = + match ProjectionStore::query_projection_documents(storage, query.clone()).await { + Ok(page) => page, + Err(_) => return Ok(None), + }; + for record in page.records() { + let Some(document) = record.document() else { + return Ok(None); + }; + bytes = bytes.saturating_add(document.value().len()); + if bytes > MAX_DOCUMENT_BYTES || record.generation() != projection_generation()? { + return Ok(None); + } + let cache = if local { + let Ok(state) = serde_json::from_slice::<sidecar::LocalState>(document.value()) + else { + return Ok(None); + }; + if state.validate(record.key()).is_err() + || encode(&state)?.as_slice() != document.value() + { + return Ok(None); + } + state.cache + } else { + let Some(state) = current_ownership(document.value(), record.key()) else { + return Ok(None); + }; + state.media_cache + }; + let mut cache = cache; + // Hidden entries retain ownership independently of visible rows. + remaining.retain(|artifact| !cache.invalidate_artifact(*artifact)); + } + let Some(cursor) = page.next_cursor() else { + break; }; - // Validation binds every verified card/profile receipt to this - // cache. Cache entries without a visible card still own bytes. - remaining.retain(|artifact| !state.media_cache.invalidate_artifact(*artifact)); + query = query.with_cursor(cursor)?; } - let Some(cursor) = page.next_cursor() else { - return Ok(Some(remaining)); - }; - query = query.with_cursor(cursor)?; } - Ok(None) + Ok(Some(remaining)) } fn current_ownership(bytes: &[u8], key: &str) -> Option<TodayProjectionState> { diff --git a/core/crates/tera_core/src/runtime/product_surface/today_media_collection_budget_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_media_collection_budget_tests.rs @@ -78,7 +78,7 @@ fn collection_cannot_dispatch_file_work_beyond_its_mutation_fence() { #[tokio::test] async fn payload_budget_retains_bytes_before_decoding_another_document() { - let f = Fixture::new().await; + let f = Fixture::legacy().await; let mut state = f.empty.clone(); // These opaque source IDs remain bounded by the storage document limit. // Their contents are irrelevant to the cache ownership being inspected. diff --git a/core/crates/tera_core/src/runtime/product_surface/today_media_collection_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_media_collection_tests.rs @@ -22,6 +22,14 @@ impl Fixture { } async fn backend(sqlite: bool) -> Self { + Self::with_rows(sqlite, true).await + } + + async fn legacy() -> Self { + Self::with_rows(false, false).await + } + + async fn with_rows(sqlite: bool, rows: bool) -> Self { let root = tempfile::tempdir().unwrap(); let mut runtime = if sqlite { use crate::runtime::{ @@ -43,18 +51,32 @@ impl Fixture { }; runtime.inbound_media_directory = Some(root.path().join("inbound_media.v1")); let selected = context(None, 1); - runtime - .phase1_today_page(&selected, TodayPageRequest::first(20, 2_000_000_200, "UTC")) + let empty = if rows { + runtime + .phase1_today_page(&selected, TodayPageRequest::first(20, 2_000_000_200, "UTC")) + .await + .unwrap(); + load_state( + runtime.client.storage().unwrap(), + &selected, + projection_generation().unwrap(), + ) .await - .unwrap(); - let empty = load_state( - runtime.client.storage().unwrap(), - &selected, - projection_generation().unwrap(), - ) - .await - .unwrap() - .unwrap(); + .unwrap() + .unwrap() + } else { + let status = EventStore::status(runtime.client.storage().unwrap()) + .await + .unwrap(); + project_state( + &selected, + status.generation().as_bytes(), + status.raw_events(), + Vec::new(), + BTreeMap::new(), + ) + .unwrap() + }; let bytes = b"cache ownership fixture".to_vec(); let hash = BlobHash::digest(&bytes).to_hex(); let url = format!("https://media.example/{hash}.png"); diff --git a/core/crates/tera_core/src/runtime/product_surface/today_media_visibility.rs b/core/crates/tera_core/src/runtime/product_surface/today_media_visibility.rs @@ -16,9 +16,13 @@ pub(super) async fn current_state( .client .storage() .map_err(|_| TodayError::RuntimeUnavailable)?; - let state = load_state(storage, context, projection_generation()?) - .await? - .ok_or(TodayError::ProjectionMissing)?; + let state = match load_state(storage, context, projection_generation()?).await? { + Some(state) => state, + None if sidecar::load(storage, context).await?.is_some() => { + return Err(TodayError::InvalidRequest); + } + None => return Err(TodayError::ProjectionMissing), + }; if state.query_scope != Some(scope) { return Err(TodayError::InvalidRequest); } diff --git a/core/crates/tera_core/src/runtime/product_surface/today_performance_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_performance_tests.rs @@ -6,7 +6,7 @@ use crate::runtime::{ }; use std::{sync::Arc, time::Instant}; #[path = "today_counted_storage_tests.rs"] -mod counted_storage; +pub(super) mod counted_storage; use counted_storage::{CountedStorage, QueryCounts}; const EVENT_COUNT: u64 = 10_000; const NOW: u64 = 2_000_000_000; @@ -246,10 +246,29 @@ async fn cached_sqlite_pages_do_not_decode_ten_thousand_source_events() { } counts.take(); let refresh = Instant::now(); - runtime - .phase1_refresh_today(&selected, NOW, TodayProjectionUpdate::Rebuild) - .await - .unwrap(); + let mut attempts = Vec::new(); + let mut complete = false; + for _ in 0..64 { + let started = Instant::now(); + match runtime + .phase1_refresh_today(&selected, NOW, TodayProjectionUpdate::Rebuild) + .await + { + Ok(_) => { + attempts.push(started.elapsed().as_secs_f64() * 1_000.0); + complete = true; + break; + } + Err(TodayError::ProjectionRebuilding) => { + attempts.push(started.elapsed().as_secs_f64() * 1_000.0) + } + Err(error) => panic!("10k build refused: {error:?}"), + } + } + assert!( + complete, + "64 bounded continuations did not complete the fixed10k source" + ); let rebuild_ms = refresh.elapsed().as_secs_f64() * 1_000.0; let rebuild_calls = counts.take(); let samples = async { @@ -287,7 +306,7 @@ async fn cached_sqlite_pages_do_not_decode_ten_thousand_source_events() { "scenario": "tera_10000_sqlite_cached_pages", "events": EVENT_COUNT, "page_size": 20, "rebuild_ms": rebuild_ms, "profile": if cfg!(debug_assertions) { "debug" } else { "release" }, - "samples": samples, "rebuild_calls": rebuild_calls, + "samples": samples, "rebuild_calls": rebuild_calls, "build_attempt_ms": attempts, "count_boundary": "actual storage SPI calls and returned event rows; SQL logging remains disabled", "physical_device_qualification": false }) diff --git a/core/crates/tera_core/src/runtime/product_surface/today_refresh.rs b/core/crates/tera_core/src/runtime/product_surface/today_refresh.rs @@ -23,109 +23,78 @@ impl TeraRuntime { .map_err(|_| TodayError::RuntimeUnavailable)?; // Reject an unsupported reader before rebuilding any owner metadata. calendar_migration::ready(storage).await?; - let policy = self.load_author_visibility().await?; - let visibility_digest = policy.visibility_digest( - *EventStore::rebuild_visibility(storage) - .await? - .digest() - .as_bytes(), - )?; - let event_status = EventStore::status(storage).await?; - let generation = projection_generation()?; - let projection_id = projection_id()?; - let key = projection_document_key(context); - let prior = match load_state(storage, context, generation).await? { - Some(state) => Some(state), - None => calendar_migration::legacy_state(storage, context).await?, + coordination_retirement::resume(self).await?; + let prior_local = sidecar::load(storage, context).await?; + let legacy = if prior_local.is_none() { + match load_legacy_state(storage, context, projection_generation()?).await? { + Some(state) => Some(state), + None => calendar_migration::legacy_state(storage, context).await?, + } + } else { + None }; - if update == TodayProjectionUpdate::Incremental - && prior.as_ref().is_some_and(|state| { - state.source_events == event_status.raw_events() - && state.query_scope == Some(query_scope) - && state.visibility_digest == Some(visibility_digest) - && calendar_projection_ready(state) - && state.schema_version == TODAY_PROJECTION_DOCUMENT_SCHEMA_VERSION - }) - { - let state = prior.expect("checked present"); - return Ok(refresh_receipt(update, &state, false)); - } - + let progress = + match build::run(self, context, query_scope, requested_updated_at_unix_ms).await? { + build::BuildOutcome::Complete(progress) => progress, + build::BuildOutcome::Pending => return Err(TodayError::ProjectionRebuilding), + }; + let event_status = EventStore::status(storage).await?; let rebuild = calendar_migration::begin(storage, requested_updated_at_unix_ms, &event_status).await?; - let mut visible = query_all_visible(storage).await?; - visible.retain(|event| policy.allows(&event.event().envelope().author().to_hex())); - let local_media = prior.as_ref().map(local_media_evidence).unwrap_or_default(); - let overlays = prior - .as_ref() - .map_or_else(BTreeMap::new, |state| state.overlays.clone()); - let overlay_sources = submission_overlay::sources(prior.as_ref()); - let media_cache = - prior.map_or_else(Phase1MediaCacheIndex::default, |state| state.media_cache); - let mut state = project_state( - context, - event_status.generation().as_bytes(), - event_status.raw_events(), - visible, - overlays, - )?; - submission_overlay::retain_sources(&mut state, &overlay_sources); - state.query_scope = Some(query_scope); - state.visibility_digest = Some(visibility_digest); - state.author_visibility_digest = policy.cache_digest()?; - state.media_cache = media_cache; - apply_local_media_evidence(&mut state, &local_media); - state.content_generation = content_generation(&state)?; - let encoded = encode(&state)?; - let changed = ProjectionStore::projection_document( - storage, - projection_id.clone(), - generation, - key.clone(), - ) - .await? - .is_none_or(|document| document.value() != encoded); - let document = ProjectionDocument::new(key, encoded)?; - let write = self.today_projection_lock.begin_write(); - ProjectionStore::put_projection_document( - storage, - projection_id.clone(), - generation, - document, - ) - .await?; - write.complete(); - - let source_position = if event_status.raw_events() == 0 { - None - } else { - Some(EventPosition::new( - event_status.generation(), - EventSequence::new(event_status.raw_events())?, - )) + let local = match (prior_local.as_ref(), legacy.as_ref()) { + (Some(prior), _) => sidecar::LocalState::new( + context, + progress.source, + progress.generation, + query_scope, + Some(prior.clone()), + ), + (None, Some(prior)) => sidecar::LocalState::from_legacy( + context, + progress.source, + progress.generation, + query_scope, + prior, + )?, + _ => sidecar::LocalState::new( + context, + progress.source, + progress.generation, + query_scope, + None, + ), }; - let prior_updated_at = ProjectionStore::status(storage, projection_id.clone()) - .await? - .and_then(|status| { - status - .checkpoint() - .map(ProjectionCheckpoint::updated_at_unix_ms) - }) - .unwrap_or(0); - let updated_at_unix_ms = requested_updated_at_unix_ms.max(prior_updated_at); - let checkpoint = ProjectionCheckpoint::new( - projection_id, - generation, - source_position, - event_status.raw_events(), - updated_at_unix_ms, - )?; + let changed = prior_local.as_ref() != Some(&local); + sidecar::save(self, context, &local).await?; + // Complete existing migration tickets without allocating a second + // checkpoint identity for ordinary row-based refreshes. if let Some(ticket) = rebuild { + let id = projection_id()?; + let source_position = (progress.source_events != 0) + .then(|| { + EventSequence::new(progress.source_events) + .map(|sequence| EventPosition::new(progress.source.generation(), sequence)) + }) + .transpose()?; + let checkpoint = ProjectionCheckpoint::new( + id, + projection_generation()?, + source_position, + progress.source_events, + requested_updated_at_unix_ms.max(ticket.updated_at_unix_ms()), + )?; + let write = self.today_projection_lock.begin_write(); calendar_migration::complete(storage, &ticket, checkpoint).await?; - } else { - ProjectionStore::checkpoint(storage, checkpoint).await?; + write.complete(); + } + coordination_retirement::finish(self, &progress, requested_updated_at_unix_ms).await?; + if EventStore::source_token(storage).await? != progress.source { + return Err(CursorError::Stale.into()); } - Ok(refresh_receipt(update, &state, changed)) + let mut receipt = progress.receipt(update, changed); + receipt.content_generation = + row_state::content_generation(progress.generation, local.revision()?)?; + Ok(receipt) } pub(super) async fn calendar_state_for_read( @@ -139,7 +108,8 @@ impl TeraRuntime { let needs_upgrade = state.as_ref().is_some_and(|value| { !calendar_projection_ready(value) || value.author_visibility_digest != policy_digest }) || (state.is_none() - && (!calendar_migration::ready(storage).await? + && (sidecar::load(storage, context).await?.is_some() + || !calendar_migration::ready(storage).await? || calendar_migration::legacy_state(storage, context) .await? .is_some())); diff --git a/core/crates/tera_core/src/runtime/product_surface/today_row_state.rs b/core/crates/tera_core/src/runtime/product_surface/today_row_state.rs @@ -0,0 +1,144 @@ +//! Temporary whole-view reader bridge. C200 replaces it with bounded selected joins. +//! New builds never invoke this bridge and never persist a copied feed. +use super::*; +use radroots_storage::projection::document_query::{ + ProjectionDocumentGenerations, ProjectionDocumentQuery, +}; + +pub(super) fn content_generation( + generation: ProjectionGeneration, + local: u64, +) -> Result<u64, TodayError> { + let mut digest = Sha256::new(); + digest.update(b"tera.today.row-content.v1\0"); + digest.update(generation.as_bytes()); + digest.update(local.to_be_bytes()); + let value = digest.finalize(); + Ok(u64::from_be_bytes(value[..8].try_into().expect("digest prefix")).max(1)) +} + +pub(super) async fn load( + storage: &dyn radroots_storage::Storage, + context: &LocalNetwork, + local: sidecar::LocalState, +) -> Result<Option<TodayProjectionState>, TodayError> { + let source = EventStore::source_token(storage).await?; + let id = ProjectionId::parse(build::progress::ID)?; + let status = ProjectionStore::status(storage, id.clone()).await?; + if source != local.source + || status + .as_ref() + .is_none_or(|value| value.generation() != local.generation) + { + return Ok(None); + } + let header = build::progress::load( + storage, + id.clone(), + local.generation, + build::progress::HEADER, + ) + .await? + .ok_or(TodayError::CorruptProjection)?; + if !header.complete + || header.source != source + || header.generation != local.generation + || header.query_scope != local.query_scope + { + return Err(TodayError::CorruptProjection); + } + let local_revision = local.revision()?; + let mut state = TodayProjectionState { + schema_version: TODAY_PROJECTION_DOCUMENT_SCHEMA_VERSION, + context_id: context.id.as_str().into(), + context_generation: context.generation, + store_generation: *source.generation().as_bytes(), + source_events: header.source_events, + content_generation: content_generation(local.generation, local_revision)?, + row_generation: Some(local.generation), + source_token: Some(source), + cards: Vec::new(), + profiles: BTreeMap::new(), + thread: Vec::new(), + overlays: BTreeMap::new(), + media_cache: Phase1MediaCacheIndex::default(), + query_scope: Some(local.query_scope), + visibility_digest: Some(crate::runtime::visibility::source_visibility_digest( + source, + header.policy, + )?), + author_visibility_digest: header.policy, + quarantined_source_ids: Vec::new(), + }; + let mut query = ProjectionDocumentQuery::new( + id, + ProjectionDocumentGenerations::Exact(local.generation), + 64, + )?; + let mut bytes = 0usize; + loop { + let page = ProjectionStore::query_projection_documents_at( + storage, + query.clone(), + source, + local.generation, + ) + .await?; + for record in page.records() { + let document = record.document().ok_or(TodayError::CorruptProjection)?; + bytes = bytes + .checked_add(document.value().len()) + .ok_or(radroots_storage::Error::SpaceInsufficient)?; + if bytes > 64 * 1024 * 1024 { + return Err(radroots_storage::Error::SpaceInsufficient.into()); + } + if matches!( + record.key(), + build::progress::HEADER | build::progress::PROGRESS + ) { + continue; + } + match rows::TodayRow::from_document(document)? { + rows::TodayRow::Card(value) => state.cards.push(value), + rows::TodayRow::Profile { summary, .. } => { + if state + .profiles + .insert(summary.author_pubkey.clone(), summary) + .is_some() + { + return Err(TodayError::CorruptProjection); + } + } + rows::TodayRow::Thread(value) => state.thread.push(value), + rows::TodayRow::Quarantined { event_id } => { + state.quarantined_source_ids.push(event_id) + } + } + } + let Some(cursor) = page.next_cursor() else { + break; + }; + query = query.with_cursor(cursor)?; + } + let document_rows = header.document_rows()?; + if state.cards.len() as u64 != header.cards + || state.profiles.len() as u64 != header.profiles + || state.thread.len() as u64 != header.threads + || state.quarantined_source_ids.len() as u64 != header.quarantined + || status + .and_then(|value| value.checkpoint().cloned()) + .is_none_or(|value| value.projected_rows() != document_rows) + { + return Err(TodayError::CorruptProjection); + } + state.cards.sort_by_key(|value| value.card.card_id); + state + .thread + .sort_by(|left, right| left.event_id.cmp(&right.event_id)); + local.apply(&mut state); + validate_media_state(&state)?; + if EventStore::source_token(storage).await? != source { + return Err(CursorError::Stale.into()); + } + Ok(Some(state)) +} diff --git a/core/crates/tera_core/src/runtime/product_surface/today_rows.rs b/core/crates/tera_core/src/runtime/product_surface/today_rows.rs @@ -0,0 +1,97 @@ +//! Application-owned independently addressable rows over canonical visibility. +//! Thread rows retain a root index without copying profile or media ownership. +use super::*; + +const ROW_SCHEMA: u16 = 1; + +#[derive(Clone, Deserialize, Eq, PartialEq, Serialize)] +#[serde(tag = "kind", content = "value", rename_all = "snake_case")] +pub(super) enum TodayRow { + Card(ProjectedCard), + Profile { + event_id: String, + summary: ProfileSummary, + metadata: BTreeMap<String, serde_json::Value>, + }, + Thread(ThreadEntry), + Quarantined { + event_id: String, + }, +} + +#[derive(Deserialize, Serialize)] +#[serde(deny_unknown_fields, rename_all = "camelCase")] +struct RowDocument { + schema_version: u16, + row: TodayRow, +} + +pub(super) fn reduce( + context: &LocalNetwork, + stored: &radroots_storage::event::StoredVisibleEvent, +) -> Result<Option<TodayRow>, TodayError> { + let admitted = verify_nip01_event(stored.event().envelope().clone()) + .ok() + .and_then(|verified| admit_verified_event(verified).ok()); + let Some(admitted) = admitted else { + return Ok(Some(TodayRow::Quarantined { + event_id: stored.event().id().to_hex(), + })); + }; + Ok(match &admitted { + RadrootsAdmittedEvent::Profile(profile) => Some(TodayRow::Profile { + event_id: profile.event().id_hex(), + summary: profile_summary(&admitted)?, + metadata: profile.metadata().raw_fields().clone(), + }), + RadrootsAdmittedEvent::Reply(_) => Some(TodayRow::Thread(reply_entry(&admitted)?)), + RadrootsAdmittedEvent::Comment(_) => comment_entry(&admitted).map(TodayRow::Thread), + _ => { + let locality = locality_tags(admitted.event().tags_as_vec()); + let evidence = locality_evidence(context.locality.as_deref(), &locality); + match classify_admitted_event(&admitted, context.admit(evidence)) { + ProductEventClassification::Card(card) => Some(TodayRow::Card(ProjectedCard { + card: *card, + locality, + })), + _ => None, + } + } + }) +} + +impl TodayRow { + pub(super) fn key(&self) -> String { + match self { + Self::Card(value) => format!("card.{}", value.card.card_id.to_hex()), + Self::Profile { summary, .. } => format!("profile.{}", summary.author_pubkey), + Self::Thread(entry) => format!( + "thread.{}.{}", + hex::encode(Sha256::digest(entry.reference.root.as_bytes())), + entry.event_id + ), + Self::Quarantined { event_id } => format!("quarantine.{event_id}"), + } + } + + pub(super) fn document(self) -> Result<ProjectionDocument, TodayError> { + let key = self.key(); + let value = encode(&RowDocument { + schema_version: ROW_SCHEMA, + row: self, + })?; + Ok(ProjectionDocument::new(key, value)?) + } + + pub(super) fn from_document(document: &ProjectionDocument) -> Result<Self, TodayError> { + let value: RowDocument = decode(document.value())?; + if value.schema_version != ROW_SCHEMA || value.row.key() != document.key() { + return Err(TodayError::CorruptProjection); + } + Ok(value.row) + } +} + +#[cfg(test)] +#[path = "today_rows_tests.rs"] +mod tests; diff --git a/core/crates/tera_core/src/runtime/product_surface/today_rows_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_rows_tests.rs @@ -0,0 +1,110 @@ +use super::super::tests::{context, signed, visible_admission}; +use super::*; + +async fn row(event: radroots_event::SignedEvent, selected: &LocalNetwork) -> Option<TodayRow> { + let runtime = TeraRuntime::test_memory().unwrap(); + let storage = runtime.client.storage().unwrap(); + EventStore::admit(storage, visible_admission(event, 2_000_000_000_000)) + .await + .unwrap(); + let visible = query_all_visible(storage).await.unwrap(); + assert_eq!(visible.len(), 1); + reduce(selected, &visible[0]).unwrap() +} + +#[tokio::test] +async fn rows_preserve_complete_profile_metadata_and_canonical_identity() { + let event = signed( + 0, + vec![], + r#"{"name":"Synthetic farmer","website":"https://example.com","custom":{"flag":true}}"#, + 2_000_000_000, + ); + let id = event.id().to_hex(); + let value = row(event, &context(None, 1)).await.unwrap(); + let document = value.clone().document().unwrap(); + assert!(TodayRow::from_document(&document).unwrap() == value); + let TodayRow::Profile { + event_id, + summary, + metadata, + } = value + else { + panic!("profile row"); + }; + assert_eq!(event_id, id); + assert_eq!(summary.website.as_deref(), Some("https://example.com")); + assert_eq!(metadata["custom"]["flag"], true); + assert_eq!(document.key(), format!("profile.{}", summary.author_pubkey)); +} + +#[tokio::test] +async fn row_keys_reject_a_payload_from_another_card_or_schema() { + let value = row( + signed(1, vec![], "Synthetic update", 2_000_000_000), + &context(None, 1), + ) + .await + .unwrap(); + let document = value.document().unwrap(); + assert!(document.key().starts_with("card.")); + let wrong = ProjectionDocument::new("card.foreign".into(), document.value().to_vec()).unwrap(); + assert!(matches!( + TodayRow::from_document(&wrong), + Err(TodayError::CorruptProjection) + )); + let mut wire: serde_json::Value = serde_json::from_slice(document.value()).unwrap(); + wire["schemaVersion"] = serde_json::json!(ROW_SCHEMA + 1); + let future = ProjectionDocument::new(document.key().into(), encode(&wire).unwrap()).unwrap(); + assert!(matches!( + TodayRow::from_document(&future), + Err(TodayError::CorruptProjection) + )); +} + +#[tokio::test] +async fn row_classification_retains_locality_exclusion() { + let event = signed( + 1, + vec![vec!["location", "Victoria"]], + "Synthetic local update", + 2_000_000_000, + ); + assert!( + row(event.clone(), &context(Some("Toronto"), 1)) + .await + .is_none() + ); + let TodayRow::Card(value) = row(event, &context(Some("Victoria"), 1)).await.unwrap() else { + panic!("card row"); + }; + assert_eq!(value.locality[0].value, "victoria"); + assert_eq!( + value.card.context_rank, + super::super::super::ContextRank::LocalityMatch + ); + assert!(value.card.rank.is_none()); +} + +#[tokio::test] +async fn root_index_does_not_duplicate_profile_state_in_thread_rows() { + let root = "ab".repeat(32); + let event = signed( + 1, + vec![vec!["e", &root, "", "root"]], + "Synthetic reply", + 2_000_000_000, + ); + let value = row(event, &context(None, 1)).await.unwrap(); + let TodayRow::Thread(entry) = &value else { + panic!("thread row"); + }; + assert_eq!(entry.reference.root, root); + assert!(entry.author_profile.is_none()); + let document = value.clone().document().unwrap(); + assert!(document.key().starts_with(&format!( + "thread.{}.", + hex::encode(Sha256::digest(root.as_bytes())) + ))); + assert!(TodayRow::from_document(&document).unwrap() == value); +} diff --git a/core/crates/tera_core/src/runtime/product_surface/today_scope_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_scope_tests.rs @@ -1,4 +1,4 @@ -use super::tests::{context, ingest, keys, signed}; +use super::tests::{context, ingest, keys, signed, visible_admission}; use super::*; const NOW: u64 = 2_000_000_000; @@ -379,7 +379,28 @@ async fn corrupt_snapshot_order_and_legacy_unbound_cache_fail_closed() { // Genuine pre-binding projection bytes still verify with their old hash. // Scope repair retains local author overlays instead of discarding the cache. + // Exercise a genuine pre-row store: no current sidecar can shadow these bytes. + let visible = query_all_visible(runtime.client.storage().unwrap()) + .await + .unwrap(); + runtime.shutdown().await.unwrap(); + let runtime = TeraRuntime::test_memory().unwrap(); + for stored in visible { + EventStore::admit( + runtime.client.storage().unwrap(), + visible_admission(stored.event().clone(), NOW * 1_000), + ) + .await + .unwrap(); + } let mut unbound = state.clone(); + unbound.row_generation = None; + unbound.source_token = None; + unbound.store_generation = *EventStore::source_token(runtime.client.storage().unwrap()) + .await + .unwrap() + .generation() + .as_bytes(); unbound.query_scope = None; let overlay = LocalAuthorOverlay { source_draft_id: None, diff --git a/core/crates/tera_core/src/runtime/product_surface/today_sidecar.rs b/core/crates/tera_core/src/runtime/product_surface/today_sidecar.rs @@ -0,0 +1,198 @@ +//! Sparse local evidence and artifact custody remain separate from derived rows. +use super::*; +use radroots_storage::event::EventSourceToken; + +pub(super) const ID: &str = "tera.today.local.v1"; + +#[derive(Clone, Deserialize, Eq, PartialEq, Serialize)] +#[serde(deny_unknown_fields, rename_all = "camelCase")] +pub(super) struct OverlayEvidence { + pub(super) source_event: String, + pub(super) overlay: LocalAuthorOverlay, +} + +#[derive(Clone, Deserialize, Eq, PartialEq, Serialize)] +#[serde(deny_unknown_fields, rename_all = "camelCase")] +pub(super) struct LocalState { + pub(super) schema_version: u16, + pub(super) context_id: String, + pub(super) context_generation: u64, + pub(super) source: EventSourceToken, + pub(super) generation: ProjectionGeneration, + pub(super) query_scope: [u8; 32], + pub(super) overlays: BTreeMap<String, OverlayEvidence>, + pub(super) media: Vec<([u8; 32], Phase1InboundMediaState)>, + pub(super) cache: Phase1MediaCacheIndex, +} + +impl LocalState { + pub(super) fn from_state(state: &TodayProjectionState) -> Result<Self, TodayError> { + let sources = submission_overlay::sources(Some(state)); + let overlays = state + .overlays + .iter() + .map(|(key, overlay)| { + let id = CardId::parse(key).map_err(|_| TodayError::CorruptProjection)?; + Ok(( + key.clone(), + OverlayEvidence { + source_event: sources + .get(&id) + .cloned() + .ok_or(TodayError::CorruptProjection)?, + overlay: overlay.clone(), + }, + )) + }) + .collect::<Result<_, TodayError>>()?; + Ok(Self { + schema_version: 1, + context_id: state.context_id.clone(), + context_generation: state.context_generation, + source: state.source_token.ok_or(TodayError::CorruptProjection)?, + generation: state.row_generation.ok_or(TodayError::CorruptProjection)?, + query_scope: state.query_scope.ok_or(TodayError::CorruptProjection)?, + overlays, + media: local_media_evidence(state).into_iter().collect(), + cache: state.media_cache.clone(), + }) + } + + pub(super) fn new( + context: &LocalNetwork, + source: EventSourceToken, + generation: ProjectionGeneration, + query_scope: [u8; 32], + prior: Option<Self>, + ) -> Self { + let (overlays, media, cache) = prior.map_or_else( + || { + ( + BTreeMap::new(), + Vec::new(), + Phase1MediaCacheIndex::default(), + ) + }, + |value| (value.overlays, value.media, value.cache), + ); + Self { + schema_version: 1, + context_id: context.id.as_str().into(), + context_generation: context.generation, + source, + generation, + query_scope, + overlays, + media, + cache, + } + } + + pub(super) fn from_legacy( + context: &LocalNetwork, + source: EventSourceToken, + generation: ProjectionGeneration, + query_scope: [u8; 32], + prior: &TodayProjectionState, + ) -> Result<Self, TodayError> { + let mut prior = prior.clone(); + prior.row_generation = Some(generation); + prior.source_token = Some(source); + prior.query_scope = Some(query_scope); + let local = Self::from_state(&prior)?; + Ok(Self::new( + context, + source, + generation, + query_scope, + Some(local), + )) + } + + pub(super) fn revision(&self) -> Result<u64, TodayError> { + let digest = Sha256::digest(encode(self)?); + Ok(u64::from_be_bytes(digest[..8].try_into().expect("digest prefix")).max(1)) + } + + pub(super) fn apply(&self, state: &mut TodayProjectionState) { + state.media_cache = self.cache.clone(); + for card in &state.cards { + let key = card.card.card_id.to_hex(); + if let Some(evidence) = self.overlays.get(&key) + && evidence.source_event == card.card.source_event_id + { + state.overlays.insert(key, evidence.overlay.clone()); + } + } + apply_local_media_evidence(state, &self.media.iter().cloned().collect()); + } + + pub(super) fn validate(&self, context_key: &str) -> Result<(), TodayError> { + if self.schema_version != 1 || self.context_id.is_empty() { + return Err(TodayError::CorruptProjection); + } + let mut digest = Sha256::new(); + digest.update(PROJECTION_DOCUMENT_KEY_DOMAIN); + digest.update(self.context_id.as_bytes()); + digest.update(self.context_generation.to_be_bytes()); + if context_key != format!("context.{}", hex::encode(digest.finalize())) { + return Err(TodayError::CorruptProjection); + } + self.cache.status()?; + Ok(()) + } +} + +pub(super) async fn load( + storage: &dyn radroots_storage::Storage, + context: &LocalNetwork, +) -> Result<Option<LocalState>, TodayError> { + let key = projection_document_key(context); + let document = ProjectionStore::projection_document( + storage, + ProjectionId::parse(ID)?, + projection_generation()?, + key.clone(), + ) + .await?; + document + .map(|value| { + let state: LocalState = decode(value.value())?; + state.validate(&key)?; + Ok(state) + }) + .transpose() +} + +pub(super) async fn save( + runtime: &TeraRuntime, + context: &LocalNetwork, + state: &LocalState, +) -> Result<(), TodayError> { + let storage = runtime + .client + .storage() + .map_err(|_| TodayError::RuntimeUnavailable)?; + let key = projection_document_key(context); + state.validate(&key)?; + if EventStore::source_token(storage).await? != state.source { + return Err(CursorError::Stale.into()); + } + let write = runtime.today_projection_lock.begin_write(); + ProjectionStore::put_projection_document( + storage, + ProjectionId::parse(ID)?, + projection_generation()?, + ProjectionDocument::new(key, encode(state)?)?, + ) + .await?; + write.complete(); + if EventStore::source_token(storage).await? != state.source { + return Err(CursorError::Stale.into()); + } + Ok(()) +} + +#[cfg(test)] +#[path = "today_sidecar_tests.rs"] +mod tests; diff --git a/core/crates/tera_core/src/runtime/product_surface/today_sidecar_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_sidecar_tests.rs @@ -0,0 +1,28 @@ +use super::super::tests::context; +use super::*; + +#[test] +fn sidecar_binds_context_and_does_not_serialize_a_feed() { + let selected = context(None, 1); + let source = EventSourceToken::new( + radroots_storage::event::SourceGeneration::new([1; 32]).unwrap(), + 1, + ); + let local = LocalState::new( + &selected, + source, + ProjectionGeneration::new([2; 32]).unwrap(), + [3; 32], + None, + ); + local.validate(&projection_document_key(&selected)).unwrap(); + assert!( + local + .validate(&projection_document_key(&context(None, 2))) + .is_err() + ); + let raw = String::from_utf8(encode(&local).unwrap()).unwrap(); + assert!(!raw.contains("cards") && !raw.contains("profiles") && !raw.contains("thread")); + let decoded: LocalState = decode(raw.as_bytes()).unwrap(); + assert_eq!(decoded.revision().unwrap(), local.revision().unwrap()); +} diff --git a/core/crates/tera_core/src/runtime/product_surface/today_submission_overlay.rs b/core/crates/tera_core/src/runtime/product_surface/today_submission_overlay.rs @@ -17,21 +17,6 @@ pub(super) fn sources(prior: Option<&TodayProjectionState>) -> BTreeMap<CardId, .collect() } -pub(super) fn retain_sources(state: &mut TodayProjectionState, sources: &BTreeMap<CardId, String>) { - let mut retained = BTreeMap::new(); - for card in &state.cards { - let key = card.card.card_id.to_hex(); - if sources.get(&card.card.card_id) == Some(&card.card.source_event_id) - && let Some(overlay) = state.overlays.remove(&key) - { - retained.insert(key, overlay); - } - } - // A stable addressable card ID does not make the prior event's operation - // receipt evidence for its replacement. Only derived overlays are removed. - state.overlays = retained; -} - #[cfg(feature = "mobile-social")] impl TeraRuntime { pub(in crate::runtime::product_surface) async fn apply_submission_overlay( diff --git a/core/crates/tera_core/src/runtime/product_surface/today_visibility_tests.rs b/core/crates/tera_core/src/runtime/product_surface/today_visibility_tests.rs @@ -1,5 +1,5 @@ use super::sync_tests::runtime; -use super::tests::{context, ingest, signed}; +use super::tests::{context, ingest, signed, visible_admission}; use super::*; use radroots_event::{SignedEvent, admission::RawEvent}; use radroots_event_codec::verify::Nip01SignatureVerifier; @@ -281,19 +281,26 @@ async fn same_count_deletion_admission_removes_current_cached_content() { async fn missing_visibility_metadata_is_readable_and_rebuilt_from_current_truth() { let runtime = TeraRuntime::test_memory().unwrap(); let selected = context(None, 1); - ingest( - &runtime, - &selected, - signed(1, vec![], "retained content", 2_000_000_000), - 2_000_000_100, - ) - .await; let storage = runtime.client.storage().unwrap(); + EventStore::admit( + storage, + visible_admission( + signed(1, vec![], "retained content", 2_000_000_000), + 2_000_000_100_000, + ), + ) + .await + .unwrap(); let generation = projection_generation().unwrap(); - let mut old = load_state(storage, &selected, generation) - .await - .unwrap() - .unwrap(); + let status = EventStore::status(storage).await.unwrap(); + let mut old = project_state( + &selected, + status.generation().as_bytes(), + status.raw_events(), + query_all_visible(storage).await.unwrap(), + BTreeMap::new(), + ) + .unwrap(); old.visibility_digest = None; old.content_generation = content_generation(&old).unwrap(); let bytes = encode(&old).unwrap(); @@ -326,13 +333,21 @@ async fn missing_visibility_metadata_is_readable_and_rebuilt_from_current_truth( assert_eq!( current.visibility_digest, Some( - *EventStore::rebuild_visibility(storage) - .await - .unwrap() - .digest() - .as_bytes() + crate::runtime::visibility::source_visibility_digest( + EventStore::source_token(storage).await.unwrap(), + None, + ) + .unwrap() ) ); + let canonical = EventStore::rebuild_visibility(storage).await.unwrap(); + assert_eq!(canonical.visible_event_ids().len(), current.cards.len()); + assert!( + canonical + .visible_event_ids() + .iter() + .any(|id| id.to_hex() == current.cards[0].card.source_event_id) + ); } #[tokio::test] diff --git a/core/crates/tera_core/src/runtime/visibility.rs b/core/crates/tera_core/src/runtime/visibility.rs @@ -116,25 +116,22 @@ impl AuthorVisibilityPolicy { } Ok(next) } - - /// Keep original empty-policy projections readable. Once changed, even an - /// empty restored policy has a revision and invalidates earlier snapshots. - pub(crate) fn visibility_digest(&self, events: [u8; 32]) -> Result<[u8; 32], TodayError> { - if self.revision == 0 && self.entries.is_empty() { - return Ok(events); - } - let mut digest = Sha256::new(); - digest.update(b"tera.author_visibility.digest.v1\0"); - digest.update(events); - digest.update(serde_json::to_vec(self).map_err(|_| TodayError::Serialization)?); - Ok(digest.finalize().into()) - } } fn valid_key(value: &str) -> bool { value.len() == 64 && PublicKey::from_hex(value).is_ok_and(|key| key.to_hex() == value) } +pub(crate) fn source_visibility_digest( + source: radroots_storage::event::EventSourceToken, + policy: Option<[u8; 32]>, +) -> Result<[u8; 32], TodayError> { + let mut digest = Sha256::new(); + digest.update(b"tera.today.source-visibility.v1\0"); + digest.update(serde_json::to_vec(&(source, policy)).map_err(|_| TodayError::Serialization)?); + Ok(digest.finalize().into()) +} + fn identity() -> Result<(ProjectionId, ProjectionGeneration), TodayError> { Ok(( ProjectionId::parse(ID)?, @@ -149,8 +146,8 @@ impl TeraRuntime { .client .storage() .map_err(|_| TodayError::RuntimeUnavailable)?; - let events = radroots_storage::EventStore::rebuild_visibility(storage).await?; - policy.visibility_digest(*events.digest().as_bytes()) + let source = radroots_storage::EventStore::source_token(storage).await?; + source_visibility_digest(source, policy.cache_digest()?) } pub async fn author_visibility(&self) -> Result<AuthorVisibilityPolicy, TodayError> { diff --git a/core/crates/tera_ffi/src/error.rs b/core/crates/tera_ffi/src/error.rs @@ -151,6 +151,9 @@ impl From<TodayError> for TeraAppError { TodayError::ProjectionMissing | TodayError::SnapshotMissing => { ("today_refresh_required", true, &["refresh"][..]) } + TodayError::ProjectionRebuilding => { + ("today_projection_rebuilding", true, &["refresh"][..]) + } TodayError::CursorPositionMissing | TodayError::Cursor(_) => { ("today_cursor_invalid", true, &["restart_pagination"][..]) } diff --git a/radroots.lib.source-lock.v1.toml b/radroots.lib.source-lock.v1.toml @@ -1,8 +1,8 @@ schema = "radroots.lib.source-lock.v1" repository = "https://github.com/radrootslabs/lib" -revision = "65410d47c90160ab45c91b185101fdcf6cdf7e12" +revision = "de141d793734b62c7391313c232c992d5d1ab7b5" architecture = "radroots.crates.release.v2" workspace_catalog_sha256 = "ee295f2352e2577a4052d980624415aec9871197d4fc9910a4c21c83a9179200" version = "0.1.0-alpha" -source_archive_sha256 = "6405e4445f8069b656b81b43de25a74ba91340c926b865ce88cbc62104ebcb24" -lockfile_sha256 = "5dee96b2185c5cfb5588eacbd1723402abaa8668560c4f7c0ae559f6a869e27c" +source_archive_sha256 = "a817ba6d25fbfeea9aac0f996414e7725f519e0769f54e316e6bf6b84522f3a8" +lockfile_sha256 = "8728db9b542653fc1cb5cfd898352e81fa26c1af67b82465b86f573949d1605d" diff --git a/release/provenance.json b/release/provenance.json @@ -2,10 +2,10 @@ "artifacts": { "app_api_sha256": "020924097c0d7efc33128cb8fd3d3b2026d95f57c44da71880e585aff80f070b", "ffi_api_sha256": "5d74060f97e52dad69ab7567c16d6b6b34acfab846f468450d89e2394a8a69d5", - "ffi_provenance_sha256": "3dbdebcb97e89ba170c27c9aadc3df04617c0d6eada2a718691e1dedd1f19770", + "ffi_provenance_sha256": "cd0a611be546d47cf3314daa64f087924b440f7c6586fdf5bddfd4c990d5789c", "info_plist_sha256": "b55010dd73b34bf5ad910a888be0ea1ae45f2a5c14329fa6a57059a317bdbd42", "privacy_manifest_sha256": "0f2103257ba596fbcaeb1d6a4dffe3ae021e84c010178852c6bf500a8cfb0f19", - "sbom_sha256": "a11e1af2bc2b47d43b3a4f438fcb016d936e433ab98f52fe78bb3bedf4b35591", + "sbom_sha256": "b571fc8d655aa0ba87be7d33abb9e3d047a539e689f029c8c315454e73a4b484", "xcode_project_sha256": "c5e7027969b51dc93f3eacd509f795d666d9bd382f6bee506b7d6c88c704eaeb" }, "disposition": "unsigned", @@ -1259,12 +1259,12 @@ "policy": "staged_inputs", "tree": "fb3fbebbca86007a6221955fb6b29941872aadae" }, - "cargo_lock_sha256": "5dee96b2185c5cfb5588eacbd1723402abaa8668560c4f7c0ae559f6a869e27c", - "consumer_source_lock_sha256": "bac51b23151f89376784d47fd039711d2d6d218c14c48b7879ec7a9c8232ae13", - "lib_revision": "65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo_lock_sha256": "8728db9b542653fc1cb5cfd898352e81fa26c1af67b82465b86f573949d1605d", + "consumer_source_lock_sha256": "cd24f9ea0acb7f7102509356b8e515270b048a2a08006b618d6f86240ce6910b", + "lib_revision": "de141d793734b62c7391313c232c992d5d1ab7b5", "source_date_epoch": 1787871027, "swift_package_lock_sha256": "8aec408132602a249111a65903c985cca5898ec316a45916d88ba756f08ea40d", - "tera_ffi_source_tree": "d006741f65282b17cba239dc508c87b9f9059f06", + "tera_ffi_source_tree": "12ea824303b5fac6610f776d75d57ab8a44e9a38", "xcode_package_lock_sha256": "3656728f8251f3ea644aa150d154819766470ca7bd4f85b7c51fdf301d361d16" }, "version": "0.1.0-alpha" diff --git a/release/sbom.cdx.json b/release/sbom.cdx.json @@ -4034,7 +4034,7 @@ "version": "6.0.0" }, { - "bom-ref": "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4048,14 +4048,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_core@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_core@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4069,14 +4069,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4090,14 +4090,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4111,14 +4111,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4132,14 +4132,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4153,14 +4153,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4174,14 +4174,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_sdk@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_sdk@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4195,14 +4195,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_secrets@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_secrets@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4216,14 +4216,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4237,14 +4237,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4258,14 +4258,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_storage_sqlite@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_storage_sqlite@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4279,14 +4279,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_sync@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_sync@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4300,14 +4300,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_trade@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_trade@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4321,14 +4321,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4342,14 +4342,14 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", "version": "0.1.0-alpha" }, { - "bom-ref": "cargo:radroots_transport_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "bom-ref": "cargo:radroots_transport_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "licenses": [ { "expression": "MIT OR Apache-2.0" @@ -4363,7 +4363,7 @@ }, { "name": "radroots.package.source", - "value": "git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "value": "git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" } ], "type": "library", @@ -9273,45 +9273,45 @@ "cargo:unicode-general-category@1.1.0?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:url@2.5.8?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ "cargo:rust_decimal@1.42.1?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:serde@1.0.229?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_core@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_core@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ "cargo:hex@0.4.3?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:jiff-tzdb@0.1.8?source=registry+https://github.com/rust-lang/crates.io-index", - "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_core@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_core@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "cargo:serde@1.0.229?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:serde_json@1.0.151?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:sha2@0.10.9?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:unicode-general-category@1.1.0?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:url@2.5.8?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ "cargo:hex@0.4.3?source=registry+https://github.com/rust-lang/crates.io-index", - "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_core@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_core@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "cargo:secp256k1@0.29.1?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:serde@1.0.229?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:serde_json@1.0.151?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:sha2@0.10.9?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ @@ -9319,51 +9319,51 @@ "cargo:serde@1.0.229?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:thiserror@2.0.19?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ "cargo:base64@0.22.1?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:nostr@0.44.8?source=registry+https://github.com/rust-lang/crates.io-index", - "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "cargo:serde@1.0.229?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:serde_json@1.0.151?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:thiserror@2.0.19?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ "cargo:serde@1.0.229?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ - "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_core@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_storage_sqlite@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_sync@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_trade@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_transport_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_core@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_storage_sqlite@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_sync@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_trade@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_transport_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "cargo:reqwest@0.12.28?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:serde_json@1.0.151?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:tokio@1.53.1?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:uuid@1.24.0?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_sdk@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_sdk@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ @@ -9372,81 +9372,81 @@ "cargo:subtle@2.6.1?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:zeroize@1.9.0?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_secrets@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_secrets@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ "cargo:hex@0.4.3?source=registry+https://github.com/rust-lang/crates.io-index", - "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "cargo:serde@1.0.229?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:sha2@0.10.9?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ - "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_trade@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_trade@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "cargo:serde@1.0.229?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:sha2@0.10.9?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ "cargo:fs2@0.4.3?source=registry+https://github.com/rust-lang/crates.io-index", - "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_secrets@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_secrets@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "cargo:serde@1.0.229?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:serde_json@1.0.151?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:sha2@0.10.9?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:sqlx@0.9.0?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_storage_sqlite@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_storage_sqlite@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ - "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_trade@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_trade@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "cargo:sha2@0.10.9?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_sync@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_sync@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ "cargo:hex@0.4.3?source=registry+https://github.com/rust-lang/crates.io-index", - "cargo:radroots_core@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo:radroots_core@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "cargo:serde@1.0.229?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:serde_json@1.0.151?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:sha2@0.10.9?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_trade@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_trade@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ - "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "cargo:serde@1.0.229?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:sha2@0.10.9?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ @@ -9454,10 +9454,10 @@ "cargo:futures@0.3.33?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:nostr-relay-pool@0.44.3?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:nostr-sdk@0.44.1?source=registry+https://github.com/rust-lang/crates.io-index", - "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "cargo:rustls@0.23.43?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:serde_json@1.0.151?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:sha2@0.10.9?source=registry+https://github.com/rust-lang/crates.io-index", @@ -9467,7 +9467,7 @@ "cargo:url@2.5.8?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:webpki-roots@0.26.11?source=registry+https://github.com/rust-lang/crates.io-index" ], - "ref": "cargo:radroots_transport_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12" + "ref": "cargo:radroots_transport_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5" }, { "dependsOn": [ @@ -9962,18 +9962,18 @@ "cargo:jiff-tzdb@0.1.8?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:jiff@0.2.35?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:nostr@0.44.8?source=registry+https://github.com/rust-lang/crates.io-index", - "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_sdk@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_sync@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_transport_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_event_codec@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_identity@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_protocol@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_sdk@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_sync@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_transport@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_transport_nostr@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "cargo:serde@1.0.229?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:serde_json@1.0.151?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:sha2@0.10.9?source=registry+https://github.com/rust-lang/crates.io-index", @@ -9994,11 +9994,11 @@ "cargo:nostr-relay-builder@0.44.0?source=git+https://github.com/rust-nostr/nostr.git?rev=5bba5163eb77107f82c4a8262cf29d7f33a73219#5bba5163eb77107f82c4a8262cf29d7f33a73219", "cargo:nostr-sdk@0.44.0?source=git+https://github.com/rust-nostr/nostr.git?rev=5bba5163eb77107f82c4a8262cf29d7f33a73219#5bba5163eb77107f82c4a8262cf29d7f33a73219", "cargo:nostr@0.44.1?source=git+https://github.com/rust-nostr/nostr.git?rev=5bba5163eb77107f82c4a8262cf29d7f33a73219#5bba5163eb77107f82c4a8262cf29d7f33a73219", - "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_sdk@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", - "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=65410d47c90160ab45c91b185101fdcf6cdf7e12#65410d47c90160ab45c91b185101fdcf6cdf7e12", + "cargo:radroots_blossom@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_event@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_sdk@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_signing@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", + "cargo:radroots_storage@0.1.0-alpha?source=git+https://github.com/radrootslabs/lib?rev=de141d793734b62c7391313c232c992d5d1ab7b5#de141d793734b62c7391313c232c992d5d1ab7b5", "cargo:rustix@1.1.4?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:secp256k1@0.29.1?source=registry+https://github.com/rust-lang/crates.io-index", "cargo:serde_json@1.0.151?source=registry+https://github.com/rust-lang/crates.io-index", diff --git a/test-fixtures/legacy-identifiers.v1.json b/test-fixtures/legacy-identifiers.v1.json @@ -93,6 +93,10 @@ { "path": "core/crates/tera_core/src/runtime/product_surface/today_admission_tests.rs", "count": 1 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_build_reference_tests.rs", + "count": 1 } ] }, @@ -192,7 +196,11 @@ }, { "path": "core/crates/tera_core/src/runtime/product_surface/today.rs", - "count": 11 + "count": 8 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_rows.rs", + "count": 3 } ] }, @@ -3217,6 +3225,10 @@ { "path": "scripts/test_local_social_fixture.py", "count": 1 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_build_reference_tests.rs", + "count": 1 } ] }, @@ -5829,6 +5841,10 @@ { "path": "core/crates/tera_ffi/tests/runtime_delegation.rs", "count": 1 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_rows_tests.rs", + "count": 1 } ] }, @@ -6595,6 +6611,10 @@ { "path": "scripts/test_ffi_provenance.py", "count": 1 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_build_fault_tests.rs", + "count": 1 } ] }, @@ -7006,7 +7026,7 @@ }, { "path": "core/crates/tera_core/src/runtime/product_surface/today.rs", - "count": 11 + "count": 13 }, { "path": "core/crates/tera_core/src/runtime/product_surface/today_admission_tests.rs", @@ -7078,7 +7098,7 @@ }, { "path": "core/crates/tera_core/src/runtime/visibility.rs", - "count": 3 + "count": 4 }, { "path": "core/crates/tera_ffi/Cargo.toml", @@ -7123,6 +7143,50 @@ { "path": "core/crates/tera_core/src/runtime/legacy_upgrade_tests/restore.rs", "count": 8 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_build.rs", + "count": 8 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_build_fault_tests.rs", + "count": 2 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_build_progress.rs", + "count": 4 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_build_tests.rs", + "count": 1 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_coordination_retirement.rs", + "count": 4 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_coordination_retirement_tests.rs", + "count": 2 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_counted_fault_tests.rs", + "count": 1 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_row_state.rs", + "count": 4 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_rows.rs", + "count": 1 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_sidecar.rs", + "count": 2 + }, + { + "path": "core/crates/tera_core/src/runtime/product_surface/today_sidecar_tests.rs", + "count": 1 } ] },