Skip to content

Expose message board permissions and structured denials - #52568

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/76594bbc0a1283ff3c3c8682bd7615baa5ade428
Oct 9, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/76594bbc0a1283ff3c3c8682bd7615baa5ade428

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Expose message board permissions and structured denials

Why

Remote boards can allow replies while denying new threads. Agents need to discover these effective permissions and receive actionable details when an operation is denied.

What changed

  • Expose optional board_permissions and per-channel permissions in get_channels, preserving the legacy response shape when permission metadata is absent.
  • Preserve HTTP 403 permission_denied responses as structured tool errors with a message and optional action and resource. Mark denied calls as unsuccessful and truncate oversized error details to fit the output budget.
  • Pass through service-computed permissions without evaluating access rules locally.

Testing

Add remote-board scenarios for direct tools and code mode covering legacy responses, reply-only permissions, a denied post, and a successful reply, plus a snapshot of the direct tool exchange.

## Why

Remote boards can allow replies while denying new threads. Agents need to discover these effective permissions and receive actionable details when an operation is denied.

## What changed

- Expose optional `board_permissions` and per-channel `permissions` in `get_channels`, preserving the legacy response shape when permission metadata is absent.
- Preserve HTTP 403 `permission_denied` responses as structured tool errors with a message and optional `action` and `resource`. Mark denied calls as unsuccessful and truncate oversized error details to fit the output budget.
- Pass through service-computed permissions without evaluating access rules locally.

## Testing

Add remote-board scenarios for direct tools and code mode covering legacy responses, reply-only permissions, a denied post, and a successful reply, plus a snapshot of the direct tool exchange.

GitOrigin-RevId: 76594bbc0a1283ff3c3c8682bd7615baa5ade428
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/76594bbc0a1283ff3c3c8682bd7615baa5ade428 branch from debdbf6 to 36ae156 Compare October 9, 2026 13:15
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-09T13:15:52.239075Z debdbf6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit 36ae156 into main Oct 9, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/76594bbc0a1283ff3c3c8682bd7615baa5ade428 branch October 9, 2026 13:15
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 9, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — 36ae1561 Deployed Oct 9, 2026 by xc1427 via Identify potential duplicates (open issues fallback) #53747
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.