Commit Graph
2367 Commits
Author SHA1 Message Date
Michael D'Angelo 17510c50c0 Test executable search protections after patch context rebinding 2026-11-04 22:35:56 +00:00
Michael D'Angelo ac4b1f0ba7 fix(patch): retain executable trust roots when rebinding Git 2026-11-04 22:34:58 +00:00
Michael D'Angelo 5fab9b05be Merge reviewed publication checks with the original Git configuration context 2026-11-04 22:19:40 +00:00
Michael D'Angelo c97aabe168 Check parent and nested clean filters before publication snapshots 2026-11-04 22:19:18 +00:00
Michael D'Angelo 43bb88c526 fix(patch): inspect nested filters before capturing publication snapshots 2026-11-04 22:16:14 +00:00
Michael D'Angelo e6c1fe2340 Require review of checkout-filtered local content before publication and verify cancellation events 2026-11-04 14:12:39 -08:00
Michael D'Angelo f50ae63d37 Use the SDK shard timeout for the oversized context integration test 2026-11-04 21:55:44 +00:00
Michael D'Angelo b67accce60 Merge the patch publication parent after its Windows path fix 2026-11-04 21:55:42 +00:00
Michael D'Angelo 76bf0cca7d Merge main and preserve long Windows paths in private Git snapshot ACL checks 2026-11-04 13:53:52 -08:00
Michael D'Angelo c2c2803a8a fix(sdk): forward component scan lifecycle and deep progress (#2317)
* fix(sdk): forward component scan lifecycle and deep progress

* ci: retry managed Code Quality after GitHub rate limiting

GitHub rejected direct retries for the managed workflow. Recheck the identical source tree after its installation quota recovered.

* Deliver fixture signals before advancing the verification batch
2026-11-04 13:43:53 -08:00
Michael D'Angeloandmldangelo-oai 2aea01bee0 fix(deep-scan): recover the latest public findings on interruption (#2310)
* fix(deep-scan): recover the latest public findings on interruption

* ci: retry managed Code Quality after GitHub rate limiting

GitHub rejected direct retries for the managed workflow. Recheck the identical source tree after its installation quota recovered.

* ci: retry managed Code Quality after GitHub installation rate limit

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 13:42:43 -08:00
Michael D'Angeloandmldangelo-oai 41a8e15c47 fix(imports): preserve Guardian repository identity during replay (#2308)
* fix(imports): preserve Guardian repository identity during replay

* ci: retry managed Code Quality after GitHub rate limiting

GitHub rejected direct retries for the managed workflow. Recheck the identical source tree after its installation quota recovered.

* ci: retry managed Code Quality after GitHub installation rate limit

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 13:42:21 -08:00
Michael D'Angeloandmldangelo-oai b71feff1fd fix(sdk): persist canceled scans with their measured cost (#2307)
* fix(sdk): persist canceled scans with their measured cost

* test(sdk): check canceled status in the installed package

* test(sdk): distinguish explicit cancellation from budget failure

* fix(sdk): retain cost monitor failures in saved scan history

* fix(hosted): align the final scan receipt with its saved lifecycle

* fix(hosted): distinguish a caller deadline from explicit cancellation

* ci: retry managed Code Quality after GitHub installation rate limit

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 13:41:48 -08:00
Michael D'Angelo 424c564bd1 fix(knowledge-base): preserve documents with AppleDouble-style names (#2312)
* fix(knowledge-base): preserve documents with AppleDouble-style names

* ci: retry managed Code Quality after GitHub rate limiting

GitHub rejected direct retries for the managed workflow. Recheck the identical source tree after its installation quota recovered.

* ci: retry managed Code Quality after GitHub installation rate limit
2026-11-04 13:39:03 -08:00
Michael D'Angelo 0ad515bc52 fix(windows): inspect long credential-home descendant paths (#2294)
* fix(windows): inspect long credential-home descendant paths

* test(windows): load the native ACL module for the long-path assertion

