Skip to content

Attribute command executions to trusted plugin scripts#35020

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/02fac3a233284ccfc6642fa502a95f1881dba83d
Jul 23, 2026
Merged

Attribute command executions to trusted plugin scripts#35020
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/02fac3a233284ccfc6642fa502a95f1881dba83d

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 23, 2026

Copy link
Copy Markdown

Attribute command executions to trusted plugin scripts

What changed

  • Resolve shell and unified-exec commands against the trusted plugin roots loaded for each turn.
  • Add optional pluginId and safe plugin-relative scriptPath fields to command execution items and legacy execution events, and propagate them through app-server notifications.
  • Include the attribution in command execution analytics while rejecting absolute, unsafe, and unattributed script paths.

Testing

  • Cover attribution for cached curated and remote plugin scripts from command execution through core and app-server events.
  • Verify analytics serialization and unsafe-path filtering.

## What changed

- Resolve shell and unified-exec commands against the trusted plugin roots loaded for each turn.
- Add optional `pluginId` and safe plugin-relative `scriptPath` fields to command execution items and legacy execution events, and propagate them through app-server notifications.
- Include the attribution in command execution analytics while rejecting absolute, unsafe, and unattributed script paths.

## Testing

- Cover attribution for cached curated and remote plugin scripts from command execution through core and app-server events.
- Verify analytics serialization and unsafe-path filtering.

GitOrigin-RevId: 02fac3a233284ccfc6642fa502a95f1881dba83d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/02fac3a233284ccfc6642fa502a95f1881dba83d branch from 42c072b to 84fa68b Compare July 23, 2026 22:32
@copyberry
copyberry Bot merged commit 84fa68b into main Jul 23, 2026
31 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/02fac3a233284ccfc6642fa502a95f1881dba83d branch July 23, 2026 22:33
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant