From ce3eeefda945730991b3bbcac7e81934ddde7fa5 Mon Sep 17 00:00:00 2001 From: AIEN Atlas Date: Fri, 9 Oct 2026 22:33:49 -0500 Subject: [PATCH 1/2] tests: tier2 environment checks track the access gate and prune target/ test_t2_f36 asserted 404 on an unknown cockpit route; the access gate in spark-cockpit-rs answers 401 before routing for an anonymous probe, which is the stronger property (route existence is not disclosed). Accept both. test_t2_f65 scanned the whole worktree for *.pem; target/ now holds the pinned dependency checkouts (scripts/pins.sh, #92) whose vendored crates ship PEM test fixtures. Prune target/ so the scan covers the worktree a person or agent writes to. Co-authored-by: Drake Stapleton Co-Authored-By: Claude Fable 5.1 --- crates/spark-adapters/tests/tier2_boundary.rs | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/crates/spark-adapters/tests/tier2_boundary.rs b/crates/spark-adapters/tests/tier2_boundary.rs index a5a9fe98..608c6f03 100644 --- a/crates/spark-adapters/tests/tier2_boundary.rs +++ b/crates/spark-adapters/tests/tier2_boundary.rs @@ -432,7 +432,15 @@ fn test_t2_f36_axum_nonexistent_route_404() { .output() .expect("curl cockpit"); let code = String::from_utf8_lossy(&output.stdout); - assert_eq!(code.trim(), "404"); + // An unknown route never serves content. Without a session the cockpit access + // gate (spark-cockpit-rs/src/access.rs) answers 401 before routing, so an + // anonymous probe learns nothing about which routes exist; a gate-less build + // answers 404. + assert!( + code.trim() == "404" || code.trim() == "401", + "unknown route returned {} (expected 404, or 401 from the access gate)", + code.trim() + ); } #[test] @@ -891,14 +899,26 @@ fn test_t2_f64_git_readme_contains_agpl_badge() { #[test] fn test_t2_f65_git_worktree_clean_no_confidential_files() { + // target/ is build output and holds the pinned dependency checkouts written by + // scripts/pins.sh, whose vendored crates ship PEM test fixtures; the scan is + // about files a person or agent committed or dropped into the worktree. + let root = workspace_root(); + let target = root.join("target"); let output = Command::new("find") .args([ - workspace_root().to_str().unwrap(), + root.to_str().unwrap(), + "-path", + target.to_str().unwrap(), + "-prune", + "-o", + "(", "-name", "*.pem", "-o", "-name", "*.id_rsa", + ")", + "-print", ]) .output() .expect("find keys"); From 26d067984e6370866d4a689860b071527aa18035 Mon Sep 17 00:00:00 2001 From: AIEN Atlas Date: Fri, 9 Oct 2026 22:33:50 -0500 Subject: [PATCH 2/2] crumb: compile after tier2 environment test fix Co-authored-by: Drake Stapleton Co-Authored-By: Claude Fable 5.1 --- .crumb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.crumb b/.crumb index bded42be..65ffbd64 100644 --- a/.crumb +++ b/.crumb @@ -77,14 +77,14 @@ } ], "children_root": "sha256:6125449db449f5c3431e63c5bf8b20022665a7ea6c635c0f884c8f1e5c0e8ee2", - "compiled_at": "2026-10-10T02:47:27Z", + "compiled_at": "2026-10-10T03:33:50Z", "compiler": "crumb-compile/1", - "digest": "sha256:13ed41c919bea2822142e74eac301f035562bae52c13d1087a0f36568078effe", + "digest": "sha256:efe464f0d5fa3f0771886b952d47abca6a9e3ad9ec8fc08f22f682bc5db90e06", "evidence_files": 187, "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280", "files": 1849, - "generated_at_commit": "bf3a28eb5274aeb0b48d5e12f2c20da5d00ba8da", - "source_tree": "sha256:cba3b16d3e02f733fb9fe2fc09d142ceabdd3fd62d709c6be7ab72b9b08d3a70" + "generated_at_commit": "ce3eeefda945730991b3bbcac7e81934ddde7fa5", + "source_tree": "sha256:41f96f74bc9dcab6ac6c0972b346f673b01f1f4b1ed3eb2b404d9e6eb0e9db4e" } }, "history": [],