* test(windows): share credential file ACL assertions
2026-11-04 13:38:32 -08:00
Michael D'Angelo f823301ae9 feat(deep-scan): share investigation notes between workers (#2265)
* feat(deep-scan): plan complementary reviews and share worker evidence

* test(deep-scan): wait for the discovery startup error

* style(deep-scan): format worker launch assertion

* ci: retry managed Code Quality after GitHub installation rate limit
2026-11-04 13:38:07 -08:00
Michael D'Angeloandmldangelo-oai b6d1e0ddb7 feat(imports): read native Trivy dependency reports in the SDK (#2087)
* feat(imports): collect hosted Snyk and Semgrep findings

* feat(imports): import native Trivy findings alongside hosted scanners

* fix(imports): align Snyk Issues API version

* refactor(imports): simplify Trivy handling and preserve repository binding

* fix(imports): compare Trivy checkout and transport identities

* fix(imports): distinguish Trivy report targets from Git remotes

* test(imports): share Trivy replay fixtures

* fix(imports): bind Trivy findings to the source identities retained by the scanner

* fix(imports): keep ambiguous Trivy origins separate from display labels

* fix(imports): verify Trivy checkpoint provenance and separate report inspection

* fix(imports): corroborate Trivy roots and recognize interrupted requests

* fix(imports): share Trivy retry identity across file and selected findings

* fix(imports): separate raw scanner evidence from repository claims

* fix(imports): preserve native Trivy context across empty and selected results

* fix(imports): keep Trivy repository claims independent of SSH aliases

* fix(imports): corroborate Trivy remote targets without resolving SSH aliases

* refactor(imports): compare local Trivy claims using the approved Git host rules

* test(imports): give Trivy source comparison cases a consistent signature

* refactor(imports): simplify hosted scanner collection and verify repository scope

* fix(imports): preserve verified GitHub SSH aliases in mixed findings

* fix(imports): parse SSH authority without backtracking

* refactor(imports): reuse the verified Snyk report repository

* fix(imports): keep verified enterprise GitHub identity during local import

* fix(imports): preserve hosted source scope across collection and replay

* fix: bind hosted credentials and replay to the selected source

* fix: preserve provider provenance across hosted imports

* fix: preserve scanner evidence and verified repository aliases

* fix: retain source constraints when projecting scanner findings

* fix(imports): enforce scanner region and repository bindings

* fix(imports): check all repository claims in hosted reports

* fix(imports): preserve hosted finding evidence and project scope

* fix(imports): compare hosted repository identities consistently

* fix(imports): preserve repository bindings across SDK representations

* fix(imports): verify declared repositories against retained evidence

* fix(imports): scope hosted provenance and migrate published checkpoints

* fix(imports): verify legacy scope before resuming hosted uploads

* fix(imports): distinguish Git helper remotes from local paths

* fix(imports): compare effective Git remotes without losing URL bytes

* fix(imports): verify repository paths using their Git transport semantics

* fix(imports): preserve saved scanner identifiers and streamline large collections

* fix(imports): keep native scanner reports on the plain JSON parser

* fix(imports): retain publishable Semgrep messages and verified Git remotes

* fix(imports): preserve repository scope across scanner and Git URL forms

* fix(imports): require unambiguous scanner source and request identities

* fix(imports): retain verified repository mappings through replay

* fix(imports): validate retained scanner scope consistently

* fix(imports): enforce scanner bindings across destinations and retries

* fix(imports): preserve exact finding and repository identities

* fix(imports): preserve scanner field types and simplify approved scopes

* fix(imports): keep exact scanner decimal values through replay

* fix(imports): preserve verified repository identity across projections

* fix(imports): keep repository comparisons consistent during reads

* fix(imports): align public host matching and isolate Git fixtures

* fix(imports): preserve numeric evidence and verify Git remote identity

* test(imports): share the Semgrep checkout fixture

* fix(imports): verify Git helper resolution when a transport alias is configured

* test(imports): keep the transport alias in the fixture repository

* fix(imports): verify checkout-independent transports and preserve Snyk platform hints

* fix(imports): match configured remotes offline and require zoned Snyk timestamps

