feat(wave-1): 适配器框架与安全基座(schema校验/dry-run/exec沙箱/密钥库/日志脱敏/字段拆分)

This commit is contained in:
AgentDock 施工员
2026-08-25 00:38:10 +08:00
parent 296843215f
commit 7208586850
39 changed files with 2323 additions and 81 deletions
+8 -13
View File
@@ -1,17 +1,12 @@
//! agentdock-exec —— 安全进程执行层(架构 §3.2 / §4.2)
//!
//! 职责:仅执行适配器声明的 argv,禁止 shell 拼接、管道、重定向;
//! 参数白名单校验。Wave 0:空骨架,随 Wave 1 落地
//! 职责:仅执行适配器声明的 argv 数组,禁止 shell 拼接、管道、重定向;
//! 参数槽位白名单校验;工作目录限制
/// 执行层能力标记(占位)
pub const LAYER: &str = "agentdock-exec";
pub mod error;
pub mod exec;
pub mod slots;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn layer_identity() {
assert_eq!(LAYER, "agentdock-exec");
}
}
pub use error::ExecError;
pub use exec::{ensure_cwd_within, spawn, validate_argv};
pub use slots::{Slot, validate_slot};