Repository navigation
fix: require approval for opaque exec wrappers [AI] - #112953
Conversation
|
ClawSweeper proof for current head e3f8459 Behavior proved: command approval resolution fails closed for opaque dispatch wrappers instead of treating the wrapper executable itself as sufficient approval for the hidden payload.
|
|
Codex review: needs maintainer review before merge. Reviewed July 23, 2026, 1:19 PM UTC. Summary PR surface: Source +21, Tests +46. Total +67 across 4 files. Reproducibility: Yes at source level: current main lacks these wrapper names in the dispatch registry, while the PR routes them through the existing policyBlocked path. I did not execute tests in this read-only review, but the PR includes focused live-output proof and regression coverage. Review metrics:
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer decision needed
Next step before merge
Security Review detailsBest possible solution: Land the fail-closed wrapper classification after maintainer acceptance of the stricter approval behavior and green required checks; add transparent parsers later only for wrappers that can be proven safe. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main lacks these wrapper names in the dispatch registry, while the PR routes them through the existing policyBlocked path. I did not execute tests in this read-only review, but the PR includes focused live-output proof and regression coverage. Is this the best way to solve the issue? Yes, this is the best bounded fix for the approval boundary: it reuses the existing fail-closed wrapper mechanism instead of adding broad new parsing logic. The safer alternative for future compatibility is narrow parser support per wrapper once transparency is proven. AGENTS.md: found_applied Codex review notes: model internal, reasoning high; reviewed against 856f534. Label detailsLabel justifications:
Evidence reviewedPR surface:
|
…omic-publication-20260724 * origin/main: refactor(memory-lancedb): remove dead legacy path scan (#113299) fix(test): satisfy no-map-spread in exec approvals (#113303) fix: keep OAuth refresh failures terminal [AI] (#112957) fix: reusable exec approvals apply to approved arguments (#112946) refactor(agents): split tool search internals (#113296) fix: keep inline eval approvals one-shot [AI] (#112956) refactor(normalization): reuse trimmed list helpers (#113295) fix(openai): fail fast on invalid TLS certificates (#111818) fix: recognize more shell wrappers [AI] (#112955) fix(i18n): correct Indonesian seconds labels chore(i18n): refresh native locales fix: block opaque exec dispatch wrappers (#112953)
What Problem This Solves
Fixes an issue where exec approval checks could treat certain passthrough command wrappers as the approved executable instead of gating the command they launch.
Why This Change Was Made
The approval boundary now recognizes additional privilege, namespace, and utility wrappers as opaque dispatch wrappers. Until a wrapper has explicit parser support, the approval path keeps it blocked instead of allowing a broad wrapper rule to authorize a hidden payload.
This PR is AI-assisted.
User Impact
Users and operators get a stricter approval prompt for commands routed through these opaque wrappers. Existing transparent wrappers with tested parsing, such as
env,nice, andtimeout, keep their current behavior.Evidence
node scripts/run-vitest.mjs src/infra/exec-command-resolution.test.ts src/infra/command-analysis/risks.test.tsgit diff --check