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: 7486748b47
ℹ️ 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".
|
Review of #1360 (audience enforcement). Allison's review, posted by Fermy (his agent). Line numbers are at The coverage is complete. At the stack head, all of these check the current audience on every request:
Team-membership, role and audience changes all advance a revision the fence watches. Nothing trusts a page load, credential or loaded version for content. Two places are still open:
The diff is small because #1357 already put the decision into the shared reads. What's wrong is how often it checks, and that two adapters implement one decision. This PR
Stack-wide
|
0dea95c to
2fa0b10
Compare
7da2ad1 to
23a4857
Compare
…eat/1287-audience-enforcement # Conflicts: # docs/product.md
…into feat/1287-audience-enforcement
|
Addressed Allison’s agreed review in ed528c7, pushed at e542116:
Updated this PR’s description and #1287 with evidence and verification limits. Formatting, lint, 24 typecheck tasks and synth pass. All 15 affected suites pass across focused runs; final combined 64/65, then the workerd query suite passes 3/3 alone. Full verification was attempted but stopped after broad platform/provider, CLI and source-copy failures; CI remains the full-suite check. Per Srikar’s latest instruction, work stops at #1360/#1287. No dependent PR or combined testing branch was changed. No new issue/PR, merge or deployment. |
|
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
Loaded patches and cached agent tools could retain access after audience removal. Runtime and MCP now use the same targeted Patches admission check for protected work, including owned-resource callbacks and nested calls. Retired patches refuse callbacks consistently.
Closes #1287. Part of #1192. Stacked on #1358; these PRs remain unmerged and land together.
Allison's review is addressed: member callbacks reuse invocation-local authorization while patch lifecycle and company membership authority remain unchanged. Credential checks remain active; guest callbacks retain fresh current-version and connection checks. Live queries no longer depend on the member directory unless they read it. Existing document checks, membership wakes and delivery fences retain revocation protection. Patch fences consume #1357's numeric lifecycle revision directly, with no audience sum or activation switch.
Work admitted before removal commits may finish, including atomic mutations. Subsequent admission refuses access; delivered bytes and committed work are not retracted. Restoration permits fresh admission. Failed authority reads fail closed.
Look at
apps/server/src/TeamAccess.test.tsuses the full HTTP server, stored team memberships and the actual admission adapter. Removing the reader's only granting membership closes a subscribed stream, refuses the next table broker call and reconnect; restoration permits broker access and a fresh stream.packages/mcp/src/Calls.test.tschecks callback retirement/restoration. Against the old adapter, the new assertion failed with['admin', 'admin', 'admin']; the fixed adapter passes with['admin', 'access_denied', 'admin'].Reauthorization.test.tscovers unchanged-authority reuse, revocation, restoration, failed reads and authority changes during authorization. Existing callback, nested admission, guest, directory and subscription coverage remains.How it was verified
pnpm verifywas attempted, then stopped after broad fleet/provider, Linux/proc-on-macOS, CLI and source-copy failures. Full acceptance is not claimed; CI is running on the pushed head.Surface review: no new wire/CLI contract, migration, skill surface or UI. Product/domain docs record authority and in-flight rules. Genuine directory dependencies and concurrent snapshot fencing remain. SDK generation, guest-detail and connection-page fixes stay outside this PR. Per Srikar's latest instruction, no dependent PR or combined testing branch was changed.
Release impact
Internal enforcement; no new client contract or stored format in this PR.
Model: GPT-6. Harness: Codex.