Skip to content

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

Rust

Keep G002 path-scope tests aligned with enforced denials

bellman37b2b75287d1
diff --git a/rust/crates/tools/tests/path_scope_enforcement.rs b/rust/crates/tools/tests/path_scope_enforcement.rs
index f3fc9dab..4c1c7dc9 100644
--- a/rust/crates/tools/tests/path_scope_enforcement.rs
+++ b/rust/crates/tools/tests/path_scope_enforcement.rs
@@ -44,7 +44,8 @@ fn assert_permission_denied(result: Result<String, String>, case_name: &str) {
assert!(
(err.contains("requires danger-full-access permission")
|| err.contains("requires \'danger-full-access\' permission"))
- || err.contains("current mode is workspace-write"),
+ || err.contains("current mode is workspace-write")
+ || err.contains("escapes workspace"),
"{case_name} should fail in permission enforcement, got: {err}"
);
}