v0.3.7-pre.003-fix.001

This commit is contained in:
2026-09-02 10:55:57 +02:00
parent 862f40ad26
commit 03a94f4fb6
8 changed files with 200 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-app-backfill-desk/tests/desktop_security.rs
// version: 2
// version: 3
//! Security and dependency-boundary checks for the Backfill Desk scaffold.
@@ -53,9 +53,15 @@ fn pre_002_capability_surface_is_core_plus_tracing_only() {
}
let manifest = read_text(root.join("Cargo.toml").as_path());
assert!(manifest.contains("tauri-plugin-tracing.workspace = true"));
for forbidden in
["ksp-job-backfill-lib", "ksp-onchain-transport-lib", "ksp-store-lib", "ksp-store-api", "ksp-store-postgres-lib", "reqwest", "tokio-postgres"]
{
for forbidden in [
"ksp-job-backfill-lib",
"ksp-onchain-transport-lib",
"ksp-store-lib",
"ksp-store-api",
"ksp-store-postgres-lib",
"reqwest",
"tokio-postgres",
] {
assert!(!manifest.contains(forbidden), "pre.002 opens a later-layer dependency: {forbidden}");
}
}
@@ -118,7 +124,7 @@ fn pre_002_frontend_instrumentation_avoids_business_or_secret_payloads() {
fn pre_003_keeps_config_only_composition_boundary() {
let root = app_root();
let manifest = read_text(root.join("Cargo.toml").as_path());
assert!(manifest.contains("ksp-config-lib.workspace = true"));
assert!(manifest.contains("ksp-config-lib = { path = \"../ksp-config-lib\" }"));
for forbidden in ["ksp-job-backfill-lib", "ksp-onchain-transport-lib", "ksp-store-lib", "ksp-store-api", "ksp-store-postgres-lib"] {
assert!(!manifest.contains(forbidden), "pre.003 opens a later-layer dependency: {forbidden}");
}