GeezerVison is showing github.com — Pause runtime sandbox integrity checks · openai/codex@d5d10b2
File tree
Expand file treeCollapse file tree
Open diff view settings
exec-server/src/sandbox_integrity
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: codex-rs/core/src/exec_tests.rs +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -1339,6 +1339,7 @@ async fn build_exec_request_projects_workspace_roots_only_for_windows_sandbox() |
1339 | 1339 |
|
1340 | 1340 | #[test_case(false; "checker_error")] |
1341 | 1341 | #[test_case(true; "checker_timeout")] |
| 1342 | +#[ignore = "sandbox integrity checks are paused"] |
1342 | 1343 | fn command_runs_after_integrity_check_failure(time_out: bool) -> anyhow::Result<()> { |
1343 | 1344 | let directory = tempfile::tempdir()?; |
1344 | 1345 | let cwd = directory.path().abs(); |
|
Collapse file
Copy file name to clipboardExpand all lines: codex-rs/exec-server/src/sandbox_integrity/AGENTS.md +6-1Lines changed: 6 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | # Sandbox integrity: scope and review contract |
2 | 2 |
|
3 | | -These checks currently emit telemetry only. Findings and preparation errors must |
| 3 | +Runtime integrity checks are paused at the shared runner entry point. Do not |
| 4 | +perform dependency discovery, policy preparation, checks, or telemetry during |
| 5 | +command execution. The checker implementation and isolated tests remain for now; |
| 6 | +the command-launch failure/timeout integration test is ignored while paused. |
| 7 | + |
| 8 | +When enabled, these checks emit telemetry only. Findings and preparation errors must |
4 | 9 | not change sandbox construction, permissions, approvals, or command execution. |
5 | 10 | Supported backends are Seatbelt, bubblewrap, and MXC; legacy Windows is out of scope. |
6 | 11 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: codex-rs/exec-server/src/sandbox_integrity/runner.rs +6-1Lines changed: 6 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | //! Prepare the policy and dependency facts, then run checks per dependency. |
| 2 | +//! Runtime checks are paused; retain the implementation for isolated tests. |
2 | 3 | //! Results never affect execution. See AGENTS.md for scope and accepted approximations. |
3 | 4 |
|
4 | 5 | use super::backend; |
@@ -13,12 +14,16 @@ use std::io; |
13 | 14 | use std::time::Duration; |
14 | 15 | use std::time::Instant; |
15 | 16 |
|
| 17 | +// Pause all observations to avoid duplicating enforcement's policy preparation. |
| 18 | +const INTEGRITY_CHECKS_ENABLED: bool = false; |
16 | 19 | const CHECK_TIMEOUT: Duration = Duration::from_secs(/*secs*/ 5); |
17 | 20 |
|
18 | 21 | /// Observe executor-local containment dependencies without affecting the launch. |
19 | 22 | /// Used by both exec-server and the legacy local execution path. |
20 | 23 | pub async fn run_integrity_checks(request: SandboxIntegrityRequest<'_>) { |
21 | | - run_checks_with_metrics(request, codex_otel::global().as_ref()).await; |
| 24 | + if INTEGRITY_CHECKS_ENABLED { |
| 25 | + run_checks_with_metrics(request, codex_otel::global().as_ref()).await; |
| 26 | + } |
22 | 27 | } |
23 | 28 |
|
24 | 29 | async fn run_checks_with_metrics( |
|