mirror of
https://github.com/openai/codex-security.git
synced 2026-11-26 02:25:46 +08:00
* chore(release): 0.3.1 * docs(release): finalize 0.4.0 highlights and migration notes * docs(release): clarify scoped inventory migration --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mluck <mluck@openai.com>
4.7 KiB
4.7 KiB
Highlights
Codex Security 0.4.0 adds hosted Standard scan execution and improves token accounting, bulk-scan recovery, and report formatting. The minor version marks the removal of obsolete ranking helpers; direct helper users should follow the migration guidance below.
- Hosts can run Standard repository or path scans through the TypeScript
runHostedScan(input, { executor, signal, onEvent })API or thecodex-security scan --hostJSON-RPC adapter. Hosted execution is opt-in and requires a host-provided executor, frozen checkout, and explicit model and storage settings. Hosts own authorization, cancellation, and durable execution state. See the hosted scan guide. (#1559) - Scan token totals include recorded usage from earlier Deep Scan worker attempts and context compaction without counting resumed history twice. The SDK and compatible hosts can finish accounting for the final response after report generation. Missing records remain marked incomplete or unavailable rather than being presented as an exact total. (#1657)
- Bulk scans preserve successful results and original scan failures when temporary-checkout cleanup fails. Cleanup errors are reported separately, and reusing a completed scan can retry its recorded cleanup without another scan. (#1433)
- Reports render malformed evidence ranges as a valid single line or just the path. Finding text beginning with tilde fences or parenthesized list markers no longer changes the formatting of surrounding report sections. These fixes preserve the underlying findings. (#1656, #1604)
- The package includes Codex CLI/SDK 0.163.0 and restores the Codex Security
display name in plugin listings, prompts, and tool labels. The npm package
remains
@openai/codex-security, with thecsandcodex-securitycommands. (#1670, #1681)
Upgrade notes
Scripts and custom workflows that invoke ranking helpers
The following plugin helper commands are removed:
make-repo-rank-inputandselect-deep-review-inputmake-rank-shards,validate-rank-shard, andmerge-rank-outputsmake-rank-pool-plan,validate-rank-worker, andvalidate-rank-pool
Remove the ranking, shard/pool scheduling, and ranked-selection stages from custom workflows. Generate the scoped inventory and review every selected file:
- For explicit repository scopes, use
scripts/generate_rank_input.py make-repo-scope-input --repo <repo_root> --scopes-file <scopes_json> --out <output_jsonl>with your Python interpreter and the script from the installed plugin. The scopes file is a JSON array, such as["src", "tests"]; use["."]for the whole repository instead of the old default--scope .. Output rows contain onlypath, for example{"path":"src/example.ts"}. Update your consumer to resolve each path against the repository root and read that file directly. If it requires apath/areareview worklist, convert every row to{"path":"src/example.ts","area":"repository"}. This inventory contains noareaorpreviewfields and cannot be passed directly tocopy-deep-review-input. - For Git diffs, retain
make-diff-rank-inputwith its existing revision or local-patch arguments. Copy all candidate rows into the review worklist withscripts/launch_codex_security_mcp --helper copy-deep-review-input --rank-input <input_jsonl> --out <review_jsonl>. On Windows, use the.cmdlauncher. - Review the entire resulting worklist instead of selecting a ranked subset.
bind-repo-scopesand the retained diff helpers keep their existing arguments and worklist formats.
See the scoped review reference for commands, scope inputs, and Windows invocation details. (#1607)
Normal CLI and SDK scans do not need this helper migration. Hosted execution is opt-in; existing local scans continue to use their current execution path.