Repository navigation
Conversation
…at/1285-durable-teams
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: cf56243ecd
ℹ️ 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: 373d0c120b
ℹ️ 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 confirm = | ||
| editable && confirmation === "delete" | ||
| ? `<section><h2>Delete ${escapeHtml(selected.name)}?</h2><p>Its memberships will be kept for restoration. Patches and connections must no longer reference it.</p><form method="post" action="${escapeAttribute(`${base}delete${query}`)}"><a class="btn" href="${escapeAttribute(address(selected.id))}">Cancel</a><button class="btn btn-danger" type="submit">Delete team</button></form></section>` |
There was a problem hiding this comment.
Use the shared confirmation components for team lifecycle forms
When an administrator opens either delete or restore confirmation, the new markup omits confirmation-form, confirmation-consequence, and confirmation-actions, contrary to the applicable .agents/skills/ui-consistency/SKILL.md confirmation-form contract. Consequently, these controls bypass the shared action spacing and responsive wrapping defined in packages/core/src/html.ts. Apply the shared confirmation classes and group submit/cancel controls in confirmation-actions, as the existing Company and Machines confirmations do.
AGENTS.md reference: AGENTS.md:L85-L85
Useful? React with 👍 / 👎.
Acceptance: FAILChecked Done means
Golden journeys
Rollback answers: Match the changed schema and code, and Not run / limits
No new lifecycle defect was found. This FAIL is the outstanding assembled-feature acceptance gate, not a claim that team deletion/recovery is broken. Keep #1291 open and do not call the stack ready to merge or release. |
# Conflicts: # packages/sdk/src/Generation.ts
# Conflicts: # packages/patches/src/Audiences.test.ts # packages/patches/src/GuestGrants.ts
# Conflicts: # packages/sdk/src/SdkApi.test.ts
# Conflicts: # packages/patches/src/GuestGrants.ts
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 68b300b23a
ℹ️ 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 people = (yield* users.list(ref.companyId)).filter( | ||
| (person) => person.deactivatedAt === null | ||
| ); | ||
| const people = yield* users.list(ref.companyId); |
There was a problem hiding this comment.
Exclude inactive people from the add-members picker
When a company has deactivated people who are not already on the selected team, removing this filter makes them selectable in “Add people,” because candidates includes every person without a recorded membership. However, Teams.setMemberships rejects inactive additions with UserNotFound and rolls back the entire submission, including any active people selected alongside them. Keep inactive people available for displaying and removing recorded memberships, but filter the add-members candidates to active people.
Useful? React with 👍 / 👎.
|
Allison review reconciliation at Each apparent gap was checked against the owning branch and assembled source before deciding whether it needed code. Later #1192 A–D decisions take precedence. #1359 and #1361 are issues, not PRs. All conversation comments, submitted reviews and inline comments were refreshed; Allison has no review-body/inline comments on this set, and no direct comments on #1378/#1379.
Retained alternatives / literal engineering-request limits:
Verification:
Every current requested PR head is an ancestor of assembled #1379. The stack is not declared ready to merge. No new issue/PR, PR merge, deployment, production/live-database change or daily-driver preview change. Model: GPT-6; harness: Codex. |
|
Follow-up to the Allison review reconciliation at #1404 carries the existing access stack plus the approved Teams UI revamp, on an independent branch based on main. The original
Verification and remaining limits:
Model: GPT-6; harness: Codex. Independent UI review: GPT-6.1 Sol. |
|
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
Teams could be created and edited, but could not be safely deleted or recovered. Administrators can now delete an unreferenced team and restore it from Deleted teams, retaining its identity and recorded memberships. A patch or connection reference blocks deletion, including retained patches; no audience silently becomes Company.
Part of #1291 / #1192; keep #1291 open until merged. Stacked on
fix/1367-shared-read-fence(22e2de09), preservingtest/1192-teams-integration. UI option A and the deletion policy were approved by Srikar. No merge or deployment.Look at
The real-server journey in
TeamAccess.test.tspublishes to Design + Engineering, checks patch and connection deletion guards, removes references deliberately, deletes/restores Design and refuses a new publish to the deleted team. Another case races first publication against deletion; the existing stream journey exercises the real member adapter, revocation and restoration. These three server tests pass.The Companies lifecycle case verifies retained memberships, non-revival of explicitly removed memberships, member refusal, and fail-closed missing assembly. The upgrade case preserves existing team identities, memberships and attribution. The selected active/deleted pages were inspected locally: HTTP 200, no browser errors. All data was synthetic in a new throwaway instance.
How it was verified
Latest assembled head:
0e01b1c357ee8a726e30f224671c32cf16b311dc. It contains every current head of #1355, #1356, #1357, #1358, #1360, #1362, #1363, #1364 and #1378 as ancestors. #1356's existing Teams service/batch/inactive-removal changes were integrated with later visibility, explicit membership and team recovery. #1360's own-table subscription cleanup is retained; #1378's shared-source membership fence remains. Guest title and SDK patch-ID fixes are present from their owning PRs. Released migration 36 and unshipped access migrations 37–41 are preserved.Code checks at 19e603f (final head adds two documentation sentences) passed: all 24 workspace typecheck tasks, 74 focused tests in eight suites, formatting, lint and whitespace checks. The focused command covers Teams, Audiences, GuestGrants, SdkApi, real-server TeamAccess and Guests, company migrations and QuerySubscriptions.
Broad verification is not green: the full command ran through every stage while integration was being finalized. Format, lint, synthesis, Postgres concurrency (28 tests), packed install and tier-2 smoke passed. Node: 3,200 passed / 63 failed / 18 skipped. Bun: 2,905 passed / 55 failed / 15 skipped. The early typecheck failure was fixed and the complete latest-head typecheck passes. CLI smoke failed on Mac shortcut text (
Ctrl+Kexpected,⌘ Krendered); browser stopped after a hotkey case failed (6 passed, 109 not run). Other failures include Linux/procfleet assumptions and CLI/dev/timeouts; they have not all been adjudicated as infrastructure flakes. These results do not establish complete-feature readiness.Brightline and independent acceptance remain unverified on this head. Srikar explicitly took over the complete synthetic Brightline journey. The isolated instance created during setup was stopped. Earlier screenshots, films and acceptance below apply to their recorded historical commits, not this assembled head. No merge or deployment.
Release impact
No user configuration or CLI change.
Model: GPT-6. Harness: Codex.
Flow
team-recovery, as Ada Park (super_admin)After is
373d0c1(feat/1291-team-recovery), on theteamscenario, frompnpm dev film.after.mp4
CI migration repair
The released-terms upgrade test failed with the same ledger mismatch as CI before the fix and now passes while preserving a recorded acceptance and migrating the existing admin to super admin. All 24 migration/team/server tests pass; test typecheck, lint and formatting pass. Only the canonical landed migration record was brought forward; unrelated main UI changes were not merged. Throwaway databases created with the old unshipped migration history need reset. CI is rerunning on the pushed fix; its result is pending.