Commit Graph

5681 Commits

Author SHA1 Message Date
rhan-oai
ca5b01feb4 merge commit for archive created by Sapling 2026-04-10 20:37:55 -07:00
rhan-oai
1a8e428123 [codex-analytics] denormalize thread metadata onto turn events 2026-04-10 20:30:23 -07:00
rhan-oai
d70d6e259d [codex-analytics] add steering metadata 2026-04-10 18:34:52 -07:00
rhan-oai
4164022f6a [codex-analytics] add token usage metadata 2026-04-10 18:34:52 -07:00
rhan-oai
0b05e128e0 [codex-analytics] feature plumbing and emittance 2026-04-10 18:34:26 -07:00
rhan-oai
55c108e531 merge commit for archive created by Sapling 2026-04-10 18:06:55 -07:00
rhan-oai
dbf2dc1743 [codex-analytics] denormalize thread metadata onto turn events 2026-04-10 18:06:00 -07:00
rhan-oai
cba79d871e merge commit for archive created by Sapling 2026-04-10 17:55:23 -07:00
rhan-oai
1053b017c6 [codex-analytics] denormalize thread metadata onto turn events 2026-04-10 17:48:21 -07:00
rhan-oai
4edc72843f [codex-analytics] add steering metadata 2026-04-10 17:48:08 -07:00
rhan-oai
f277d5c99a [codex-analytics] add token usage metadata 2026-04-10 17:47:02 -07:00
rhan-oai
ccb9b34300 [codex-analytics] feature plumbing and emittance 2026-04-10 17:46:49 -07:00
rhan-oai
2400ea5510 Merge f45761f593 into sapling-pr-archive-rhan-oai 2026-04-10 17:42:17 -07:00
rhan-oai
f45761f593 [codex-analytics] denormalize thread metadata onto turn events 2026-04-10 17:37:19 -07:00
Owen Lin
58933237cd feat(analytics): add guardian review event schema (#17055)
Just the analytics schema definition for guardian evaluations. No wiring
done yet.
2026-04-10 17:33:58 -07:00
rhan-oai
b0699da049 [codex-analytics] add steering metadata 2026-04-10 17:28:49 -07:00
rhan-oai
610484b127 [codex-analytics] add token usage metadata 2026-04-10 17:28:49 -07:00
rhan-oai
61d7442800 [codex-analytics] feature plumbing and emittance 2026-04-10 17:28:42 -07:00
rhan-oai
4174990591 Merge 963ce10299 into sapling-pr-archive-rhan-oai 2026-04-10 17:21:57 -07:00
rhan-oai
963ce10299 [codex-analytics] denormalize thread metadata onto turn events 2026-04-10 17:21:19 -07:00
rhan-oai
22668d9771 merge commit for archive created by Sapling 2026-04-10 17:13:12 -07:00
rhan-oai
7538889d4a [codex-analytics] denormalize thread metadata onto turn events 2026-04-10 17:12:00 -07:00
rhan-oai
3519f14bf7 [codex-analytics] add steering metadata 2026-04-10 17:11:10 -07:00
rhan-oai
24c819097c [codex-analytics] add token usage metadata 2026-04-10 17:11:10 -07:00
rhan-oai
9c6c06bb25 [codex-analytics] feature plumbing and emittance 2026-04-10 17:11:10 -07:00
viyatb-oai
b114781495 fix(permissions): fix symlinked writable roots in sandbox permissions (#15981)
## Summary
- preserve logical symlink paths during permission normalization and
config cwd handling
- bind real targets for symlinked readable/writable roots in bwrap and
remap carveouts and unreadable roots there
- add regressions for symlinked carveouts and nested symlink escape
masking

## Root cause
Permission normalization canonicalized symlinked writable roots and cwd
to their real targets too early. That drifted policy checks away from
the logical paths the sandboxed process can actually address, while
bwrap still needed the real targets for mounts. The mismatch caused
shell and apply_patch failures on symlinked writable roots.

## Impact
Fixes #15781.

Also fixes #17079:
- #17079 is the protected symlinked carveout side: bwrap now binds the
real symlinked writable-root target and remaps carveouts before masking.

Related to #15157:
- #15157 is the broader permission-check side of this path-identity
problem. This PR addresses the shared logical-vs-canonical normalization
issue, but the reported Darwin prompt behavior should be validated
separately before auto-closing it.

This should also fix #14672, #14694, #14715, and #15725:
- #14672, #14694, and #14715 are the same Linux
symlinked-writable-root/bwrap family as #15781.
- #15725 is the protected symlinked workspace path variant; the PR
preserves the protected logical path in policy space while bwrap applies
read-only or unreadable treatment to the resolved target so
file-vs-directory bind mismatches do not abort sandbox setup.

## Notes
- Added Linux-only regressions for symlinked writable ancestors and
protected symlinked directory targets, including nested symlink escape
masking without rebinding the escape target writable.

---------

Co-authored-by: Codex <noreply@openai.com>
2026-04-10 17:00:58 -07:00
rhan-oai
1e2562bd92 merge commit for archive created by Sapling 2026-04-10 17:00:04 -07:00
rhan-oai
65767d6418 [codex-analytics] denormalize thread metadata onto turn events 2026-04-10 16:53:46 -07:00
rhan-oai
ba4058c916 [codex-analytics] add steering metadata 2026-04-10 16:53:46 -07:00
rhan-oai
2a16ce9e0d [codex-analytics] add token usage metadata 2026-04-10 16:53:46 -07:00
rhan-oai
6a83f5548c [codex-analytics] feature plumbing and emittance 2026-04-10 16:53:46 -07:00
Ruslan Nigmatullin
0a99943a94 app-server: add pipelined config rpc regression test (#17371)
### Summary
Adds regression coverage for pipelined config RPC reads after writes
### Testing
These are new tests
2026-04-10 16:46:02 -07:00
rhan-oai
7ce3f6b996 merge commit for archive created by Sapling 2026-04-10 16:35:31 -07:00
rhan-oai
4956c535a4 [codex-analytics] denormalize thread metadata onto turn events 2026-04-10 16:34:45 -07:00
rhan-oai
c6c98c0fe2 [codex-analytics] add steering metadata 2026-04-10 16:34:45 -07:00
Shijie Rao
930e5adb7e Revert "Option to Notify Workspace Owner When Usage Limit is Reached" (#17391)
Reverts openai/codex#16969

#sev3-2026-04-10-accountscheckversion-500s-for-openai-workspace-7300
2026-04-10 23:33:13 +00:00
Owen Lin
a3be74143a fix(guardian, app-server): introduce guardian review ids (#17298)
## Description

This PR introduces `review_id` as the stable identifier for guardian
reviews and exposes it in app-server `item/autoApprovalReview/started`
and `item/autoApprovalReview/completed` events.

Internally, guardian rejection state is now keyed by `review_id` instead
of the reviewed tool item ID. `target_item_id` is still included when a
review maps to a concrete thread item, but it is no longer overloaded as
the review lifecycle identifier.

## Motivation

We'd like to give users the ability to preempt a guardian review while
it's running (approve or decline).

However, we can't implement the API that allows the user to override a
running guardian review because we didn't have a unique `review_id` per
guardian review. Using `target_item_id` is not correct since:
- with execve reviews, there can be multiple execve calls (and therefore
guardian reviews) per shell command
- with network policy reviews, there is no target item ID

The PR that actually implements user overrides will use `review_id` as
the stable identifier.
2026-04-10 16:21:02 -07:00
Abhinav
7999b0f60f Support clear SessionStart source (#17073)
## Motivation

The `SessionStart` hook already receives `startup` and `resume` sources,
but sessions created from `/clear` previously looked like normal startup
sessions. This makes it impossible for hook authors to distinguish
between these with the matcher.

## Summary

- Add `InitialHistory::Cleared` so `/clear`-created sessions can be
distinguished from ordinary startup sessions.
- Add `SessionStartSource::Clear` and wire it through core, app-server
thread start params, and TUI clear-session flow.
- Update app-server protocol schemas, generated TypeScript, docs, and
related tests.


https://github.com/user-attachments/assets/9cae3cb4-41c7-4d06-b34f-966252442e5c
2026-04-10 16:05:21 -07:00
rhan-oai
6564c4e772 merge commit for archive created by Sapling 2026-04-10 16:02:30 -07:00
rhan-oai
e2cc7faac6 [codex-analytics] denormalize thread metadata onto turn events 2026-04-10 16:00:26 -07:00
rhan-oai
b2b81bde9b [codex-analytics] add steering metadata 2026-04-10 16:00:19 -07:00
rhan-oai
f5f5501319 merge commit for archive created by Sapling 2026-04-10 15:45:59 -07:00
rhan-oai
3a931e4a74 [codex-analytics] add steering metadata 2026-04-10 15:43:07 -07:00
rhan-oai
bf02586efd merge commit for archive created by Sapling 2026-04-10 15:39:21 -07:00
rhan-oai
60c2461b82 [codex-analytics] add steering metadata 2026-04-10 15:38:28 -07:00
rhan-oai
5269188c55 Merge c83f69b09e into sapling-pr-archive-rhan-oai 2026-04-10 15:29:27 -07:00
rhan-oai
c83f69b09e [codex-analytics] add steering metadata 2026-04-10 15:27:37 -07:00
rhan-oai
08d37fefab merge commit for archive created by Sapling 2026-04-10 15:17:54 -07:00
rhan-oai
7021d18218 [codex-analytics] add steering metadata 2026-04-10 15:08:39 -07:00
rhan-oai
25244aa5f5 Merge f71df46ada into sapling-pr-archive-rhan-oai 2026-04-10 14:42:11 -07:00