Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(policy): extend quoting module docs and exports for heredoc pre-pass

Steven Enamakelb8225afe0904
diff --git a/crates/openhuman-core/src/security/policy/policy_command/mod.rs b/crates/openhuman-core/src/security/policy/policy_command/mod.rs
index b9ad1b98b8..d499cb3dde 100644
--- a/crates/openhuman-core/src/security/policy/policy_command/mod.rs
+++ b/crates/openhuman-core/src/security/policy/policy_command/mod.rs
@@ -4,7 +4,8 @@
//! Split by responsibility:
//! - [`env_guard`]: leading inline env-assignment detection.
//! - [`command_name`]: basename normalization and "executes arbitrary code" bases.
-//! - [`quoting`]: quote-aware segment splitting and unquoted-character detection.
+//! - [`quoting`]: quote-aware segment splitting, unquoted-character detection,
+//! and the quoted-heredoc body pre-pass.
//! - [`classification`]: read/write/network/install/destructive bucket lists
//! and the hidden-execution structural guard.
@@ -20,4 +21,5 @@ pub(super) use env_guard::{
};
pub(super) use quoting::{
contains_unquoted_char, contains_unquoted_single_ampersand, split_unquoted_segments,
+ strip_quoted_heredoc_bodies,
};