Skip to content

codex: harden brokered observer lifecycle - #869

Merged
GraciousGazelles merged 3 commits into
mainfrom
fix/github-app-brokered-observers-v3
Sep 20, 2026
Merged

GraciousGazelles merged 3 commits into
mainfrom
fix/github-app-brokered-observers-v3

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

Follow-up hardening for brokered GitHub App observers after expert review.

  • bounds broker IPC responses for worst-case base64 expansion
  • preserves text and binary output without duplicated representations
  • hermetically scopes token-bearing gh processes and removes ambient trust-root overrides
  • validates exact GraphQL templates and typed malformed-input failures
  • tears down process groups before temporary credential/config cleanup
  • exercises the real PR watcher through the brokered observer path

Validation

  • 154 focused tests passed, plus 2 subtests
  • Python compilation passed for broker/watcher modules
  • git diff --check passed
  • candidate rebased onto protected main at 65827d934934ad303f53da4fb91b194a38fd72d2

No credentials or runtime installation are included.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 19, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-20T00:01:13.336123Z 2f2d3b6 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.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a hermetic execution environment for brokered GitHub CLI (gh) commands, adds support for binary requests and responses, and enforces strict validation on GraphQL query templates. Feedback on the changes suggests adding PATH to the allowed environment passthrough variables to prevent execution failures when gh invokes system dependencies, and utilizing a with context manager for temporary directory creation to avoid potential resource leaks if initialization fails.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 20, 2026
Merged via the queue into main with commit f84d109 Sep 20, 2026
66 checks passed
@GraciousGazelles
GraciousGazelles deleted the fix/github-app-brokered-observers-v3 branch September 20, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants