field_ios

In-the-field app for Radroots on iOS
git clone https://radroots.dev/git/field_ios.git
Log | Files | Refs | README | LICENSE

commit b8f03e74c8dc9fb2c6d8611e7b430dd1158a5575
parent bf8278855e7ed1425dfbb1dbddc9cadfe5c53772
Author: triesap <tyson@radroots.org>
Date:   Fri,  9 Oct 2026 18:06:57 +0000

today: Cover durable admission and snapshot retention across reopen

- Exercise deletion, unsupported replacement, and same-count promotion.
- Assert durable receipts and explicit refresh controls after SQLite reopen.
- Measure retained snapshots with distinct-time and duplicate request controls.
- Verify Rust, naming, native artifacts, and generated API freshness.

Diffstat:
MTeraFFI/provenance.json | 46+++++++++++++++++++++++-----------------------
MTeraFFI/source.lock | 4++--
MTeraFFI/source/aarch64-apple-darwin.json | 20+++++++++++++-------
MTeraFFI/source/aarch64-apple-ios-sim.json | 20+++++++++++++-------
MTeraFFI/source/aarch64-apple-ios.json | 20+++++++++++++-------
Mcore/crates/tera_core/src/runtime/product_surface/today.rs | 4++++
Acore/crates/tera_core/src/runtime/product_surface/today_interruption_tests.rs | 261+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mrelease/provenance.json | 4++--
Mtest-fixtures/legacy-identifiers.v1.json | 12++++++++++++
9 files changed, 343 insertions(+), 48 deletions(-)

