Commit Graph
6208 Commits
Author SHA1 Message Date
rhan-oai 4f0e6dc4a9 Merge d78b766fef into sapling-pr-archive-rhan-oai 2026-04-20 15:19:16 -07:00
rhan-oai d78b766fef [codex-analytics] guardian review TTFT plumbing and emission 2026-04-20 15:17:33 -07:00
rhan-oai 6c9a985ab3 [codex-analytics] guardian review truncation 2026-04-20 15:15:11 -07:00
rhan-oai 748a64f531 [codex-analytics] guardian review analytics events emission 2026-04-20 15:15:09 -07:00
rhan-oai b05a56c53c merge commit for archive created by Sapling 2026-04-20 14:51:21 -07:00
rhan-oai bfc16db7dd [codex-analytics] emit terminal tool review events 2026-04-20 14:50:57 -07:00
rhan-oai e77a5235de Merge 0c8f41eab9 into sapling-pr-archive-rhan-oai 2026-04-20 14:26:38 -07:00
rhan-oai 0c8f41eab9 [codex-analytics] emit terminal tool review events 2026-04-20 14:26:06 -07:00
rhan-oai 604b32c7a4 [codex-analytics] add tool review event schema 2026-04-20 14:25:12 -07:00
rhan-oai 638386fbf5 Merge 6033f53637 into sapling-pr-archive-rhan-oai 2026-04-20 14:20:14 -07:00
rhan-oai 3c32c2e341 Merge 920fe99b80 into sapling-pr-archive-rhan-oai 2026-04-20 14:19:15 -07:00
rhan-oai 6033f53637 [codex-analytics] guardian review TTFT plumbing and emission 2026-04-20 14:16:39 -07:00
rhan-oai 444f0a3142 [codex-analytics] guardian review truncation 2026-04-20 14:15:16 -07:00
rhan-oai 920fe99b80 [codex-analytics] guardian review analytics events emission 2026-04-20 14:11:48 -07:00
rhan-oai 945388bcb3 merge commit for archive created by Sapling 2026-04-20 13:37:29 -07:00
rhan-oai 35c9400828 [codex-analytics] emit tool item events from item lifecycle 2026-04-20 13:35:46 -07:00
rhan-oai ecd06cbee0 [codex-analytics] add tool item event schemas 2026-04-20 13:35:46 -07:00
rhan-oai 06a35d7811 Merge b4e5d584b2 into sapling-pr-archive-rhan-oai 2026-04-20 13:33:38 -07:00
rhan-oai b4e5d584b2 core: emit responses api call analytics 2026-04-20 13:31:41 -07:00
rhan-oai aea8f2a3d3 analytics: reduce responses api call facts 2026-04-20 13:31:40 -07:00
rhan-oai 391565ff57 [codex-analytics] ingest server requests and responses 2026-04-20 13:30:41 -07:00
rhan-oai be2c19672c analytics: add responses api call schema 2026-04-20 13:30:41 -07:00
rhan-oai 467c16184e merge commit for archive created by Sapling 2026-04-20 13:29:42 -07:00
rhan-oai 930b9c6996 merge commit for archive created by Sapling 2026-04-20 13:13:26 -07:00
rhan-oai d8dec91fd3 [codex-analytics] guardian review TTFT plumbing and emission 2026-04-20 13:11:54 -07:00
rhan-oai d7d92000d5 [codex-analytics] guardian review truncation 2026-04-20 13:11:53 -07:00
rhan-oai 68b51daa28 [codex-analytics] guardian review analytics events emission 2026-04-20 13:11:53 -07:00
rhan-oai 7f53e47250 [codex-analytics] guardian review analytics schema polishing (#17692)
## Why

Guardian review analytics needs a Rust event shape that matches the
backend schema while avoiding unnecessary PII exposure from reviewed
tool calls. This PR narrows the analytics payload to the fields we
intend to emit and keeps shared Guardian assessment enums in protocol
instead of duplicating equivalent analytics-only enums.

## What changed

- Uses protocol Guardian enums directly for `risk_level`,
`user_authorization`, `outcome`, and command source values.
- Removes high-risk reviewed-action fields from the analytics payload,
including raw commands, display strings, working directories, file
paths, network targets/hosts, justification text, retry reason, and
rationale text.
- Makes `target_item_id` and `tool_call_count` nullable so the Codex
event can represent cases where the app-server protocol or producer does
not have those values.
- Keeps lower-risk structured reviewed-action metadata such as sandbox
permissions, permission profile, `tty`, `execve` source/program, network
protocol/port, and MCP connector/tool labels.
- Adds an analytics reducer/client test covering `codex_guardian_review`
serialization with an optional `target_item_id` and absent removed
fields.

## Verification

- `cargo test -p codex-analytics
guardian_review_event_ingests_custom_fact_with_optional_target_item`
- `cargo fmt --check`

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/openai/codex/pull/17692).
* #17696
* #17695
* #17693
* __->__ #17692
2026-04-20 13:08:17 -07:00
rhan-oai bf4d5d7bd6 merge commit for archive created by Sapling 2026-04-20 13:08:12 -07:00
rhan-oai d2746931a5 core: emit responses api call analytics 2026-04-20 13:07:50 -07:00
rhan-oai d245a57db3 Merge 888f26ae4b into sapling-pr-archive-rhan-oai 2026-04-20 13:07:38 -07:00
rhan-oai ff079effc8 [codex-analytics] emit tool item events from item lifecycle 2026-04-20 13:07:01 -07:00
rhan-oai 888f26ae4b [codex-analytics] add tool item event schemas 2026-04-20 13:07:01 -07:00
rhan-oai 0af69cf78b [codex-analytics] ingest server requests and responses 2026-04-20 12:28:18 -07:00
rhan-oai 83136ec535 Merge 063191c1a0 into sapling-pr-archive-rhan-oai 2026-04-20 12:24:47 -07:00
rhan-oai 4aa53418fb merge commit for archive created by Sapling 2026-04-20 12:22:20 -07:00
rhan-oai 063191c1a0 core: emit responses api call analytics 2026-04-20 12:21:52 -07:00
rhan-oai 012b3cdaf2 analytics: reduce responses api call facts 2026-04-20 12:21:51 -07:00
rhan-oai 0bb92652f0 merge commit for archive created by Sapling 2026-04-20 12:12:38 -07:00
rhan-oai 89bc73125a [codex-analytics] emit tool item events from item lifecycle 2026-04-20 12:11:40 -07:00
rhan-oai a44d0f3af1 [codex-analytics] add tool item event schemas 2026-04-20 12:11:40 -07:00
rhan-oai ff0450669c [codex-analytics] ingest server requests and responses 2026-04-20 12:11:40 -07:00
rhan-oai 5b0245593b merge commit for archive created by Sapling 2026-04-20 12:09:19 -07:00
rhan-oai 7c99aec182 analytics: add responses api call schema 2026-04-20 12:07:05 -07:00
rhan-oai b0a50cda34 core: emit responses api call analytics 2026-04-20 12:07:05 -07:00
rhan-oai 5a2478bd2f analytics: reduce responses api call facts 2026-04-20 12:07:05 -07:00
caseysilver-oai fe04d75e0f [codex] Fix high severity dependency alerts (#18167)
## Summary
- Pin vulnerable npm dependencies through the existing root
`resolutions` mechanism so the lockfile moves only to patched versions.
- Refresh `pnpm-lock.yaml` for `@modelcontextprotocol/sdk`,
`handlebars`, `path-to-regexp`, `picomatch`, `minimatch`, `flatted`,
`rollup`, and `glob`.
- Bump `quinn-proto` from `0.11.13` to `0.11.14` and refresh
`MODULE.bazel.lock`.

## Testing
- `corepack pnpm --store-dir .pnpm-store install --frozen-lockfile
--ignore-scripts`
- `corepack pnpm audit --audit-level high` (passes; remaining advisories
are low/moderate)
- `corepack pnpm -r --filter ./sdk/typescript run build`
- `corepack pnpm exec eslint 'src/**/*.ts' 'tests/**/*.ts'`
- `cargo check --locked`
- `cargo build -p codex-cli`
- `bazel --output_user_root=/tmp/bazel-codex-dependabot
--ignore_all_rc_files mod deps --lockfile_mode=error`
- `just fmt`

Note: `corepack pnpm -r --filter ./sdk/typescript run test` was also
attempted after building `codex`; it is blocked on this workstation by
host-managed Codex MDM/auth state (`approval_policy` restrictions and
ChatGPT/API-key mismatch), not by this dependency change.
2026-04-20 11:59:50 -07:00
4676cb5ff8 Update models.json (#18388)
Automated update of models.json.

---------

Co-authored-by: aibrahim-oai <219906144+aibrahim-oai@users.noreply.github.com>
Co-authored-by: Ahmed Ibrahim <aibrahim@openai.com>
2026-04-20 11:46:52 -07:00
rhan-oai c27dbf91c0 merge commit for archive created by Sapling 2026-04-20 11:46:48 -07:00
rhan-oai 32c8bb120d core: emit responses api call analytics 2026-04-20 11:46:14 -07:00