Michael Bolin
4c80435eba
telemetry: tag sandboxes from permission profiles ( #22791 )
...
## Why
Sandbox telemetry tags should be derived from the active permission
profile, not from a legacy `SandboxPolicy`, so the tagging code stays
aligned with the permissions migration and does not preserve a
policy-shaped production helper only for tests.
## What Changed
- Removed the production `sandbox_tag(&SandboxPolicy, ...)` helper.
- Updated sandbox tag tests to construct the relevant
`PermissionProfile` values directly.
- Kept the platform-specific sandbox tag behavior under the existing
`permission_profile_sandbox_tag` path.
## How To Review
The production change is in `codex-rs/core/src/sandbox_tags.rs`. Most of
the diff is test cleanup that replaces legacy policy setup with
permission profiles, so review the expected tag assertions rather than
the old helper mechanics.
## Verification
- `cargo test -p codex-core sandbox_tag`
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com ). Best reviewed
with [ReviewStack](https://reviewstack.dev/openai/codex/pull/22791 ).
* #22795
* #22792
* __->__ #22791
2026-05-15 10:58:50 -07:00
..
2026-05-15 11:40:35 +02:00
2026-04-21 10:22:36 -07:00
2026-04-07 00:32:41 +00:00
2026-05-14 23:00:05 -07:00
2026-05-15 10:11:16 -07:00
2026-05-15 11:40:35 +02:00
2026-05-15 08:59:31 -07:00
2026-05-07 10:16:10 -07:00
2026-04-26 22:11:49 -07:00
2026-05-15 16:19:34 +02:00
2026-05-14 16:00:06 +02:00
2026-05-14 16:00:06 +02:00
2026-05-15 13:44:58 +02:00
2026-05-13 21:37:50 +00:00
2026-03-24 18:10:53 -07:00
2026-04-24 17:49:29 -07:00
2026-04-26 15:10:53 -07:00
2026-04-07 21:20:22 +00:00
2026-05-11 16:33:44 -07:00
2026-05-01 22:11:06 +00:00
2026-05-15 11:40:35 +02:00
2026-05-08 12:36:02 -07:00
2026-04-21 15:37:12 -07:00
2026-05-13 16:43:25 +00:00
2026-05-08 12:36:02 -07:00
2026-05-13 03:08:01 +00:00
2026-05-13 11:15:25 -07:00
2026-05-13 11:15:25 -07:00
2026-05-14 23:00:05 -07:00
2026-03-12 08:16:36 -07:00
2026-04-01 23:06:24 -07:00
2026-05-15 15:26:21 +02:00
2026-05-15 11:40:35 +02:00
2026-05-11 19:51:51 -07:00
2026-05-11 19:33:15 +03:00
2026-05-14 15:16:15 +02:00
2026-05-13 16:59:22 -07:00
2026-05-11 12:23:55 -07:00
2026-03-12 00:35:21 -07:00
2026-05-08 15:30:00 -07:00
2026-05-11 09:51:21 -07:00
2026-04-20 22:39:17 -07:00
2026-04-26 15:10:53 -07:00
2026-04-26 15:10:53 -07:00
2026-05-14 15:16:15 +02:00
2026-05-01 00:56:20 +00:00
2026-05-11 11:37:53 -07:00
2026-05-11 23:04:28 -07:00
2026-05-11 23:04:28 -07:00
2026-05-13 11:31:27 +02:00
2026-05-15 10:07:54 -07:00
2026-05-11 10:49:19 -07:00
2026-05-13 11:15:25 -07:00
2026-04-28 13:03:28 +02:00
2026-04-28 19:43:44 -07:00
2026-05-12 23:30:13 -07:00
2026-05-13 11:15:25 -07:00
2026-05-14 11:52:43 -07:00
2026-03-27 19:00:44 -07:00
2026-05-14 15:16:15 +02:00
2026-05-15 01:26:50 +00:00
2026-05-12 00:11:31 +00:00
2026-05-07 10:16:10 -07:00
2026-05-07 10:36:32 +02:00
2026-05-13 21:37:50 +00:00
2026-03-25 11:05:35 -07:00
2026-04-02 23:00:02 -07:00
2026-04-09 10:53:06 -07:00
2026-03-27 19:00:44 -07:00
2026-05-14 15:16:15 +02:00
2026-04-24 17:49:29 -07:00
2026-05-11 11:32:40 -07:00
2026-05-06 22:48:29 -07:00
2026-05-06 22:48:29 -07:00
2026-05-11 11:38:18 +02:00
2026-05-06 02:12:31 +00:00
2026-04-23 10:17:09 -07:00
2026-04-20 14:04:09 -07:00
2026-05-04 22:28:14 +00:00
2026-04-16 14:30:57 -07:00
2026-04-01 23:06:24 -07:00
2026-04-14 14:26:10 -07:00
2026-05-05 15:25:19 -07:00
2026-04-27 13:41:27 -07:00
2026-05-07 11:33:47 +02:00
2026-05-15 10:58:50 -07:00
2026-05-15 10:58:50 -07:00
2026-04-20 22:39:17 -07:00
2026-04-03 00:33:34 -07:00
2026-05-11 23:58:36 +00:00
2026-02-10 17:03:46 -08:00
2026-05-04 11:46:03 -07:00
2026-05-04 11:46:03 -07:00
2026-03-27 19:00:44 -07:00
2026-04-02 13:47:10 -07:00
2026-05-04 20:36:29 -07:00
2026-04-14 14:26:10 -07:00
2026-05-04 11:46:03 -07:00
2026-05-14 16:00:06 +02:00
2026-05-14 14:48:17 +02:00
2026-05-06 22:48:29 -07:00
2026-05-11 11:38:18 +02:00
2026-05-13 13:11:30 +02:00
2026-04-26 17:18:09 -07:00
2026-04-13 23:11:49 -07:00
2026-05-07 18:05:45 +02:00
2026-05-07 18:05:45 +02:00
2026-05-15 10:58:50 -07:00
2026-05-15 01:26:50 +00:00
2026-04-28 16:36:59 +00:00
2026-05-15 11:40:35 +02:00
2026-04-20 22:39:17 -07:00
2026-04-20 22:39:17 -07:00
2026-05-14 16:54:59 -07:00
2026-05-14 16:54:59 -07:00
2026-01-30 16:37:56 -08:00
2026-04-01 23:06:24 -07:00
2026-04-01 23:06:24 -07:00
2026-04-08 08:42:18 -07:00
2026-04-08 08:42:18 -07:00