fix(plugin): preserve nested attack-path evidence in previews - #691
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
kmbroai
approved these changes
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Preserve valid nested attack-path string arrays in saved finding previews instead of replacing their elements with
null.This supersedes #511 and carries its original fix forward onto the current canonical plugin source after the plugin ownership migration.
Fixes #490.
Changes
plugins/codex-security, leaving_bundled_pluginas generated package output.Testing
pnpm run check:plugin-sourcepnpm run typesscans show --jsonagainst the saved reproduction fromscans showreplaces nested attack-path strings with null #490; nested evidence references, transformations, and preconditions remained strings rather thannull.Risk and rollout
Low. Byte budgets, field ordering, per-section depth limits, and guidance reservation behavior are unchanged. The complete finding wrapper accounts for its own container level, while section projections retain the existing default depth cap. The generated npm payload is still produced from the canonical plugin source during build and release.
Public disclosure review
Change impact
The final preview wrapper now accounts for its own container level, so supported nested strings survive without relaxing section limits.
flowchart LR subgraph column_0["Saved finding"] direction TB node_0["Read saved finding details<br/><code>finding_result</code>"] end subgraph column_1["Preview projection"] direction TB node_1["Preserve supported nesting<br/><code>bounded_finding_details</code>"] end subgraph column_2["CLI result"] direction TB node_2["Return intact evidence strings<br/><code>scans show</code>"] node_3["Keep the depth boundary covered<br/><code>finding-preview.test.ts</code>"] end node_0 -->|"projects"| node_1 node_1 -->|"returns"| node_2 node_1 -->|"covered by"| node_3 class node_0 context class node_1 changed class node_2 affected class node_3 affected classDef changed fill:#d7f5e5,stroke:#237a4b,color:#111 classDef affected fill:#e6f0ff,stroke:#3569a8,color:#111 classDef context fill:#f2f3f5,stroke:#6e7781,color:#111Source evidence (5)
plugins/codex-security/scripts/workbench_db.py:L3435-L3444— finding_result reads saved details and projects them through bounded_finding_details before returning them.plugins/codex-security/scripts/finding_preview.py:L218-L230— The complete preview uses depth 5 for its outer wrapper, while each section keeps the existing default depth limit.plugins/codex-security/scripts/finding_preview.py:L329-L422— bounded_json_value threads the selected max_depth through list and object recursion.plugins/codex-security/scripts/workbench_db.py:L3476-L3495— The bounded details are spread into the finding result consumed by scans show.sdk/typescript/tests-ts/finding-preview.test.ts:L126-L156— The regression test keeps supported attack-path strings and still replaces one extra nesting level with null.