Add trusted plugin script attribution (#35016)

## What changed

- Build a set of active, verified curated and remote plugin roots from loaded plugins.
- Resolve direct and safely wrapped script commands to a plugin ID and normalized plugin-relative path.
- Leave complex or ambiguous commands, local overrides, missing files, overlapping roots, and symlink escapes unattributed.
- Add a shared validator for the safe cross-platform shape of serialized plugin-relative paths.

## Testing

- Cover trusted-root selection, supported interpreters and shell wrappers, normalized paths, and fail-closed cases.

GitOrigin-RevId: 6e4199a241fd6dfadfec3df0845e7cb615352a49
This commit is contained in:
Kyle Brown authored and copyberry committed 2026-07-23 21:50:17 +00:00
1 parent ceb2ffb793
commit 5bdbd3ee90
7 files changed
+660 -1

No files matched your search

+1
View File
@@ -2794,6 +2794,7 @@ dependencies = [
"codex-otel",
"codex-plugin",
"codex-protocol",
"codex-shell-command",
"codex-skills",
"codex-tools",
"codex-utils-absolute-path",