Skip to content

Separate exec permission paths from core models#33200

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

Separate exec permission paths from core models#33200
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/a0ef5f8aba9bbfdf00a00fcc4f199314836bc85d

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 15, 2026

Copy link
Copy Markdown

Separate exec permission paths from core models

Why

Core filesystem permission models operate on native absolute paths, while exec
sandbox contexts must serialize paths as portable URIs.

What changed

  • Make the core filesystem permission and profile types concrete over
    AbsolutePathBuf instead of generic over their path representation.
  • Add exec-specific permission types that convert native permission paths to
    PathUri values at the sandbox protocol boundary.
  • Replace the legacy read/write-roots tuple with a named
    LegacyReadWriteRoots struct.

Testing

  • Add coverage that exec sandbox permission paths serialize as URIs and round
    trip through the filesystem protocol.

## Why

Core filesystem permission models operate on native absolute paths, while exec
sandbox contexts must serialize paths as portable URIs.

## What changed

- Make the core filesystem permission and profile types concrete over
  `AbsolutePathBuf` instead of generic over their path representation.
- Add exec-specific permission types that convert native permission paths to
  `PathUri` values at the sandbox protocol boundary.
- Replace the legacy read/write-roots tuple with a named
  `LegacyReadWriteRoots` struct.

## Testing

- Add coverage that exec sandbox permission paths serialize as URIs and round
  trip through the filesystem protocol.

GitOrigin-RevId: a0ef5f8aba9bbfdf00a00fcc4f199314836bc85d
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/a0ef5f8aba9bbfdf00a00fcc4f199314836bc85d branch from 16f4118 to 72b41c5 Compare July 15, 2026 01:32
@copyberry
copyberry Bot merged commit 72b41c5 into main Jul 15, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/a0ef5f8aba9bbfdf00a00fcc4f199314836bc85d branch July 15, 2026 01:33
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 15, 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.

1 participant