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: 6e26917db6
ℹ️ 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".
|
Design review found four issues to fix:
Srikar authorized fixing all four. The fixes will stay on this stacked PR and preserve the separation between management metadata and content admission. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7e6437fa19
ℹ️ 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 #1358 (owner recovery). Allison's review, posted by Fermy (his agent). Line numbers are at The spec items are covered:
The shape is too big, and it depends on #1361. Waiting on Allison (A)
This PR
Tests
|
|
Allison's decision on A (all four on #1192). Posted by Fermy (his agent). 11-03 decision 8 stands: super admins manage every patch but open only what its audience allows. The management view this PR builds stays live, so:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 244bc20e67
ℹ️ 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".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2fa0b10d1e
ℹ️ 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".
0dea95c to
2fa0b10
Compare
|
Addressed Allison’s review and the inline findings in
Validation: 120 tests pass across recovery, portal HTTP journeys, rendering and guest grants; all 24 workspace typecheck tasks and full lint pass. Full verification was attempted and does not pass; its platform/execution, stale lower-stack CLI expectation, installation and browser failures are recorded in the PR body. No acceptance/merge-ready claim. Updated #1288. Only #1358 was pushed; no dependent PR/testing branch, merge or deployment was changed by this session. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c8dca0a82d
ℹ️ 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".
| renderVersions({ | ||
| card: { ...view.card, versions: view.versions }, | ||
| viewer, | ||
| now: yield* Clock.currentTimeMillis | ||
| }) + |
There was a problem hiding this comment.
Carry the expected owner in management rollback forms
For a super admin viewing an inaccessible live patch with multiple versions, every rollback button rendered here submits without expectedOwnerUserId: versionsTable in render.ts includes only the patch ID, current version ID and requested version number. However, post rejects every management-only submission whose owner token does not match selected.owner.id, so these buttons always return a read-only 409 refusal without rolling back. Include the expected owner in management rollback forms, as the sharing and confirmation forms already do.
AGENTS.md reference: AGENTS.md:L79-L79
Useful? React with 👍 / 👎.
| }) + | ||
| management | ||
| .filter( |
There was a problem hiding this comment.
Include recovery records in attention navigation and counts
When the only patch needing attention is inaccessible to the super admin, appending its recovery entry after renderAllPatches leaves the attention navigation unaware of it. That renderer calculates tab visibility, counts and empty states solely from content-readable rows, so the normal All patches page hides the Needs attention tab entirely. Visiting ?show=attention directly then displays the recovery entry alongside a zero count and “Nothing needs your attention.” Include eligible management records in those calculations rather than only appending their markup afterward.
Useful? React with 👍 / 👎.
| return yield* errorPage(404, "Patch not found", "The requested patch is unavailable."); | ||
| const patches = yield* Patches.Patches; | ||
| const selected = (yield* patches.read({ ...access, state: "all" })).find( | ||
| const selected = (yield* patches.read({ ...access, state: "all", patchRef: name })).find( |
There was a problem hiding this comment.
Resolve deleted patches by ID before loading their logs
For an owner or audience-admitted administrator opening a deleted patch during its retention window, the card still displays the Log tab, but this new patchRef: name makes that tab return 404. Patches.select resolves names only for rows whose deletedAt === null, even with state: "all"; the previous read-all-and-find path included deleted records. Resolve the exact name to its patch ID before reading, as the other updated card handlers do, or retain an all-state name lookup so retained logs remain accessible.
Useful? React with 👍 / 👎.
|
Fixed the two design-review findings in
Corrected both stale packed-smoke audience assertions and normalized its expected log directory through realpath for macOS. The complete packed CLI real-server journey passes locally. Both CI smoke jobs now pass on this head: Node 22, Node 26. 120 focused tests, all 24 workspace typecheck tasks, lint, formatting and whitespace checks pass. Only #1358 changed; no other stacked PR/testing branch, merge or deployment. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8063801838
ℹ️ 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 ref = { companyId: viewer.company.id, userId: id, actorId: viewer.user.id }; | ||
| // Acquire the final administration lock before any selected patch locks. | ||
| if (choice === "keep" || choice === "confirm") | ||
| yield* Users.lockAdministrator(ref).pipe(Effect.catchTags({ RoleForbidden: Effect.die })); |
There was a problem hiding this comment.
Preserve the administrator recheck's permission refusal
If another administrator demotes or deactivates the acting administrator after the session viewer is loaded but before this company lock is acquired, lockAdministrator legitimately returns RoleForbidden. Converting that refusal to a defect bypasses this handler's existing RoleForbidden recovery, producing an internal server error instead of the intended 403 response for deactivation/reactivation submissions. Let the typed refusal propagate to the existing permission-error handler.
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
An owner removed from a patch’s teams loses content access without losing a recovery route. Super admins manage every patch through bounded metadata; regular admins manage patches they can open. Neither ownership nor administration grants content access.
Closes #1288. Part of #1192. Stacked on #1357; the access-control stack must land together.
Look at
Allison’s review is addressed:
canOpen,canManage,ownerCanOpen. It reuses the existing card, Settings and Versions renderers. Separate management-card/version methods and duplicate membership-facts queries are removed.Super admins still explicitly join restricted teams to read content; ordinary CLI/MCP discovery remains audience-filtered.
How it was verified
At
80638018, against #135761da8e8f:pnpm verifyattempt did not pass. Failures include execution-provider tests on macOS, GNU tar options unavailable on macOS, the install harness’s missingmise, and a browser hotkey timeout. No full-suite or acceptance pass is claimed.Internal service/portal change; existing wire routes and CLI responses remain intact. No new migration, command, runtime activation or deployment. No dependent PR or combined testing branch was changed by this revision.
Release impact
Uses the stacked base’s existing schema and mutation routes.
Model: GPT-6. Harness: Codex.