Lightweight coding agent that runs in your terminal
Rust
Route executor policy audits through log-only telemetry (#38800)
viyatb-oai899d1715c87a
diff --git a/codex-rs/exec-server/src/client/network_policy_audit.rs b/codex-rs/exec-server/src/client/network_policy_audit.rsindex deaaf8eaf8..b16249a9b9 100644--- a/codex-rs/exec-server/src/client/network_policy_audit.rs+++ b/codex-rs/exec-server/src/client/network_policy_audit.rs@@ -52,7 +52,7 @@ pub(super) fn emit_network_policy_decision(};let metadata = &context.metadata;tracing::event!(- target: "codex_otel.network_proxy",+ target: "codex_otel.log_only",tracing::Level::INFO,event.name = "codex.network_proxy.policy_decision",event.timestamp = decision.timestamp,diff --git a/codex-rs/exec-server/src/client/tests/network_policy_tests.rs b/codex-rs/exec-server/src/client/tests/network_policy_tests.rsindex 008fa4440f..4721527fa1 100644--- a/codex-rs/exec-server/src/client/tests/network_policy_tests.rs+++ b/codex-rs/exec-server/src/client/tests/network_policy_tests.rs@@ -177,6 +177,7 @@ async fn policy_decisions_reject_forged_process_and_use_trusted_controller_metad.expect("audit log should be UTF-8");assert!(!output.contains("forged.example"));for expected in [+ "codex_otel.log_only","trusted-conversation","trusted-account","trusted-execution",