Skip to content

Commit cbc84bd

Browse files
committed
docs(workspaces): cut the third copy of the personal-workspace rationale
The escape-hatch reasoning already lives at the preflight that enforces it, and again in the test. A pointer is enough here.
1 parent 0d5a45d commit cbc84bd

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

apps/sim/lib/workspaces/policy.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,13 +138,11 @@ export class WorkspaceCreationCapabilityWithheldError extends WorkspaceCreationC
138138
* `null` when none does — resolved BEFORE the transaction opens and passed into
139139
* {@link lockWorkspaceCreationContext}.
140140
*
141-
* Governed by the organization the caller belongs to even when the resulting
142-
* workspace would be personal: a personal workspace is precisely the escape a
143-
* scoped group would otherwise leave open, so exempting it would leave the gate
144-
* answering only the case it is not for. `observedOrganizationId` carries that
145-
* membership, and {@link lockWorkspaceCreationContext} refuses to commit unless
146-
* live membership still equals it — so a verdict reached for this organization
147-
* can never be applied to a different one.
141+
* Falls back to `observedOrganizationId` so a personal workspace stays governed
142+
* by the caller's own organization — see {@link getWorkspaceCreationPolicy} for
143+
* why exempting it would defeat the gate. {@link lockWorkspaceCreationContext}
144+
* refuses to commit unless live membership still equals that value, so a verdict
145+
* reached here can never be applied to a different organization.
148146
*
149147
* Only the entitlement half of the decision is answered here, because it cannot
150148
* be answered anywhere else — see {@link isOrganizationPermissionRegimeActive}

0 commit comments

Comments
 (0)