openai/codex · error · anyhow::Error
errors.join("; ")
Error message
errors.join("; ") What it means
Aggregated failure from apply_capability_denies_to_paths: after attempting to apply capability deny ACEs to every path, any per-path failures were collected (each logged as an AUDIT note) and are joined with "; " into one anyhow error. Individual path failures do not abort the loop, so this error reports all of them at once.
Solutions
- Read the joined message to identify every path whose deny ACE application failed
- Check the audit log notes for the per-path underlying causes (usually ACL API errors)
- Re-run the deny-ACE setup after fixing permissions on the failing paths
- Treat partial success carefully: some paths may have been correctly denied while others were not
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at codex-rs/windows-sandbox-rs/src/audit.rs:333 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/8caac18413effbd6.
Report an issue: GitHub.
Appendix: source
Thrown at codex-rs/windows-sandbox-rs/src/audit.rs:333
logs_base_dir,
),
Ok(false) => {}
Err(err) => {
let error = format!(
"AUDIT: failed to apply capability deny ACE to {}: {}",
path.display(),
err
);
log_note(&error, logs_base_dir);
errors.push(error);
}
}
}
}
if errors.is_empty() {
Ok(())
} else {
Err(anyhow!(errors.join("; ")))
}
}
#[cfg(test)]
mod tests {
use super::apply_capability_denies_to_paths;
use super::gather_candidates;
use crate::token::LocalSid;
use anyhow::anyhow;
use pretty_assertions::assert_eq;
use std::collections::HashMap;
use std::fs;
#[test]
fn gathers_path_entries_by_list_separator() {
let tmp = tempfile::tempdir().expect("tempdir");
let dir_a = tmp.path().join("Tools");
let dir_b = tmp.path().join("Bin");View on GitHub (pinned to 339751715c)