Skip to content

Expand fail-closed plugin script resolver coverage - #31854

Closed
kmbroai wants to merge 1 commit into
dev/kyleb/plugin-script-command-resolver-v3from
dev/kyleb/plugin-script-command-resolver-tests-v3
Closed

kmbroai wants to merge 1 commit into
dev/kyleb/plugin-script-command-resolver-v3from
dev/kyleb/plugin-script-command-resolver-tests-v3

Conversation

@kmbroai

@kmbroai kmbroai commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

What

  • Add edge-case coverage for plugin script resolver command parsing and fail-closed behavior.

Why

Lifecycle attribution must avoid emitting metrics for ambiguous, expanded, compound, or unsafe commands.

Enhancement design: Codex Plugin Metrics

Stacked on #31853.

How

  • Extend resolver coverage for direct executables, runners, nested skills, shell expansion, compound commands, PowerShell/Cmd forms, and non-UTF-8 paths.
  • Keep the baseline success and path-escape tests with the implementation PR so both slices remain independently meaningful.

I tested this

  • just fmt — passed
  • just fix -p codex-core-plugins -p codex-plugin -p codex-analytics -p codex-core -p codex-features -p codex-app-server -p codex-windows-sandbox — passed (stack-wide scoped lint gate)
  • just argument-comment-lint — passed
  • just test -p codex-core plugin_script_resolver — passed (11/11)
  • just test — attempted; the local workspace build stopped before tests because the runner lacks system libcap for unrelated codex-bwrap. Exact-head CI provides the full Linux/macOS/Windows matrix.

@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-command-resolver-v3 branch from 2f56baf to 28e7928 Compare July 9, 2026 19:24
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-command-resolver-tests-v3 branch from f9a8932 to ea11b7c Compare July 9, 2026 19:24
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-command-resolver-v3 branch from 28e7928 to 56aeb4a Compare July 9, 2026 22:29
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-command-resolver-tests-v3 branch from ea11b7c to 6b84c4c Compare July 9, 2026 22:29
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-command-resolver-v3 branch from 56aeb4a to aac3c74 Compare July 9, 2026 22:44
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-command-resolver-tests-v3 branch from 6b84c4c to afd3942 Compare July 9, 2026 22:44
@kmbroai kmbroai changed the title Test fail-closed plugin script resolver Expand fail-closed plugin script resolver coverage Jul 9, 2026
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-command-resolver-v3 branch from aac3c74 to 244fc49 Compare July 9, 2026 22:54
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-command-resolver-tests-v3 branch from afd3942 to 03aa5e3 Compare July 9, 2026 22:55
@kmbroai
kmbroai marked this pull request as ready for review July 9, 2026 23:14
@kmbroai
kmbroai requested a review from a team as a code owner July 9, 2026 23:14
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-command-resolver-tests-v3 branch from 03aa5e3 to a96c06c Compare July 10, 2026 01:10
@kmbroai
kmbroai force-pushed the dev/kyleb/plugin-script-command-resolver-v3 branch from 244fc49 to 31e7611 Compare July 10, 2026 01:10

kmbroai commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by openai/codex-internal#1389 after the Codex source-of-truth migration. The internal replacement preserves this stack position and carries the validated review fixes.

@kmbroai kmbroai closed this Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant