Skip to content

Record normalized sandbox violation events - #36207

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d673173b4fa6bdf0a24421194a8a61c81fab9c96
Jul 30, 2026
Merged

Record normalized sandbox violation events#36207
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/d673173b4fa6bdf0a24421194a8a61c81fab9c96

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 30, 2026

Copy link
Copy Markdown

Record normalized sandbox violation events

Why

Filesystem denials and managed-network blocks did not share a structured event
shape, requiring downstream consumers to rediscover enforcement paths and parse
backend-specific output. See #17573.

What changed

  • Add normalized filesystem and network violation types in codex-sandboxing
    and emit them through a shared tracing seam.
  • Classify filesystem denials by backend and reason, retaining an optional path
    and bounded output snippet, and preserve managed-network block context.
  • Report the sandbox type through exec-server responses so unified exec can
    classify remote denials without guessing; omitted values remain compatible
    with older peers.
  • Record violations from exec, apply-patch, shell-escalation, unified-exec, and
    managed-network enforcement paths without changing denial behavior.

Testing

  • Cover filesystem classification, path extraction, SIGSYS, network event
    conversion, protocol compatibility, and remote sandbox-type propagation.

## Why

Filesystem denials and managed-network blocks did not share a structured event
shape, requiring downstream consumers to rediscover enforcement paths and parse
backend-specific output. See #17573.

## What changed

- Add normalized filesystem and network violation types in `codex-sandboxing`
  and emit them through a shared tracing seam.
- Classify filesystem denials by backend and reason, retaining an optional path
  and bounded output snippet, and preserve managed-network block context.
- Report the sandbox type through exec-server responses so unified exec can
  classify remote denials without guessing; omitted values remain compatible
  with older peers.
- Record violations from exec, apply-patch, shell-escalation, unified-exec, and
  managed-network enforcement paths without changing denial behavior.

## Testing

- Cover filesystem classification, path extraction, `SIGSYS`, network event
  conversion, protocol compatibility, and remote sandbox-type propagation.

GitOrigin-RevId: d673173b4fa6bdf0a24421194a8a61c81fab9c96
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/d673173b4fa6bdf0a24421194a8a61c81fab9c96 branch from 55c9082 to 0042b00 Compare July 30, 2026 19:24
@copyberry
copyberry Bot merged commit 0042b00 into main Jul 30, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/d673173b4fa6bdf0a24421194a8a61c81fab9c96 branch July 30, 2026 19:25
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants