Skip to content

v0.8.52: org and perm group cli endpoints, upgrade trigger - #8120

Merged
waleedlatif1 merged 3 commits into
mainfrom
staging
Sep 21, 2026
Merged

waleedlatif1 merged 3 commits into
mainfrom
staging

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

…tration (#8102)

* feat(permission-groups): expose administration through API CLI and MCP

* fix(permission-groups): preserve bulk membership behavior and locked entitlement checks

* feat(organizations): align administration across API CLI and MCP

* fix(docs): include organization endpoints in OpenAPI coverage

* fix(organizations): harden invitation delivery and mutation boundaries

* fix(invitations): revalidate policy and expiry under mutation locks

* fix(organizations): preserve member administration compatibility
@waleedlatif1
waleedlatif1 requested a review from a team as a code owner September 21, 2026 21:03
@vercel

vercel Bot commented Sep 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Sep 21, 2026 9:03pm UTC

Request Review

@waleedlatif1
waleedlatif1 merged commit f7db10b into main Sep 21, 2026
57 checks passed
@greptile-apps

greptile-apps Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

The PR appears safe to merge after correcting the non-blocking audit attribution for multi-workspace invitation resends.

Findings

  1. P2 Audit uses wrong workspace

Summary

This PR adds public v2 organization and permission-group administration, projects those APIs into the CLI, MCP, OpenAPI, and documentation surfaces, consolidates internal organization operations behind shared application use cases, strengthens invitation mutation consistency, and upgrades Trigger.dev.

  • Adds organization, member, workspace, invitation, and permission-group API operations.
  • Adds generated CLI commands, MCP mappings, OpenAPI resources, and command documentation.
  • Refactors authorization, locking, auditing, and membership cleanup into shared application boundaries.
  • Preserves deployment ordering while aligning Trigger.dev packages and CLI at 4.5.16.
  • One audit-attribution issue remains for multi-workspace invitation resends.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Client[CLI / MCP / API client] --> Contract[v2 route contract]
  Contract --> Auth[Credential and organization authorization]
  Auth --> UseCase[Shared application use case]
  UseCase --> Domain[Organization / invitation / permission-group manager]
  Domain --> DB[(Database)]
  UseCase --> Audit[Semantic audit trail]
  Contract --> Presenter[Validated response presenter]
  Presenter --> Client
Loading

Reviews (1) · Last reviewed commit: "chore(trigger): upgrade Trigger.dev to 4..."

})
recordProjectedUseCaseAuditEntries(
invitationOperations.resend,
invitation.kind === 'organization' ? null : (invitation.grants[0]?.workspaceId ?? null),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Audit uses wrong workspace

For a multi-workspace invitation, resend authorization can succeed through any grant the actor administers, but this audit entry always uses the first grant. If the actor administers a later grant instead, the action is recorded against a workspace where they may have no administrative authority, making the audit trail misleading. Record the workspace that actually satisfied authorization.

Knowledge Base Used: Identity, authentication, and authorization

This branch was successfully deployed

1 active deployment
Preview 2645f1cd Deployed Sep 21, 2026 by vercel[bot]
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.

1 participant