0.3.15-pre.012

This commit is contained in:
2026-09-16 10:58:29 +02:00
parent 2f587e22be
commit 31ae38853d
21 changed files with 815 additions and 79 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-raw-transaction-ingest-desk/tests/release_completeness.rs
// version: 11
// version: 12
//! Release-completeness canaries for Raw Transaction Ingest Desk Start-resource reconstruction.
@@ -200,3 +200,27 @@ fn pre_011_fix_001_preserves_latest_value_contract_without_backend_module_growth
assert!(main.contains("renderRouteMonitoringCard"));
assert!(main.contains("renderSelectedProfile"));
}
#[test]
fn pre_012_race_shutdown_and_ipc_hardening_adds_no_production_module_or_lower_layer_growth() {
let lib = read_text(app_root().join("src/lib.rs").as_path());
assert_eq!(lib.matches("mod ").count(), 16);
for required in [
"ERROR_CODE_FRONTEND_LOG_PAYLOAD_INVALID",
"ERROR_CODE_ROUTE_REQUEST_INVALID",
"ERROR_CODE_ROUTE_RUNTIME_SHUTTING_DOWN",
"ERROR_CODE_ROUTE_RUNTIME_SHUTDOWN_FAILED",
] {
assert!(lib.contains(required), "missing pre.012 crate-root error export {required}");
}
let runtime = read_text(app_root().join("src/route_runtime.rs").as_path());
assert!(runtime.contains("stop_requested: bool"));
assert!(runtime.contains("RouteStopTarget::Starting"));
assert!(runtime.contains("cancelled_start_terminal"));
assert!(runtime.contains("inner.routes.is_empty()"));
let route_start = read_text(app_root().join("src/route_start.rs").as_path());
assert!(route_start.contains("build_route_inventory_with_environment"));
assert!(route_start.contains("request.validate_logical_identity()"));
let worker_manifest = read_text(app_root().join("../ksp-worker-raw-transaction-ingest-lib/Cargo.toml").as_path());
assert!(!worker_manifest.contains("ksp-app-raw-transaction-ingest-desk"));
}