* fix(imports): preserve prepared runners and scanner input contracts

* fix(imports): retain inherited workbench dependencies during preparation

* fix(packaging): pass validated tar members through a file

* fix(imports): bound endpoint interpolation and refresh the Action bundle

* fix(imports): recheck the selected workbench opt-in after reading

* fix(imports): preserve native Trivy checkout paths on Windows

* fix(imports): validate retained Trivy sources and provider ownership

* fix(imports): preserve replay and repository identity checks

* fix(imports): retain compatible scanner provenance

* feat(imports): normalize selected Semgrep Code findings for local import

* feat(imports): import saved Semgrep Platform selections from the CLI

* fix(imports): preserve selected Semgrep occurrences across native representations

* feat(imports): collect Semgrep Platform findings by project and ref

* feat(imports): collect and import Snyk project issues locally

* fix(imports): check hosted Semgrep Git remotes once

* feat(imports): publish hosted Semgrep and Snyk findings to Cloud

* fix(imports): verify Snyk project scope and pagination on replay

* fix(imports): preserve Semgrep scope and evidence on replay

* test(imports): isolate fixture Git config with a portable file

* fix(imports): match Semgrep project labels to the verified repository

* fix(imports): require original repository names for URL-less Semgrep rows

* fix: preserve hosted source bindings across Cloud retries

* fix(imports): validate projected Snyk issues and regional requests

* fix(imports): bind selected Semgrep rows to the project URL path

* fix(imports): converge historical and current Semgrep evidence

* docs(imports): clarify Semgrep selection IDs and repository names

* test(imports): exercise adjacent signed int64 Semgrep findings

* fix(imports): bind Snyk selections to verified native issues

* fix(imports): preserve selected findings when native SAST evidence is incomplete

* fix(imports): preserve native Semgrep project IDs and file evidence

* fix(imports): validate Semgrep report bindings and replay equivalent evidence

* fix(imports): retain verifiable Snyk evidence across replay

* perf(imports): check scanner paths without rescanning repeated separators

* fix(imports): retain Semgrep locations for colons inside a relative path

* fix(imports): preserve validated Semgrep repository and occurrence evidence on replay

* test(imports): reuse normalized Snyk fixture setup

* fix(imports): verify Snyk asset scope across selected findings

* fix(imports): resolve configured Git sources and skip ordinary reference scans

* fix(imports): preserve Snyk selection scope and archived evidence

* fix(imports): validate each scanner's retained repository claims

* fix(imports): retain Snyk target proof and stable replay

* fix(semgrep): require named remotes for legacy Git metadata

* fix(imports): validate native Semgrep evidence before choosing its projection

* fix(imports): respect Snyk project origin when selecting evidence

* fix(semgrep): verify reset remotes and active branch defaults

* fix(cli): preserve original Snyk diagnostics in structured output

* fix(imports): match shared Semgrep SSH aliases with each reader

* fix(semgrep): require scope for retained v1 findings in marked reports

* style(docs): remove extra blank line in Semgrep guide

* refactor(imports): share Git transport byte conversion

* fix(imports): check HTTP Git credentials in linear time

* fix(imports): preserve Semgrep product and source path on replay

* Preserve Sonar skill notices for structured import output

* fix(imports): check scanner data without reading unused finding IDs

* fix(imports): inspect scanner evidence in approved retry requests

* feat(imports): import selected findings through Semgrep Guardian

* test(imports): verify Guardian and numeric Web API IDs on replay

* docs(imports): format the scanner identity table

* test: prepend exact JSON members to Snyk response fixtures

* fix(imports): keep Guardian evidence local across Cloud publication retries

* refactor(imports): simplify Trivy SDK provenance handling

* ci: retry managed Code Quality after GitHub installation rate limit

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 13:37:26 -08:00
Michael D'Angelo 6de45f81ac feat(import): collect and import Checkmarx SAST findings (#2269)
* feat(import): collect and import Checkmarx SAST findings

* fix(import): bind Checkmarx evidence and isolate vendor collection

* fix(import): protect collector inputs and preserve upload retries

