Commit Graph
8017 Commits
Author SHA1 Message Date
Chris Bookholt 6b986f98ea Merge branch 'codex/psec-4394-git-05a-apply-filters' into codex/psec-4394-git-05b-stage-filters 2026-07-03 20:12:18 -07:00
Chris Bookholt 79728df6d2 Merge branch 'codex/psec-4394-git-05a-apply-filters' into codex/psec-4394-git-05b-stage-filters
# Conflicts:
#	codex-rs/git-utils/src/apply.rs
#	codex-rs/git-utils/src/patch_paths.rs
2026-07-03 20:12:08 -07:00
Chris Bookholt 7311b9f007 Merge branch 'codex/psec-4394-git-04d-guarded-apply' into codex/psec-4394-git-05a-apply-filters 2026-07-03 19:55:34 -07:00
Chris Bookholt fce28dc63f Merge branch 'codex/psec-4394-git-04c-include-config-authority' into codex/psec-4394-git-04d-guarded-apply 2026-07-03 19:54:43 -07:00
Chris Bookholt 380d6ebd62 test(git): respect Windows repository handle pinning 2026-07-03 19:53:49 -07:00
Chris Bookholt ea3a1c1d4d Merge branch 'codex/psec-4394-git-04d-guarded-apply' into codex/psec-4394-git-05a-apply-filters 2026-07-03 19:16:58 -07:00
Chris Bookholt 62c56ee3ac Merge branch 'codex/psec-4394-git-04d-guarded-apply' into codex/psec-4394-git-05a-apply-filters
# Conflicts:
#	codex-rs/git-utils/src/apply.rs
#	codex-rs/git-utils/src/git_command.rs
#	codex-rs/git-utils/src/git_config.rs
#	codex-rs/git-utils/src/git_config_sources/primary_sources.rs
#	codex-rs/git-utils/src/git_config_sources_tests.rs
#	codex-rs/git-utils/src/git_config_tests.rs
#	codex-rs/git-utils/src/guarded_config.rs
#	codex-rs/git-utils/src/guarded_config_tests.rs
#	codex-rs/git-utils/src/patch_paths.rs
#	codex-rs/git-utils/src/patch_paths_tests.rs
#	codex-rs/git-utils/src/repository_authority/authority.rs
2026-07-03 19:15:58 -07:00
Chris Bookholt a61016c0bd Merge branch 'codex/psec-4394-git-04c-include-config-authority' into codex/psec-4394-git-04d-guarded-apply 2026-07-03 19:08:47 -07:00
Chris Bookholt 7f043fda30 Merge branch 'codex/psec-4394-git-04b-primary-config-authority' into codex/psec-4394-git-04c-include-config-authority 2026-07-03 19:08:36 -07:00
Chris Bookholt 409f1f78e7 test(git): allow staged Windows helper 2026-07-03 19:08:26 -07:00
Chris Bookholt d018906d57 Merge branch 'codex/psec-4394-git-04c-include-config-authority' into codex/psec-4394-git-04d-guarded-apply 2026-07-03 18:56:20 -07:00
Chris Bookholt 9d8d964f7d Merge branch 'codex/psec-4394-git-04b-primary-config-authority' into codex/psec-4394-git-04c-include-config-authority 2026-07-03 18:56:05 -07:00
Chris Bookholt 7500615875 Merge branch 'codex/psec-4394-git-04a-config-env' into codex/psec-4394-git-04b-primary-config-authority 2026-07-03 18:55:52 -07:00
Chris Bookholt f6b6a4951f fix(git): allow staged config accessor 2026-07-03 18:55:35 -07:00
Chris Bookholt 463eed4400 fix(git): bind guarded patch operations 2026-07-03 18:36:13 -07:00
Chris Bookholt 9c2e1342a4 fix(git): authorize included config sources 2026-07-03 18:34:27 -07:00
Chris Bookholt 3e1688f2cb fix(git): authorize primary config sources 2026-07-03 18:32:25 -07:00
Chris Bookholt 21ca43303b fix(git): bind configuration environment 2026-07-03 18:29:53 -07:00
Chris Bookholt 809d6129a3 test(git): allow platform-specific staging hook 2026-07-03 17:52:35 -07:00
Chris Bookholt 92d1967d21 fix(git): bind staging to repository authority 2026-07-03 17:31:39 -07:00
Chris Bookholt 6b40c77a0f fix(git-utils): parse Git boolean syntax consistently 2026-07-03 15:55:43 -07:00
Chris Bookholt e674ac9a52 Merge branch 'codex/psec-4394-git-05a-apply-filters' into codex/psec-4394-git-05b-stage-filters 2026-07-02 12:07:12 -07:00
Chris Bookholt 80c59de030 Merge branch 'codex/psec-4394-repository-authority' into codex/psec-4394-git-05a-apply-filters 2026-07-02 12:06:50 -07:00
Chris Bookholt e8e8178e3a Merge branch 'codex/psec-4394-git-03-path-containment' into codex/psec-4394-repository-authority 2026-07-02 12:06:19 -07:00
Chris Bookholt f1c0d32986 Merge branch 'codex/psec-4394-git-02-effective-patch-paths' into codex/psec-4394-git-03-path-containment 2026-07-02 12:06:00 -07:00
Chris Bookholt 80d4da92f0 Merge branch 'codex/psec-4394-trusted-git-runner' into codex/psec-4394-git-02-effective-patch-paths 2026-07-02 12:05:45 -07:00
Chris Bookholt 63f6aa5da5 Merge branch 'bookholt/deny-transport-for-local-git' into codex/psec-4394-trusted-git-runner 2026-07-02 12:05:27 -07:00
Chris Bookholt 83e062ebaa Merge remote-tracking branch 'origin/main' into bookholt/deny-transport-for-local-git 2026-07-02 12:05:07 -07:00
Michael Bolin 0ccb676dd0 fix: address quick-xml security advisories (#30941)
## Why

The `cargo-deny` job on `main` began failing after
[RUSTSEC-2026-0194](https://rustsec.org/advisories/RUSTSEC-2026-0194)
and
[RUSTSEC-2026-0195](https://rustsec.org/advisories/RUSTSEC-2026-0195)
flagged the workspace `quick-xml 0.38.4`. Both denial-of-service issues
are fixed in `quick-xml 0.41.0`.

A `quick-xml 0.39.4` copy must temporarily remain because the latest
`plist` and `wayland-scanner` releases have not adopted 0.41 yet.
Neither retained path accepts attacker-controlled XML at runtime:
`plist` does not exercise the affected APIs, and `wayland-scanner`
parses trusted protocol definitions at build time. Compatible upstream
bumps are already open in
[rust-plist#191](https://github.com/ebarnard/rust-plist/pull/191) and
[wayland-rs#938](https://github.com/Smithay/wayland-rs/pull/938).

## What changed

- Upgrade the workspace `quick-xml` dependency used by `codex-protocol`
to 0.41.0.
- Refresh `Cargo.lock` and `MODULE.bazel.lock`; this also updates
`plist` to 1.9.0 and `wayland-scanner` to 0.31.10.
- Add synchronized, temporary `cargo-deny` and `cargo-audit` exceptions
for the trusted `quick-xml 0.39.4` paths, with both upstream releases
recorded as the removal condition.

## Testing

- `cargo deny check`
- `just test -p codex-protocol` (238 tests)
- `just bazel-lock-check`
2026-07-02 10:59:00 -07:00
Shijie Rao cbdd7f0047 Fix inherited availability metadata for Bedrock models (#30897)
## Why

Amazon Bedrock's static catalog derives its GPT model definitions from
bundled OpenAI model metadata. The GPT-5.6 variants introduced in #30285
clone GPT-5.5, which carries an `availability_nux`; because app-server
forwards that metadata through `model/list`, clients can show GPT-5.5
launch copy for a GPT-5.6 Bedrock model.

`upgrade` is also model-catalog availability metadata and should not be
inherited by provider-specific Bedrock models.

## What changed

- Clear `availability_nux` and `upgrade` when constructing static
Bedrock GPT models.
- Add a regression test asserting that every static Bedrock model omits
both fields.

## Testing

- `just test -p codex-model-provider`
2026-07-02 10:01:06 -07:00
Chris Bookholt 899d640254 ci(git-utils): shard unit tests 2026-07-02 08:02:20 -07:00
Chris Bookholt f047aa7f31 test(git-utils): isolate filter policy cardinality tests 2026-07-02 07:22:29 -07:00
Chris Bookholt 6da314e14f Merge operation-scoped config authorization into exact staging
# Conflicts:
#	codex-rs/git-utils/src/safe_git.rs
#	codex-rs/git-utils/src/safe_git_tests.rs
2026-07-02 06:51:31 -07:00
Chris Bookholt 30d7a76254 git-utils: scope config authorization to apply operations 2026-07-02 06:16:32 -07:00
Chris Bookholt 993d488f75 Merge apply-filter guard into exact staging guard 2026-07-02 05:18:32 -07:00
Chris Bookholt 53519625bd Merge repository-authority runner reuse into apply-filter guard 2026-07-02 05:04:35 -07:00
Chris Bookholt 10948913cd test(git-utils): gate Unix-only merge-base imports 2026-07-02 04:48:32 -07:00
xli-oai 6ff670bd03 [codex] emit per-request TTFT completion telemetry (#30883)
## Why

Codex telemetry pipeline needs a per-request TTFT value. The existing
`codex.turn_ttft` is recorded once per turn, so it cannot represent
later inference requests in the same turn and can miss the beginning of
hidden reasoning.

This restores the low-volume per-request signal proposed in
https://github.com/bk-nvidia/codex/pull/3 without bringing back
per-WebSocket-event TRACE logging.

## What changed

- start a timer when each mapped Responses stream begins
- latch the timer on the first `response.output_item.added`, including
an empty hidden-reasoning item
- attach `ttft_ms` to the existing `codex.sse_event` /
`response.completed` telemetry record
- cover the new completion field with an integration test

## Semantics

The value is per inference request, not per turn. It measures
mapped-stream-to-first-output-item latency, matching the
customer-proposed metric. For HTTP, the stream is already established
before timing begins, so request setup and response-header latency are
excluded.

`response.output_item.added` is a client-visible proxy for the start of
hidden reasoning; this does not claim access to the server's internal
first raw-token timestamp.

## Validation

- `just test -p codex-otel` (47 passed)
- `just test -p codex-core process_sse_emits_completed_telemetry` (1
passed after the final timer-placement change)
- attempted `just test -p codex-core`: 2,855 passed and 53 failed
because of unrelated local-environment failures (missing
`test_stdio_server` fixture binary, shell startup noise, and
timing-sensitive tests); the focused telemetry test passed in that run
as well
2026-07-02 04:45:03 -07:00
Chris Bookholt d43fab9464 fix(git-utils): reuse runner for merge-base 2026-07-02 04:33:41 -07:00
Chris Bookholt 7c0a4f4363 test(core): distinguish review timeout phases 2026-07-02 04:07:40 -07:00
Chris Bookholt fcd31e89a2 core: order review lifecycle entry before completion 2026-07-02 03:43:53 -07:00
Chris Bookholt 75f2ff379c test(core): surface review lifecycle failures 2026-07-02 02:52:07 -07:00
Chris Bookholt 2b8ce702a7 Merge commit '97dee6c2b8' into codex/psec-4394-git-05b-stage-filters 2026-07-02 01:58:57 -07:00
Chris Bookholt 97dee6c2b8 git-utils: fix Windows test import guards 2026-07-02 01:58:34 -07:00
Chris Bookholt 3e4c7d6380 Merge commit 'fab7d5a1e6aeebabdca0cea4dd09b5f9ad1a2d4e' into codex/psec-4394-git-05b-stage-filters 2026-07-02 01:42:45 -07:00
Chris Bookholt 34f1bb3ee0 git-utils: integrate exact staging with repository authority 2026-07-02 01:42:30 -07:00
Chris Bookholt fab7d5a1e6 git-utils: fix Windows authority and test fixtures 2026-07-02 01:33:44 -07:00
Chris Bookholt 5632dfd765 git-utils: support older Git boolean ranges 2026-07-02 01:01:44 -07:00
Chris Bookholt e8b30bd7d3 git-utils: integrate filter guards with repository authority 2026-07-02 00:46:29 -07:00
Chris Bookholt 801018897f Merge repository authority into apply filter guard 2026-07-02 00:16:26 -07:00