v0.3.14-pre.003

This commit is contained in:
2026-09-11 21:54:19 +02:00
parent 7bf938c19f
commit 6721a4142a
15 changed files with 872 additions and 22 deletions

View File

@@ -1,7 +1,7 @@
// file: crates/ksp-worker-raw-transaction-ingest-lib/tests/hardening.rs
// version: 26
// version: 27
//! External public, security, redaction and release-boundary hardening canaries through `v0.3.14-pre.002`.
//! External public, security, redaction and release-boundary hardening canaries through `v0.3.14-pre.003`.
fn network(value: &'static str) -> std::option::Option<ksp_store_lib::RawNetworkId> {
let result = ksp_store_lib::RawNetworkId::new(value);
@@ -1012,3 +1012,15 @@ fn v0_3_14_pre_002_continuity_contracts_are_private_bounded_and_io_free() {
assert!(root.contains("pub(crate) use self::continuity::RawTransactionIngestContinuityContracts;"));
return;
}
#[test]
fn v0_3_14_pre_003_websocket_continuity_observation_reuses_transport_snapshot_sources_only() {
let worker = include_str!("../src/runtime_resources.rs");
assert!(worker.matches("session.snapshot_source()").count() >= 3);
assert!(worker.contains("observe_websocket_session_snapshot"));
assert!(worker.contains("observe_websocket_post_incident_slot"));
assert!(!worker.contains("tokio_tungstenite::connect_async"));
assert!(!worker.contains("WebSocketStream<"));
assert!(!worker.contains("set_from_slot("));
return;
}

View File

@@ -1,7 +1,7 @@
// file: crates/ksp-worker-raw-transaction-ingest-lib/tests/release_completeness.rs
// version: 21
// version: 22
//! Release-completeness canaries through the `v0.3.14-pre.002` continuity-contract tranche.
//! Release-completeness canaries through the `v0.3.14-pre.003` WebSocket continuity-observation tranche.
#[test]
fn pre_010_production_module_inventory_is_exact() -> std::io::Result<()> {
@@ -144,6 +144,7 @@ fn pre_010_external_hardening_suite_is_present_and_scoped() {
"v0_3_13_pre_010_multi_source_health_is_conservative_counted_and_redacted",
"v0_3_13_pre_011_shutdown_races_are_bounded_joined_atomic_and_counter_safe",
"v0_3_14_pre_002_continuity_contracts_are_private_bounded_and_io_free",
"v0_3_14_pre_003_websocket_continuity_observation_reuses_transport_snapshot_sources_only",
] {
assert!(hardening.contains(required), "required pre.010 hardening canary missing: {required}");
}