* fix(import): isolate CxFlow startup and validate retained scan scope

* fix(import): constrain authenticated collection and verify projected evidence

* fix(import): preserve trusted startup and match Checkmarx repository scope

* fix(import): reap vendor processes interrupted during startup

* fix(import): isolate CxFlow credentials and preserve Checkmarx report scope

* fix(import): verify Checkmarx collector scope and credential source

* refactor(import): simplify Checkmarx collection and repository checks

* refactor(import): verify Checkmarx scan scope while reading occurrence evidence

* Exclude in-flight schema writes from eval runtime staging
2026-11-04 13:37:09 -08:00
Michael D'Angelo 4abc9a83ac fix(cli): explain the cost limit in scan dry runs (#2295)
* Explain the resolved scan cost limit in CLI dry runs

* Test that dry-run forwards the configured cost limit
2026-11-04 13:36:38 -08:00
Michael D'Angelo cde200d79f test: share SDK progress schedules and workflow fixtures (#2338) 2026-11-04 13:31:22 -08:00
Michael D'Angelo 0b755454b0 fix(bulk-scan): reject invalid saved attempt numbers (#2292)
* fix(bulk-scan): reject invalid saved attempt numbers

* fix(bulk-scan): stop before attempt numbers overflow

* ci: retry rate-limited GitHub code quality upload
2026-11-04 13:22:54 -08:00
Michael D'Angelo 644a3c00f5 Merge active include validation with caller-relative configuration capture 2026-11-04 21:15:42 +00:00
Michael D'Angelo 07bb80e8e9 Test provenance of active Git includes before patch model launch 2026-11-04 21:15:03 +00:00
Michael D'Angelo 67749d76b9 fix(patch): validate active Git includes before granting model access 2026-11-04 21:14:51 +00:00
Michael D'Angelo d031235b91 ci: build the bundled plugin for rotating property tests (#2337) 2026-11-04 13:14:20 -08:00
dependabot[bot]andMichael D'Angelo 8a690db394 chore(deps): bump the third-party group across 3 directories with 2 updates (#2334)
Bumps the third-party group with 1 update in the /github-action directory: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).
Bumps the third-party group with 1 update in the /plugins/codex-security/mcp-app directory: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).
Bumps the third-party group with 2 updates in the /sdk/typescript directory: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [@inquirer/prompts](https://github.com/SBoudrias/Inquirer.js).


Updates `@types/node` from 26.6.5 to 26.6.6
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@types/node` from 26.6.5 to 26.6.6
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@types/node` from 26.6.5 to 26.6.6
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `@inquirer/prompts` from 8.7.4 to 8.7.5
- [Release notes](https://github.com/SBoudrias/Inquirer.js/releases)
- [Commits](https://github.com/SBoudrias/Inquirer.js/compare/@inquirer/prompts@8.7.4...@inquirer/prompts@8.7.5)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.6.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: third-party
- dependency-name: "@types/node"
  dependency-version: 26.6.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: third-party
- dependency-name: "@types/node"
  dependency-version: 26.6.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: third-party
- dependency-name: "@inquirer/prompts"
  dependency-version: 8.7.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: third-party
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael D'Angelo <mdangelo@openai.com>
2026-11-04 13:12:07 -08:00
Michael D'Angelo a1af6113ad Allow Windows native grant tests to complete all sandbox launches 2026-11-04 21:02:42 +00:00
Michael D'Angelo 7ba1553804 fix(deep-scan): preserve distinct findings and bound duplicate comparisons (#2313)
* fix(deep-scan): preserve distinct findings and bound duplicate comparisons

* fix(deep-scan): retain partial original reports when resuming checkpoints

* ci: retry managed code scanning after GitHub rate limiting

* Keep exact repeats attached to legacy findings with incomplete ancestry

* ci: retry managed Code Quality after GitHub installation rate limit
2026-11-04 13:02:27 -08:00
Michael D'Angelo bd59acf5cc build(sdk): ship only the embedding tokenizer and its encoding (#2333)
* ci: audit bundled MCP and triage eval dependencies

* build(sdk): ship only the embedding tokenizer and its encoding

* fix(packaging): require complete tokenizer inventories

* test(sdk): check installed tokenizer parity without build dependencies
2026-11-04 12:58:43 -08:00
dependabot[bot] e34cbc7b9f chore(deps): bump @linear/sdk from 99.0.0 to 100.0.0 in /sdk/typescript (#2336)
Bumps [@linear/sdk](https://github.com/linear/linear) from 99.0.0 to 100.0.0.
- [Release notes](https://github.com/linear/linear/releases)
- [Commits](https://github.com/linear/linear/compare/@linear/sdk@99.0.0...@linear/sdk@100.0.0)

---
updated-dependencies:
- dependency-name: "@linear/sdk"
  dependency-version: 100.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-04 12:25:55 -08:00
cbf9ec372b fix(hooks): use trusted Git when installing hooks (#92)
* fix: trust git when installing hooks

* test(hooks): isolate trusted Git regression environment

---------

Co-authored-by: kartikshukla17 <kartikshukal1707@gmail.com>
Co-authored-by: mldangelo-oai <mdangelo@openai.com>
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 12:15:58 -08:00
75d4784af1 fix(findings): align severity badges in finding tables (#122)
* fix: align the severity badge column in finding tables

`severity.padEnd(8)` is a no-op for INFORMATIONAL, which is thirteen
characters, so informational findings pushed their title five columns to
the right of every other severity and broke the table:

      HIGH      Short severity row
      INFORMATIONAL  Long severity row

The badge width and the two indents that line up beneath it were three
independent literals (8, 14, 14), so they only agreed while every label
happened to fit in eight columns.

Derive all of them from the label set and abbreviate INFORMATIONAL to
INFO. Both values are unchanged at 8 and 14, so only the informational
label differs; spelling the word out instead would cost every finding
title five characters, which matters most at the 48-column minimum.

* fix(cli): preserve aligned finding details with compact severity badges

* fix(docs): keep generated Action reference formatted

Render the generated Action inputs and outputs as Markdown lists so documentation generation and repository formatting agree. Preserve all names, defaults, descriptions, and workflow examples.

---------

Co-authored-by: mldangelo-oai <mdangelo@openai.com>
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 12:14:13 -08:00
Michael D'Angeloandmldangelo-oai 6658112e45 test: consolidate progress runners and publication fixtures (#2327)
* test(sdk): share progress runners and import fixtures

* test(plugin): centralize publication and deadline fixtures

* test(mcp): model publication outcomes directly

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 12:08:05 -08:00
Michael D'Angeloandmldangelo-oai 47d7f02295 refactor(mcp): simplify lifecycle and protocol test fixtures (#2186)
* refactor(mcp): simplify reducer validation and lifecycle fixtures

* test(mcp): pass inventory fixture paths as shell arguments

* test(mcp): inspect the unwrapped completion result

* ci: retry managed Code Quality after GitHub installation rate limit

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 12:07:26 -08:00
23c37b9c98 feat(container): restrict sockets and process tracing in Compose (#160)
* Harden sandbox seccomp: drop ptrace and tighten socket domain allowlist

Two fixes from a security audit of this repo:

- Remove process_vm_readv/process_vm_writev/ptrace from the allowlist.
  All sandboxed processes share the same uid, so ptrace let one process
  inspect/modify another's memory (e.g. read a secret held by a sibling
  process) inside the sandbox -- inter-process isolation was effectively
  void despite the seccomp profile's intent.

- Replace the 3 socket-domain rules with an explicit allowlist of
  AF_UNIX(1)/AF_INET(2)/AF_INET6(10). The previous rules (domain<38,
  domain==39, domain>40) only actually blocked AF_ALG(38) and
  AF_VSOCK(40) -- AF_NETLINK(16) and AF_PACKET(17) were allowed, along
  with everything else outside that narrow gap, making the egress
  control close to a no-op.

Verified with a real Docker build + run on a separate host, under the
exact production security contract (--cap-drop ALL --security-opt
no-new-privileges + this seccomp profile):
- DNS resolution (getaddrinfo) and `git clone` over HTTPS still work
  (AF_INET/AF_INET6 unaffected) -- confirms this doesn't break the
  scanner's own legitimate network use.
- AF_NETLINK and AF_PACKET socket() calls now fail with EPERM inside
  the container (previously succeeded) -- confirms the fix is real, not
  cosmetic.

Local commit only -- this is an audit clone of openai/codex-security,
not a fork with push access.

* Fail closed if not launched with --cap-drop ALL --security-opt no-new-privileges

docker/codex-security-seccomp.json unconditionally allows mount/pivot_root/
unshare/setns/clone for Codex's own unprivileged Bubblewrap sandboxing --
those syscalls can't be removed without breaking that feature entirely.
Their safety previously depended entirely on a comment in the seccomp
profile asserting the caller runs with --cap-drop ALL and
--security-opt no-new-privileges (true for compose.yaml, not enforced for
a bare `docker run`).

Adds a runtime self-check at the top of the entrypoint: read
/proc/self/status, refuse to start (exit 3, clear message) unless CapEff
is all-zero and NoNewPrivs is 1. Converts an undocumented-until-you-read-
the-seccomp-comment assumption into a loud, immediate failure.

Verified with a real Docker build + run on a separate host, 4 launch
scenarios:
- --cap-drop ALL --security-opt no-new-privileges (contract met): starts
  normally.
- No flags, default non-root user (10001 from the Dockerfile): blocked by
  the NoNewPrivs check.
- --security-opt no-new-privileges only, no --cap-drop: starts -- correct,
  not a false block, since a non-root process already has an empty
  effective capability set regardless of --cap-drop.
- --user root, no flags: blocked by the CapEff check, message shows the
  actual non-empty capability bitmask (00000000a80425fb).

Local commit only -- this is an audit clone of openai/codex-security, not
a fork with push access.

* Address Codex review: CI hardening flags, AF_NETLINK for bwrap, drop socketcall

Three fixes for the automated review findings on this PR:

1. .github/workflows/container-ci.yml: the bare `docker run` smoke-test
   invocations (Verify bundled scanner, Reject interactive repository
   discovery) never passed --cap-drop ALL --security-opt no-new-privileges,
   so entrypoint.sh's new fail-closed check aborted them with exit 3 before
   --version/help/discovery validation could run. Added the flags to match
   the production contract these tests are supposed to exercise.

2. docker/codex-security-seccomp.json: the AF_UNIX/AF_INET/AF_INET6-only
   socket() allowlist rejected AF_NETLINK, which Bubblewrap needs (a
   NETLINK_ROUTE socket) to run RTM_NEWLINK/RTM_NEWADDR when configuring
   the loopback interface inside its own isolated network namespace during
   codex sandbox startup. The CI workflow already silently tolerated this
   by retrying with --enable use_legacy_landlock; added an explicit
   AF_NETLINK(16) rule restricted to protocol NETLINK_ROUTE(0) so the
   normal Bubblewrap path succeeds without needing that fallback.

3. docker/codex-security-seccomp.json: "socketcall" was unconditionally
   allowed in the generic syscall list with no argument filtering. On the
   supported SCMP_ARCH_X86 subarchitecture, this legacy multiplexer lets a
   32-bit executable open sockets (including AF_NETLINK/AF_PACKET) via
   socketcall's own SYS_SOCKET dispatch, bypassing the domain-restricted
   socket() rules entirely -- seccomp can't filter socketcall by socket
   domain since that lives behind a pointer argument, not a plain integer,
   so the safe fix is to stop allowing it unconditionally. socketpair (only
   ever AF_UNIX by kernel definition) stays allowed.

Verified with a real Docker build + container runs on a separate host
(not the CI runner, not the openai org):
- Bare `docker run` (no flags): still fails closed with exit 3, unchanged.
- With the added flags: --version, bulk-scan --help, info --json all
  exit 0; the discovery-rejection test still returns exit 2 with the
  expected message.
- A/B on the sandbox seccomp: the pre-fix profile reproduces the exact
  error from the review ("bwrap: loopback: Failed to create NETLINK_ROUTE
  socket: Operation not permitted"); the fixed profile runs the same
  `codex sandbox /usr/bin/true` command to completion (exit 0) without
  the use_legacy_landlock fallback.
- Normal HTTPS egress (AF_INET, via Node's https module) still works
  under the fixed profile, confirming the socketcall removal doesn't
  regress git-clone/API access on x86_64.

---------

Co-authored-by: mldangelo-oai <mdangelo@openai.com>
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 12:06:09 -08:00
a33264976d test(release): select Git Bash for Windows Git layouts (#225)
* test(release): select Git Bash explicitly on Windows

* test(release): use resolved Bash for remaining shell checks

* test(release): resolve Git Bash from Git's executable directory

* test(release): avoid synchronous Git probes in shell lookup

* test: restrict Git Bash lookup to Git for Windows layouts

Signed-off-by: Michael D'Angelo <mdangelo@openai.com>

---------

Signed-off-by: Michael D'Angelo <mdangelo@openai.com>
Co-authored-by: Michael D'Angelo <mdangelo@openai.com>
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 12:05:25 -08:00
3f31707a38 fix(runtime): protect HF_TOKEN and defer the Hugging Face scan preset (#277)
* feat: add Hugging Face Inference Providers support

Route scans through Hugging Face's OpenAI-compatible router with HF_TOKEN,
matching the existing OpenRouter and Fireworks provider pattern.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(runtime): keep Hugging Face tokens out of workbench helpers

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
Co-authored-by: Michael D'Angelo <mdangelo@openai.com>
2026-11-04 12:04:51 -08:00
Michael D'Angelo 6317a6c3f1 ci: retry managed Code Quality after GitHub installation rate limit 2026-11-04 20:00:41 +00:00
Diyaz Seisenbayevandmldangelo-oai ac6a269f01 fix(activity): preserve shell-escaped whitespace in repository paths (#2163)
* fix(activity): narrow escaped POSIX whitespace handling

* test(activity): cover narrow POSIX paths and literal argv

* style(activity): format narrow POSIX fix

* fix(activity): retain existing attribution alongside escaped POSIX words

* test(activity): preserve mixed quoted paths and repository directories with blanks

* style(activity): format mixed-path regression tests

* fix(activity): retain literal argv and quoted command boundaries

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 11:56:16 -08:00
6703d0a3b2 fix(cost): preserve worker activity when a session log is unreadable (#970)
* fix(cost): report an inaccessible session log once, not on every poll

readSessionUsage quarantines a log it cannot parse, so the guard at the top
of the function skips it on later polls, but a log it cannot open records
nothing. The next poll opens the same file and fails identically for the life
of the scan, and because an unopenable log never produced a thread id, the
failure also escapes the thread-tree filter in #readSessions. stop() awaits
refresh() unguarded, so the final poll can reject after the turn completed and
discard the caller's usage.

Quarantine the session on an access refusal the process cannot clear by
retrying, mirroring the parse-failure exit. Other open failures keep retrying:
a process-wide shortage such as EMFILE clears on its own, and retiring a
session for it would stop observing usage that could still be read.

* fix(sdk): keep reporting healthy worker activity on session read errors

* Preserve retry diagnostics for unknown resource errors

* Preserve fail-fast cost limits and session error priority

* Keep the first blocking session error when traversal stops

---------

Co-authored-by: Michael D'Angelo <mdangelo@openai.com>
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 11:46:31 -08:00
bdd5000fee fix(targets): check resolved path types before scan registration (#549)
* fix(targets): reject special path targets in preflight

Resolved against current target validation.

* fix(targets): validate canonical path types during preflight

* Handle unsupported realpath errors for special targets on macOS

Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>

* test(targets): exercise socket preflight in Node

* test(targets): exercise socket rejection in Node and Bun

* fix(targets): validate the resolved path and classify unsupported sockets

* fix(targets): verify filesystem type without losing canonical path bytes

* Scope cancellation test gates to the protected-root lookups

---------

Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
Co-authored-by: Michael D'Angelo <mdangelo@openai.com>
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 11:45:54 -08:00
734ae77cb7 fix(targets): report a failed ignored-but-tracked file listing (#864)
* fix(scan): report a failed ignored-but-tracked file listing

`generate_in_scope_files` adds files that Git tracks but `.gitignore`
excludes, because ripgrep omits them. That `git ls-files` call treated a
spawn failure and any non-zero exit as "no such files", so a repository
whose Git listing fails still produced an inventory and reported success
with those files missing.

Raise `InventoryError` with Git's message instead, matching the ripgrep
call a few lines above, which already fails the inventory on a spawn
error or an unexpected exit status. When no trusted Git executable exists,
`git_command` reports status 127 with no output; the listing is still
skipped then, as Git stays optional for this inventory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(targets): preserve inventory on Git listing failures

* test: reuse accepted source path coverage

* Recognize an empty Git sandbox marker outside a worktree

* Keep shared Git launch and path decoding helpers available to their callers

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Michael D'Angelo <mdangelo@openai.com>
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 11:45:08 -08:00
1eb3692ff6 fix(knowledge-base): omit DOCX drawing positions and sizes from extracted text (#2051)
* fix(knowledge-base): extract DOCX text boxes once without layout values

* fix(knowledge-base): extract DOCX text boxes once

* fix(knowledge-base): keep one readable DOCX alternate without layout values

* fix(sdk): omit DOCX drawing coordinates from knowledge text

---------

Co-authored-by: Michael D'Angelo <mdangelo@openai.com>
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 11:42:37 -08:00
225110bf1e fix(deep-scan): recognize usage limits reported during compaction (#1844)
* fix(deep-scan): recognize usage limits reported during compaction

* test(deep-scan): exercise compaction quotas through worker turns

* test(deep-scan): reuse the worker spawn fixture for terminal events

* refactor(deep-scan): strip the compaction prefix in one step

* test(deep-scan): consolidate quota cases in the errors suite

* test(deep-scan): exercise native disconnects during compaction

---------

Co-authored-by: Codex <codex@users.noreply.github.com>
Co-authored-by: Michael D'Angelo <mdangelo@openai.com>
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 11:41:36 -08:00
c599a8bcdc refactor(config): simplify Cyber access feature selection (#1044)
* fix: preserve cyber access program in scan configuration

Preserve cyber_access_program across scan preflight configuration, profiles, and project configuration schema so the setting is retained during execution.

* refactor(config): simplify Cyber access feature selection

Read the API-key feature gate from the selected profile and root settings
without serializing and reparsing the entire Codex configuration. Preserve
explicit disables and nullish inheritance, and cover profile precedence in
scan configuration and fresh/resumed worker launches.

Co-authored-by: erantianantha <177647815+erantianantha@users.noreply.github.com>

---------

Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
Co-authored-by: erantianantha <177647815+erantianantha@users.noreply.github.com>
Co-authored-by: Michael D'Angelo <mdangelo@openai.com>
2026-11-04 11:40:57 -08:00
279b9639dd test(plugin): cover duplicate closures of a saved task (#978)
fix(plugin): close resolved generic deferrals

Fixes #741

Co-authored-by: Michael D'Angelo <mdangelo@openai.com>
Co-authored-by: mldangelo-oai <269034524+mldangelo-oai@users.noreply.github.com>
2026-11-04 11:40:10 -08:00
Michael D'Angelo e628418066 Merge commit '352044e741c76337bff741c394dad0217f0b8f68' into HEAD 2026-11-04 19:23:36 +00:00
Michael D'Angelo 614cdc887b Pin implicit Git config roots before a patch can move its caller 2026-11-04 19:22:47 +00:00
Michael D'Angelo 352044e741 Merge remote-tracking branch 'origin/main' into HEAD 2026-11-04 19:22:32 +00:00
Michael D'Angelo f86dc7bb73 test: isolate the SDK mutation testing dependencies (#2330) 2026-11-04 11:14:09 -08:00