diff --git a/TeraFFI/provenance.json b/TeraFFI/provenance.json @@ -24,7 +24,7 @@ { "bytes": 79611168, "path": "TeraFFI.xcframework/ios-arm64-simulator/libtera_ffi.a", - "sha256": "6c639ff57ef4a6fc03d45d50948f7387cd1b4eaaff95a4d4d99c711080df7574" + "sha256": "c2d7aafae6eb3fa1c1ed810f4584158332c1a532414b7a3d72ec7893da4ac76e" }, { "bytes": 105627, @@ -37,9 +37,9 @@ "sha256": "3ed9b7ece2f86e5b5d1ddc6ecbb97deb49c46ca2ea91a930eaec1b580232345c" }, { - "bytes": 79645728, + "bytes": 79645680, "path": "TeraFFI.xcframework/ios-arm64/libtera_ffi.a", - "sha256": "e714580021c9aac76a0b84f2bb4719aece857eda99bf98050e1e1f0039055226" + "sha256": "1775d8a0a13a413f136a505d60326af82f8a17a758fd7eb997deeeb4cc99a1ad" }, { "bytes": 64990, @@ -79,32 +79,32 @@ { "bytes": 23644912, "path": "native/aarch64-apple-darwin/libtera_ffi.dylib", - "sha256": "806c8175fa25676a1ad0b1b7f8da64309da2c5e686db4cd45dbbee21e543f115" + "sha256": "4a109bd1066432e3c7756b45371e835e38861434ac0f9bd6cb6a83f7d6e01188" }, { "bytes": 79611168, "path": "native/aarch64-apple-ios-sim/libtera_ffi.a", - "sha256": "6c639ff57ef4a6fc03d45d50948f7387cd1b4eaaff95a4d4d99c711080df7574" + "sha256": "c2d7aafae6eb3fa1c1ed810f4584158332c1a532414b7a3d72ec7893da4ac76e" }, { - "bytes": 79645728, + "bytes": 79645680, "path": "native/aarch64-apple-ios/libtera_ffi.a", - "sha256": "e714580021c9aac76a0b84f2bb4719aece857eda99bf98050e1e1f0039055226" + "sha256": "1775d8a0a13a413f136a505d60326af82f8a17a758fd7eb997deeeb4cc99a1ad" }, { - "bytes": 160029, + "bytes": 160325, "path": "source/aarch64-apple-darwin.json", - "sha256": "140870c865fadd5ab210ead46d050da3b1de413fff9168e243505b59ca791e79" + "sha256": "395a9bceee4ab107cad3096686c421ee5aff4e4e213978d20098571ba2062a00" }, { - "bytes": 159954, + "bytes": 160250, "path": "source/aarch64-apple-ios-sim.json", - "sha256": "ec4f2d5fc17fcb272f8f0fb398c097e6686597277b9c962a33f1d17e9637fbad" + "sha256": "c1c0008c41df22d1586b223f479181274ef14418fec1fd5d0c7ab36dc00e9e82" }, { - "bytes": 159924, + "bytes": 160220, "path": "source/aarch64-apple-ios.json", - "sha256": "c7fd3be77d8aee5476967f830c73497ac438b1d7405c7d7ff8b3958ff9c15105" + "sha256": "5e1064ed436276942389d68db31f697a7f7d04cd2ba66f5a7e305f85ec0d43ad" } ], "language": "swift", @@ -112,7 +112,7 @@ "schema": "radroots.artifact-manifest.v2", "source": { "repository": "https://github.com/radrootslabs/tera", - "tree": "92cf9f2dc610f43256df3a0bbdb419228f45cba9" + "tree": "e75b51718ad222bceb5bb3c2f3b09737e1ab1855" }, "source_records": { "aarch64-apple-darwin": "source/aarch64-apple-darwin.json", @@ -141,7 +141,7 @@ { "bytes": 79611168, "path": "Tera/Frameworks/TeraFFI.xcframework/ios-arm64-simulator/libtera_ffi.a", - "sha256": "6c639ff57ef4a6fc03d45d50948f7387cd1b4eaaff95a4d4d99c711080df7574" + "sha256": "c2d7aafae6eb3fa1c1ed810f4584158332c1a532414b7a3d72ec7893da4ac76e" }, { "bytes": 105627, @@ -154,9 +154,9 @@ "sha256": "3ed9b7ece2f86e5b5d1ddc6ecbb97deb49c46ca2ea91a930eaec1b580232345c" }, { - "bytes": 79645728, + "bytes": 79645680, "path": "Tera/Frameworks/TeraFFI.xcframework/ios-arm64/libtera_ffi.a", - "sha256": "e714580021c9aac76a0b84f2bb4719aece857eda99bf98050e1e1f0039055226" + "sha256": "1775d8a0a13a413f136a505d60326af82f8a17a758fd7eb997deeeb4cc99a1ad" }, { "bytes": 807948, @@ -174,19 +174,19 @@ "sha256": "5d74060f97e52dad69ab7567c16d6b6b34acfab846f468450d89e2394a8a69d5" }, { - "bytes": 160029, + "bytes": 160325, "path": "TeraFFI/source/aarch64-apple-darwin.json", - "sha256": "140870c865fadd5ab210ead46d050da3b1de413fff9168e243505b59ca791e79" + "sha256": "395a9bceee4ab107cad3096686c421ee5aff4e4e213978d20098571ba2062a00" }, { - "bytes": 159954, + "bytes": 160250, "path": "TeraFFI/source/aarch64-apple-ios-sim.json", - "sha256": "ec4f2d5fc17fcb272f8f0fb398c097e6686597277b9c962a33f1d17e9637fbad" + "sha256": "c1c0008c41df22d1586b223f479181274ef14418fec1fd5d0c7ab36dc00e9e82" }, { - "bytes": 159924, + "bytes": 160220, "path": "TeraFFI/source/aarch64-apple-ios.json", - "sha256": "c7fd3be77d8aee5476967f830c73497ac438b1d7405c7d7ff8b3958ff9c15105" + "sha256": "5e1064ed436276942389d68db31f697a7f7d04cd2ba66f5a7e305f85ec0d43ad" } ], "schema": "tera.installed-native-artifacts.v1" diff --git a/TeraFFI/source.lock b/TeraFFI/source.lock @@ -1,7 +1,7 @@ schema = "tera.installed-source.v1" repository = "https://github.com/radrootslabs/tera" -source_tree = "92cf9f2dc610f43256df3a0bbdb419228f45cba9" -manifest_sha256 = "247df8635a647a7ded386633f9abb3244f68fbec1c3f9ce797f84ba5aadca800" +source_tree = "e75b51718ad222bceb5bb3c2f3b09737e1ab1855" +manifest_sha256 = "f79dce24933566c5d291b45cedd568379c3765e65dd5d239e0bcc34322537cc7" source_date_epoch = 1787871027 [foundation] diff --git a/TeraFFI/source/aarch64-apple-darwin.json b/TeraFFI/source/aarch64-apple-darwin.json @@ -1874,10 +1874,10 @@ "sha256": "1d105fa23b9914c466009402f60bf3de83be3cf302be39b818392d5ae11faa6c" }, "core/crates/tera_core/src/runtime/product_surface/today.rs": { - "bytes": 129742, - "git_blob": "1f4d6c2ec45347b50e2de87d728dd12732a88873", + "bytes": 129852, + "git_blob": "483f7941b32df0a5757dc8688398db914ad51713", "mode": "100644", - "sha256": "18c20b3df585a0ba6652b1be68e9d1fd86e6a8d4c3d4890acf5491be482cd059" + "sha256": "0c1f4b93e3f0bd38d2db86c16f38bb2015a750716ee6176952db653e71ace6bb" }, "core/crates/tera_core/src/runtime/product_surface/today_admission_tests.rs": { "bytes": 13548, @@ -1939,6 +1939,12 @@ "mode": "100644", "sha256": "d5da0dc2e13a5a72731c3efc1b4fd02459acc542a94c5a38380dfa1b9e9520da" }, + "core/crates/tera_core/src/runtime/product_surface/today_interruption_tests.rs": { + "bytes": 9701, + "git_blob": "1983e44682123ffff05d916fb38243acf63cb54d", + "mode": "100644", + "sha256": "be3e7423769e23d70ce32060874df6c8b5004c6db6e910c5c1691fac0f783e1f" + }, "core/crates/tera_core/src/runtime/product_surface/today_media_collection.rs": { "bytes": 4659, "git_blob": "085e77a54c38a26b65de54cd618d53f5cfd6797a", @@ -3398,13 +3404,13 @@ "sha256": "0164f2b369fdcf734f73bd1df2a2f5b2e05b7bbd94c2d3ae75869fff6d876140" }, "test-fixtures/legacy-identifiers.v1.json": { - "bytes": 197873, - "git_blob": "669dad52033afed14641ad0df6ccb6c08cba7f21", + "bytes": 198296, + "git_blob": "c74bd38f2db77da847154e8ffcaf8ccc583b6104", "mode": "100644", - "sha256": "6024d6004038025a488ae68febad38b47ac56565d99df8618584346849333424" + "sha256": "89e28463fb1d042c306bd02489039bb7711ffc4244a18a43d256c48405eb9aa1" } }, "policy": "staged_inputs", - "tree": "92cf9f2dc610f43256df3a0bbdb419228f45cba9" + "tree": "e75b51718ad222bceb5bb3c2f3b09737e1ab1855" } } diff --git a/TeraFFI/source/aarch64-apple-ios-sim.json b/TeraFFI/source/aarch64-apple-ios-sim.json @@ -1872,10 +1872,10 @@ "sha256": "1d105fa23b9914c466009402f60bf3de83be3cf302be39b818392d5ae11faa6c" }, "core/crates/tera_core/src/runtime/product_surface/today.rs": { - "bytes": 129742, - "git_blob": "1f4d6c2ec45347b50e2de87d728dd12732a88873", + "bytes": 129852, + "git_blob": "483f7941b32df0a5757dc8688398db914ad51713", "mode": "100644", - "sha256": "18c20b3df585a0ba6652b1be68e9d1fd86e6a8d4c3d4890acf5491be482cd059" + "sha256": "0c1f4b93e3f0bd38d2db86c16f38bb2015a750716ee6176952db653e71ace6bb" }, "core/crates/tera_core/src/runtime/product_surface/today_admission_tests.rs": { "bytes": 13548, @@ -1937,6 +1937,12 @@ "mode": "100644", "sha256": "d5da0dc2e13a5a72731c3efc1b4fd02459acc542a94c5a38380dfa1b9e9520da" }, + "core/crates/tera_core/src/runtime/product_surface/today_interruption_tests.rs": { + "bytes": 9701, + "git_blob": "1983e44682123ffff05d916fb38243acf63cb54d", + "mode": "100644", + "sha256": "be3e7423769e23d70ce32060874df6c8b5004c6db6e910c5c1691fac0f783e1f" + }, "core/crates/tera_core/src/runtime/product_surface/today_media_collection.rs": { "bytes": 4659, "git_blob": "085e77a54c38a26b65de54cd618d53f5cfd6797a", @@ -3396,13 +3402,13 @@ "sha256": "0164f2b369fdcf734f73bd1df2a2f5b2e05b7bbd94c2d3ae75869fff6d876140" }, "test-fixtures/legacy-identifiers.v1.json": { - "bytes": 197873, - "git_blob": "669dad52033afed14641ad0df6ccb6c08cba7f21", + "bytes": 198296, + "git_blob": "c74bd38f2db77da847154e8ffcaf8ccc583b6104", "mode": "100644", - "sha256": "6024d6004038025a488ae68febad38b47ac56565d99df8618584346849333424" + "sha256": "89e28463fb1d042c306bd02489039bb7711ffc4244a18a43d256c48405eb9aa1" } }, "policy": "staged_inputs", - "tree": "92cf9f2dc610f43256df3a0bbdb419228f45cba9" + "tree": "e75b51718ad222bceb5bb3c2f3b09737e1ab1855" } } diff --git a/TeraFFI/source/aarch64-apple-ios.json b/TeraFFI/source/aarch64-apple-ios.json @@ -1872,10 +1872,10 @@ "sha256": "1d105fa23b9914c466009402f60bf3de83be3cf302be39b818392d5ae11faa6c" }, "core/crates/tera_core/src/runtime/product_surface/today.rs": { - "bytes": 129742, - "git_blob": "1f4d6c2ec45347b50e2de87d728dd12732a88873", + "bytes": 129852, + "git_blob": "483f7941b32df0a5757dc8688398db914ad51713", "mode": "100644", - "sha256": "18c20b3df585a0ba6652b1be68e9d1fd86e6a8d4c3d4890acf5491be482cd059" + "sha256": "0c1f4b93e3f0bd38d2db86c16f38bb2015a750716ee6176952db653e71ace6bb" }, "core/crates/tera_core/src/runtime/product_surface/today_admission_tests.rs": { "bytes": 13548, @@ -1937,6 +1937,12 @@ "mode": "100644", "sha256": "d5da0dc2e13a5a72731c3efc1b4fd02459acc542a94c5a38380dfa1b9e9520da" }, + "core/crates/tera_core/src/runtime/product_surface/today_interruption_tests.rs": { + "bytes": 9701, + "git_blob": "1983e44682123ffff05d916fb38243acf63cb54d", + "mode": "100644", + "sha256": "be3e7423769e23d70ce32060874df6c8b5004c6db6e910c5c1691fac0f783e1f" + }, "core/crates/tera_core/src/runtime/product_surface/today_media_collection.rs": { "bytes": 4659, "git_blob": "085e77a54c38a26b65de54cd618d53f5cfd6797a", @@ -3396,13 +3402,13 @@ "sha256": "0164f2b369fdcf734f73bd1df2a2f5b2e05b7bbd94c2d3ae75869fff6d876140" }, "test-fixtures/legacy-identifiers.v1.json": { - "bytes": 197873, - "git_blob": "669dad52033afed14641ad0df6ccb6c08cba7f21", + "bytes": 198296, + "git_blob": "c74bd38f2db77da847154e8ffcaf8ccc583b6104", "mode": "100644", - "sha256": "6024d6004038025a488ae68febad38b47ac56565d99df8618584346849333424" + "sha256": "89e28463fb1d042c306bd02489039bb7711ffc4244a18a43d256c48405eb9aa1" } }, "policy": "staged_inputs", - "tree": "92cf9f2dc610f43256df3a0bbdb419228f45cba9" + "tree": "e75b51718ad222bceb5bb3c2f3b09737e1ab1855" } } diff --git a/core/crates/tera_core/src/runtime/product_surface/today.rs b/core/crates/tera_core/src/runtime/product_surface/today.rs @@ -149,6 +149,10 @@ mod admission_tests; mod visibility_tests; #[cfg(all(test, feature = "mobile-social"))] +#[path = "today_interruption_tests.rs"] +mod interruption_tests; + +#[cfg(all(test, feature = "mobile-social"))] #[path = "today_author_visibility_tests.rs"] mod author_visibility_tests; 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 @@ -0,0 +1,261 @@ +//! Durable interruption fixtures. Product corrections have separate regressions. +use super::performance_tests::reopen_counted_sqlite; +use super::tests::{context, ingest, keys, signed, visible_admission}; +use super::*; +use radroots_event::{SignedEvent, admission::RawEvent}; +use radroots_event_codec::verify::Nip01SignatureVerifier; +use radroots_transport::{ + Target, TransportId, + source::{EventProvenance, ObservedEvent}, +}; + +const NOW: u64 = 2_000_000_100; + +fn observed(event: SignedEvent) -> ObservedEvent { + let target = Target::nostr_relay("wss://relay.example").unwrap(); + ObservedEvent::new( + event, + EventProvenance::new( + TransportId::NOSTR, + target.fingerprint().clone(), + NOW * 1_000, + ) + .unwrap(), + ) +} + +fn verified_admission(event: SignedEvent) -> EventAdmission { + let verified = RawEvent::new(event.envelope().clone()) + .verify_id() + .unwrap() + .verify_signature(&Nip01SignatureVerifier) + .unwrap(); + EventAdmission::verified(observed(event), verified).unwrap() +} + +async fn retained_receipt(runtime: &TeraRuntime, receipt: &AdmissionReceipt) { + let storage = runtime.client.storage().unwrap(); + let query = EventQuery::for_ids( + EventQueryBounds::first(1).unwrap(), + vec![*receipt.event_id()], + ) + .unwrap(); + let retained = EventStore::query_raw(storage, query).await.unwrap(); + assert_eq!(retained.items().len(), 1); + assert_eq!(retained.items()[0].position(), receipt.position()); + assert_eq!(retained.items()[0].stage(), receipt.stage()); +} + +async fn page_ids(runtime: &TeraRuntime, selected: &LocalNetwork, at: u64) -> Vec<String> { + runtime + .phase1_today_page(selected, TodayPageRequest::first(10, at, "UTC")) + .await + .unwrap() + .items + .into_iter() + .map(|item| item.card.source_event_id) + .collect() +} + +async fn observe_read_boundary( + label: &str, + root: &tempfile::TempDir, + receipt: &AdmissionReceipt, + expected_ids: Vec<String>, +) { + let reopened = reopen_counted_sqlite(root).await; + retained_receipt(&reopened, receipt).await; + let selected = context(None, 1); + let before = page_ids(&reopened, &selected, NOW + 10).await; + let visibility = EventStore::rebuild_visibility(reopened.client.storage().unwrap()) + .await + .unwrap(); + reopened + .phase1_refresh_today(&selected, NOW + 11, TodayProjectionUpdate::Incremental) + .await + .unwrap(); + let after = page_ids(&reopened, &selected, NOW + 12).await; + assert_eq!(after, expected_ids, "fixture explicit refresh control"); + println!( + "{}", + serde_json::json!({ + "scenario": label, + "boundary": "durable event admission, close/reopen, before projection refresh", + "durable_receipt_recovered": true, + "canonical_visible_ids": visibility.visible_event_ids().iter().map(|id| id.to_hex()).collect::<Vec<_>>(), + "expected_current_page_ids": expected_ids, + "observed_before_refresh_ids": before, + "observed_after_refresh_ids": after, + "current_read_matches_canonical": before == expected_ids, + "product_correction_qualified": false + }) + ); + reopened.shutdown().await.unwrap(); +} + +#[tokio::test] +async fn deletion_admission_survives_reopen_before_projection_refresh() { + let root = tempfile::tempdir().unwrap(); + let runtime = reopen_counted_sqlite(&root).await; + let selected = context(None, 1); + let original = signed(1, vec![], "retained note", NOW - 100); + ingest(&runtime, &selected, original.clone(), NOW).await; + assert_eq!(page_ids(&runtime, &selected, NOW + 1).await.len(), 1); + let deletion = signed(5, vec![vec!["e", &original.id().to_hex()]], "", NOW - 99); + let storage = runtime.client.storage().unwrap(); + let absent = EventStore::query_raw( + storage, + EventQuery::for_ids(EventQueryBounds::first(1).unwrap(), vec![*deletion.id()]).unwrap(), + ) + .await + .unwrap(); + assert!(absent.items().is_empty(), "before admission control"); + let receipt = EventStore::admit(storage, visible_admission(deletion, NOW * 1_000)) + .await + .unwrap(); + retained_receipt(&runtime, &receipt).await; + runtime.shutdown().await.unwrap(); + observe_read_boundary("deletion_after_admission", &root, &receipt, vec![]).await; +} + +#[tokio::test] +async fn verified_unsupported_winner_survives_reopen_before_projection_refresh() { + let root = tempfile::tempdir().unwrap(); + let runtime = reopen_counted_sqlite(&root).await; + let selected = context(None, 1); + let original = signed( + 0, + vec![], + r#"{"display_name":"Original Farm","bot":false}"#, + NOW - 100, + ); + let newer = signed(0, vec![], "malformed profile", NOW - 99); + assert!(admit_verified_event(verify_nip01_event(newer.envelope().clone()).unwrap()).is_err()); + ingest(&runtime, &selected, original.clone(), NOW).await; + let storage = runtime.client.storage().unwrap(); + let generation = projection_generation().unwrap(); + let prior = load_state(storage, &selected, generation) + .await + .unwrap() + .unwrap(); + assert_eq!(prior.profiles.len(), 1); + let receipt = EventStore::admit(storage, verified_admission(newer.clone())) + .await + .unwrap(); + runtime.shutdown().await.unwrap(); + let reopened = reopen_counted_sqlite(&root).await; + retained_receipt(&reopened, &receipt).await; + 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 presented = reopened + .phase1_me(&selected, &keys().public_key().to_string(), NOW + 10, "UTC") + .await + .unwrap(); + reopened + .phase1_refresh_today(&selected, NOW + 11, TodayProjectionUpdate::Incremental) + .await + .unwrap(); + let after = load_state(storage, &selected, generation) + .await + .unwrap() + .unwrap(); + assert!( + after.profiles.is_empty(), + "fixture explicit refresh control" + ); + println!( + "{}", + serde_json::json!({ + "scenario": "verified_unsupported_winner_after_admission", + "durable_receipt_recovered": true, + "canonical_selected_unsupported_winner": true, + "profiles_before_read": before.profiles.len(), + "profile_presented_before_refresh": presented.profile.is_some(), + "profiles_after_explicit_refresh": after.profiles.len(), + "product_correction_qualified": false + }) + ); + reopened.shutdown().await.unwrap(); +} + +#[tokio::test] +async fn same_count_promotion_survives_reopen_before_projection_refresh() { + let root = tempfile::tempdir().unwrap(); + let runtime = reopen_counted_sqlite(&root).await; + let selected = context(None, 1); + let event = signed(1, vec![], "promoted note", NOW - 100); + let storage = runtime.client.storage().unwrap(); + EventStore::admit(storage, EventAdmission::raw(observed(event.clone()))) + .await + .unwrap(); + runtime + .phase1_refresh_today(&selected, NOW, TodayProjectionUpdate::Incremental) + .await + .unwrap(); + assert!(page_ids(&runtime, &selected, NOW + 1).await.is_empty()); + let before_count = EventStore::status(storage).await.unwrap().raw_events(); + let receipt = EventStore::admit(storage, visible_admission(event.clone(), NOW * 1_000)) + .await + .unwrap(); + assert_eq!( + EventStore::status(storage).await.unwrap().raw_events(), + before_count + ); + runtime.shutdown().await.unwrap(); + observe_read_boundary( + "same_count_promotion_after_admission", + &root, + &receipt, + vec![event.id().to_hex()], + ) + .await; +} + +#[tokio::test] +async fn advancing_as_of_and_duplicate_control_use_real_retained_snapshots() { + for count in [1, 4, 12] { + let root = match std::env::var_os("TERA_DIAGNOSTIC_STORE_ROOT") { + Some(directory) => tempfile::Builder::new() + .prefix("snapshot-control-") + .tempdir_in(directory) + .unwrap(), + None => tempfile::tempdir().unwrap(), + }; + let runtime = reopen_counted_sqlite(&root).await; + let selected = context(None, 1); + ingest( + &runtime, + &selected, + signed(1, vec![], "snapshot note", NOW - 100), + NOW, + ) + .await; + for offset in 0..count { + let at = NOW + 10 + offset; + let first = page_ids(&runtime, &selected, at).await; + let duplicate = page_ids(&runtime, &selected, at).await; + assert_eq!(first, duplicate); + assert_eq!(first.len(), 1); + } + runtime.shutdown().await.unwrap(); + if std::env::var_os("TERA_DIAGNOSTIC_STORE_ROOT").is_some() { + let retained = root.keep(); + println!( + "{}", + serde_json::json!({ + "scenario": "advancing_as_of_snapshot_retention", + "distinct_as_of_requests": count, + "duplicate_requests": count, + "fixture_store_root": retained, + "runtime_shutdown": true, + "product_correction_qualified": false + }) + ); + } + } +} diff --git a/release/provenance.json b/release/provenance.json @@ -2,7 +2,7 @@ "artifacts": { "app_api_sha256": "020924097c0d7efc33128cb8fd3d3b2026d95f57c44da71880e585aff80f070b", "ffi_api_sha256": "5d74060f97e52dad69ab7567c16d6b6b34acfab846f468450d89e2394a8a69d5", - "ffi_provenance_sha256": "247df8635a647a7ded386633f9abb3244f68fbec1c3f9ce797f84ba5aadca800", + "ffi_provenance_sha256": "f79dce24933566c5d291b45cedd568379c3765e65dd5d239e0bcc34322537cc7", "info_plist_sha256": "b55010dd73b34bf5ad910a888be0ea1ae45f2a5c14329fa6a57059a317bdbd42", "privacy_manifest_sha256": "0f2103257ba596fbcaeb1d6a4dffe3ae021e84c010178852c6bf500a8cfb0f19", "sbom_sha256": "f0a15c2c9ad7799539fbc52fd1fdbcf17f4046b6f86cfe0a9b8980adc0079e10", @@ -1258,7 +1258,7 @@ "lib_revision": "189c49b74b4bafc142b00b76b296477931139e72", "source_date_epoch": 1787871027, "swift_package_lock_sha256": "8aec408132602a249111a65903c985cca5898ec316a45916d88ba756f08ea40d", - "tera_ffi_source_tree": "92cf9f2dc610f43256df3a0bbdb419228f45cba9", + "tera_ffi_source_tree": "e75b51718ad222bceb5bb3c2f3b09737e1ab1855", "xcode_package_lock_sha256": "3656728f8251f3ea644aa150d154819766470ca7bd4f85b7c51fdf301d361d16" }, "version": "0.1.0-alpha" diff --git a/test-fixtures/legacy-identifiers.v1.json b/test-fixtures/legacy-identifiers.v1.json @@ -5783,6 +5783,10 @@ "count": 2 }, { + "path": "core/crates/tera_core/src/runtime/product_surface/today_interruption_tests.rs", + "count": 1 + }, + { "path": "core/crates/tera_core/src/runtime/product_surface/today_permissive_evidence_tests.rs", "count": 6 }, @@ -5909,6 +5913,10 @@ "count": 1 }, { + "path": "core/crates/tera_core/src/runtime/product_surface/today_interruption_tests.rs", + "count": 1 + }, + { "path": "core/crates/tera_core/src/runtime/product_surface/today_viewer_calendar_tests.rs", "count": 1 }, @@ -7277,6 +7285,10 @@ "count": 2 }, { + "path": "core/crates/tera_core/src/runtime/product_surface/today_interruption_tests.rs", + "count": 1 + }, + { "path": "core/crates/tera_core/src/runtime/product_surface/today_media_visibility_tests.rs", "count": 1 },