Repository navigation
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2e04cc3558
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ConnectionStore.ConnectionStore, | ||
| yield* ConnectionStore.ConnectionStore | ||
| ), | ||
| Effect.mapError(() => new Execution.AccessDenied({})) |
There was a problem hiding this comment.
Preserve refusal types from the queued Postgres recheck
If the viewer's session expires or the authority lookup fails while a Postgres call waits for a backend, this mapper converts every recheck failure into PostgresAccessDenied (403), including SessionExpired, SessionRefreshRequired, and SourceUnavailable. The handler and callback journal consequently report a connection-permission failure, with a message asking an administrator to reconnect the database, instead of the actual session or service failure. Preserve the typed recheck failures through the execution error channel rather than replacing all of them with access denial.
AGENTS.md reference: AGENTS.md:L101-L101
Useful? React with 👍 / 👎.
|
Review of #1364 (connection audiences). Allison's review, posted by Fermy (his agent). Line numbers are at The model and the per-call enforcement are right:
The live-revision half is machinery for a path that doesn't exist. Waiting on Allison (C)
This PR
Stack-wide
Tests
|
|
Allison's decision on C (all four on #1192). Posted by Fermy (his agent). This replaces the recommendation under "Waiting on Allison (C)" above. If a patch is shared with you, its connections work for you, within what the patch's code does. That holds for guests and for colleagues outside the connection's teams. A connection's teams decide who can build with it:
|
…into feat/1289-connection-audiences
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0aae1b1aef
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const usage = | ||
| (yield* store.usage(viewer.company.id, viewer.user.id)).get(id) ?? ConnectionStore.unused; |
There was a problem hiding this comment.
Preserve the complete dependency guard when filtering patch names
When a connection is declared only by patches the super admin cannot open (or by disabled patches), this viewer-filtered query returns no usage and defaults to ConnectionStore.unused. Consequently, the connection appears in the Unused filter and offers Delete, although SqlConnectionStore.delete still checks all stored declarations and rejects the operation with ConnectionInUse. Keep patch names viewer-filtered, but derive the declared flag used by the administration controls from the complete dependency set.
Useful? React with 👍 / 👎.
| ConnectionAccessDenied: (error) => | ||
| replayOrRespond(rejected("connection_access_denied", error.message)), |
There was a problem hiding this comment.
Clear pending CLI publishes after connection access refusals
When a repo publish receives this new 422 refusal, packages/patchy/src/Api.ts's isDefinitivePublishRefusal does not recognize connection_access_denied, so sendPublish retains the pending request. Subsequent publishes replay that saved payload before building the current source (commands.ts:752–761), meaning removing or replacing the forbidden connection in the repo cannot repair the failure: the CLI keeps submitting the original declaration. Add this code to the definitive-refusal classifier and its tests so a rejected attempt is cleared and the corrected repo can be published.
AGENTS.md reference: AGENTS.md:L73-L73
Useful? React with 👍 / 👎.
|
Superseded by #1416 (the rollback bridge) and #1417 (teams), which carry this work forward under Allison's decisions on #1192 (#1192 (comment)). Closing without merging; Srikar is co-author there. Posted by Fermy (Allison's agent). |
What changed
Connection teams now control who can build with a connection. Publish and connection calls check the current patch owner's access, including after queueing. Anyone who can open the patch can use its permitted handlers; Block guests is unchanged. Connection pages and SDK generation show only connections the person can build with.
Closes #1289. Stacked on #1362; the stack lands together. Implements Allison's approved later decision C. The lower stack and existing remote commits are preserved, with merge conflicts resolved. No dependent PRs were changed.
Look at
How it was verified
audience_revisioncolumn; it now readslifecycle_revision, which also advances for audience edits. Synthetic callback fixtures now store current patch owners, and team-page checks follow the approved membership rule.Release impact
Existing connections migrate to Company without credential, snapshot or Block guests changes. This PR is part of the one-way role/audience stack.
Implemented with GPT-6 in the Codex harness.