Commit Graph
2011 Commits
Author SHA1 Message Date
Michael D'AngeloandCodex 594604ffb5 feat(cli): make project setup and authentication easier to inspect (#2581)
* feat(cli): expose identifiers for saved scan follow-up

* test(sdk): exercise dedupe representatives in publication

* feat(cli): make project setup and authentication easier to inspect

* docs(cli): distinguish sign-in flows and credential sources

* feat(cli): link interrupted scans and imported evidence to their next commands

* fix(cli): make command help and discovery reflect runnable workflows

* build(sdk): include the command argument helper in package checks

* refactor(cli): reuse shell path quoting for project previews

* docs(cli): identify the shell used for Windows preview commands

* test(cli): account for the internal publication CSV in help coverage

* fix(cli): scope recovery hints to supported sessions and shells

* fix(cli): declare exclusive scan import sources in the schema

* refactor(cli): share credential locking and project preview preparation

* fix(cli): resolve repository arguments consistently during scan discovery

* refactor(cli): simplify the result handoffs and verify PowerShell recovery

* fix(cli): check sign-in from the same directory in every format

* fix(cli): preserve diagnostics when project initialization fails

---------

Co-authored-by: Codex <noreply@openai.com>
2026-11-11 02:33:07 +00:00
Michael D'AngeloandCodex 507e10af4f fix(cli): make command help and discovery reflect runnable workflows (#2584)
* feat(cli): expose identifiers for saved scan follow-up

* test(sdk): exercise dedupe representatives in publication

* feat(cli): link interrupted scans and imported evidence to their next commands

* fix(cli): make command help and discovery reflect runnable workflows

* build(sdk): include the command argument helper in package checks

* test(cli): account for the internal publication CSV in help coverage

* fix(cli): scope recovery hints to supported sessions and shells

* fix(cli): declare exclusive scan import sources in the schema

* fix(cli): resolve repository arguments consistently during scan discovery

* refactor(cli): simplify the result handoffs and verify PowerShell recovery

---------

Co-authored-by: Codex <noreply@openai.com>
2026-11-11 02:12:59 +00:00
Michael D'AngeloandCodex 83c9c9196b fix(cli): inspect integration commands before installation (#2582)
* fix(cli): inspect integration commands before installation

* fix(cli): include the integration dispatcher in package validation

* fix(cli): list generated skills at the requested grouping depth

* docs(cli): clarify which installation skills list checks

* refactor(cli): share integration commands across dispatch and discovery

* fix(cli): complete integration flags without executing their commands

* fix(cli): register MCP clients through the installed SDK dependency

* fix(cli): preserve shell completion words and cursor positions

* fix(cli): serve all shell completions before executable dispatch

---------

Co-authored-by: Codex <noreply@openai.com>
2026-11-11 01:41:00 +00:00
Michael D'Angelo ead4c769a1 fix(cli): align scan schemas and structured output (#2580)
* fix(cli): align scan schemas and structured output

* fix(cli): name missing options and preserve saved log output

* fix(cli): describe retained scan contracts in the output schema

* fix(cli): preserve nonvalidation stderr diagnostics

* fix(cli): identify invalid option values in structured errors

* refactor(cli): parse output controls once
2026-11-11 01:40:55 +00:00
Michael D'AngeloandCodex 6b17ee2d0f fix(cli): update the active installation and migrate legacy options (#2579)
* fix(cli): update the active installation and migrate legacy options

* fix(cli): recognize local projects named lib during updates

* fix(cli): use supported pnpm workspace and Bun optional flags

* fix(cli): isolate self-updates from project configuration

* fix(cli): recognize global npm under nvm checkouts

* refactor(cli): simplify package manager update resolution

* refactor(cli): skip updater registration during inspection

* refactor(cli): share metadata flags with update notices

---------

Co-authored-by: Codex <noreply@openai.com>
2026-11-11 01:40:50 +00:00
Michael D'Angelo a16853f062 fix(cli): validate scan inputs and verify hook installation (#2578)
* fix(cli): validate scan inputs and verify hook installation

* fix(cli): validate options on group root commands

* refactor(cli): simplify storage and file input preflight
2026-11-11 01:40:45 +00:00
Michael D'Angelo facaa9e07d feat(cli): expose identifiers for saved scan follow-up (#2577)
* feat(cli): expose identifiers for saved scan follow-up

* test(sdk): exercise dedupe representatives in publication

* feat(cli): link interrupted scans and imported evidence to their next commands

* build(sdk): include the command argument helper in package checks

* fix(cli): scope recovery hints to supported sessions and shells

* refactor(cli): simplify the result handoffs and verify PowerShell recovery
2026-11-11 01:40:40 +00:00
Michael D'AngeloandCodex 514de3d489 test(workbench): release the SQLite writer after lock acquisition (#2585)
Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 16:53:47 -08:00
ianw-oaiandmldangelo-oai e90a30ac25 fix(scan): reduce setup and tool output in Standard scans (#2046)
* fix(scan): reduce setup and tool output in Standard scans

* fix(workbench): keep policy paths optional for scan lookups

* fix(sdk): retain the preflight callback before scan dispatch

* fix(workbench): only advertise scoped inventory for Standard scans

* docs(workbench): explain optional scope report failures

* fix(workbench): preserve the Deep Scan registration response

* test(workbench): use the current scan context request in the Deep Scan fixture

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-10 15:26:19 -08:00
Michael D'AngeloandMichael D'Angelo 55261a78e6 docs: import hosted Semgrep findings locally or in Cloud (#2576)
* docs: add a local import guide for Semgrep hosted MCP findings

* docs: extend the hosted Semgrep import example through Cloud

* docs: clarify the Semgrep Cloud workspace prerequisite

---------

Co-authored-by: Michael D'Angelo <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-10 14:52:10 -08:00
ianw-oai aa57e09e3d fix: report exit status when the scan helper fails (#2406)
fix: report exit status when the scan helper fails silently
2026-11-10 14:08:54 -08:00
Michael D'Angelo fc51c1a42a fix(plugin): require thread attachment for legacy scan continuations (#2428)
* fix(plugin): scope legacy scan continuations to the attached scan

* fix(plugin): rejoin attached legacy deep scans by target

* fix(plugin): keep attached deep scan results with their conversation
2026-11-10 11:12:55 -08:00
Michael D'Angelo 4b3779276c fix(sdk): compare ignored policy paths by their Git filename bytes (#2573) 2026-11-10 10:28:32 -08:00
Michael D'Angelo 75700f31e1 test(sdk): isolate package checks and release Windows fixtures (#2574) 2026-11-10 10:27:51 -08:00
Michael D'Angelo cf2aafaa92 fix(sdk): inventory policies in list-only POSIX directories (#2572) 2026-11-10 08:30:13 -08:00
Michael D'Angelo 4fac2dfdf3 fix(plugin): preserve native filename bytes in SQLite URIs (#2571)
* fix(plugin): preserve native filename bytes in SQLite URIs

* test(sdk): include SQLite URI support in the usage fixture
2026-11-10 08:12:09 -08:00
Michael D'Angelo ba6702440e fix(scan): isolate Git display settings in content snapshots (#2568)
* fix(scan): isolate Git display settings in content snapshots

* fix(scan): pin hunk, file order, and rename rendering in snapshots

* test(scan): write Git order fixtures with LF on every platform

* fix(scan): stabilize submodule, indentation, and rename presentation

* Capture the configured submodule diff before asserting

* Normalize Git driver annotations and binary patch rendering
2026-11-10 07:16:21 -08:00
dependabot[bot] ea9114512e ci: update install-action to v2.90.0 (#2561)
Pin the workflow-quality and lockfile-audit installer to the v2.90.0 commit.
2026-11-10 06:59:01 -08:00
dependabot[bot] 1579aeb514 chore(deps): update semver to 7.8.6 across SDK and tooling (#2562)
Align the SDK, mutation tools and triage eval locks on the comparator parsing fix.
2026-11-10 06:56:07 -08:00
Michael D'Angelo d4175bc3b5 fix(native): read deep sealed artifacts under Linux descriptor limits (#2570) 2026-11-10 06:45:57 -08:00
dependabot[bot] d2bbdbac95 chore(deps): update the Linear SDK to 101.0.0 (#2563)
Preserve Node-only TypeScript consumer support for the Linear client declarations.
2026-11-10 06:29:39 -08:00
Michael D'Angelo bf98530200 fix(sdk): discover Python for targets when launched from filesystem root (#2569)
* fix(sdk): discover Python for targets when launched from filesystem root

* test(sdk): launch the Python discovery regression from root
2026-11-10 05:44:51 -08:00
Michael D'AngeloandCodex fce296540c fix(windows): tolerate executable metadata changes on first launch (#2555)
* fix(windows): preserve executable pins across first launch

* fix(windows): cancel executable pin verification

* fix: preserve active deep worker cancellation errors

* style: format deep worker cancellation catch

* test: make Windows pin metadata fixtures deterministic

---------

Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 03:58:12 -08:00
429ae351c5 fix(windows): stage validated plugin ZIPs for scan workers (#2507)
* Stage validated custom ZIP plugins for Windows scans

* Support long Windows plugin ZIP staging paths

* Prefer shorter trusted paths for Windows ZIP scan plugins

* Keep Windows path-length and ZIP publication tests independently mergeable

* Cancel slow Windows scan-input parent lookup promptly

* Verify ZIP fixtures exercise their temporary-path spies

* test: accept either eligible Windows ZIP resume stage parent

* test(windows): allow the CI timeout for ZIP workspace reuse

* test: restore owned sticky parents before cleanup

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 03:58:00 -08:00
Michael D'Angelo 770d369c12 fix(cli): report local failures from mock scans (#2567) 2026-11-10 03:47:28 -08:00
Michael D'Angelo 34d0e634ea fix(mcp): use UTF-8 for workbench responses and diagnostics (#2566) 2026-11-10 03:46:29 -08:00
fbfba97201 fix(windows): reuse verified generated plugin cache content (#2538)
* fix(windows): retry rolled-back native plugin cache activation

* fix(windows): verify recovered plugin entries against the selected source

* fix(windows): accept regenerated native command output after recovery

* fix(sdk): reuse verified native command migrations

* fix(sdk): verify generated command skills before cache reuse

* fix(sdk): preserve runtime files alongside matching native command output

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 02:29:30 -08:00
Michael D'AngeloandCodex 943ea05777 fix(windows): preserve long Git metadata in reviewed patch replay (#2543)
* fix(windows): preserve long Git metadata in reviewed patch replay

* fix(windows): keep reviewed patch replay within source limits

* fix(windows): preserve metadata-free LF patch replay

* test(workbench): select short replay case only on Windows

---------

Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 02:28:58 -08:00
a353226b47 fix(workbench): pin Git metadata on another Windows fixed drive (#2539)
* fix(workbench): recover nested Windows inventories with a pinned Git marker

* fix(workbench): pin Git metadata on a separate Windows fixed drive

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 02:28:49 -08:00
Michael D'Angelo 6993830d5d fix(native): read sealed artifacts in searchable Linux directories (#2564)
* fix(native): read sealed artifacts in searchable Linux directories

* test(native): unlink the known directory symlink in the scan read proof
2026-11-10 02:18:52 -08:00
Michael D'Angelo a86445c841 fix(scan): isolate Git pathspec modes for file inventories (#2565) 2026-11-10 02:14:50 -08:00
Michael D'Angelo 0384bb30e5 fix(sdk): stage knowledge in the selected temporary directory (#2559) 2026-11-10 01:38:12 -08:00
Michael D'Angelo bae3008e79 fix(cli): resolve temporary paths before patching a saved checkout (#2558) 2026-11-10 01:35:55 -08:00
Michael D'Angelo 4ede567343 fix(scan): verify assumed-unchanged files for committed diffs (#2554)
* fix(scan): verify assumed-unchanged files for committed diffs

* test(workbench): read the index flag before asserting

* fix(workbench): isolate Git settings during private index refresh
2026-11-10 01:33:18 -08:00
Michael D'AngeloandCodex 629d3a18ad test(windows): resolve usable Python in scan fixtures (#2553)
* test(windows): probe Python for stopped scan fixtures

* test(windows): probe Python in result contract fixtures

* test(windows): reuse prepared Python in isolated imports

* test(python): use normal isolated child deadline

---------

Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 01:19:34 -08:00
Michael D'AngeloandCodex 337dd60c96 fix(windows): grant scan workers explicit source read access (#2545)
* fix(windows): configure explicit read access to scan sources

* fix(windows): preserve source reads through MCP launch

* test(mcp): expect repository environment forwarding

---------

Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-10 01:19:23 -08:00
Michael D'Angelo 1c4431b36e fix(workbench): preserve explicit usage database paths (#2556)
* fix(workbench): preserve explicit usage database paths

* test(workbench): close usage fixtures before renaming them

* test(workbench): use supported database names on each host
2026-11-10 00:58:45 -08:00
Michael D'Angelo a0fedec4ca fix(runtime): honor literal POSIX executable override paths (#2551)
* fix(runtime): honor literal POSIX executable override paths

* fix(runtime): retain the lookup origin of padded executable paths

* fix(runtime): keep bare executable overrides on their original lookup path
2026-11-10 00:14:26 -08:00
Michael D'Angelo cd47bb2b98 fix(plugin): preserve trailing whitespace in POSIX scan roots (#2552) 2026-11-09 23:40:46 -08:00
Michael D'Angelo 9792d360be fix(container): record the Wolfi Canvas 1.1.0 source and Skia notice (#2549) 2026-11-09 22:54:33 -08:00
Michael D'Angelo 9161e1adbc fix(sdk): preserve whitespace in POSIX state directory overrides (#2548) 2026-11-09 22:52:19 -08:00
Michael D'Angelo e588bcd7fd fix(sdk): register local marketplaces in Codex homes containing a hash (#2547) 2026-11-09 22:32:37 -08:00
f91c51e514 fix(workbench): preserve Windows checkout identity across Python versions (#2541)
* fix(windows): resume Deep Scans before the first checkpoint

* fix(windows): retain the resume directory handle through registration

* fix(windows): finish Deep output registration after cancellation

* fix(windows): retain registration control across plugin entrypoints

* fix(windows): read Deep resume identities from pinned handles

* fix(windows): preserve Deep Scan checkout identity across Python versions

* fix(windows): verify bound checkouts throughout Deep Scan recovery

* fix(workbench): keep scan history when a legacy checkout moves

* test: include checkout binding in migration expectations

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
Co-authored-by: Codex <codex@users.noreply.github.com>
2026-11-09 21:50:14 -08:00
Michael D'Angeloandmldangelo-oai ff9f8dda4d fix(plugin): publish new patch files on musl without hard links (#2530)
* fix(plugin): publish new patch files on musl without hard links

* test(plugin): close the rename fixture directory explicitly

* test(plugin): select the raw rename syscall test only on Linux

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 21:50:08 -08:00
Lanre Shittuandmldangelo-oai e3280a63a5 fix(knowledge-base): skip DOCX content control placeholder text (#2490)
* fix(knowledge-base): skip DOCX content control placeholder text

* fix(knowledge-base): preserve filled Word content controls

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 21:43:37 -08:00
Lanre Shittuandmldangelo-oai a8e7c717d7 fix(cli): use the singular for one review round in Deep Scan stop reasons (#2443)
Deep Scan accepts --stop-after-no-new 1 and --max-discovery-runs 1, but
the completion summary then said "The last 1 review rounds" or "Reached
the limit of 1 review rounds". Use the singular when the count is one.

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 21:42:53 -08:00
Michael D'Angelo 41c53a297a fix(release): allow more time for npm package availability (#2532) 2026-11-09 21:41:36 -08:00
Michael D'Angeloandmldangelo-oai 5813bb1b66 fix(runtime): find system Python for Linux accounts without a home (#2509)
* fix(plugin): fall back to system Python when a Linux UID has no home

* fix(sdk): discover system Python when a Linux UID has no home

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 21:40:56 -08:00
Michael D'AngeloandMichael D'Angelo 9534e7fd6e docs: shorten the npm package README (#2542)
* docs: shorten the npm package README

* docs: restore scan scope, CI behavior, and results guidance

---------

Co-authored-by: Michael D'Angelo <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-09 21:40:18 -08:00
Michael D'Angeloandmldangelo 6871181ef9 fix: preserve Continuum import retries and active sign-in credentials (#2531)
* fix(publish): explain when Cloud import is unavailable

`publish findings --to cloud` starts with the repository catalog. For a
ChatGPT account or deployment without Codex Security Cloud import, that
request returns 404 and the CLI printed only "Cloud import failed (HTTP
404). Not found", which does not say whether the repository, the file, or
the account was missing.

Keep the server's text and add the same explanation `publish scan` gives
for this case: Cloud import is not available for this account or
deployment. Other statuses and endpoints are unchanged.

* fix(publish): handle an empty catalog error response

* docs(imports): correct AWS Continuum and mktemp guidance

- Name the first AWS CLI v2 release with `aws continuum` (2.38.5); earlier
  v2 releases reject the command.
- Say that validation results come with findings Continuum detects, while
  findings submitted to Continuum can omit them.
- macOS `mktemp -d` ignores TMPDIR, so the advice to set TMPDIR did not
  move report directories there. Suggest a template instead.

* docs(imports): honor temporary report paths and clarify validation evidence

* fix(imports): read Continuum weakness IDs from subCategory

Findings that AWS Continuum detects itself omit cweIds and name their
weakness only in subCategory, for example "CWE-89: Improper
Neutralization ...". The reader mapped weakness_ids from cweIds alone,
so every native Continuum code finding imported without a CWE.

Fall back to the leading CWE ID in subCategory when cweIds is absent.
Explicit cweIds still win, and the previous-release replay projection
keeps reading cweIds only.

* fix(imports): preserve Continuum replay and evidence admission

* fix(cli): point native sign-in hints at codex-security login

After starting browser sign-in, native Codex prints "On a remote or
headless machine? Use `codex login --device-auth` instead." Running that
command signs in to the regular Codex home, not the Codex Security
credential home, so the suggested recovery does not help.

For the sign-in commands that pass native output straight through
(login, login status and logout), forward native stderr through a small
streaming rewrite of `codex login` to `codex-security login`. Stdin and
stdout stay attached to the terminal, other output is unchanged, and only
a possible partial match is held back between chunks.

* fix(cli): forward login hints and reap interrupted sign-ins

* fix(auth): sign in with the credential storage set in Codex config

On macOS, a fresh `codex-security login` could not be used to publish to
Cloud. Scans write `cli_auth_credentials_store = "auto"` into the Codex
Security credential home, so native login saved the token in the system
keyring and removed auth.json, while Cloud publication reads file-backed
credentials only.

The documented fix, setting `cli_auth_credentials_store = "file"` in
Codex config.toml and signing in again, had no effect: `login` used
whatever the last scan wrote, and SDK scans ignored the user's Codex
config for sign-in settings (only skill commands mirrored it).

- Layer the user's Codex config sign-in settings
  (cli_auth_credentials_store, forced_login_method,
  forced_chatgpt_workspace_id) between the wrapper defaults and explicit
  overrides in mergedCodexConfig, so scans, their runtime config and Deep
  Scan workers use them. A Codex config that cannot be read or parsed
  sets no preference here; the commands that use it still report why.
- Before `login` and `login status`, write the keys that config sets into
  the credential home. Native argv is unchanged, so managed policy still
  wins. Unset keys and `logout` leave the stored location alone.
- Make the Cloud sign-in error and CLI docs name the setting and command.

* fix(cli): exit interrupted login when stderr stops draining

* fix(auth): keep sign-in, credential cleanup, and Cloud publication consistent

* fix(sdk): cancel queued logins without aborting settled operations

* test(sdk): guard the budget cancellation wait after usage is recorded

---------

Co-authored-by: mldangelo <michael.l.dangelo@gmail.com>
2026-11-09 21:35:39 -08:00